@atlaskit/editor-common 116.24.0 → 116.24.2
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 +27 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/index.js +4 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/index.js +4 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/index.js +4 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/contextual-typeahead-events.d.ts +7 -0
- package/dist/types/types/markdown-mode-plugin-stub.d.ts +1 -0
- package/package.json +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.24.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`075b6ae004392`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/075b6ae004392) -
|
|
8
|
+
[ux] fix toolbar table insertion for markdown syntax mode
|
|
9
|
+
- [`398d90367af76`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/398d90367af76) -
|
|
10
|
+
Remove internal data-ssr-content-dom-ref marker from SSR-streamed editor HTML after content DOM
|
|
11
|
+
re-attach
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 116.24.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`96ceccb98c3b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96ceccb98c3b9) -
|
|
19
|
+
Add a `surface` attribute to editor autocomplete analytics and UFO experience metadata, and wire
|
|
20
|
+
it through the plugin lifecycle.
|
|
21
|
+
|
|
22
|
+
Host integrations now pass explicit surface values:
|
|
23
|
+
- Confluence comments uses `confluence-comments`
|
|
24
|
+
- Rovo chat uses `rovo-chat`
|
|
25
|
+
|
|
26
|
+
This improves cross-surface tracking clarity while keeping surface values consumer-defined.
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 116.24.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "116.
|
|
31
|
+
var packageVersion = "116.24.1";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -127,6 +127,10 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
|
|
|
127
127
|
var refTarget = this.domRef.querySelector('[data-ssr-content-dom-ref]');
|
|
128
128
|
if (refTarget) {
|
|
129
129
|
this.handleRef(refTarget);
|
|
130
|
+
// The marker is only needed to locate the re-attach target during
|
|
131
|
+
// this SSR pass. Remove it so it doesn't leak into the streamed
|
|
132
|
+
// HTML (it has no meaning on the client).
|
|
133
|
+
refTarget.removeAttribute('data-ssr-content-dom-ref');
|
|
130
134
|
}
|
|
131
135
|
}
|
|
132
136
|
}
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "116.
|
|
27
|
+
var packageVersion = "116.24.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.24.1";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -93,6 +93,10 @@ export default class ReactNodeView {
|
|
|
93
93
|
const refTarget = this.domRef.querySelector('[data-ssr-content-dom-ref]');
|
|
94
94
|
if (refTarget) {
|
|
95
95
|
this.handleRef(refTarget);
|
|
96
|
+
// The marker is only needed to locate the re-attach target during
|
|
97
|
+
// this SSR pass. Remove it so it doesn't leak into the streamed
|
|
98
|
+
// HTML (it has no meaning on the client).
|
|
99
|
+
refTarget.removeAttribute('data-ssr-content-dom-ref');
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
}
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.24.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.
|
|
23
|
+
var packageVersion = "116.24.1";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -103,6 +103,10 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
103
103
|
var refTarget = this.domRef.querySelector('[data-ssr-content-dom-ref]');
|
|
104
104
|
if (refTarget) {
|
|
105
105
|
this.handleRef(refTarget);
|
|
106
|
+
// The marker is only needed to locate the re-attach target during
|
|
107
|
+
// this SSR pass. Remove it so it doesn't leak into the streamed
|
|
108
|
+
// HTML (it has no meaning on the client).
|
|
109
|
+
refTarget.removeAttribute('data-ssr-content-dom-ref');
|
|
106
110
|
}
|
|
107
111
|
}
|
|
108
112
|
}
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "116.
|
|
24
|
+
var packageVersion = "116.24.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -10,18 +10,21 @@ export type CompletionSource =
|
|
|
10
10
|
| 'localLlm';
|
|
11
11
|
type ContextualTypeaheadViewedAttributes = {
|
|
12
12
|
completionSource: CompletionSource;
|
|
13
|
+
surface: string;
|
|
13
14
|
};
|
|
14
15
|
type ContextualTypeaheadViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadViewedAttributes, undefined>;
|
|
15
16
|
type ContextualTypeaheadAcceptedAttributes = {
|
|
16
17
|
completionSource: CompletionSource;
|
|
17
18
|
kssDelta: number;
|
|
18
19
|
suggestionLength: number;
|
|
20
|
+
surface: string;
|
|
19
21
|
typedLength: number;
|
|
20
22
|
};
|
|
21
23
|
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadAcceptedAttributes, undefined>;
|
|
22
24
|
type ContextualTypeaheadDismissedAttributes = {
|
|
23
25
|
completionSource: CompletionSource;
|
|
24
26
|
reason: 'escape' | 'blur';
|
|
27
|
+
surface: string;
|
|
25
28
|
};
|
|
26
29
|
type ContextualTypeaheadDismissedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadDismissedAttributes, undefined>;
|
|
27
30
|
type ContextualTypeaheadLocalModelLoadedAttributes = {
|
|
@@ -35,6 +38,8 @@ type ContextualTypeaheadLocalModelLoadedAttributes = {
|
|
|
35
38
|
loadDurationMs: number;
|
|
36
39
|
/** Causal LM identifier that loaded. */
|
|
37
40
|
modelId: string;
|
|
41
|
+
/** Product/editor surface where autocomplete is running. */
|
|
42
|
+
surface: string;
|
|
38
43
|
};
|
|
39
44
|
type ContextualTypeaheadLocalModelLoadedAEP = TrackAEP<ACTION.LOCAL_MODEL_LOADED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadLocalModelLoadedAttributes, undefined>;
|
|
40
45
|
type ContextualTypeaheadLocalModelLoadFailedAttributes = {
|
|
@@ -56,6 +61,8 @@ type ContextualTypeaheadLocalModelLoadFailedAttributes = {
|
|
|
56
61
|
modelId: string;
|
|
57
62
|
/** Coarse, controlled failure category — never free-form. */
|
|
58
63
|
reason: 'webgpu_unavailable' | 'webgpu_no_adapter' | 'missing_shader_f16' | 'insufficient_memory' | 'model_download_failed' | 'module_load_failed' | 'init_failed';
|
|
64
|
+
/** Product/editor surface where autocomplete is running. */
|
|
65
|
+
surface: string;
|
|
59
66
|
/** Whether the GPU supports the shader-f16 feature the model requires. */
|
|
60
67
|
shaderF16Supported?: boolean;
|
|
61
68
|
/** Whether navigator.gpu exists at all. */
|
|
@@ -50,6 +50,7 @@ export type _MarkdownModePluginStateStub = {
|
|
|
50
50
|
export type _MarkdownModePluginStub = NextEditorPlugin<'markdownMode', {
|
|
51
51
|
actions: {
|
|
52
52
|
dispatchSourceCommand: (cmd: unknown) => boolean;
|
|
53
|
+
insertSourceTable: (rowsCount?: number, colsCount?: number) => void;
|
|
53
54
|
registerSourceCommandDispatch: (dispatcher: ((cmd: unknown) => boolean) | null) => void;
|
|
54
55
|
setShowSourceLineNumbers: (showSourceLineNumbers: boolean) => void;
|
|
55
56
|
setSourceBlockFormatState: (state: unknown) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.24.
|
|
3
|
+
"version": "116.24.2",
|
|
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/"
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"sideEffects": [
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"**/*.compiled.css"
|
|
17
|
+
],
|
|
16
18
|
"atlaskit:src": "src/index.ts",
|
|
17
19
|
"atlassian": {
|
|
18
20
|
"react-compiler": {
|
|
@@ -78,7 +80,7 @@
|
|
|
78
80
|
"@atlaskit/task-decision": "^21.4.0",
|
|
79
81
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
80
82
|
"@atlaskit/textfield": "^9.1.0",
|
|
81
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^123.0.0",
|
|
82
84
|
"@atlaskit/tokens": "^15.5.0",
|
|
83
85
|
"@atlaskit/tooltip": "^23.1.0",
|
|
84
86
|
"@atlaskit/width-detector": "^6.2.0",
|
|
@@ -140,13 +142,20 @@
|
|
|
140
142
|
},
|
|
141
143
|
"techstack": {
|
|
142
144
|
"@atlassian/frontend": {
|
|
143
|
-
"circular-dependencies": [
|
|
145
|
+
"circular-dependencies": [
|
|
146
|
+
"file-level"
|
|
147
|
+
],
|
|
144
148
|
"import-structure": "atlassian-conventions"
|
|
145
149
|
},
|
|
146
150
|
"@repo/internal": {
|
|
147
151
|
"deprecation": "no-deprecated-imports",
|
|
148
|
-
"design-tokens": [
|
|
149
|
-
|
|
152
|
+
"design-tokens": [
|
|
153
|
+
"color"
|
|
154
|
+
],
|
|
155
|
+
"styling": [
|
|
156
|
+
"emotion",
|
|
157
|
+
"compiled"
|
|
158
|
+
]
|
|
150
159
|
}
|
|
151
160
|
},
|
|
152
161
|
"platform-feature-flags": {
|