@atlaskit/adf-schema 55.0.2 → 55.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 +23 -0
- package/dist/cjs/entry-points/background-color.js +6 -0
- package/dist/cjs/entry-points/schema-background-color.js +6 -0
- package/dist/cjs/entry-points/schema-text-color.js +6 -0
- package/dist/cjs/entry-points/text-color.js +6 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -1
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/next-schema/nodes/panel.js +2 -1
- package/dist/cjs/schema/index.js +12 -0
- package/dist/cjs/schema/marks/background-color.js +28 -3
- package/dist/cjs/schema/marks/index.js +12 -0
- package/dist/cjs/schema/marks/text-color.js +52 -1
- package/dist/cjs/schema/nodes/panel.js +3 -0
- package/dist/cjs/schema/sanitizeNodes.js +5 -1
- package/dist/cjs/utils/colors.js +10 -1
- package/dist/cjs/utils/editor-palette.js +28 -2
- package/dist/es2019/entry-points/background-color.js +1 -1
- package/dist/es2019/entry-points/schema-background-color.js +1 -1
- package/dist/es2019/entry-points/schema-text-color.js +1 -1
- package/dist/es2019/entry-points/text-color.js +1 -1
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +1 -1
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/next-schema/nodes/panel.js +2 -1
- package/dist/es2019/schema/index.js +2 -2
- package/dist/es2019/schema/marks/background-color.js +22 -2
- package/dist/es2019/schema/marks/index.js +2 -2
- package/dist/es2019/schema/marks/text-color.js +47 -1
- package/dist/es2019/schema/nodes/panel.js +4 -0
- package/dist/es2019/schema/sanitizeNodes.js +3 -1
- package/dist/es2019/utils/colors.js +9 -0
- package/dist/es2019/utils/editor-palette.js +28 -2
- package/dist/esm/entry-points/background-color.js +1 -1
- package/dist/esm/entry-points/schema-background-color.js +1 -1
- package/dist/esm/entry-points/schema-text-color.js +1 -1
- package/dist/esm/entry-points/text-color.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +1 -1
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/next-schema/nodes/panel.js +2 -1
- package/dist/esm/schema/index.js +2 -2
- package/dist/esm/schema/marks/background-color.js +27 -2
- package/dist/esm/schema/marks/index.js +2 -2
- package/dist/esm/schema/marks/text-color.js +52 -1
- package/dist/esm/schema/nodes/panel.js +4 -0
- package/dist/esm/schema/sanitizeNodes.js +5 -1
- package/dist/esm/utils/colors.js +9 -0
- package/dist/esm/utils/editor-palette.js +28 -2
- package/dist/types/entry-points/background-color.d.ts +1 -1
- package/dist/types/entry-points/schema-background-color.d.ts +1 -1
- package/dist/types/entry-points/schema-text-color.d.ts +1 -1
- package/dist/types/entry-points/text-color.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +1 -1
- package/dist/types/schema/index.d.ts +2 -2
- package/dist/types/schema/marks/background-color.d.ts +2 -1
- package/dist/types/schema/marks/index.d.ts +2 -2
- package/dist/types/schema/marks/text-color.d.ts +2 -1
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +2 -2
- package/dist/types/schema/nodes/panel.d.ts +15 -0
- package/dist/types/utils/colors.d.ts +9 -0
- package/dist/types/utils/editor-palette.d.ts +26 -0
- package/package.json +3 -3
|
@@ -16,8 +16,9 @@ export interface TextColorDefinition {
|
|
|
16
16
|
export interface TextColorMark extends Mark {
|
|
17
17
|
attrs: TextColorAttributes;
|
|
18
18
|
}
|
|
19
|
-
export type TextColorKey = 'Light gray' | '
|
|
19
|
+
export type TextColorKey = 'Light gray' | 'Blue' | 'Teal' | 'Green' | 'Lime' | 'Yellow' | 'Orange' | 'Red' | 'Magenta' | 'Purple' | 'Dark gray' | 'Dark blue' | 'Dark teal' | 'Dark green' | 'Dark lime' | 'Dark yellow' | 'Dark orange' | 'Dark red' | 'Dark magenta' | 'Dark purple' | 'White' | 'Light blue' | 'Light teal' | 'Light green' | 'Light lime' | 'Light yellow' | 'Light orange' | 'Light red' | 'Light magenta' | 'Light purple';
|
|
20
20
|
export declare const colorPalette: Map<string, TextColorKey>;
|
|
21
|
+
export declare const colorPaletteNew: Map<string, TextColorKey>;
|
|
21
22
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
|
22
23
|
export declare const colorPaletteExtended: Map<string, TextColorKey>;
|
|
23
24
|
export declare const setGlobalTheme: (theme: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BreakoutMarkDefinition } from '../marks';
|
|
2
2
|
import type { ExpandDefinition as Expand } from './expand';
|
|
3
|
-
import type { PanelDefinition as Panel } from './panel';
|
|
3
|
+
import type { PanelC1Definition as PanelC1, PanelDefinition as Panel } from './panel';
|
|
4
4
|
import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from './paragraph';
|
|
5
5
|
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
6
6
|
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
@@ -39,7 +39,7 @@ export interface BodiedSyncBlockDefinition {
|
|
|
39
39
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
40
40
|
* @allowUnsupportedBlock true
|
|
41
41
|
*/
|
|
42
|
-
content: Array<Paragraph | ParagraphWithMarks | BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Rule | Table | TaskList>;
|
|
42
|
+
content: Array<Paragraph | ParagraphWithMarks | BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | PanelC1 | Rule | Table | TaskList>;
|
|
43
43
|
marks?: Array<BreakoutMarkDefinition>;
|
|
44
44
|
type: 'bodiedSyncBlock';
|
|
45
45
|
}
|
|
@@ -8,6 +8,7 @@ import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
|
8
8
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
9
9
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
10
10
|
import type { RuleDefinition as Rule } from './rule';
|
|
11
|
+
import type { TableDefinition as Table } from './tableNodes';
|
|
11
12
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
12
13
|
export declare enum PanelType {
|
|
13
14
|
INFO = "info",
|
|
@@ -40,6 +41,20 @@ export interface PanelDefinition {
|
|
|
40
41
|
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule>;
|
|
41
42
|
type: 'panel';
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @name panel_c1_node
|
|
46
|
+
*/
|
|
47
|
+
export interface PanelC1Definition {
|
|
48
|
+
attrs: PanelAttributes;
|
|
49
|
+
/**
|
|
50
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
51
|
+
* @minItems 1
|
|
52
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
53
|
+
* @allowUnsupportedBlock true
|
|
54
|
+
*/
|
|
55
|
+
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule | Table>;
|
|
56
|
+
type: 'panel';
|
|
57
|
+
}
|
|
43
58
|
export interface DOMAttributes {
|
|
44
59
|
[propName: string]: string;
|
|
45
60
|
}
|
|
@@ -16,6 +16,8 @@ export declare const Y200 = "#FFC400";
|
|
|
16
16
|
export declare const Yellow200 = "#F8E6A0";
|
|
17
17
|
export declare const Y400 = "#FF991F";
|
|
18
18
|
export declare const Y500 = "#FF8B00";
|
|
19
|
+
export declare const Y600 = "#B38600";
|
|
20
|
+
export declare const Y800 = "#7F5F01";
|
|
19
21
|
export declare const G50 = "#E3FCEF";
|
|
20
22
|
export declare const G75 = "#ABF5D1";
|
|
21
23
|
export declare const G200 = "#57D9A3";
|
|
@@ -28,6 +30,8 @@ export declare const B100 = "#4C9AFF";
|
|
|
28
30
|
export declare const B400 = "#0052CC";
|
|
29
31
|
export declare const B500 = "#0747A6";
|
|
30
32
|
export declare const L200 = "#D3F1A7";
|
|
33
|
+
export declare const L600 = "#6A9A23";
|
|
34
|
+
export declare const L800 = "#4C6B1F";
|
|
31
35
|
export declare const N0 = "#FFFFFF";
|
|
32
36
|
export declare const N20 = "#F4F5F7";
|
|
33
37
|
export declare const N30 = "#EBECF0";
|
|
@@ -45,7 +49,12 @@ export declare const N600 = "#758195";
|
|
|
45
49
|
export declare const N800 = "#172B4D";
|
|
46
50
|
export declare const N1000 = "#172B4D";
|
|
47
51
|
export declare const M200 = "#FDD0EC";
|
|
52
|
+
export declare const M600 = "#CD519D";
|
|
53
|
+
export declare const M800 = "#943D73";
|
|
48
54
|
export declare const O200 = "#FEDEC8";
|
|
55
|
+
export declare const Orange200 = "#FCE4A6";
|
|
56
|
+
export declare const O600 = "#E06C00";
|
|
57
|
+
export declare const O800 = "#9E4C00";
|
|
49
58
|
export declare const P50 = "#EAE6FF";
|
|
50
59
|
export declare const P75 = "#C0B6F2";
|
|
51
60
|
export declare const P100 = "#998DD9";
|
|
@@ -89,6 +89,28 @@ export declare const editorTextPalette: {
|
|
|
89
89
|
'#97A0AF': string;
|
|
90
90
|
/** whiteGray - strong */
|
|
91
91
|
'#172B4D': string;
|
|
92
|
+
/** lime - light */
|
|
93
|
+
'#D3F1A7': string;
|
|
94
|
+
/** lime - medium */
|
|
95
|
+
'#6A9A23': string;
|
|
96
|
+
/** lime - strong */
|
|
97
|
+
'#4C6B1F': string;
|
|
98
|
+
/** orange - light */
|
|
99
|
+
'#FCE4A6': string;
|
|
100
|
+
/** orange - medium */
|
|
101
|
+
'#E06C00': string;
|
|
102
|
+
/** orange - strong */
|
|
103
|
+
'#9E4C00': string;
|
|
104
|
+
/** magenta - light */
|
|
105
|
+
'#FDD0EC': string;
|
|
106
|
+
/** magenta - medium */
|
|
107
|
+
'#CD519D': string;
|
|
108
|
+
/** magenta - strong */
|
|
109
|
+
'#943D73': string;
|
|
110
|
+
/** yellow - medium */
|
|
111
|
+
'#B38600': string;
|
|
112
|
+
/** yellow - strong */
|
|
113
|
+
'#7F5F01': string;
|
|
92
114
|
};
|
|
93
115
|
/**
|
|
94
116
|
* This takes an ADF hex color and returns a matching text background palette color.
|
|
@@ -123,6 +145,10 @@ export declare const textBackgroundColorPalette: {
|
|
|
123
145
|
'#FDD0EC': string;
|
|
124
146
|
/** Purple - light */
|
|
125
147
|
'#DFD8FD': string;
|
|
148
|
+
/** Blue - light */
|
|
149
|
+
'#B3D4FF': string;
|
|
150
|
+
/** Green - light */
|
|
151
|
+
'#ABF5D1': string;
|
|
126
152
|
};
|
|
127
153
|
type TextBackgroundColorPalette = typeof textBackgroundColorPalette;
|
|
128
154
|
export type TextBackgroundColorPaletteKey = keyof TextBackgroundColorPalette;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "55.0
|
|
3
|
+
"version": "55.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/"
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"build:schema:all": "yarn build:schema:pm && yarn build:schema:json && yarn build:schema:validator"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/adf-schema-generator": "^3.
|
|
40
|
+
"@atlaskit/adf-schema-generator": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^107.1.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"css-color-names": "0.0.4",
|
|
45
45
|
"linkify-it": "^3.0.3",
|