@atlaskit/editor-core 203.16.0 → 203.16.1
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/create-editor/ReactEditorViewNext.js +4 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorViewNext.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorViewNext.js +4 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +2 -0
- package/dist/types/presets/default.d.ts +4 -0
- package/dist/types/presets/universal.d.ts +2 -0
- package/dist/types/presets/useUniversalPreset.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +2 -0
- package/dist/types-ts4.5/presets/default.d.ts +4 -0
- package/dist/types-ts4.5/presets/universal.d.ts +2 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +2 -0
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 203.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#112757](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112757)
|
|
8
|
+
[`16ea3fd7c7417`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/16ea3fd7c7417) -
|
|
9
|
+
Added account and browser locale attributes to the editor started event
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 203.16.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -252,6 +252,7 @@ function ReactEditorView(props) {
|
|
|
252
252
|
// Initialise phase
|
|
253
253
|
// Using constructor hook so we setup and dispatch analytics before anything else
|
|
254
254
|
(0, _hooks.useConstructor)(function () {
|
|
255
|
+
var _props$intl;
|
|
255
256
|
// This needs to be before initialising editorState because
|
|
256
257
|
// we dispatch analytics events in plugin initialisation
|
|
257
258
|
eventDispatcher.on(_analytics2.analyticsEventKey, handleAnalyticsEvent);
|
|
@@ -261,7 +262,9 @@ function ReactEditorView(props) {
|
|
|
261
262
|
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
262
263
|
attributes: {
|
|
263
264
|
platform: _analytics.PLATFORMS.WEB,
|
|
264
|
-
featureFlags: featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(featureFlags) : []
|
|
265
|
+
featureFlags: featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(featureFlags) : [],
|
|
266
|
+
accountLocale: (_props$intl = props.intl) === null || _props$intl === void 0 ? void 0 : _props$intl.locale,
|
|
267
|
+
browserLocale: window.navigator.language
|
|
265
268
|
},
|
|
266
269
|
eventType: _analytics.EVENT_TYPE.UI
|
|
267
270
|
});
|
|
@@ -226,6 +226,7 @@ export function ReactEditorView(props) {
|
|
|
226
226
|
// Initialise phase
|
|
227
227
|
// Using constructor hook so we setup and dispatch analytics before anything else
|
|
228
228
|
useConstructor(() => {
|
|
229
|
+
var _props$intl;
|
|
229
230
|
// This needs to be before initialising editorState because
|
|
230
231
|
// we dispatch analytics events in plugin initialisation
|
|
231
232
|
eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
|
|
@@ -235,7 +236,9 @@ export function ReactEditorView(props) {
|
|
|
235
236
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
236
237
|
attributes: {
|
|
237
238
|
platform: PLATFORMS.WEB,
|
|
238
|
-
featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
|
|
239
|
+
featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : [],
|
|
240
|
+
accountLocale: (_props$intl = props.intl) === null || _props$intl === void 0 ? void 0 : _props$intl.locale,
|
|
241
|
+
browserLocale: window.navigator.language
|
|
239
242
|
},
|
|
240
243
|
eventType: EVENT_TYPE.UI
|
|
241
244
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "203.16.
|
|
2
|
+
export const version = "203.16.1";
|
|
@@ -241,6 +241,7 @@ export function ReactEditorView(props) {
|
|
|
241
241
|
// Initialise phase
|
|
242
242
|
// Using constructor hook so we setup and dispatch analytics before anything else
|
|
243
243
|
useConstructor(function () {
|
|
244
|
+
var _props$intl;
|
|
244
245
|
// This needs to be before initialising editorState because
|
|
245
246
|
// we dispatch analytics events in plugin initialisation
|
|
246
247
|
eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
|
|
@@ -250,7 +251,9 @@ export function ReactEditorView(props) {
|
|
|
250
251
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
251
252
|
attributes: {
|
|
252
253
|
platform: PLATFORMS.WEB,
|
|
253
|
-
featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
|
|
254
|
+
featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : [],
|
|
255
|
+
accountLocale: (_props$intl = props.intl) === null || _props$intl === void 0 ? void 0 : _props$intl.locale,
|
|
256
|
+
browserLocale: window.navigator.language
|
|
254
257
|
},
|
|
255
258
|
eventType: EVENT_TYPE.UI
|
|
256
259
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "203.16.
|
|
2
|
+
export var version = "203.16.1";
|
|
@@ -376,6 +376,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
376
376
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
377
377
|
commands: {
|
|
378
378
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
379
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
380
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
379
381
|
};
|
|
380
382
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
381
383
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
@@ -84,6 +84,8 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
84
84
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
85
85
|
commands: {
|
|
86
86
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
87
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
88
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
87
89
|
};
|
|
88
90
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
89
91
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
@@ -570,6 +572,8 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
570
572
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
571
573
|
commands: {
|
|
572
574
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
575
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
576
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
573
577
|
};
|
|
574
578
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
575
579
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
@@ -428,6 +428,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
428
428
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
429
429
|
commands: {
|
|
430
430
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
431
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
432
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
431
433
|
};
|
|
432
434
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
433
435
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
@@ -376,6 +376,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
376
376
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
377
377
|
commands: {
|
|
378
378
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
379
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
380
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
379
381
|
};
|
|
380
382
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
381
383
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
|
|
@@ -521,6 +521,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
521
521
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
522
522
|
commands: {
|
|
523
523
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
524
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
525
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
524
526
|
};
|
|
525
527
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
526
528
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
|
|
@@ -124,6 +124,8 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
124
124
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
125
125
|
commands: {
|
|
126
126
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
127
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
128
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
127
129
|
};
|
|
128
130
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
129
131
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
|
|
@@ -739,6 +741,8 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
739
741
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
740
742
|
commands: {
|
|
741
743
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
744
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
745
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
742
746
|
};
|
|
743
747
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
744
748
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
|
|
@@ -573,6 +573,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
573
573
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
574
574
|
commands: {
|
|
575
575
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
576
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
577
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
576
578
|
};
|
|
577
579
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
578
580
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
|
|
@@ -521,6 +521,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
521
521
|
actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
|
|
522
522
|
commands: {
|
|
523
523
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
524
|
+
clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
525
|
+
setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
524
526
|
};
|
|
525
527
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
526
528
|
}, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "203.16.
|
|
3
|
+
"version": "203.16.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.5.0",
|
|
46
|
-
"@atlaskit/editor-common": "^99.
|
|
46
|
+
"@atlaskit/editor-common": "^99.11.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.23.0",
|
|
48
48
|
"@atlaskit/editor-plugin-quick-insert": "1.10.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^7.2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/mention": "^23.11.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.12.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^2.44.0",
|
|
59
59
|
"@atlaskit/tokens": "^3.3.0",
|
|
60
60
|
"@atlaskit/tooltip": "^19.1.0",
|
|
61
61
|
"@atlaskit/width-detector": "^4.4.0",
|
|
@@ -438,6 +438,10 @@
|
|
|
438
438
|
"platform_editor_advanced_layouts_dnd_remove_layout": {
|
|
439
439
|
"type": "boolean",
|
|
440
440
|
"referenceOnly": true
|
|
441
|
+
},
|
|
442
|
+
"platform_editor_css_migrate_stage_1": {
|
|
443
|
+
"type": "boolean",
|
|
444
|
+
"referenceOnly": true
|
|
441
445
|
}
|
|
442
446
|
},
|
|
443
447
|
"stricter": {
|