@atlaskit/editor-common 93.5.3 → 93.6.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 +15 -0
- package/dist/cjs/messages/insert-block.js +20 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/provider-factory/provider-factory.js +1 -0
- package/dist/cjs/provider-factory/with-providers.js +29 -8
- package/dist/cjs/quick-insert/assets/five-column-layout.js +173 -0
- package/dist/cjs/quick-insert/assets/four-column-layout.js +158 -0
- package/dist/cjs/quick-insert/assets/index.js +61 -1
- package/dist/cjs/quick-insert/assets/one-column-layout.js +109 -0
- package/dist/cjs/quick-insert/assets/three-column-layout.js +150 -0
- package/dist/cjs/quick-insert/assets/two-column-layout.js +128 -0
- package/dist/cjs/quick-insert/index.js +30 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/insert-block.js +20 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/provider-factory/provider-factory.js +1 -0
- package/dist/es2019/provider-factory/with-providers.js +28 -8
- package/dist/es2019/quick-insert/assets/five-column-layout.js +167 -0
- package/dist/es2019/quick-insert/assets/four-column-layout.js +152 -0
- package/dist/es2019/quick-insert/assets/index.js +20 -0
- package/dist/es2019/quick-insert/assets/one-column-layout.js +103 -0
- package/dist/es2019/quick-insert/assets/three-column-layout.js +144 -0
- package/dist/es2019/quick-insert/assets/two-column-layout.js +122 -0
- package/dist/es2019/quick-insert/index.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/insert-block.js +20 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/provider-factory/provider-factory.js +1 -0
- package/dist/esm/provider-factory/with-providers.js +29 -7
- package/dist/esm/quick-insert/assets/five-column-layout.js +166 -0
- package/dist/esm/quick-insert/assets/four-column-layout.js +151 -0
- package/dist/esm/quick-insert/assets/index.js +50 -0
- package/dist/esm/quick-insert/assets/one-column-layout.js +102 -0
- package/dist/esm/quick-insert/assets/three-column-layout.js +143 -0
- package/dist/esm/quick-insert/assets/two-column-layout.js +121 -0
- package/dist/esm/quick-insert/index.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/insert-block.d.ts +20 -0
- package/dist/types/provider-factory/provider-factory.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +1 -1
- package/dist/types/provider-factory/with-providers.d.ts +6 -3
- package/dist/types/quick-insert/assets/five-column-layout.d.ts +2 -0
- package/dist/types/quick-insert/assets/four-column-layout.d.ts +2 -0
- package/dist/types/quick-insert/assets/index.d.ts +5 -0
- package/dist/types/quick-insert/assets/one-column-layout.d.ts +2 -0
- package/dist/types/quick-insert/assets/three-column-layout.d.ts +2 -0
- package/dist/types/quick-insert/assets/two-column-layout.d.ts +2 -0
- package/dist/types/quick-insert/index.d.ts +1 -1
- package/dist/types-ts4.5/messages/insert-block.d.ts +20 -0
- package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +6 -3
- package/dist/types-ts4.5/quick-insert/assets/five-column-layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/four-column-layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +5 -0
- package/dist/types-ts4.5/quick-insert/assets/one-column-layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/three-column-layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/assets/two-column-layout.d.ts +2 -0
- package/dist/types-ts4.5/quick-insert/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
3
|
+
export default function OneColumnLayoutIcon() {
|
|
4
|
+
const {
|
|
5
|
+
iconThemed
|
|
6
|
+
} = useIconThemed();
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
focusable: "false",
|
|
9
|
+
"aria-hidden": true,
|
|
10
|
+
width: "40",
|
|
11
|
+
height: "40",
|
|
12
|
+
viewBox: "0 0 40 40",
|
|
13
|
+
fill: "none",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
16
|
+
clipPath: "url(#clip0_5808_7157)"
|
|
17
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
18
|
+
width: "40",
|
|
19
|
+
height: "40",
|
|
20
|
+
rx: "3",
|
|
21
|
+
fill: iconThemed({
|
|
22
|
+
light: '#FFF',
|
|
23
|
+
dark: '#161A1D'
|
|
24
|
+
})
|
|
25
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
26
|
+
width: "40",
|
|
27
|
+
height: "40",
|
|
28
|
+
rx: "3",
|
|
29
|
+
fill: iconThemed({
|
|
30
|
+
light: '#FFF',
|
|
31
|
+
dark: '#161A1D'
|
|
32
|
+
})
|
|
33
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
34
|
+
x: "0.5",
|
|
35
|
+
y: "0.5",
|
|
36
|
+
width: "39",
|
|
37
|
+
height: "39",
|
|
38
|
+
rx: "2.5",
|
|
39
|
+
stroke: "var(--ds-border, #091E42)",
|
|
40
|
+
strokeOpacity: "0.14"
|
|
41
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
42
|
+
x: "6",
|
|
43
|
+
y: "6",
|
|
44
|
+
width: "28",
|
|
45
|
+
height: "1",
|
|
46
|
+
rx: "0.5",
|
|
47
|
+
fill: iconThemed({
|
|
48
|
+
light: '#A5ADBA',
|
|
49
|
+
dark: '#738496'
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
52
|
+
x: "6",
|
|
53
|
+
y: "10",
|
|
54
|
+
width: "28",
|
|
55
|
+
height: "1",
|
|
56
|
+
rx: "0.5",
|
|
57
|
+
fill: iconThemed({
|
|
58
|
+
light: '#A5ADBA',
|
|
59
|
+
dark: '#738496'
|
|
60
|
+
})
|
|
61
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
62
|
+
x: "6",
|
|
63
|
+
y: "29",
|
|
64
|
+
width: "28",
|
|
65
|
+
height: "1",
|
|
66
|
+
rx: "0.5",
|
|
67
|
+
fill: iconThemed({
|
|
68
|
+
light: '#A5ADBA',
|
|
69
|
+
dark: '#738496'
|
|
70
|
+
})
|
|
71
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
72
|
+
x: "6",
|
|
73
|
+
y: "33",
|
|
74
|
+
width: "16",
|
|
75
|
+
height: "1",
|
|
76
|
+
rx: "0.5",
|
|
77
|
+
fill: iconThemed({
|
|
78
|
+
light: '#A5ADBA',
|
|
79
|
+
dark: '#738496'
|
|
80
|
+
})
|
|
81
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
82
|
+
x: "6.25",
|
|
83
|
+
y: "14.25",
|
|
84
|
+
width: "5",
|
|
85
|
+
height: "11.5",
|
|
86
|
+
rx: "0.75",
|
|
87
|
+
fill: iconThemed({
|
|
88
|
+
light: '#DEEBFF',
|
|
89
|
+
dark: '#09326C'
|
|
90
|
+
}),
|
|
91
|
+
stroke: iconThemed({
|
|
92
|
+
light: '#4C9AFF',
|
|
93
|
+
dark: '#0C66E4'
|
|
94
|
+
}),
|
|
95
|
+
strokeWidth: "0.5"
|
|
96
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
97
|
+
x: "13.75",
|
|
98
|
+
y: "14.25",
|
|
99
|
+
width: "5",
|
|
100
|
+
height: "11.5",
|
|
101
|
+
rx: "0.75",
|
|
102
|
+
fill: iconThemed({
|
|
103
|
+
light: '#DEEBFF',
|
|
104
|
+
dark: '#09326C'
|
|
105
|
+
}),
|
|
106
|
+
stroke: iconThemed({
|
|
107
|
+
light: '#4C9AFF',
|
|
108
|
+
dark: '#0C66E4'
|
|
109
|
+
}),
|
|
110
|
+
strokeWidth: "0.5"
|
|
111
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
112
|
+
x: "21.25",
|
|
113
|
+
y: "14.25",
|
|
114
|
+
width: "5",
|
|
115
|
+
height: "11.5",
|
|
116
|
+
rx: "0.75",
|
|
117
|
+
fill: iconThemed({
|
|
118
|
+
light: '#DEEBFF',
|
|
119
|
+
dark: '#09326C'
|
|
120
|
+
}),
|
|
121
|
+
stroke: iconThemed({
|
|
122
|
+
light: '#4C9AFF',
|
|
123
|
+
dark: '#0C66E4'
|
|
124
|
+
}),
|
|
125
|
+
strokeWidth: "0.5"
|
|
126
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
127
|
+
x: "28.75",
|
|
128
|
+
y: "14.25",
|
|
129
|
+
width: "5",
|
|
130
|
+
height: "11.5",
|
|
131
|
+
rx: "0.75",
|
|
132
|
+
fill: iconThemed({
|
|
133
|
+
light: '#DEEBFF',
|
|
134
|
+
dark: '#09326C'
|
|
135
|
+
}),
|
|
136
|
+
stroke: iconThemed({
|
|
137
|
+
light: '#4C9AFF',
|
|
138
|
+
dark: '#0C66E4'
|
|
139
|
+
}),
|
|
140
|
+
strokeWidth: "0.5"
|
|
141
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
142
|
+
id: "clip0_5808_7157"
|
|
143
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
144
|
+
width: "40",
|
|
145
|
+
height: "40",
|
|
146
|
+
rx: "3",
|
|
147
|
+
fill: iconThemed({
|
|
148
|
+
light: '#FFF',
|
|
149
|
+
dark: '#161A1D'
|
|
150
|
+
})
|
|
151
|
+
}))));
|
|
152
|
+
}
|
|
@@ -78,6 +78,26 @@ export const IconStatus = Loadable({
|
|
|
78
78
|
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-status" */'./status').then(module => module.default),
|
|
79
79
|
loading: () => null
|
|
80
80
|
});
|
|
81
|
+
export const IconOneColumnLayout = Loadable({
|
|
82
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-one-column-layout" */'./one-column-layout').then(module => module.default),
|
|
83
|
+
loading: () => null
|
|
84
|
+
});
|
|
85
|
+
export const IconTwoColumnLayout = Loadable({
|
|
86
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-two-column-layout" */'./two-column-layout').then(module => module.default),
|
|
87
|
+
loading: () => null
|
|
88
|
+
});
|
|
89
|
+
export const IconThreeColumnLayout = Loadable({
|
|
90
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-three-column-layout" */'./three-column-layout').then(module => module.default),
|
|
91
|
+
loading: () => null
|
|
92
|
+
});
|
|
93
|
+
export const IconFourColumnLayout = Loadable({
|
|
94
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-four-column-layout" */'./four-column-layout').then(module => module.default),
|
|
95
|
+
loading: () => null
|
|
96
|
+
});
|
|
97
|
+
export const IconFiveColumnLayout = Loadable({
|
|
98
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-five-column-layout" */'./five-column-layout').then(module => module.default),
|
|
99
|
+
loading: () => null
|
|
100
|
+
});
|
|
81
101
|
function importHeading(level) {
|
|
82
102
|
switch (level) {
|
|
83
103
|
case 1:
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
3
|
+
export default function OneColumnLayoutIcon() {
|
|
4
|
+
const {
|
|
5
|
+
iconThemed
|
|
6
|
+
} = useIconThemed();
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
focusable: "false",
|
|
9
|
+
"aria-hidden": true,
|
|
10
|
+
width: 40,
|
|
11
|
+
height: 40,
|
|
12
|
+
viewBox: "0 0 40 40",
|
|
13
|
+
fill: "none"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
15
|
+
clipPath: "url(#clip0_5808_9744)"
|
|
16
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
17
|
+
width: "40",
|
|
18
|
+
height: "40",
|
|
19
|
+
rx: "3",
|
|
20
|
+
fill: iconThemed({
|
|
21
|
+
light: '#FFF',
|
|
22
|
+
dark: '#161A1D'
|
|
23
|
+
})
|
|
24
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
25
|
+
width: "40",
|
|
26
|
+
height: "40",
|
|
27
|
+
rx: "3",
|
|
28
|
+
fill: iconThemed({
|
|
29
|
+
light: '#FFF',
|
|
30
|
+
dark: '#161A1D'
|
|
31
|
+
})
|
|
32
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
33
|
+
x: "0.5",
|
|
34
|
+
y: "0.5",
|
|
35
|
+
width: "39",
|
|
36
|
+
height: "39",
|
|
37
|
+
rx: "2.5",
|
|
38
|
+
stroke: "var(--ds-border, #091E42)",
|
|
39
|
+
strokeOpacity: "0.14"
|
|
40
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
41
|
+
x: "6",
|
|
42
|
+
y: "6",
|
|
43
|
+
width: "28",
|
|
44
|
+
height: "1",
|
|
45
|
+
rx: "0.5",
|
|
46
|
+
fill: "#CCE0FF"
|
|
47
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
48
|
+
x: "6",
|
|
49
|
+
y: "10",
|
|
50
|
+
width: "28",
|
|
51
|
+
height: "1",
|
|
52
|
+
rx: "0.5",
|
|
53
|
+
fill: iconThemed({
|
|
54
|
+
light: '#FFF',
|
|
55
|
+
dark: '#161A1D'
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
58
|
+
x: "6",
|
|
59
|
+
y: "29",
|
|
60
|
+
width: "28",
|
|
61
|
+
height: "1",
|
|
62
|
+
rx: "0.5",
|
|
63
|
+
fill: iconThemed({
|
|
64
|
+
light: '#A5ADBA',
|
|
65
|
+
dark: '#738496'
|
|
66
|
+
})
|
|
67
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
68
|
+
x: "6",
|
|
69
|
+
y: "33",
|
|
70
|
+
width: "16",
|
|
71
|
+
height: "1",
|
|
72
|
+
rx: "0.5",
|
|
73
|
+
fill: iconThemed({
|
|
74
|
+
light: '#A5ADBA',
|
|
75
|
+
dark: '#738496'
|
|
76
|
+
})
|
|
77
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
78
|
+
x: "6.25",
|
|
79
|
+
y: "14.25",
|
|
80
|
+
width: "27.5",
|
|
81
|
+
height: "11.5",
|
|
82
|
+
rx: "0.75",
|
|
83
|
+
fill: iconThemed({
|
|
84
|
+
light: '#DEEBFF',
|
|
85
|
+
dark: '#09326C'
|
|
86
|
+
}),
|
|
87
|
+
stroke: iconThemed({
|
|
88
|
+
light: '#4C9AFF',
|
|
89
|
+
dark: '#0C66E4'
|
|
90
|
+
}),
|
|
91
|
+
strokeWidth: "0.5"
|
|
92
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
93
|
+
id: "clip0_5808_9744"
|
|
94
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
95
|
+
width: "40",
|
|
96
|
+
height: "40",
|
|
97
|
+
rx: "3",
|
|
98
|
+
fill: iconThemed({
|
|
99
|
+
light: '#FFF',
|
|
100
|
+
dark: '#161A1D'
|
|
101
|
+
})
|
|
102
|
+
}))));
|
|
103
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
3
|
+
export default function ThreeColumnLayoutIcon() {
|
|
4
|
+
const {
|
|
5
|
+
iconThemed
|
|
6
|
+
} = useIconThemed();
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
focusable: "false",
|
|
9
|
+
"aria-hidden": true,
|
|
10
|
+
width: "40",
|
|
11
|
+
height: "40",
|
|
12
|
+
viewBox: "0 0 40 40",
|
|
13
|
+
fill: "none",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
16
|
+
width: "40",
|
|
17
|
+
height: "40",
|
|
18
|
+
fill: iconThemed({
|
|
19
|
+
light: '#FFF',
|
|
20
|
+
dark: '#161A1D'
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
23
|
+
clipPath: "url(#clip0_5808_6858)"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
25
|
+
width: "40",
|
|
26
|
+
height: "40",
|
|
27
|
+
rx: "3",
|
|
28
|
+
fill: iconThemed({
|
|
29
|
+
light: '#FFF',
|
|
30
|
+
dark: '#161A1D'
|
|
31
|
+
})
|
|
32
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
33
|
+
width: "40",
|
|
34
|
+
height: "40",
|
|
35
|
+
rx: "3",
|
|
36
|
+
fill: iconThemed({
|
|
37
|
+
light: '#FFF',
|
|
38
|
+
dark: '#161A1D'
|
|
39
|
+
})
|
|
40
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
41
|
+
x: "0.5",
|
|
42
|
+
y: "0.5",
|
|
43
|
+
width: "39",
|
|
44
|
+
height: "39",
|
|
45
|
+
rx: "2.5",
|
|
46
|
+
stroke: "var(--ds-border, #091E42)",
|
|
47
|
+
strokeOpacity: "0.14"
|
|
48
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
49
|
+
x: "6",
|
|
50
|
+
y: "6",
|
|
51
|
+
width: "28",
|
|
52
|
+
height: "1",
|
|
53
|
+
rx: "0.5",
|
|
54
|
+
fill: iconThemed({
|
|
55
|
+
light: '#A5ADBA',
|
|
56
|
+
dark: '#738496'
|
|
57
|
+
})
|
|
58
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
59
|
+
x: "6",
|
|
60
|
+
y: "10",
|
|
61
|
+
width: "28",
|
|
62
|
+
height: "1",
|
|
63
|
+
rx: "0.5",
|
|
64
|
+
fill: iconThemed({
|
|
65
|
+
light: '#FFF',
|
|
66
|
+
dark: '#161A1D'
|
|
67
|
+
})
|
|
68
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
69
|
+
x: "6",
|
|
70
|
+
y: "29",
|
|
71
|
+
width: "28",
|
|
72
|
+
height: "1",
|
|
73
|
+
rx: "0.5",
|
|
74
|
+
fill: iconThemed({
|
|
75
|
+
light: '#A5ADBA',
|
|
76
|
+
dark: '#738496'
|
|
77
|
+
})
|
|
78
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
79
|
+
x: "6",
|
|
80
|
+
y: "33",
|
|
81
|
+
width: "16",
|
|
82
|
+
height: "1",
|
|
83
|
+
rx: "0.5",
|
|
84
|
+
fill: iconThemed({
|
|
85
|
+
light: '#A5ADBA',
|
|
86
|
+
dark: '#738496'
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
89
|
+
x: "6.25",
|
|
90
|
+
y: "14.25",
|
|
91
|
+
width: "7.5",
|
|
92
|
+
height: "11.5",
|
|
93
|
+
rx: "0.75",
|
|
94
|
+
fill: iconThemed({
|
|
95
|
+
light: '#DEEBFF',
|
|
96
|
+
dark: '#09326C'
|
|
97
|
+
}),
|
|
98
|
+
stroke: iconThemed({
|
|
99
|
+
light: '#4C9AFF',
|
|
100
|
+
dark: '#0C66E4'
|
|
101
|
+
}),
|
|
102
|
+
strokeWidth: "0.5"
|
|
103
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
104
|
+
x: "16.25",
|
|
105
|
+
y: "14.25",
|
|
106
|
+
width: "7.5",
|
|
107
|
+
height: "11.5",
|
|
108
|
+
rx: "0.75",
|
|
109
|
+
fill: iconThemed({
|
|
110
|
+
light: '#DEEBFF',
|
|
111
|
+
dark: '#09326C'
|
|
112
|
+
}),
|
|
113
|
+
stroke: iconThemed({
|
|
114
|
+
light: '#4C9AFF',
|
|
115
|
+
dark: '#0C66E4'
|
|
116
|
+
}),
|
|
117
|
+
strokeWidth: "0.5"
|
|
118
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
119
|
+
x: "26.25",
|
|
120
|
+
y: "14.25",
|
|
121
|
+
width: "7.5",
|
|
122
|
+
height: "11.5",
|
|
123
|
+
rx: "0.75",
|
|
124
|
+
fill: iconThemed({
|
|
125
|
+
light: '#DEEBFF',
|
|
126
|
+
dark: '#09326C'
|
|
127
|
+
}),
|
|
128
|
+
stroke: iconThemed({
|
|
129
|
+
light: '#4C9AFF',
|
|
130
|
+
dark: '#0C66E4'
|
|
131
|
+
}),
|
|
132
|
+
strokeWidth: "0.5"
|
|
133
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
134
|
+
id: "clip0_5808_6858"
|
|
135
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
136
|
+
width: "40",
|
|
137
|
+
height: "40",
|
|
138
|
+
rx: "3",
|
|
139
|
+
fill: iconThemed({
|
|
140
|
+
light: '#FFF',
|
|
141
|
+
dark: '#161A1D'
|
|
142
|
+
})
|
|
143
|
+
}))));
|
|
144
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
3
|
+
export default function TwoColumnLayoutIcon() {
|
|
4
|
+
const {
|
|
5
|
+
iconThemed
|
|
6
|
+
} = useIconThemed();
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
focusable: "false",
|
|
9
|
+
"aria-hidden": true,
|
|
10
|
+
width: "40",
|
|
11
|
+
height: "40",
|
|
12
|
+
viewBox: "0 0 40 40",
|
|
13
|
+
fill: "none",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
16
|
+
clipPath: "url(#clip0_5808_8970)"
|
|
17
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
18
|
+
width: "40",
|
|
19
|
+
height: "40",
|
|
20
|
+
rx: "3",
|
|
21
|
+
fill: iconThemed({
|
|
22
|
+
light: '#FFF',
|
|
23
|
+
dark: '#161A1D'
|
|
24
|
+
})
|
|
25
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
26
|
+
width: "40",
|
|
27
|
+
height: "40",
|
|
28
|
+
rx: "3",
|
|
29
|
+
fill: iconThemed({
|
|
30
|
+
light: '#FFF',
|
|
31
|
+
dark: '#161A1D'
|
|
32
|
+
})
|
|
33
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
34
|
+
x: "0.5",
|
|
35
|
+
y: "0.5",
|
|
36
|
+
width: "39",
|
|
37
|
+
height: "39",
|
|
38
|
+
rx: "2.5",
|
|
39
|
+
stroke: "var(--ds-border, #091E42)",
|
|
40
|
+
strokeOpacity: "0.14"
|
|
41
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
42
|
+
x: "6",
|
|
43
|
+
y: "6",
|
|
44
|
+
width: "28",
|
|
45
|
+
height: "1",
|
|
46
|
+
rx: "0.5",
|
|
47
|
+
fill: iconThemed({
|
|
48
|
+
light: '#a5adba',
|
|
49
|
+
dark: '#8696A7'
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
52
|
+
x: "6",
|
|
53
|
+
y: "10",
|
|
54
|
+
width: "28",
|
|
55
|
+
height: "1",
|
|
56
|
+
rx: "0.5",
|
|
57
|
+
fill: iconThemed({
|
|
58
|
+
light: '#a5adba',
|
|
59
|
+
dark: '#8696A7'
|
|
60
|
+
})
|
|
61
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
62
|
+
x: "6",
|
|
63
|
+
y: "29",
|
|
64
|
+
width: "28",
|
|
65
|
+
height: "1",
|
|
66
|
+
rx: "0.5",
|
|
67
|
+
fill: iconThemed({
|
|
68
|
+
light: '#a5adba',
|
|
69
|
+
dark: '#8696A7'
|
|
70
|
+
})
|
|
71
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
72
|
+
x: "6",
|
|
73
|
+
y: "33",
|
|
74
|
+
width: "16",
|
|
75
|
+
height: "1",
|
|
76
|
+
rx: "0.5",
|
|
77
|
+
fill: iconThemed({
|
|
78
|
+
light: '#a5adba',
|
|
79
|
+
dark: '#8696A7'
|
|
80
|
+
})
|
|
81
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
82
|
+
x: "6.25",
|
|
83
|
+
y: "14.25",
|
|
84
|
+
width: "12.5",
|
|
85
|
+
height: "11.5",
|
|
86
|
+
rx: "0.75",
|
|
87
|
+
fill: iconThemed({
|
|
88
|
+
light: '#DEEBFF',
|
|
89
|
+
dark: '#09326C'
|
|
90
|
+
}),
|
|
91
|
+
stroke: iconThemed({
|
|
92
|
+
light: '#4C9AFF',
|
|
93
|
+
dark: '#0C66E4'
|
|
94
|
+
}),
|
|
95
|
+
strokeWidth: "0.5"
|
|
96
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
97
|
+
x: "21.25",
|
|
98
|
+
y: "14.25",
|
|
99
|
+
width: "12.5",
|
|
100
|
+
height: "11.5",
|
|
101
|
+
rx: "0.75",
|
|
102
|
+
fill: iconThemed({
|
|
103
|
+
light: '#DEEBFF',
|
|
104
|
+
dark: '#09326C'
|
|
105
|
+
}),
|
|
106
|
+
stroke: iconThemed({
|
|
107
|
+
light: '#4C9AFF',
|
|
108
|
+
dark: '#0C66E4'
|
|
109
|
+
}),
|
|
110
|
+
strokeWidth: "0.5"
|
|
111
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
112
|
+
id: "clip0_5808_8970"
|
|
113
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
114
|
+
width: "40",
|
|
115
|
+
height: "40",
|
|
116
|
+
rx: "3",
|
|
117
|
+
fill: iconThemed({
|
|
118
|
+
light: '#FFF',
|
|
119
|
+
dark: '#161A1D'
|
|
120
|
+
})
|
|
121
|
+
}))));
|
|
122
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconDatasourceConfluenceSearch, IconLoom } from './assets';
|
|
1
|
+
export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconDatasourceConfluenceSearch, IconLoom, IconOneColumnLayout, IconTwoColumnLayout, IconThreeColumnLayout, IconFourColumnLayout, IconFiveColumnLayout } from './assets';
|
|
2
2
|
export { memoProcessQuickInsertItems, find } from './utils';
|
|
3
3
|
export { messages } from './messages';
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "93.
|
|
16
|
+
const packageVersion = "93.6.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -165,6 +165,26 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
165
165
|
defaultMessage: 'Layouts',
|
|
166
166
|
description: 'Create a multi column section or layout'
|
|
167
167
|
},
|
|
168
|
+
twoColumns: {
|
|
169
|
+
id: 'fabric.editor.twoColumns',
|
|
170
|
+
defaultMessage: '2 columns layout',
|
|
171
|
+
description: 'Create a section or layout with two columns'
|
|
172
|
+
},
|
|
173
|
+
threeColumns: {
|
|
174
|
+
id: 'fabric.editor.threeColumns',
|
|
175
|
+
defaultMessage: '3 columns layout',
|
|
176
|
+
description: 'Create a section or layout with three columns'
|
|
177
|
+
},
|
|
178
|
+
fourColumns: {
|
|
179
|
+
id: 'fabric.editor.fourColumns',
|
|
180
|
+
defaultMessage: '4 columns layout',
|
|
181
|
+
description: 'Create a section or layout with four columns'
|
|
182
|
+
},
|
|
183
|
+
fiveColumns: {
|
|
184
|
+
id: 'fabric.editor.fiveColumns',
|
|
185
|
+
defaultMessage: '5 columns layout',
|
|
186
|
+
description: 'Create a section or layout with five columns'
|
|
187
|
+
},
|
|
168
188
|
columnsDescription: {
|
|
169
189
|
id: 'fabric.editor.columns.description',
|
|
170
190
|
defaultMessage: 'Structure your page using sections',
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "93.
|
|
10
|
+
var packageVersion = "93.6.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
+
/* eslint-disable @repo/internal/react/no-class-components */
|
|
12
13
|
import { PureComponent } from 'react';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
15
|
export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
14
16
|
_inherits(WithProviders, _PureComponent);
|
|
15
17
|
var _super = _createSuper(WithProviders);
|
|
@@ -17,6 +19,13 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
|
17
19
|
var _this;
|
|
18
20
|
_classCallCheck(this, WithProviders);
|
|
19
21
|
_this = _super.call(this, props);
|
|
22
|
+
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "handleProviderIfMounted", function (name, provider) {
|
|
24
|
+
if (!_this.mounted) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
_this.handleProvider(name, provider);
|
|
28
|
+
});
|
|
20
29
|
_defineProperty(_assertThisInitialized(_this), "handleProvider", function (name, provider) {
|
|
21
30
|
_this.setState(function (_ref) {
|
|
22
31
|
var providers = _ref.providers;
|
|
@@ -25,9 +34,15 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
|
25
34
|
};
|
|
26
35
|
});
|
|
27
36
|
});
|
|
37
|
+
_this.mounted = false;
|
|
28
38
|
var _providers = {};
|
|
29
39
|
_this.props.providers.forEach(function (name) {
|
|
30
|
-
|
|
40
|
+
if (fg('platform_editor_react18_phase2')) {
|
|
41
|
+
var providerPromise = props.providerFactory.subscribe(name, _this.handleProviderIfMounted);
|
|
42
|
+
_providers[name] = providerPromise;
|
|
43
|
+
} else {
|
|
44
|
+
_providers[name] = undefined;
|
|
45
|
+
}
|
|
31
46
|
});
|
|
32
47
|
_this.state = {
|
|
33
48
|
providers: _providers
|
|
@@ -35,15 +50,22 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
|
35
50
|
return _this;
|
|
36
51
|
}
|
|
37
52
|
_createClass(WithProviders, [{
|
|
53
|
+
key: "componentDidMount",
|
|
54
|
+
value: function componentDidMount() {
|
|
55
|
+
this.mounted = true;
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
38
58
|
key: "UNSAFE_componentWillMount",
|
|
39
59
|
value: function UNSAFE_componentWillMount() {
|
|
40
60
|
var _this2 = this;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
if (!fg('platform_editor_react18_phase2')) {
|
|
62
|
+
var _this$props = this.props,
|
|
63
|
+
providers = _this$props.providers,
|
|
64
|
+
providerFactory = _this$props.providerFactory;
|
|
65
|
+
providers.forEach(function (name) {
|
|
66
|
+
providerFactory.subscribe(name, _this2.handleProvider);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
47
69
|
}
|
|
48
70
|
}, {
|
|
49
71
|
key: "componentWillUnmount",
|