@atlaskit/adf-schema 44.6.1 → 44.7.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 +17 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +0 -12
- package/dist/cjs/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/es2019/next-schema/nodes/inlineCard.js +0 -12
- package/dist/es2019/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/esm/next-schema/nodes/inlineCard.js +0 -12
- package/dist/esm/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/types/schema/createPMSpecFactory.d.ts +2 -2
- package/dist/types/schema/nodes/decision-list.d.ts +1 -1
- package/dist/types/schema/nodes/media.d.ts +1 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +4 -4
- package/dist/types/schema/nodes/task-list.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 44.7.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- cb04de2: bump typescript to v5
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- Updated dependencies [cb04de2]
|
12
|
+
- @atlaskit/editor-prosemirror@6.1.0
|
13
|
+
|
14
|
+
## 44.6.2
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- 976a85b: Remove validator spec marks override for inlineCard
|
19
|
+
|
3
20
|
## 44.6.1
|
4
21
|
|
5
22
|
### Patch Changes
|
@@ -29,18 +29,6 @@ var inlineCard = exports.inlineCard = (0, _adfSchemaGenerator.adfNode)('inlineCa
|
|
29
29
|
},
|
30
30
|
stage0: {
|
31
31
|
marks: [_annotation.annotation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
|
32
|
-
},
|
33
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
34
|
-
'validator-spec': {
|
35
|
-
'props.marks': {
|
36
|
-
reason: '@DSLCompatibilityException - Annotation mark is in variant, but not full schema. However this has been added for compatibility with current validator.',
|
37
|
-
value: {
|
38
|
-
items: ['annotation'],
|
39
|
-
optional: true,
|
40
|
-
type: 'array'
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
32
|
}
|
45
33
|
}).variant('with_annotation', {
|
46
34
|
marks: [_annotation.annotation, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute]
|
@@ -23,18 +23,6 @@ export const inlineCard = adfNode('inlineCard').define({
|
|
23
23
|
},
|
24
24
|
stage0: {
|
25
25
|
marks: [annotation, unsupportedNodeAttribute, unsupportedMark]
|
26
|
-
},
|
27
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
28
|
-
'validator-spec': {
|
29
|
-
'props.marks': {
|
30
|
-
reason: '@DSLCompatibilityException - Annotation mark is in variant, but not full schema. However this has been added for compatibility with current validator.',
|
31
|
-
value: {
|
32
|
-
items: ['annotation'],
|
33
|
-
optional: true,
|
34
|
-
type: 'array'
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
26
|
}
|
39
27
|
}).variant('with_annotation', {
|
40
28
|
marks: [annotation, unsupportedMark, unsupportedNodeAttribute]
|
@@ -23,18 +23,6 @@ export var inlineCard = adfNode('inlineCard').define({
|
|
23
23
|
},
|
24
24
|
stage0: {
|
25
25
|
marks: [annotation, unsupportedNodeAttribute, unsupportedMark]
|
26
|
-
},
|
27
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
28
|
-
'validator-spec': {
|
29
|
-
'props.marks': {
|
30
|
-
reason: '@DSLCompatibilityException - Annotation mark is in variant, but not full schema. However this has been added for compatibility with current validator.',
|
31
|
-
value: {
|
32
|
-
items: ['annotation'],
|
33
|
-
optional: true,
|
34
|
-
type: 'array'
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
26
|
}
|
39
27
|
}).variant('with_annotation', {
|
40
28
|
marks: [annotation, unsupportedMark, unsupportedNodeAttribute]
|
@@ -20,7 +20,7 @@ export type MarkSpecFactory = typeof createPMMarkSpecFactory;
|
|
20
20
|
* @param nodeSpec - NodeSpec without toDom and parseDom
|
21
21
|
* @returns A function for a node which allows the consumer to define toDom and parseDom
|
22
22
|
*/
|
23
|
-
export declare const createPMNodeSpecFactory: <N extends Omit<PMNode, "
|
23
|
+
export declare const createPMNodeSpecFactory: <N extends Omit<PMNode, "toDOM" | "parseDOM">>(nodeSpec: NodeSpec) => ({ parseDOM, toDOM, toDebugString }: NodeSpecOptions<N>) => NodeSpec;
|
24
24
|
/**
|
25
25
|
* Factory method to attach custom parseDOM and/or toDOM for markSpec
|
26
26
|
*
|
@@ -30,4 +30,4 @@ export declare const createPMNodeSpecFactory: <N extends Omit<PMNode, "parseDOM"
|
|
30
30
|
* @param markSpec - Markspec without toDom and parseDom
|
31
31
|
* @returns A function for a mark which allows the consumer to define toDom and parseDom
|
32
32
|
*/
|
33
|
-
export declare const createPMMarkSpecFactory: <M extends Omit<Mark, "
|
33
|
+
export declare const createPMMarkSpecFactory: <M extends Omit<Mark, "toDOM" | "parseDOM">>(markSpec: MarkSpec) => ({ parseDOM, toDOM, toDebugString }: MarkSpecOptions<M>) => MarkSpec;
|
@@ -13,5 +13,5 @@ export interface DecisionListDefinition {
|
|
13
13
|
localId: string;
|
14
14
|
};
|
15
15
|
}
|
16
|
-
export declare const decisionListSelector
|
16
|
+
export declare const decisionListSelector = "[data-node-type=\"decisionList\"]";
|
17
17
|
export declare const decisionList: import("prosemirror-model").NodeSpec;
|
@@ -59,7 +59,7 @@ export declare const defaultAttrs: {
|
|
59
59
|
export interface MutableMediaAttributes extends MediaAttributes {
|
60
60
|
[key: string]: string | number | undefined | null | boolean;
|
61
61
|
}
|
62
|
-
export declare const createMediaSpec: (attributes: Partial<NodeSpec[
|
62
|
+
export declare const createMediaSpec: (attributes: Partial<NodeSpec["attrs"]>, inline?: boolean) => NodeSpec;
|
63
63
|
export declare const media: NodeSpec;
|
64
64
|
export declare const camelCaseToKebabCase: (str: string) => string;
|
65
65
|
export declare const copyPrivateAttributes: (from: Record<string, any>, to: Record<string, any>, map?: ((str: string) => string) | undefined) => void;
|
@@ -23,10 +23,10 @@ export interface CellAttributes {
|
|
23
23
|
background?: string;
|
24
24
|
}
|
25
25
|
export declare const tablePrefixSelector = "pm-table";
|
26
|
-
export declare const tableCellSelector
|
27
|
-
export declare const tableHeaderSelector
|
28
|
-
export declare const tableCellContentWrapperSelector
|
29
|
-
export declare const tableCellContentDomSelector
|
26
|
+
export declare const tableCellSelector = "pm-table-cell-content-wrap";
|
27
|
+
export declare const tableHeaderSelector = "pm-table-header-content-wrap";
|
28
|
+
export declare const tableCellContentWrapperSelector = "pm-table-cell-nodeview-wrapper";
|
29
|
+
export declare const tableCellContentDomSelector = "pm-table-cell-nodeview-content-dom";
|
30
30
|
export declare const getCellAttrs: (dom: HTMLElement, defaultValues?: CellAttributes) => {
|
31
31
|
colspan: number;
|
32
32
|
rowspan: number;
|
@@ -16,5 +16,5 @@ export interface TaskListDefinition {
|
|
16
16
|
localId: string;
|
17
17
|
};
|
18
18
|
}
|
19
|
-
export declare const taskListSelector
|
19
|
+
export declare const taskListSelector = "[data-node-type=\"actionList\"]";
|
20
20
|
export declare const taskList: import("prosemirror-model").NodeSpec;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "44.
|
3
|
+
"version": "44.7.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/"
|
@@ -78,6 +78,6 @@
|
|
78
78
|
"styled-components": "^3.2.6",
|
79
79
|
"ts-jest": "^29.1.1",
|
80
80
|
"ts-node": "^10.9.2",
|
81
|
-
"typescript": "
|
81
|
+
"typescript": "^5.6.3"
|
82
82
|
}
|
83
83
|
}
|