8.1

Release overview for Naviga Writer version 8.1

Release Overview

Release date: 2022-09-22

External Dependencies

This version of Naviga Writer has a number of external dependencies that need to be fulfilled before upgrading.

Dashboard Applications

  • Writer plugin ≥ 5.1

  • Naviga Photos ≥ 3.0

  • Image Content Provider (ICP) ≥ 1.3.0

Summary of changes

  • Writer notifications will now appear in Dashboard

  • Content-menu UX updated

  • Added opt-in support for global spellchecking service

  • UI/UX improvements and fixes

  • Developer API Updates

Writer notifications will now appear in Dashboard

Notifications previously displayed in the Writer context will now appear as Dashboard notifications.

Content-menu UX updated

The content menu has more choices on how to be displayed. Added a hierarchical setting viewing the different tools in submenus for both content objects and text styles.

The user can change this in Writer and the settings menu (top left icon) are stored in the browser meaning that the browser remembers what the user wants.

There is new writer config to change the default settings for a user opening writer in a new browser. Read about it below.

pageContent menu

Added opt-in support for global spellchecking service

A new property "enableSaasSpellcheck" has been added to the client configuration. Setting this to true will allow the Writer to use the new global spellchecking service. This configuration is opt-in for now, but a future major release will make this switch mandatory.

This new spellchecking service supports extending existing dictionaries with organisation specific wordlists, marking these words as correctly spelled in the Writer.

Documentation for integrating with an external spellcheck has been updated with configuration location and notice for cross-origin request.

pageIntegrating External Spell Checking

Annotation tool

Taking ownership from substance to ease future development.

  • Support for Naviga Content Icon Pack icons

  • New icons for strong and emphasis

  • Unavailable menu options will be displayed as disabled, instead of omitted

  • Updated visuals

UI/UX improvements and fixes

Developer API Updates

AccessToken

NavigaID AccessToken containing all permissions the user is afforded by their current organisation and unit has been made available for plugin developers. The AccessToken is used to make requests to many of Naviga's services.

// Getting an AccessToken in a plugin context
const accessToken = api.user.getAccessToken()

A new optional config property alwaysMounted has been added to the extraTabConfig parameter when register sidebar. Always mounted sidebars retain their state when switching between sidebars. Already registered sidebars will not be affected by this property.

Example

export const PluginPackage = {
    name: 'im-internal-ui',
    id: 'io.infomaker.internal-ui',

    configure: function(configurator: DWConfigurator, pluginConfig: PluginConfiguration) {

        const extraTabConfig = {
            name: 'UI',
            shortName: 'UI,
            icon: 'professions-woman-magician-regular',
            alwaysMounted: true
        }

        // Add plugin to main sidebar (can be overriden in plugin config)
        configurator.addToSidebar('ui', pluginConfig, MainComponent, extraTabConfig)
    }
}

Annotation Tool Icon

Expanding config object for AnnotationTool to support icon for more convenient behavior. See the iconpack for writer 8.1 for supported icons.

config.addTool('strong', AnnotationTool, { 
    target: 'annotations', 
    icon: 'italic-text-bold'
})

Content Menu Hierarchical Group

In plugins when registering content menu top tool there is a new option to show the tool in specific submenus.

Example

configurator.addLabel('content-menu-images', {
    sv: 'Bilder',
    en: 'Images',
})

configurator.addContentMenuTopTool('insert-images', InsertImagesTool, {
    group: 'content-menu-images'
})

New CSS Color Variables

New CSS color variables added for text on different backgrounds

  • On dark

    • dw-color-high-empahasis-on-dark

    • dw-color-medium-empahasis-on-dark

    • dw-color-low-empahasis-on-dark

    • dw-color-disabled-empahasis-on-dark

  • On light

    • dw-color-high-empahasis-on-light

    • dw-color-medium-empahasis-on-light

    • dw-color-low-empahasis-on-light

    • dw-color-disabled-empahasis-on-light

New maxLength property for UITextarea component

UITextarea introduces the new property maxlength. Constrains the number of characters and will prevent further input when length is reached.

$$(UITextarea, {
    id: 'myTextarea',
    label: 'Max Length Test',
    placeholder: 'Textarea placeholder...',
    size: 'large',
    maxlength: 100,
    onChange: (value) => {
        // Do something
    }
}).ref('myTextarea')

Updated Plugins

The following plugin's have been updated since last Naviga Writer release. Please use the Writer Client Config Tool to upgrade your client configuration file.