4.0.1 • Published 5 days ago

@atlaskit/editor-prosemirror v4.0.1

Weekly downloads
-
License
Apache-2.0
Repository
bitbucket
Last release
5 days ago

EditorProsemirror

Package to group all prosemirror libraries in a single place

Usage

import EditorProsemirror from '@atlaskit/editor-prosemirror';

Detailed docs and example usage can be found here.

Codemods

There are some codemods to help the migration. But, they are supposed to run only once and manual in the AFE repo.

  • optimistic-editor-prosemirror-usage

This one is reponsible to replace all prosemirror libraries usage with the new package e.g.:

// before

import { DecorationSet } from 'prosemirror-view';
// after

import { DecorationSet } from '@atlaskit/editor-prosemirror/view';

How to run

Run this script below

npx @atlaskit/codemod-cli --parser tsx --extensions ts,tsx --transform packages/editor/editor-prosemirror/codemods/optimistic-next-editor-prosemirror-usage/ packages

Troubleshooting

If you are getting this kind of error below:

import { Binding, NodePath, Scope } from '@babel/traverse';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at compileFunction (<anonymous>)
    at Object.compileFunction (node:vm:360:18)

Remove the token babel plugin from the babel.config.shared.js file.

DO NOT COMMIT THIS CHANGE

// file: babel.config.shared.js

    /** This override runs the tokens babel plugin on converted packages */
    {
      test: ['packages/'],
      // exclude plugin when building itself, or the tokens package it depends on
      exclude: [
        'packages/monorepo-tooling',
        'packages/design-system/tokens',
        'packages/design-system/eslint-plugin',
        'packages/design-system/storybook-addon',
        'packages/platform/feature-flags-codemods',
      ],
      plugins: [
        // Comment out this block
        //[
        //  './packages/design-system/tokens/babel-plugin',
        //  {
        //    shouldUseAutoFallback: true,
        //  },
        //],
      ],
    },
@atlaskit/editor-corehtml-to-jira-adfadf-schema-test@atlaskit/renderer@atlaskit/prosemirror-input-rules@atlaskit/prosemirror-collab@atlaskit/adf-schema@atlaskit/editor-bitbucket-transformer@atlaskit/editor-mobile-bridge@atlaskit/editor-plugin-accessibility-utils@atlaskit/editor-plugin-alignment@atlaskit/editor-plugin-analytics@atlaskit/editor-plugin-annotation@atlaskit/editor-plugin-avatar-group@atlaskit/editor-plugin-base@atlaskit/editor-plugin-better-type-history@atlaskit/editor-plugin-block-controls@atlaskit/editor-plugin-block-type@atlaskit/editor-plugin-breakout@atlaskit/editor-plugin-caption@atlaskit/editor-plugin-card@atlaskit/editor-plugin-clear-marks-on-empty-doc@atlaskit/editor-plugin-clipboard@atlaskit/editor-plugin-code-bidi-warning@atlaskit/editor-plugin-code-block@atlaskit/editor-common@atlaskit/editor-confluence-transformer@atlaskit/editor-jira-transformer@atlaskit/editor-json-transformer@atlaskit/editor-markdown-transformer@atlaskit/collab-provider@atlaskit/editor-plugin-content-insertion@atlaskit/editor-plugin-context-identifier@atlaskit/editor-plugin-context-panel@atlaskit/editor-plugin-copy-button@atlaskit/editor-plugin-custom-autoformat@atlaskit/editor-plugin-date@atlaskit/editor-plugin-decorations@atlaskit/editor-plugin-editor-disabled@atlaskit/editor-plugin-editor-viewmode@atlaskit/editor-plugin-emoji@atlaskit/editor-plugin-expand@atlaskit/editor-plugin-extension@atlaskit/editor-plugin-feature-flags@atlaskit/editor-plugin-find-replace@atlaskit/editor-plugin-floating-toolbar@atlaskit/editor-plugin-focus@atlaskit/editor-plugin-fragment@atlaskit/editor-plugin-grid@atlaskit/editor-plugin-guideline@atlaskit/custom-steps@atlaskit/editor-plugin-help-dialog@atlaskit/editor-plugin-highlight@atlaskit/editor-plugin-history@atlaskit/editor-plugin-hyperlink@atlaskit/editor-plugin-image-upload@atlaskit/editor-plugin-indentation@atlaskit/editor-plugin-insert-block@atlaskit/editor-plugin-layout@atlaskit/editor-plugin-list@atlaskit/editor-plugin-loom@atlaskit/editor-plugin-max-content-size@atlaskit/editor-plugin-media@atlaskit/editor-plugin-mentions@atlaskit/editor-plugin-collab-edit@atlaskit/editor-plugin-composition@atlaskit/editor-plugin-panel@atlaskit/editor-plugin-paste@atlaskit/editor-plugin-paste-options-toolbar@atlaskit/editor-plugin-selection@atlaskit/editor-plugin-selection-marker@atlaskit/editor-plugin-selection-toolbar@atlaskit/editor-plugin-status@atlaskit/editor-plugin-submit-editor@atlaskit/editor-plugin-table@atlaskit/editor-plugin-tasks-and-decisions@atlaskit/editor-plugin-text-color@atlaskit/editor-plugin-text-formatting@atlaskit/editor-plugin-toolbar-lists-indentation@atlaskit/editor-plugin-type-ahead@atlaskit/editor-plugin-undo-redo@atlaskit/editor-plugin-unsupported-content@atlaskit/editor-plugin-width@atlaskit/editor-slack-transformer@atlaskit/editor-tables@atlaskit/editor-wikimarkup-transformer@atlaskit/email-renderer@atlaskit/jql-editor@atlaskit/editor-plugin-placeholder@atlaskit/editor-plugin-placeholder-text@atlaskit/editor-plugin-quick-insert@atlaskit/editor-plugin-rule@atlaskit/editor-plugin-save-on-enter@atlaskit/editor-plugin-scroll-into-view@atlaskit/link-datasource
4.0.1

5 days ago

4.0.0

24 days ago

3.0.0

4 months ago

2.0.3

6 months ago

2.0.2

6 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.1.7

8 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago