@atlaskit/editor-core 195.0.9 → 195.1.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 +9 -0
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +22 -22
- package/dist/types/presets/default.d.ts +16 -16
- package/dist/types/presets/universal.d.ts +22 -22
- package/dist/types/presets/useUniversalPreset.d.ts +22 -22
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +22 -20
- package/dist/types-ts4.5/presets/default.d.ts +16 -16
- package/dist/types-ts4.5/presets/universal.d.ts +22 -20
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +22 -20
- package/package.json +11 -4
|
@@ -37,6 +37,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
37
37
|
import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">,
|
|
38
38
|
import("@atlaskit/editor-common/preset").MaybePluginName<"mention">,
|
|
39
39
|
import("@atlaskit/editor-common/preset").MaybePluginName<"caption">,
|
|
40
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">,
|
|
40
41
|
import("@atlaskit/editor-common/preset").MaybePluginName<"media">,
|
|
41
42
|
import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">,
|
|
42
43
|
import("@atlaskit/editor-common/preset").MaybePluginName<"grid">,
|
|
@@ -944,11 +945,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
944
945
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
945
946
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
946
947
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
947
|
-
|
|
948
|
+
actions: {
|
|
948
949
|
registerComponent: ({ name, component, }: {
|
|
949
950
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
950
951
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
951
|
-
}) =>
|
|
952
|
+
}) => void;
|
|
952
953
|
};
|
|
953
954
|
}, undefined>>
|
|
954
955
|
];
|
|
@@ -1041,11 +1042,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1041
1042
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>,
|
|
1042
1043
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
1043
1044
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
1044
|
-
|
|
1045
|
+
actions: {
|
|
1045
1046
|
registerComponent: ({ name, component, }: {
|
|
1046
1047
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
1047
1048
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1048
|
-
}) =>
|
|
1049
|
+
}) => void;
|
|
1049
1050
|
};
|
|
1050
1051
|
}, undefined>>
|
|
1051
1052
|
];
|
|
@@ -1066,11 +1067,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1066
1067
|
dependencies: [
|
|
1067
1068
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
1068
1069
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
1069
|
-
|
|
1070
|
+
actions: {
|
|
1070
1071
|
registerComponent: ({ name, component, }: {
|
|
1071
1072
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
1072
1073
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1073
|
-
}) =>
|
|
1074
|
+
}) => void;
|
|
1074
1075
|
};
|
|
1075
1076
|
}, undefined>>
|
|
1076
1077
|
];
|
|
@@ -1257,11 +1258,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1257
1258
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
1258
1259
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
1259
1260
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
1260
|
-
|
|
1261
|
+
actions: {
|
|
1261
1262
|
registerComponent: ({ name, component, }: {
|
|
1262
1263
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
1263
1264
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1264
|
-
}) =>
|
|
1265
|
+
}) => void;
|
|
1265
1266
|
};
|
|
1266
1267
|
}, undefined>>
|
|
1267
1268
|
];
|
|
@@ -2790,6 +2791,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2790
2791
|
}, undefined>>
|
|
2791
2792
|
];
|
|
2792
2793
|
}, undefined> | undefined,
|
|
2794
|
+
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"mediaInsert", {}, undefined> | undefined,
|
|
2793
2795
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"media", {
|
|
2794
2796
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2795
2797
|
dependencies: [
|
|
@@ -3468,11 +3470,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3468
3470
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
3469
3471
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
3470
3472
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3471
|
-
|
|
3473
|
+
actions: {
|
|
3472
3474
|
registerComponent: ({ name, component, }: {
|
|
3473
3475
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
3474
3476
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3475
|
-
}) =>
|
|
3477
|
+
}) => void;
|
|
3476
3478
|
};
|
|
3477
3479
|
}, undefined>>
|
|
3478
3480
|
];
|
|
@@ -3486,11 +3488,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3486
3488
|
dependencies: [
|
|
3487
3489
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
3488
3490
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3489
|
-
|
|
3491
|
+
actions: {
|
|
3490
3492
|
registerComponent: ({ name, component, }: {
|
|
3491
3493
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
3492
3494
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3493
|
-
}) =>
|
|
3495
|
+
}) => void;
|
|
3494
3496
|
};
|
|
3495
3497
|
}, undefined>>
|
|
3496
3498
|
];
|
|
@@ -4291,11 +4293,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4291
4293
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
4292
4294
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
4293
4295
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
4294
|
-
|
|
4296
|
+
actions: {
|
|
4295
4297
|
registerComponent: ({ name, component, }: {
|
|
4296
4298
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
4297
4299
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4298
|
-
}) =>
|
|
4300
|
+
}) => void;
|
|
4299
4301
|
};
|
|
4300
4302
|
}, undefined>>
|
|
4301
4303
|
];
|
|
@@ -4623,11 +4625,11 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4623
4625
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
4624
4626
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
4625
4627
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
4626
|
-
|
|
4628
|
+
actions: {
|
|
4627
4629
|
registerComponent: ({ name, component, }: {
|
|
4628
4630
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
4629
4631
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4630
|
-
}) =>
|
|
4632
|
+
}) => void;
|
|
4631
4633
|
};
|
|
4632
4634
|
}, undefined>>
|
|
4633
4635
|
];
|
|
@@ -4697,22 +4699,22 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4697
4699
|
}, undefined>,
|
|
4698
4700
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
4699
4701
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
4700
|
-
|
|
4702
|
+
actions: {
|
|
4701
4703
|
registerComponent: ({ name, component, }: {
|
|
4702
4704
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
4703
4705
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4704
|
-
}) =>
|
|
4706
|
+
}) => void;
|
|
4705
4707
|
};
|
|
4706
4708
|
}, undefined>>
|
|
4707
4709
|
];
|
|
4708
4710
|
}, undefined> | undefined,
|
|
4709
4711
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"primaryToolbar", {
|
|
4710
4712
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
4711
|
-
|
|
4713
|
+
actions: {
|
|
4712
4714
|
registerComponent: ({ name, component, }: {
|
|
4713
4715
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
4714
4716
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4715
|
-
}) =>
|
|
4717
|
+
}) => void;
|
|
4716
4718
|
};
|
|
4717
4719
|
}, undefined> | undefined,
|
|
4718
4720
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"history", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.0
|
|
3
|
+
"version": "195.1.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^19.1.0",
|
|
48
|
-
"@atlaskit/editor-common": "^87.
|
|
48
|
+
"@atlaskit/editor-common": "^87.3.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.6.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
102
102
|
"@atlaskit/primitives": "^11.1.0",
|
|
103
103
|
"@atlaskit/renderer": "^109.45.0",
|
|
104
|
-
"@atlaskit/smart-card": "^27.
|
|
104
|
+
"@atlaskit/smart-card": "^27.12.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.2.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
109
|
"@atlassian/adf-schema-json": "^1.18.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "2.4.
|
|
111
|
+
"@atlassian/search-provider": "2.4.100",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^5.3.18",
|
|
114
114
|
"@testing-library/react": "^12.1.5",
|
|
@@ -146,6 +146,10 @@
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
"platform-feature-flags": {
|
|
149
|
+
"enable_datasource_react_sweet_state": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"referenceOnly": "true"
|
|
152
|
+
},
|
|
149
153
|
"annotations_defensive_node_name_calculations": {
|
|
150
154
|
"type": "boolean",
|
|
151
155
|
"referenceOnly": "true"
|
|
@@ -219,6 +223,9 @@
|
|
|
219
223
|
"type": "boolean",
|
|
220
224
|
"referenceOnly": "true"
|
|
221
225
|
},
|
|
226
|
+
"platform_editor_insert_media_plugin_phase_one": {
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
222
229
|
"platform.editor.card.inject-settings-button": {
|
|
223
230
|
"type": "boolean",
|
|
224
231
|
"referenceOnly": "true"
|