alinea

Content management, streamlined

MIT License

Downloads
4.5K
Stars
735
Committers
11

Bot releases are visible (Hide)

alinea - v0.7.1

Published by github-actions[bot] 9 months ago

  • Support entries that were seeded in versions prior to 0.6.4 for backward
    compatibility.
alinea - v0.7.0

Published by github-actions[bot] 9 months ago

  • File and image titles can be edited. A focus point can be chosen for images.
  • The exports of the alinea package are restructured. Unless you were using the
    now removed named alinea export (import {alinea} from 'alinea') this should
    not be a breaking change.
  • The createNextCMS function is now deprecated and it is recommended to
    import it as {createCMS} from 'alinea/next' instead.
  • The local database which stores content for editors is now rebuilt on alinea
    version changes. This means breaking changes to the schema will not cause
    errors in the browser.
  • Uploaded file names and paths are now slugified correctly.
alinea - v0.6.4

Published by github-actions[bot] 9 months ago

  • Improve page seeding in roots with multiple languages. Seeding content is
    currently undocumented until it reaches a stable interface.
alinea - v0.6.3

Published by github-actions[bot] 9 months ago

  • Add a preview widget which enables editors to easily switch from previewing
    to editing. Enable by setting widget to true:

    <cms.previews widget />
    
  • Add a function to retrieve the current logged in user:

    console.log(await cms.user())
    
alinea - v0.6.2

Published by github-actions[bot] 9 months ago

  • Live-reload changes to .css files used for custom fields and views.
alinea - v0.6.1

Published by github-actions[bot] 9 months ago

  • Allow importing .css and .module.css in custom fields and views.
  • Make isContainer optional if contains is used on Types.
  • Add i18nId to retrieved entry Link fields when queried.
alinea - v0.6.0

Published by github-actions[bot] 9 months ago

  • Field validation (#369)

    Introduces two new Field options available for every Field: required and
    validate. The required option will make sure the field value is not empty
    when saving. The validate option can be used to validate the field value
    using a custom function. The function should return true if the value is
    valid, false if it is not valid and a string if it is not valid and a
    message should be shown to the user.

    alinea.text('Hello field', {
      help: 'This field only accepts "hello" as a value',
      validate(value) {
        if (value !== 'hello') return 'Only "hello" is allowed!'
      }
    })
    
alinea - v0.5.12

Published by github-actions[bot] 9 months ago

  • Link fields using the condition option are now constrained with their locale
  • Upgrade the tiptap editor and fix a few stability issues with the editor
alinea - v0.5.11

Published by github-actions[bot] 9 months ago

  • Fix storing extra fields on the Link field correctly for multiple links.

  • In conditional configuration functions it's now possible to access fields from
    parent contexts. For example field options of a nested field inside a List
    field can depend on the value of a field in the entry root.

    const innerField = alinea.text('Read-only if status is published')
    const Type = alinea.type('Conditional example', {
      status: alinea.select('Status', {
        draft: 'Draft',
        published: 'Published'
      }),
      list: alinea.list('List', {
        schema: {ListRow: alinea.type({innerField})}
      })
    })
    alinea.track.options(innerField, get => {
      return {readOnly: get(Type.status) === 'published'}
    })
    
alinea - v0.5.10

Published by github-actions[bot] 9 months ago

  • Fix Entry fields showing up as type unkown in TypeScript.
  • The readOnly option that is included in all fields will now show a lock item
    next to the field label. The option is passed down in nested fields such as
    the List and Rich text fields.
alinea - v0.5.9

Published by github-actions[bot] 9 months ago

  • Changing entry order by dragging them in the sidebar is now applied
    immediately making changes much smoother.
alinea - v0.5.8

Published by github-actions[bot] 9 months ago

  • Fix navigation missing when selecting internal pages in Link fields.
alinea - v0.5.7

Published by github-actions[bot] 9 months ago

  • The interval at which Alinea polls the backend for content updates is
    now configurable. It can be set in config.syncInterval and overwritten
    per query.

    // Poll for updates every 60 seconds
    const results = await cms.syncInterval(60).find(Entry())
    // Disable syncing all for this query in case you want results fast,
    // but not necessarily up to date
    const matches = await cms.disableSync().find(Entry().search('fast'))
    
alinea - v0.5.6

Published by github-actions[bot] 9 months ago

  • Pages can be queried with search terms.
    Any (rich) text field with the searchable option set to true is indexed.

    const results = await cms.find(Page().search('search', 'terms'))
    
alinea - v0.5.5

Published by github-actions[bot] 9 months ago

  • A source entry can be chosen in the modal where new entries are created.
    All data from that entry will be copied to the new entry.
alinea - v0.5.4

Published by github-actions[bot] 9 months ago

  • Introduce the shared option for Fields. Fields can be persisted over all
    locales if your content is localised by setting the shared option to true.
    When the entry is published the field data is copied to other locales.
    This is currently only supported on the root level, not on nested fields.

    const Type = alinea.type('Persist', {
      // Persist field data over all locales
      sharedField: alinea.text('Shared text', {shared: true})
    })
    
alinea - v0.5.3

Published by github-actions[bot] 9 months ago

  • Fix number field not reflecting up value changes
  • Fix creating new entries not picking up selected parent
alinea - v0.5.2

Published by github-actions[bot] 9 months ago

  • Add an edit button to Link field rows.
  • Fix extra fields defined on Link fields not saving data.
alinea - v0.5.1

Published by github-actions[bot] 9 months ago

  • Preview panel was missing in production deploys.
alinea - v0.5.0

Published by github-actions[bot] 9 months ago

  • Conditional configuration (#364)

    All field configuration can be adjusted based on the value of other fields.
    After defining fields in a Type a tracker function can be set up.
    The tracker function takes a reference to a field and a subscription function.
    In the subscription function field values can be retrieved and new options
    returned.

    const Example = alinea.type('Conditional example', {
      textField: alinea.text('Text field'),
      readOnly: alinea.check('Make read-only'),
      hidden: alinea.check('Hide field')
    })
    
    alinea.track.options(Example.textField, get => {
      const textField = get(Example.textField)
      const readOnly = get(Example.readOnly)
      const hidden = get(Example.hidden)
      return {
        readOnly,
        hidden,
        help: `Text has ${textField.length} characters`
      }
    })
    
Package Rankings
Top 3.94% on Npmjs.org
Badges
Extracted from project README
npm install size Alinea CMS logo
Related Projects