@atlaskit/adf-schema 56.1.17 → 56.2.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
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 56.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`51c33ef5349b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51c33ef5349b6) -
|
|
8
|
+
Enable compatibility with React 19.2.0
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 56.1.18
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 56.1.17
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -24,7 +24,7 @@ export type PMNodeSpecFactoryInstance<N extends Omit<PMNode, 'toDOM' | 'parseDOM
|
|
|
24
24
|
* @param nodeSpec - NodeSpec without toDom and parseDom
|
|
25
25
|
* @returns A function for a node which allows the consumer to define toDom and parseDom
|
|
26
26
|
*/
|
|
27
|
-
export declare const createPMNodeSpecFactory: <N extends Omit<PMNode,
|
|
27
|
+
export declare const createPMNodeSpecFactory: <N extends Omit<PMNode, 'toDOM' | 'parseDOM'>>(nodeSpec: NodeSpec) => ({ parseDOM, toDOM, toDebugString }: NodeSpecOptions<N>) => NodeSpec;
|
|
28
28
|
/**
|
|
29
29
|
* Factory method to attach custom parseDOM and/or toDOM for markSpec
|
|
30
30
|
*
|
|
@@ -34,4 +34,4 @@ export declare const createPMNodeSpecFactory: <N extends Omit<PMNode, "toDOM" |
|
|
|
34
34
|
* @param markSpec - Markspec without toDom and parseDom
|
|
35
35
|
* @returns A function for a mark which allows the consumer to define toDom and parseDom
|
|
36
36
|
*/
|
|
37
|
-
export declare const createPMMarkSpecFactory: <M extends Omit<Mark,
|
|
37
|
+
export declare const createPMMarkSpecFactory: <M extends Omit<Mark, 'toDOM' | 'parseDOM'>>(markSpec: MarkSpec) => ({ parseDOM, toDOM, toDebugString }: MarkSpecOptions<M>) => MarkSpec;
|
|
@@ -62,8 +62,8 @@ export interface MutableMediaAttributes extends MediaAttributes {
|
|
|
62
62
|
[key: string]: string | number | undefined | null | boolean;
|
|
63
63
|
}
|
|
64
64
|
export declare const camelCaseToKebabCase: (str: string) => string;
|
|
65
|
-
export declare const copyPrivateAttributes: (from: Record<string, any>, to: Record<string, any>, attributes?: Partial<NodeSpec[
|
|
66
|
-
export declare const createMediaSpec: (attributes: Partial<NodeSpec[
|
|
65
|
+
export declare const copyPrivateAttributes: (from: Record<string, any>, to: Record<string, any>, attributes?: Partial<NodeSpec['attrs']>, map?: ((str: string) => string) | undefined) => void;
|
|
66
|
+
export declare const createMediaSpec: (attributes: Partial<NodeSpec['attrs']>, inline?: boolean, generateLocalId?: boolean) => NodeSpec;
|
|
67
67
|
export declare const media: NodeSpec;
|
|
68
68
|
export declare const mediaWithLocalId: NodeSpec;
|
|
69
69
|
export declare const toJSON: (node: PMNode) => {
|
|
@@ -108,7 +108,7 @@ export declare const editorTextPalette: {
|
|
|
108
108
|
/** magenta - strong */
|
|
109
109
|
'#943D73': string;
|
|
110
110
|
/** yellow - medium */
|
|
111
|
-
readonly "#B38600":
|
|
111
|
+
readonly "#B38600": 'var(--ds-border-accent-yellow, #B38600)' | 'var(--ds-icon-accent-yellow, #B38600)';
|
|
112
112
|
/** yellow - strong */
|
|
113
113
|
'#7F5F01': string;
|
|
114
114
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "56.
|
|
3
|
+
"version": "56.2.0",
|
|
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/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/adf-schema-generator": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^135.7.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"css-color-names": "0.0.4",
|
|
46
46
|
"linkify-it": "^3.0.3",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"json-schema-diff-validator": "^0.4.1",
|
|
81
81
|
"prettier": "^3.2.5",
|
|
82
82
|
"prop-types": "^15.5.10",
|
|
83
|
-
"react": "^
|
|
84
|
-
"react-dom": "^
|
|
83
|
+
"react": "^19.2.0",
|
|
84
|
+
"react-dom": "^19.2.0",
|
|
85
85
|
"react-magnetic-di": "^3.1.4",
|
|
86
86
|
"rxjs": "^5.5.0",
|
|
87
87
|
"styled-components": "^3.2.6",
|