alinea

Content management, streamlined

MIT License

Downloads
4.5K
Stars
735
Committers
11

Bot releases are hidden (Show)

alinea - v0.2.1

Published by dmerckx about 2 years ago

  • Alinea cloud connection now sends the shortKey part of API key during authentication to uniquely identify project
alinea -

Published by benmerckx about 2 years ago

  • The exports of the alinea package are restructed. This is a breaking change
    because the input fields are no longer exposed directly but bundled in the
    "alinea" namespace. A few less used exports were removed and can be
    found in the @alinea packages.

  • Client code is shielded from being included server side when compiling with
    the "worker" condition enabled.

  • Initial support for selecting external links in the link field. The RichText
    ui component is adjusted to correctly render links. A custom component or tag
    can be passed to render links.

    <RichText a={<a className="custom-link" />} doc={doc} />
    <RichText a={CustomLinkComponent} doc={doc} />
    
alinea -

Published by dmerckx about 2 years ago

  • Added a new field type for raw json data
alinea -

Published by dmerckx about 2 years ago

  • Minor fix in the handshake procedure between Alinea and Alinea cloud
alinea -

Published by benmerckx about 2 years ago

  • The alinea serve command will try another port if the chosen port is in use
    (#179)
  • Avoid duplicate entries after publishing in the development server (#214)
  • The generated types for pages depended on a type that would be namespaced
    when using typeNamespace. It did not take the namespace into account, but
    does now.
  • The connection with Alinea Cloud should now handle previewing drafts
    correctly.
alinea -

Published by dmerckx about 2 years ago

  • Alinea Cloud can now handle relative urls & authentication is automatically
    redirected.
alinea -

Published by benmerckx about 2 years ago

  • The alinea cli will now forward commands placed after the serve or generate
    commands. It will wait until the alinea package is generated before doing so
    to make sure userland code can always depend on the package being available.
    It also simplifies running the dashboard and development server without
    requiring tools like npm-run-all. In practice, for a next.js website, this
    means one can configure scripts like so:

    {
      "scripts": {
        "dev": "alinea serve -- next dev",
        "build": "alinea generate -- next build"
      }
    }
    
alinea -

Published by benmerckx about 2 years ago

  • Fix missing dependencies in the dashboard package
alinea -

Published by benmerckx about 2 years ago

  • Added a button to mark text as small within the rich text editor

  • New UI buttons to insert rows in any position in a list field

  • User preferences get a dedicated popover

  • Previews can register a listener and implement their own refetch mechanism.
    The communication happens via messages which work cross-origin.

    // For any environment
    import {registerPreview} from '@alinea/preview'
    registerPreview({
      refetch() {
        // Reload server data
      }
    })
    
    // A react hook is available
    import {usePreview} from '@alinea/preview/react'
    const {isPreviewing} = usePreview({
      refetch() {
        // Reload server data & redraw
      }
    })
    
    // A hook specifically for next.js, which refetches static/server props
    import {useNextPreview} from '@alinea/preview/next'
    const {isPreviewing} = useNextPreview()
    
alinea -

Published by benmerckx about 2 years ago

  • Previous release contained a few debug logs which are removed.
  • Hard breaks (shift + enter) will be rendered as break in the RichText
    component.
alinea - v0.1.11

Published by dmerckx about 2 years ago

  • Tested and fixed the integration with Alinea Cloud for drafts and publishing
    content.
alinea -

Published by benmerckx over 2 years ago

  • Avoid errors during the serve command that would stop the process with
    "memory access out of bounds".
  • Detect if we're serving a preview cross origin and cannot use the iframe's
    history. If so we adjust the UI to hide the back/forward buttons and change
    the reload button to refresh the iframe source instead of a history reload.
alinea -

Published by benmerckx over 2 years ago

  • Log errors during CLI builds
  • Use a more stable local drafts implementation
alinea -

Published by benmerckx over 2 years ago

  • Add the MIT license
  • Use internal router, removing the Express.js dependency for the CLI, reducing
    the overall install size
alinea -

Published by benmerckx over 2 years ago

  • Backend can be compiled to a static html file, using the dashboard.staticFile
    config setting
  • For uploaded images the correct width and height is saved in metadata
alinea -

Published by benmerckx over 2 years ago

  • Externalized backend implementation packages.
alinea -

Published by benmerckx over 2 years ago

  • The alinea package now export an alinea object that bundles the previously
    exported config functions.
  • Vendor in selected dependencies (#175). Selected dependencies will be compiled
    and packaged with the alinea packages. This reduces install size and amount of
    dependencies which would typically not be shared with any userland code.
  • Added a hidden option to fields, which hides the field in the dashboard UI
    (#169)
alinea -

Published by benmerckx over 2 years ago

  • Replace CJS dependencies to pure ESM (#161)
  • Added blockquote option to the rich text field
alinea -

Published by benmerckx over 2 years ago

  • The drafts of the default development backend are now placed with the
    generated code which means draft changes will result in browser reloads.
alinea -

Published by benmerckx over 2 years ago

  • A RichText react component is exposed from @alinea/ui to render rich text
    values

  • Auto-close navigation sidebar only for small screens (< 768px)

  • Update number field styles to use updated css variable names

  • Select fields configuration can now be set using the configure method. This
    helps type inference for the initial value.

    select('Level', {
      info: 'Info',
      warning: 'Warning'
    }).configure({
      initialValue: 'info'
    })
    
Package Rankings
Top 3.94% on Npmjs.org
Badges
Extracted from project README
npm install size Alinea CMS logo
Related Projects