UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

320 lines (319 loc) • 10.8 kB
{ "name": "@atlaskit/editor-common", "version": "99.4.0", "description": "A package that contains common classes and components for editor and renderer", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror", "author": "Atlassian Pty Ltd", "license": "Apache-2.0", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "module:es2019": "dist/es2019/index.js", "types": "dist/types/index.d.ts", "typesVersions": { ">=4.5 <4.9": { "*": [ "dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts" ] } }, "sideEffects": false, "atlaskit:src": "src/index.ts", "atlassian": { "team": "Editor", "singleton": true, "runReact18": true }, "af:exports": { "./prosemirror-dom-metadata": "./src/prosemirror-dom-metadata/index.ts", "./whitespace": "./src/whitespace/index.ts", "./event-dispatcher": "./src/event-dispatcher/index.ts", "./extensions": "./src/extensions.ts", "./extensibility": "./src/extensibility/index.ts", "./normalize-feature-flags": "./src/normalize-feature-flags.ts", "./messages": "./src/messages/index.ts", "./performance-measures": "./src/performance-measures/index.ts", "./provider-factory": "./src/provider-factory.ts", "./styles": "./src/styles/index.ts", "./validator": "./src/validator.ts", "./type-ahead": "./src/type-ahead/index.ts", "./insert": "./src/insert/index.ts", "./types": "./src/types/index.ts", "./ui": "./src/ui/index.tsx", "./utils/analytics": "./src/utils/analytics.ts", "./utils": "./src/utils/index.ts", "./card": "./src/card/index.ts", "./collab": "./src/collab/index.ts", "./emoji": "./src/emoji/index.ts", "./mention": "./src/mention.ts", "./portal": "./src/portal/index.ts", "./provider-helpers": "./src/provider-helpers/index.ts", "./icons": "./src/icons/index.ts", "./safe-plugin": "./src/safe-plugin/index.ts", "./panel": "./src/panel.ts", "./analytics": "./src/analytics/index.ts", "./error-boundary": "./src/ui/ErrorBoundary/index.tsx", "./react-node-view": "./src/react-node-view/index.tsx", "./with-plugin-state": "./src/with-plugin-state/index.tsx", "./node-width": "./src/node-width/index.ts", "./keymaps": "./src/keymaps/index.tsx", "./ui-menu": "./src/ui-menu/index.tsx", "./ui-react": "./src/ui-react/index.ts", "./ui-color": "./src/ui-color/index.ts", "./transforms": "./src/transforms/index.ts", "./core-utils": "./src/core-utils/index.ts", "./selection": "./src/selection/index.ts", "./preset": "./src/preset/index.ts", "./hooks": "./src/hooks/index.ts", "./media-inline": "./src/media-inline/index.ts", "./media-single": "./src/media-single/index.ts", "./media": "./src/media/index.ts", "./monitoring": "./src/monitoring/index.ts", "./paste": "./src/paste/index.ts", "./resizer": "./src/resizer/index.ts", "./editor-analytics": "./src/editor-analytics/index.ts", "./selection-based-node-view": "./src/selection-based-node-view/index.ts", "./guideline": "./src/guideline/index.ts", "./quick-insert": "./src/quick-insert/index.ts", "./link": "./src/link/index.ts", "./mark": "./src/mark/index.ts", "./commands": "./src/commands/index.ts", "./clipboard": "./src/clipboard/index.ts", "./lists": "./src/lists/index.ts", "./element-browser": "./src/element-browser/index.ts", "./floating-toolbar": "./src/floating-toolbar/index.ts", "./copy-button": "./src/copy-button/index.ts", "./legacy-rank-plugins": "./src/rank.ts", "./browser": "./src/utils/browser.ts", "./indentation": "./src/indentation/index.ts", "./annotation": "./src/annotation/index.ts", "./constants": "./src/link/constants.ts", "./is-performance-api-available": "./src/utils/performance/is-performance-api-available.ts", "./performance/measure-render": "./src/utils/performance/measure-render.ts", "./count-nodes": "./src/utils/count-nodes.ts", "./process-raw-value": "./src/utils/processRawValue.ts", "./performance/navigation": "./src/utils/performance/navigation.ts", "./performance/measure-tti": "./src/utils/performance/measure-tti.ts", "./use-component-render-tracking": "./src/utils/performance/hooks/use-component-render-tracking/index.tsx", "./error-reporter": "./src/utils/error-reporter.ts", "./doc-utils": "./src/doc-utils/index.ts", "./expand": "./src/expand/index.ts", "./intl-error-boundary": "./src/ui/IntlErrorBoundary/index.tsx", "./code-block": "./src/code-block/index.ts", "./table": "./src/table/index.ts", "./use-plugin-state-effect": "./src/hooks/usePluginStateEffect.ts", "./use-shared-plugin-state-selector": "./src/hooks/useSharedPluginStateSelector/index.ts", "./lazy-node-view": "./src/lazy-node-view/index.ts", "./nesting": "./src/nesting/utilities.ts", "./UNSAFE_do_not_use_editor_context": "./src/ui/EditorContext/index.ts", "./median": "./src/utils/median.ts" }, "dependencies": { "@atlaskit/activity-provider": "^2.5.0", "@atlaskit/adf-schema": "^46.1.0", "@atlaskit/adf-utils": "^19.17.0", "@atlaskit/analytics-listeners": "^8.13.0", "@atlaskit/analytics-namespaced-context": "^6.12.0", "@atlaskit/analytics-next": "^10.2.0", "@atlaskit/atlassian-context": "^0.0.2", "@atlaskit/button": "^20.3.0", "@atlaskit/code": "^15.6.0", "@atlaskit/codemod-utils": "^4.2.0", "@atlaskit/custom-steps": "^0.9.0", "@atlaskit/dropdown-menu": "^12.24.0", "@atlaskit/editor-json-transformer": "^8.21.0", "@atlaskit/editor-palette": "1.6.4", "@atlaskit/editor-prosemirror": "6.2.1", "@atlaskit/editor-shared-styles": "^3.2.0", "@atlaskit/editor-tables": "^2.8.0", "@atlaskit/emoji": "^67.12.0", "@atlaskit/icon": "^23.4.0", "@atlaskit/icon-object": "^6.9.0", "@atlaskit/link-datasource": "^3.15.0", "@atlaskit/link-picker": "^1.47.0", "@atlaskit/media-card": "^78.18.0", "@atlaskit/media-client": "^29.1.0", "@atlaskit/media-client-react": "^2.6.0", "@atlaskit/media-common": "^11.7.0", "@atlaskit/media-file-preview": "^0.9.0", "@atlaskit/media-picker": "^67.0.0", "@atlaskit/media-ui": "^27.3.0", "@atlaskit/media-viewer": "49.6.1", "@atlaskit/mention": "^23.9.0", "@atlaskit/menu": "^2.13.0", "@atlaskit/onboarding": "^12.2.0", "@atlaskit/platform-feature-flags": "^0.3.0", "@atlaskit/popper": "^6.3.0", "@atlaskit/primitives": "^13.3.0", "@atlaskit/profilecard": "^21.1.0", "@atlaskit/section-message": "^6.8.0", "@atlaskit/smart-card": "^34.5.0", "@atlaskit/smart-user-picker": "^6.11.0", "@atlaskit/spinner": "^16.3.0", "@atlaskit/task-decision": "^17.11.0", "@atlaskit/textfield": "^6.7.0", "@atlaskit/tmp-editor-statsig": "^2.37.0", "@atlaskit/tokens": "^3.1.0", "@atlaskit/tooltip": "^19.0.0", "@atlaskit/width-detector": "^4.3.0", "@babel/runtime": "^7.0.0", "@emotion/react": "^11.7.1", "@sentry/browser": "^6.18.2", "@sentry/integrations": "^6.18.2", "@sentry/types": "^6.18.2", "bind-event-listener": "^3.0.0", "chromatism": "^2.6.0", "classnames": "^2.2.5", "clipboard-polyfill": "4.0.1", "date-fns": "^2.17.0", "focus-trap": "^2.4.5", "fuse.js": "^6.6.2", "linkify-it": "^3.0.3", "lodash": "^4.17.21", "markdown-it": "^13.0.2", "memoize-one": "^6.0.0", "popper.js": "^1.14.1", "prop-types": "^15.5.10", "raf-schd": "^4.0.3", "re-resizable": "6.0.0", "react-loadable": "^5.1.0", "react-virtualized": "^9.8.0", "rusha": "^0.8.13", "uuid": "^3.1.0", "w3c-keyname": "^2.1.8" }, "peerDependencies": { "@atlaskit/media-core": "^34.3.0", "react": "^16.8.0 || ^17.0.0 || ~18.2.0", "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0", "react-intl-next": "npm:react-intl@^5.18.1" }, "devDependencies": { "@af/visual-regression": "*", "@atlaskit/media-core": "^34.4.0", "@atlaskit/media-test-helpers": "^34.7.0", "@atlaskit/util-data-test": "^17.13.0", "@atlaskit/visual-regression": "*", "@testing-library/dom": "^10.1.0", "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", "@types/linkify-it": "^3.0.2", "@types/markdown-it": "^13.0.7", "@types/raf-schd": "^4.0.1", "@types/react-virtualized": "^9.18.12", "enzyme": "^3.10.0", "raf-stub": "^2.0.1", "react": "^16.8.0", "react-test-renderer": "^16.8.0", "sinon": "^2.2.0", "typescript": "~5.4.2" }, "techstack": { "@atlassian/frontend": { "circular-dependencies": [ "file-level" ], "import-structure": "atlassian-conventions" }, "@repo/internal": { "deprecation": "no-deprecated-imports", "design-tokens": [ "color" ], "styling": [ "emotion" ] } }, "platform-feature-flags": { "platform_editor_media_extended_resize_experience": { "type": "boolean" }, "platform_editor_breakout_use_css": { "type": "boolean" }, "linking_platform_datasource_assets_objects": { "type": "boolean" }, "editor_inline_comments_on_inline_nodes": { "type": "boolean" }, "annotations_align_editor_and_renderer_styles": { "type": "boolean" }, "editor_inline_comments_paste_insert_nodes": { "type": "boolean" }, "platform_editor_react18_mention_with_provider_fix": { "type": "boolean" }, "platform_editor_react18_phase2_v2": { "type": "boolean" }, "platform_editor_react18_extension_component_v2": { "type": "boolean" }, "platform_editor_is_disabled_state_element_browser": { "type": "boolean" }, "platform_editor_allow_annotation_triple_click": { "type": "boolean" }, "platform_editor_typography_ugc": { "type": "boolean" }, "platform_editor_heading_margin_fix": { "type": "boolean" }, "platform-visual-refresh-icons": { "type": "boolean" }, "platform_editor_reduce_element_browser_padding": { "type": "boolean" }, "platform_editor_use_nested_table_pm_nodes": { "type": "boolean" }, "platform_editor_hide_external_media_badge": { "type": "boolean" }, "platform_editor_nested_tables_renderer_styles": { "type": "boolean" }, "platform_editor_selection_toolbar_scroll_fix": { "type": "boolean" }, "platform_editor_advanced_layouts_a11y": { "type": "boolean" }, "platform_editor_legacy_content_macro": { "type": "boolean" }, "platform_editor_advanced_layouts_post_fix_patch_2": { "type": "boolean" }, "platform_editor_advanced_layouts_post_fix_patch_3": { "type": "boolean" }, "platform_editor_breakoutresizer_remove_assertion": { "type": "boolean" }, "platform_editor_table_row_span_fix": { "type": "boolean" }, "platform_editor_support_media_badge_visibility": { "type": "boolean" }, "platform-component-visual-refresh": { "type": "boolean" }, "platform_renderer_table_sort_btn_aria_hidden": { "type": "boolean" } } }