@atlaskit/editor-common 135.2.0 → 136.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +5 -0
- package/dist/cjs/analytics/types/ai-suggestions-events.js +2 -0
- package/dist/cjs/link/utils.js +2 -3
- package/dist/cjs/media-inline/media-inline-image-card.js +1 -2
- package/dist/cjs/messages/layout.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/portal/PortalBucket.js +7 -35
- package/dist/cjs/portal/PortalManager.js +1 -2
- package/dist/cjs/toolbar-flag-check.js +2 -3
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/TableSelector/index.js +2 -7
- package/dist/cjs/ui/TableSelector/table-selector.js +1 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -12
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +2 -3
- package/dist/cjs/utils/document.js +3 -24
- package/dist/cjs/utils/index.js +0 -6
- package/dist/es2019/ai-messages/ai-suggestions.js +5 -0
- package/dist/es2019/analytics/types/ai-suggestions-events.js +2 -0
- package/dist/es2019/link/utils.js +2 -3
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -2
- package/dist/es2019/messages/layout.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/portal/PortalBucket.js +2 -26
- package/dist/es2019/portal/PortalManager.js +1 -2
- package/dist/es2019/toolbar-flag-check.js +1 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/TableSelector/index.js +2 -7
- package/dist/es2019/ui/TableSelector/table-selector.js +1 -2
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +11 -34
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +2 -3
- package/dist/es2019/utils/document.js +0 -24
- package/dist/es2019/utils/index.js +1 -1
- package/dist/esm/ai-messages/ai-suggestions.js +5 -0
- package/dist/esm/analytics/types/ai-suggestions-events.js +2 -0
- package/dist/esm/link/utils.js +2 -3
- package/dist/esm/media-inline/media-inline-image-card.js +1 -2
- package/dist/esm/messages/layout.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/portal/PortalBucket.js +8 -36
- package/dist/esm/portal/PortalManager.js +1 -2
- package/dist/esm/toolbar-flag-check.js +2 -3
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/TableSelector/index.js +2 -7
- package/dist/esm/ui/TableSelector/table-selector.js +1 -2
- package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +3 -12
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +2 -3
- package/dist/esm/utils/document.js +3 -24
- package/dist/esm/utils/index.js +1 -1
- package/dist/types/ai-messages/ai-suggestions.d.ts +5 -0
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +2 -0
- package/dist/types/analytics/types/insert-events.d.ts +17 -1
- package/dist/types/credit-guard/types.d.ts +1 -1
- package/dist/types/messages/layout.d.ts +0 -5
- package/dist/types/toolbar-flag-check.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -1
- package/dist/types/utils/document.d.ts +0 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +8 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
export type EditorAICreditFeatureName = 'blockMenu-askRovo' | 'blockMenu-remix' | 'selectionToolbar-askRovo' | 'selectionToolbar-remix' | 'commentEditor-askRovo' | 'quickInsert-askRovo' | 'elementBrowser-askRovo' | 'panelFloatingToolbar-remix' | 'primaryToolbar-write' | 'mediaFloatingToolbar-editImage' | 'tableFloatingToolbar-remix' | 'smartLinkFloatingToolbar-askRovo' | 'codeBlockFloatingToolbar-remix' | 'imageGenerationMediaInsert' | 'blockControls-remix';
|
|
2
|
+
export type EditorAICreditFeatureName = 'blockMenu-askRovo' | 'blockMenu-remix' | 'selectionToolbar-askRovo' | 'selectionToolbar-remix' | 'commentEditor-askRovo' | 'quickInsert-askRovo' | 'elementBrowser-askRovo' | 'panelFloatingToolbar-remix' | 'primaryToolbar-write' | 'mediaFloatingToolbar-editImage' | 'tableFloatingToolbar-remix' | 'smartLinkFloatingToolbar-askRovo' | 'codeBlockFloatingToolbar-remix' | 'expandFloatingToolbar-remix' | 'layoutFloatingToolbar-remix' | 'nativeTabsFloatingToolbar-remix' | 'nativeEmbedFloatingToolbar-remix' | 'nativeEmbedFloatingToolbar-askRovo' | 'imageGenerationMediaInsert' | 'blockControls-remix';
|
|
3
3
|
export type AICreditCheck = {
|
|
4
4
|
featureName: EditorAICreditFeatureName;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const areToolbarFlagsEnabled: (
|
|
1
|
+
export declare const areToolbarFlagsEnabled: (_isNewToolbarEnabled?: boolean) => boolean;
|
|
@@ -15,5 +15,5 @@ export interface WithOutsideClickProps {
|
|
|
15
15
|
handleKeyDown?: SimpleEventHandler<KeyboardEvent>;
|
|
16
16
|
targetRef?: any;
|
|
17
17
|
}
|
|
18
|
-
export default function withReactEditorViewOuterListeners<P extends
|
|
18
|
+
export default function withReactEditorViewOuterListeners<P extends object>(Component: React.ComponentType<React.PropsWithChildren<P>>): React.ComponentType<React.PropsWithChildren<P & WithOutsideClickProps>>;
|
|
19
19
|
export { OutsideClickTargetRefContext } from './OutsideClickTargetRefContext';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type ChangedFn = (node: Node, pos: number, parent: Node | null, index: number) => boolean | void;
|
|
4
|
-
export declare function bracketTyped(state: EditorState): boolean;
|
|
5
4
|
export declare function nodesBetweenChanged(tr: Transaction | ReadonlyTransaction, f: ChangedFn, startPos?: number): void;
|
|
6
5
|
export declare function getChangedNodes(tr: ReadonlyTransaction | Transaction): {
|
|
7
6
|
node: Node;
|
|
@@ -167,7 +167,7 @@ export { gridTypeForLayout } from './grid';
|
|
|
167
167
|
*
|
|
168
168
|
* Use `@atlaskit/editor-common/utils/document` entry-point instead.
|
|
169
169
|
*/
|
|
170
|
-
export { nodesBetweenChanged,
|
|
170
|
+
export { nodesBetweenChanged, getChangedNodes } from './document';
|
|
171
171
|
export { getStepRange } from './getStepRange';
|
|
172
172
|
export { hasDocAsParent } from './hasDocAsParent';
|
|
173
173
|
export { hasVisibleContent } from './hasVisibleContent';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "136.0.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
46
46
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
48
|
-
"@atlaskit/editor-shared-styles": "^5.
|
|
48
|
+
"@atlaskit/editor-shared-styles": "^5.2.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
50
50
|
"@atlaskit/editor-toolbar": "^2.11.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
@@ -54,12 +54,13 @@
|
|
|
54
54
|
"@atlaskit/feature-gate-js-client": "^8.0.0",
|
|
55
55
|
"@atlaskit/icon": "^38.1.0",
|
|
56
56
|
"@atlaskit/link": "^5.1.0",
|
|
57
|
-
"@atlaskit/link-datasource": "^7.
|
|
58
|
-
"@atlaskit/link-picker": "^6.
|
|
57
|
+
"@atlaskit/link-datasource": "^7.15.0",
|
|
58
|
+
"@atlaskit/link-picker": "^6.22.0",
|
|
59
|
+
"@atlaskit/linking-common": "^13.0.0",
|
|
59
60
|
"@atlaskit/logo": "^23.3.0",
|
|
60
61
|
"@atlaskit/media-card": "^82.3.0",
|
|
61
62
|
"@atlaskit/media-client": "^39.4.0",
|
|
62
|
-
"@atlaskit/media-client-react": "^7.
|
|
63
|
+
"@atlaskit/media-client-react": "^7.1.0",
|
|
63
64
|
"@atlaskit/media-common": "^14.7.0",
|
|
64
65
|
"@atlaskit/media-file-preview": "^2.0.0",
|
|
65
66
|
"@atlaskit/media-picker": "^73.3.0",
|
|
@@ -80,8 +81,8 @@
|
|
|
80
81
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
82
|
"@atlaskit/react-ufo": "^8.5.0",
|
|
82
83
|
"@atlaskit/section-message": "^10.3.0",
|
|
83
|
-
"@atlaskit/smart-card": "^46.
|
|
84
|
-
"@atlaskit/smart-user-picker": "^12.
|
|
84
|
+
"@atlaskit/smart-card": "^46.18.0",
|
|
85
|
+
"@atlaskit/smart-user-picker": "^12.14.0",
|
|
85
86
|
"@atlaskit/spinner": "^20.4.0",
|
|
86
87
|
"@atlaskit/task-decision": "^21.16.0",
|
|
87
88
|
"@atlaskit/teams-app-config": "^3.1.0",
|