@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,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = ThreeColumnLayoutIcon;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
|
+
function ThreeColumnLayoutIcon() {
|
|
11
|
+
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
12
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
|
+
focusable: "false",
|
|
15
|
+
"aria-hidden": true,
|
|
16
|
+
width: "40",
|
|
17
|
+
height: "40",
|
|
18
|
+
viewBox: "0 0 40 40",
|
|
19
|
+
fill: "none",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
22
|
+
width: "40",
|
|
23
|
+
height: "40",
|
|
24
|
+
fill: iconThemed({
|
|
25
|
+
light: '#FFF',
|
|
26
|
+
dark: '#161A1D'
|
|
27
|
+
})
|
|
28
|
+
}), /*#__PURE__*/_react.default.createElement("g", {
|
|
29
|
+
clipPath: "url(#clip0_5808_6858)"
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
31
|
+
width: "40",
|
|
32
|
+
height: "40",
|
|
33
|
+
rx: "3",
|
|
34
|
+
fill: iconThemed({
|
|
35
|
+
light: '#FFF',
|
|
36
|
+
dark: '#161A1D'
|
|
37
|
+
})
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
39
|
+
width: "40",
|
|
40
|
+
height: "40",
|
|
41
|
+
rx: "3",
|
|
42
|
+
fill: iconThemed({
|
|
43
|
+
light: '#FFF',
|
|
44
|
+
dark: '#161A1D'
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
47
|
+
x: "0.5",
|
|
48
|
+
y: "0.5",
|
|
49
|
+
width: "39",
|
|
50
|
+
height: "39",
|
|
51
|
+
rx: "2.5",
|
|
52
|
+
stroke: "var(--ds-border, #091E42)",
|
|
53
|
+
strokeOpacity: "0.14"
|
|
54
|
+
})), /*#__PURE__*/_react.default.createElement("rect", {
|
|
55
|
+
x: "6",
|
|
56
|
+
y: "6",
|
|
57
|
+
width: "28",
|
|
58
|
+
height: "1",
|
|
59
|
+
rx: "0.5",
|
|
60
|
+
fill: iconThemed({
|
|
61
|
+
light: '#A5ADBA',
|
|
62
|
+
dark: '#738496'
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
65
|
+
x: "6",
|
|
66
|
+
y: "10",
|
|
67
|
+
width: "28",
|
|
68
|
+
height: "1",
|
|
69
|
+
rx: "0.5",
|
|
70
|
+
fill: iconThemed({
|
|
71
|
+
light: '#FFF',
|
|
72
|
+
dark: '#161A1D'
|
|
73
|
+
})
|
|
74
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
75
|
+
x: "6",
|
|
76
|
+
y: "29",
|
|
77
|
+
width: "28",
|
|
78
|
+
height: "1",
|
|
79
|
+
rx: "0.5",
|
|
80
|
+
fill: iconThemed({
|
|
81
|
+
light: '#A5ADBA',
|
|
82
|
+
dark: '#738496'
|
|
83
|
+
})
|
|
84
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
85
|
+
x: "6",
|
|
86
|
+
y: "33",
|
|
87
|
+
width: "16",
|
|
88
|
+
height: "1",
|
|
89
|
+
rx: "0.5",
|
|
90
|
+
fill: iconThemed({
|
|
91
|
+
light: '#A5ADBA',
|
|
92
|
+
dark: '#738496'
|
|
93
|
+
})
|
|
94
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
95
|
+
x: "6.25",
|
|
96
|
+
y: "14.25",
|
|
97
|
+
width: "7.5",
|
|
98
|
+
height: "11.5",
|
|
99
|
+
rx: "0.75",
|
|
100
|
+
fill: iconThemed({
|
|
101
|
+
light: '#DEEBFF',
|
|
102
|
+
dark: '#09326C'
|
|
103
|
+
}),
|
|
104
|
+
stroke: iconThemed({
|
|
105
|
+
light: '#4C9AFF',
|
|
106
|
+
dark: '#0C66E4'
|
|
107
|
+
}),
|
|
108
|
+
strokeWidth: "0.5"
|
|
109
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
110
|
+
x: "16.25",
|
|
111
|
+
y: "14.25",
|
|
112
|
+
width: "7.5",
|
|
113
|
+
height: "11.5",
|
|
114
|
+
rx: "0.75",
|
|
115
|
+
fill: iconThemed({
|
|
116
|
+
light: '#DEEBFF',
|
|
117
|
+
dark: '#09326C'
|
|
118
|
+
}),
|
|
119
|
+
stroke: iconThemed({
|
|
120
|
+
light: '#4C9AFF',
|
|
121
|
+
dark: '#0C66E4'
|
|
122
|
+
}),
|
|
123
|
+
strokeWidth: "0.5"
|
|
124
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
125
|
+
x: "26.25",
|
|
126
|
+
y: "14.25",
|
|
127
|
+
width: "7.5",
|
|
128
|
+
height: "11.5",
|
|
129
|
+
rx: "0.75",
|
|
130
|
+
fill: iconThemed({
|
|
131
|
+
light: '#DEEBFF',
|
|
132
|
+
dark: '#09326C'
|
|
133
|
+
}),
|
|
134
|
+
stroke: iconThemed({
|
|
135
|
+
light: '#4C9AFF',
|
|
136
|
+
dark: '#0C66E4'
|
|
137
|
+
}),
|
|
138
|
+
strokeWidth: "0.5"
|
|
139
|
+
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
140
|
+
id: "clip0_5808_6858"
|
|
141
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
142
|
+
width: "40",
|
|
143
|
+
height: "40",
|
|
144
|
+
rx: "3",
|
|
145
|
+
fill: iconThemed({
|
|
146
|
+
light: '#FFF',
|
|
147
|
+
dark: '#161A1D'
|
|
148
|
+
})
|
|
149
|
+
}))));
|
|
150
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = TwoColumnLayoutIcon;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
|
+
function TwoColumnLayoutIcon() {
|
|
11
|
+
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
12
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
|
+
focusable: "false",
|
|
15
|
+
"aria-hidden": true,
|
|
16
|
+
width: "40",
|
|
17
|
+
height: "40",
|
|
18
|
+
viewBox: "0 0 40 40",
|
|
19
|
+
fill: "none",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement("g", {
|
|
22
|
+
clipPath: "url(#clip0_5808_8970)"
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
24
|
+
width: "40",
|
|
25
|
+
height: "40",
|
|
26
|
+
rx: "3",
|
|
27
|
+
fill: iconThemed({
|
|
28
|
+
light: '#FFF',
|
|
29
|
+
dark: '#161A1D'
|
|
30
|
+
})
|
|
31
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
32
|
+
width: "40",
|
|
33
|
+
height: "40",
|
|
34
|
+
rx: "3",
|
|
35
|
+
fill: iconThemed({
|
|
36
|
+
light: '#FFF',
|
|
37
|
+
dark: '#161A1D'
|
|
38
|
+
})
|
|
39
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
40
|
+
x: "0.5",
|
|
41
|
+
y: "0.5",
|
|
42
|
+
width: "39",
|
|
43
|
+
height: "39",
|
|
44
|
+
rx: "2.5",
|
|
45
|
+
stroke: "var(--ds-border, #091E42)",
|
|
46
|
+
strokeOpacity: "0.14"
|
|
47
|
+
})), /*#__PURE__*/_react.default.createElement("rect", {
|
|
48
|
+
x: "6",
|
|
49
|
+
y: "6",
|
|
50
|
+
width: "28",
|
|
51
|
+
height: "1",
|
|
52
|
+
rx: "0.5",
|
|
53
|
+
fill: iconThemed({
|
|
54
|
+
light: '#a5adba',
|
|
55
|
+
dark: '#8696A7'
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
58
|
+
x: "6",
|
|
59
|
+
y: "10",
|
|
60
|
+
width: "28",
|
|
61
|
+
height: "1",
|
|
62
|
+
rx: "0.5",
|
|
63
|
+
fill: iconThemed({
|
|
64
|
+
light: '#a5adba',
|
|
65
|
+
dark: '#8696A7'
|
|
66
|
+
})
|
|
67
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
68
|
+
x: "6",
|
|
69
|
+
y: "29",
|
|
70
|
+
width: "28",
|
|
71
|
+
height: "1",
|
|
72
|
+
rx: "0.5",
|
|
73
|
+
fill: iconThemed({
|
|
74
|
+
light: '#a5adba',
|
|
75
|
+
dark: '#8696A7'
|
|
76
|
+
})
|
|
77
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
78
|
+
x: "6",
|
|
79
|
+
y: "33",
|
|
80
|
+
width: "16",
|
|
81
|
+
height: "1",
|
|
82
|
+
rx: "0.5",
|
|
83
|
+
fill: iconThemed({
|
|
84
|
+
light: '#a5adba',
|
|
85
|
+
dark: '#8696A7'
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
88
|
+
x: "6.25",
|
|
89
|
+
y: "14.25",
|
|
90
|
+
width: "12.5",
|
|
91
|
+
height: "11.5",
|
|
92
|
+
rx: "0.75",
|
|
93
|
+
fill: iconThemed({
|
|
94
|
+
light: '#DEEBFF',
|
|
95
|
+
dark: '#09326C'
|
|
96
|
+
}),
|
|
97
|
+
stroke: iconThemed({
|
|
98
|
+
light: '#4C9AFF',
|
|
99
|
+
dark: '#0C66E4'
|
|
100
|
+
}),
|
|
101
|
+
strokeWidth: "0.5"
|
|
102
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
103
|
+
x: "21.25",
|
|
104
|
+
y: "14.25",
|
|
105
|
+
width: "12.5",
|
|
106
|
+
height: "11.5",
|
|
107
|
+
rx: "0.75",
|
|
108
|
+
fill: iconThemed({
|
|
109
|
+
light: '#DEEBFF',
|
|
110
|
+
dark: '#09326C'
|
|
111
|
+
}),
|
|
112
|
+
stroke: iconThemed({
|
|
113
|
+
light: '#4C9AFF',
|
|
114
|
+
dark: '#0C66E4'
|
|
115
|
+
}),
|
|
116
|
+
strokeWidth: "0.5"
|
|
117
|
+
}), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
118
|
+
id: "clip0_5808_8970"
|
|
119
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
120
|
+
width: "40",
|
|
121
|
+
height: "40",
|
|
122
|
+
rx: "3",
|
|
123
|
+
fill: iconThemed({
|
|
124
|
+
light: '#FFF',
|
|
125
|
+
dark: '#161A1D'
|
|
126
|
+
})
|
|
127
|
+
}))));
|
|
128
|
+
}
|
|
@@ -81,6 +81,18 @@ Object.defineProperty(exports, "IconFeedback", {
|
|
|
81
81
|
return _assets.IconFeedback;
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
+
Object.defineProperty(exports, "IconFiveColumnLayout", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _assets.IconFiveColumnLayout;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "IconFourColumnLayout", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _assets.IconFourColumnLayout;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
84
96
|
Object.defineProperty(exports, "IconHeading", {
|
|
85
97
|
enumerable: true,
|
|
86
98
|
get: function get() {
|
|
@@ -129,6 +141,12 @@ Object.defineProperty(exports, "IconMention", {
|
|
|
129
141
|
return _assets.IconMention;
|
|
130
142
|
}
|
|
131
143
|
});
|
|
144
|
+
Object.defineProperty(exports, "IconOneColumnLayout", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _assets.IconOneColumnLayout;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
132
150
|
Object.defineProperty(exports, "IconPanel", {
|
|
133
151
|
enumerable: true,
|
|
134
152
|
get: function get() {
|
|
@@ -171,6 +189,18 @@ Object.defineProperty(exports, "IconStatus", {
|
|
|
171
189
|
return _assets.IconStatus;
|
|
172
190
|
}
|
|
173
191
|
});
|
|
192
|
+
Object.defineProperty(exports, "IconThreeColumnLayout", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _assets.IconThreeColumnLayout;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "IconTwoColumnLayout", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function get() {
|
|
201
|
+
return _assets.IconTwoColumnLayout;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
174
204
|
Object.defineProperty(exports, "find", {
|
|
175
205
|
enumerable: true,
|
|
176
206
|
get: function get() {
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "93.
|
|
27
|
+
var packageVersion = "93.6.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -165,6 +165,26 @@ export const 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',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "93.
|
|
4
|
+
const packageVersion = "93.6.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/* eslint-disable @repo/internal/react/no-class-components */
|
|
2
3
|
import { PureComponent } from 'react';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
5
|
export class WithProviders extends PureComponent {
|
|
4
6
|
constructor(props) {
|
|
5
7
|
super(props);
|
|
8
|
+
_defineProperty(this, "mounted", false);
|
|
9
|
+
_defineProperty(this, "handleProviderIfMounted", (name, provider) => {
|
|
10
|
+
if (!this.mounted) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
this.handleProvider(name, provider);
|
|
14
|
+
});
|
|
6
15
|
_defineProperty(this, "handleProvider", (name, provider) => {
|
|
7
16
|
this.setState(({
|
|
8
17
|
providers
|
|
@@ -15,22 +24,33 @@ export class WithProviders extends PureComponent {
|
|
|
15
24
|
};
|
|
16
25
|
});
|
|
17
26
|
});
|
|
27
|
+
this.mounted = false;
|
|
18
28
|
const _providers = {};
|
|
19
29
|
this.props.providers.forEach(name => {
|
|
20
|
-
|
|
30
|
+
if (fg('platform_editor_react18_phase2')) {
|
|
31
|
+
const providerPromise = props.providerFactory.subscribe(name, this.handleProviderIfMounted);
|
|
32
|
+
_providers[name] = providerPromise;
|
|
33
|
+
} else {
|
|
34
|
+
_providers[name] = undefined;
|
|
35
|
+
}
|
|
21
36
|
});
|
|
22
37
|
this.state = {
|
|
23
38
|
providers: _providers
|
|
24
39
|
};
|
|
25
40
|
}
|
|
41
|
+
componentDidMount() {
|
|
42
|
+
this.mounted = true;
|
|
43
|
+
}
|
|
26
44
|
UNSAFE_componentWillMount() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
if (!fg('platform_editor_react18_phase2')) {
|
|
46
|
+
const {
|
|
47
|
+
providers,
|
|
48
|
+
providerFactory
|
|
49
|
+
} = this.props;
|
|
50
|
+
providers.forEach(name => {
|
|
51
|
+
providerFactory.subscribe(name, this.handleProvider);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
34
54
|
}
|
|
35
55
|
componentWillUnmount() {
|
|
36
56
|
const {
|
|
@@ -0,0 +1,167 @@
|
|
|
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_5176)"
|
|
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: "3.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: "12.25",
|
|
98
|
+
y: "14.25",
|
|
99
|
+
width: "3.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: "18.25",
|
|
113
|
+
y: "14.25",
|
|
114
|
+
width: "3.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: "24.25",
|
|
128
|
+
y: "14.25",
|
|
129
|
+
width: "3.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("rect", {
|
|
142
|
+
x: "30.25",
|
|
143
|
+
y: "14.25",
|
|
144
|
+
width: "3.5",
|
|
145
|
+
height: "11.5",
|
|
146
|
+
rx: "0.75",
|
|
147
|
+
fill: iconThemed({
|
|
148
|
+
light: '#DEEBFF',
|
|
149
|
+
dark: '#09326C'
|
|
150
|
+
}),
|
|
151
|
+
stroke: iconThemed({
|
|
152
|
+
light: '#4C9AFF',
|
|
153
|
+
dark: '#0C66E4'
|
|
154
|
+
}),
|
|
155
|
+
strokeWidth: "0.5"
|
|
156
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
157
|
+
id: "clip0_5808_5176"
|
|
158
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
159
|
+
width: "40",
|
|
160
|
+
height: "40",
|
|
161
|
+
rx: "3",
|
|
162
|
+
fill: iconThemed({
|
|
163
|
+
light: '#FFF',
|
|
164
|
+
dark: '#161A1D'
|
|
165
|
+
})
|
|
166
|
+
}))));
|
|
167
|
+
}
|