@atlaskit/adf-schema 52.5.5 → 52.6.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
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 52.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 52.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`a0b1822615d7e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a0b1822615d7e) -
|
|
14
|
+
Refactor inline editor AI image generation loading state to use ProseMirror decorations:
|
|
15
|
+
- Add AI generating decoration plugin to editor-plugin-media for transient visual state tracking
|
|
16
|
+
via ProseMirror decorations instead of ADF schema attributes
|
|
17
|
+
- Remove \_\_isAIGenerating transient attribute from ADF media node schema
|
|
18
|
+
- Update editor-rovo-bridge to dispatch decoration meta instead of mutating node attributes
|
|
19
|
+
- Media NodeView reads decoration state and passes isAIGenerating prop to media-card
|
|
20
|
+
- AIBorder component with pulsing gradient border and translucent blanket during AI image
|
|
21
|
+
generation
|
|
22
|
+
- Internationalized AI generating progress bar aria label
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 52.5.5
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
15
|
* @name media_node
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
var defaultAttrs = exports.defaultAttrs = (0, _nodeTypes.media)({}).attrs;
|
|
18
|
+
var defaultAttrs = exports.defaultAttrs = _objectSpread({}, (0, _nodeTypes.media)({}).attrs);
|
|
19
19
|
var camelCaseToKebabCase = exports.camelCaseToKebabCase = function camelCaseToKebabCase(str) {
|
|
20
20
|
return (
|
|
21
21
|
// @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
|
|
@@ -46,8 +46,9 @@ var createMediaSpec = exports.createMediaSpec = function createMediaSpec(attribu
|
|
|
46
46
|
// @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
|
|
47
47
|
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
48
48
|
var key = camelCaseToKebabCase(k).replace(/^__/, '');
|
|
49
|
+
var value =
|
|
49
50
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
50
|
-
|
|
51
|
+
dom.getAttribute("data-".concat(key)) || '';
|
|
51
52
|
if (value) {
|
|
52
53
|
attrs[k] = value;
|
|
53
54
|
}
|
|
@@ -6,7 +6,9 @@ import { uuid } from '../../utils/uuid';
|
|
|
6
6
|
* @name media_node
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export const defaultAttrs =
|
|
9
|
+
export const defaultAttrs = {
|
|
10
|
+
...mediaFactory({}).attrs
|
|
11
|
+
};
|
|
10
12
|
export const camelCaseToKebabCase = str =>
|
|
11
13
|
// @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
|
|
12
14
|
str.replace(/([^A-Z]+)([A-Z])/gu, (_, x, y) => `${x}-${y.toLowerCase()}`);
|
|
@@ -30,8 +32,9 @@ export const createMediaSpec = (attributes, inline = false, generateLocalId = fa
|
|
|
30
32
|
// @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
|
|
31
33
|
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
32
34
|
const key = camelCaseToKebabCase(k).replace(/^__/u, '');
|
|
35
|
+
const value =
|
|
33
36
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
34
|
-
|
|
37
|
+
dom.getAttribute(`data-${key}`) || '';
|
|
35
38
|
if (value) {
|
|
36
39
|
attrs[k] = value;
|
|
37
40
|
}
|
|
@@ -9,7 +9,7 @@ import { uuid } from '../../utils/uuid';
|
|
|
9
9
|
* @name media_node
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
export var defaultAttrs = mediaFactory({}).attrs;
|
|
12
|
+
export var defaultAttrs = _objectSpread({}, mediaFactory({}).attrs);
|
|
13
13
|
export var camelCaseToKebabCase = function camelCaseToKebabCase(str) {
|
|
14
14
|
return (
|
|
15
15
|
// @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
|
|
@@ -40,8 +40,9 @@ export var createMediaSpec = function createMediaSpec(attributes) {
|
|
|
40
40
|
// @ts-ignore TS1501: This regular expression flag is only available when targeting 'es6' or later.
|
|
41
41
|
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
42
42
|
var key = camelCaseToKebabCase(k).replace(/^__/, '');
|
|
43
|
+
var value =
|
|
43
44
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
44
|
-
|
|
45
|
+
dom.getAttribute("data-".concat(key)) || '';
|
|
45
46
|
if (value) {
|
|
46
47
|
attrs[k] = value;
|
|
47
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "52.
|
|
3
|
+
"version": "52.6.1",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/adf-schema-generator": "^2.2.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^69.0.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"css-color-names": "0.0.4",
|
|
48
48
|
"linkify-it": "^3.0.3",
|