@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 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]
@@ -766,9 +766,9 @@ var inlineCard = exports.inlineCard = {
766
766
  }
767
767
  }],
768
768
  marks: {
769
- items: ['annotation'],
769
+ type: 'array',
770
770
  optional: true,
771
- type: 'array'
771
+ items: ['annotation']
772
772
  }
773
773
  },
774
774
  required: ['attrs']
@@ -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]
@@ -760,9 +760,9 @@ export const inlineCard = {
760
760
  }
761
761
  }],
762
762
  marks: {
763
- items: ['annotation'],
763
+ type: 'array',
764
764
  optional: true,
765
- type: 'array'
765
+ items: ['annotation']
766
766
  }
767
767
  },
768
768
  required: ['attrs']
@@ -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]
@@ -760,9 +760,9 @@ export var inlineCard = {
760
760
  }
761
761
  }],
762
762
  marks: {
763
- items: ['annotation'],
763
+ type: 'array',
764
764
  optional: true,
765
- type: 'array'
765
+ items: ['annotation']
766
766
  }
767
767
  },
768
768
  required: ['attrs']
@@ -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, "parseDOM" | "toDOM">>(nodeSpec: NodeSpec) => ({ parseDOM, toDOM, toDebugString }: NodeSpecOptions<N>) => NodeSpec;
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, "parseDOM" | "toDOM">>(markSpec: MarkSpec) => ({ parseDOM, toDOM, toDebugString }: MarkSpecOptions<M>) => MarkSpec;
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: string;
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['attrs']>, inline?: boolean) => 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: string;
27
- export declare const tableHeaderSelector: string;
28
- export declare const tableCellContentWrapperSelector: string;
29
- export declare const tableCellContentDomSelector: string;
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: string;
19
+ export declare const taskListSelector = "[data-node-type=\"actionList\"]";
20
20
  export declare const taskList: import("prosemirror-model").NodeSpec;
@@ -772,9 +772,9 @@ export declare const inlineCard: {
772
772
  };
773
773
  })[];
774
774
  marks: {
775
- items: string[];
776
- optional: boolean;
777
775
  type: string;
776
+ optional: boolean;
777
+ items: string[];
778
778
  };
779
779
  };
780
780
  required: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "44.6.1",
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": "~4.9.5"
81
+ "typescript": "^5.6.3"
82
82
  }
83
83
  }