@atlaskit/adf-schema 44.6.2 → 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,16 @@
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
+
3
14
  ## 44.6.2
4
15
 
5
16
  ### Patch Changes
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "44.6.2",
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
  }