@atlaskit/editor-plugin-insert-block 1.9.2 → 1.10.1
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 +29 -0
- package/dist/cjs/assets/action-list.js +79 -0
- package/dist/cjs/assets/approvals-tracker.js +66 -0
- package/dist/cjs/assets/decision-matrix.js +82 -0
- package/dist/cjs/assets/discussion-notes.js +82 -0
- package/dist/cjs/assets/expand.js +4 -3
- package/dist/cjs/assets/instructions-outline.js +73 -0
- package/dist/cjs/assets/switch.js +15 -19
- package/dist/cjs/assets/use-icon-themed.js +19 -0
- package/dist/cjs/plugin.js +35 -6
- package/dist/cjs/ui/ToolbarInsertBlock/dropdown-button.js +9 -23
- package/dist/cjs/ui/ToolbarInsertBlock/item.js +23 -36
- package/dist/cjs/ui/templateOptions.js +70 -0
- package/dist/cjs/ui/transformOptions.js +5 -1
- package/dist/es2019/assets/action-list.js +73 -0
- package/dist/es2019/assets/approvals-tracker.js +60 -0
- package/dist/es2019/assets/decision-matrix.js +76 -0
- package/dist/es2019/assets/discussion-notes.js +76 -0
- package/dist/es2019/assets/expand.js +5 -3
- package/dist/es2019/assets/instructions-outline.js +67 -0
- package/dist/es2019/assets/switch.js +14 -19
- package/dist/es2019/assets/use-icon-themed.js +15 -0
- package/dist/es2019/plugin.js +37 -10
- package/dist/es2019/ui/ToolbarInsertBlock/dropdown-button.js +7 -21
- package/dist/es2019/ui/ToolbarInsertBlock/item.js +20 -33
- package/dist/es2019/ui/templateOptions.js +53 -0
- package/dist/es2019/ui/transformOptions.js +5 -1
- package/dist/esm/assets/action-list.js +72 -0
- package/dist/esm/assets/approvals-tracker.js +59 -0
- package/dist/esm/assets/decision-matrix.js +75 -0
- package/dist/esm/assets/discussion-notes.js +75 -0
- package/dist/esm/assets/expand.js +4 -3
- package/dist/esm/assets/instructions-outline.js +66 -0
- package/dist/esm/assets/switch.js +14 -19
- package/dist/esm/assets/use-icon-themed.js +14 -0
- package/dist/esm/plugin.js +35 -6
- package/dist/esm/ui/ToolbarInsertBlock/dropdown-button.js +7 -21
- package/dist/esm/ui/ToolbarInsertBlock/item.js +20 -33
- package/dist/esm/ui/templateOptions.js +63 -0
- package/dist/esm/ui/transformOptions.js +5 -1
- package/dist/types/assets/action-list.d.ts +2 -0
- package/dist/types/assets/approvals-tracker.d.ts +2 -0
- package/dist/types/assets/decision-matrix.d.ts +2 -0
- package/dist/types/assets/discussion-notes.d.ts +2 -0
- package/dist/types/assets/expand.d.ts +3 -1
- package/dist/types/assets/instructions-outline.d.ts +2 -0
- package/dist/types/assets/switch.d.ts +6 -2
- package/dist/types/assets/use-icon-themed.d.ts +6 -0
- package/dist/types/ui/templateOptions.d.ts +2 -0
- package/dist/types/ui/transformOptions.d.ts +4 -1
- package/dist/types-ts4.5/assets/action-list.d.ts +2 -0
- package/dist/types-ts4.5/assets/approvals-tracker.d.ts +2 -0
- package/dist/types-ts4.5/assets/decision-matrix.d.ts +2 -0
- package/dist/types-ts4.5/assets/discussion-notes.d.ts +2 -0
- package/dist/types-ts4.5/assets/expand.d.ts +3 -1
- package/dist/types-ts4.5/assets/instructions-outline.d.ts +2 -0
- package/dist/types-ts4.5/assets/switch.d.ts +6 -2
- package/dist/types-ts4.5/assets/use-icon-themed.d.ts +6 -0
- package/dist/types-ts4.5/ui/templateOptions.d.ts +2 -0
- package/dist/types-ts4.5/ui/transformOptions.d.ts +4 -1
- package/package.json +8 -14
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from './use-icon-themed';
|
|
3
|
+
export default function DecisionMatrixIcon() {
|
|
4
|
+
var _useIconThemed = useIconThemed(),
|
|
5
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: "40",
|
|
8
|
+
height: "41",
|
|
9
|
+
viewBox: "0 0 40 41",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
clipPath: "url(#clip0_138_1296)"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
15
|
+
x: "0.5",
|
|
16
|
+
y: "0.759766",
|
|
17
|
+
width: "39",
|
|
18
|
+
height: "39",
|
|
19
|
+
rx: "2.5",
|
|
20
|
+
stroke: "var(--ds-border, #091E42)",
|
|
21
|
+
strokeOpacity: "0.14"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
23
|
+
width: "40",
|
|
24
|
+
height: "40",
|
|
25
|
+
fill: iconThemed({
|
|
26
|
+
light: '#FFF',
|
|
27
|
+
dark: '#161A1D'
|
|
28
|
+
})
|
|
29
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
clipRule: "evenodd",
|
|
32
|
+
d: "M12 22.2598C10.4087 22.2598 8.88258 21.6276 7.75736 20.5024C6.63214 19.3772 6 17.8511 6 16.2598C6 14.6685 6.63214 13.1423 7.75736 12.0171C8.88258 10.8919 10.4087 10.2598 12 10.2598C13.5913 10.2598 15.1174 10.8919 16.2426 12.0171C17.3679 13.1423 18 14.6685 18 16.2598C18 17.8511 17.3679 19.3772 16.2426 20.5024C15.1174 21.6276 13.5913 22.2598 12 22.2598ZM13.023 14.0368L11.409 17.1193L10.2517 16.0768C10.1785 16.0109 10.093 15.9601 10.0002 15.9272C9.90729 15.8943 9.80886 15.8801 9.71049 15.8853C9.61212 15.8905 9.51573 15.915 9.42683 15.9574C9.33793 15.9999 9.25827 16.0594 9.19238 16.1326C9.12648 16.2059 9.07566 16.2914 9.04281 16.3842C9.00996 16.4771 8.99572 16.5755 9.00091 16.6739C9.0061 16.7723 9.03061 16.8687 9.07305 16.9576C9.11549 17.0465 9.17502 17.1261 9.24825 17.192L11.1233 18.8795C11.2082 18.956 11.3095 19.0121 11.4195 19.0435C11.5294 19.0748 11.6451 19.0806 11.7576 19.0604C11.8701 19.0402 11.9766 18.9946 12.0687 18.927C12.1609 18.8593 12.2364 18.7715 12.2895 18.6703L14.352 14.7328C14.4443 14.5565 14.4628 14.3508 14.4034 14.161C14.3441 13.9711 14.2117 13.8126 14.0355 13.7203C13.8593 13.628 13.6536 13.6095 13.4637 13.6688C13.2738 13.7282 13.1153 13.8605 13.023 14.0368Z",
|
|
33
|
+
fill: "var(--ds-background-accent-green-subtle, #4BCE97)"
|
|
34
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
35
|
+
x: "6",
|
|
36
|
+
y: "26.2598",
|
|
37
|
+
width: "12",
|
|
38
|
+
height: "1",
|
|
39
|
+
rx: "0.5",
|
|
40
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
41
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
42
|
+
x: "6",
|
|
43
|
+
y: "29.2598",
|
|
44
|
+
width: "12",
|
|
45
|
+
height: "1",
|
|
46
|
+
rx: "0.5",
|
|
47
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
48
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
49
|
+
fillRule: "evenodd",
|
|
50
|
+
clipRule: "evenodd",
|
|
51
|
+
d: "M29.1137 16.2065L30.7052 14.6158C30.846 14.475 30.925 14.2842 30.925 14.0851C30.925 13.8861 30.846 13.6952 30.7052 13.5545C30.5645 13.4138 30.3736 13.3347 30.1746 13.3347C29.9756 13.3347 29.7847 13.4138 29.644 13.5545L28.054 15.146L26.4625 13.5545C26.3218 13.4139 26.1309 13.3349 25.932 13.335C25.733 13.3351 25.5423 13.4142 25.4016 13.5549C25.261 13.6956 25.182 13.8865 25.1821 14.0854C25.1822 14.2844 25.2613 14.4751 25.402 14.6158L26.992 16.2058L25.402 17.7973C25.2654 17.9387 25.1898 18.1282 25.1915 18.3248C25.1932 18.5215 25.2721 18.7096 25.4111 18.8486C25.5502 18.9877 25.7383 19.0666 25.9349 19.0683C26.1316 19.07 26.321 18.9944 26.4625 18.8578L28.0533 17.2678L29.644 18.8578C29.7136 18.9274 29.7963 18.9827 29.8873 19.0205C29.9783 19.0582 30.0758 19.0776 30.1744 19.0777C30.2729 19.0777 30.3704 19.0583 30.4615 19.0207C30.5525 18.983 30.6352 18.9278 30.7049 18.8581C30.7746 18.7885 30.8298 18.7058 30.8676 18.6148C30.9053 18.5238 30.9247 18.4263 30.9248 18.3278C30.9248 18.2293 30.9054 18.1317 30.8678 18.0407C30.8301 17.9497 30.7749 17.8669 30.7052 17.7973L29.1137 16.2065ZM28 22.2598C26.4087 22.2598 24.8826 21.6276 23.7574 20.5024C22.6321 19.3772 22 17.8511 22 16.2598C22 14.6685 22.6321 13.1423 23.7574 12.0171C24.8826 10.8919 26.4087 10.2598 28 10.2598C29.5913 10.2598 31.1174 10.8919 32.2426 12.0171C33.3679 13.1423 34 14.6685 34 16.2598C34 17.8511 33.3679 19.3772 32.2426 20.5024C31.1174 21.6276 29.5913 22.2598 28 22.2598Z",
|
|
52
|
+
fill: "var(--ds-background-accent-red-subtler-pressed, #F87168)"
|
|
53
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
54
|
+
x: "22",
|
|
55
|
+
y: "26.2598",
|
|
56
|
+
width: "12",
|
|
57
|
+
height: "1",
|
|
58
|
+
rx: "0.5",
|
|
59
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
60
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
61
|
+
x: "22",
|
|
62
|
+
y: "29.2598",
|
|
63
|
+
width: "12",
|
|
64
|
+
height: "1",
|
|
65
|
+
rx: "0.5",
|
|
66
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
67
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
68
|
+
id: "clip0_138_1296"
|
|
69
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
70
|
+
width: "40",
|
|
71
|
+
height: "40",
|
|
72
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
73
|
+
transform: "translate(0 0.259766)"
|
|
74
|
+
}))));
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from './use-icon-themed';
|
|
3
|
+
export default function DiscussionNotesIcon() {
|
|
4
|
+
var _useIconThemed = useIconThemed(),
|
|
5
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: "40",
|
|
8
|
+
height: "41",
|
|
9
|
+
viewBox: "0 0 40 41",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
clipPath: "url(#clip0_138_1334)"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
15
|
+
y: "0.259766",
|
|
16
|
+
width: "40",
|
|
17
|
+
height: "40",
|
|
18
|
+
rx: "3",
|
|
19
|
+
fill: iconThemed({
|
|
20
|
+
light: '#FFF',
|
|
21
|
+
dark: '#161A1D'
|
|
22
|
+
})
|
|
23
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
24
|
+
y: "0.259766",
|
|
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.759766",
|
|
35
|
+
width: "39",
|
|
36
|
+
height: "39",
|
|
37
|
+
rx: "2.5",
|
|
38
|
+
stroke: "var(--ds-border, #091E4224)",
|
|
39
|
+
strokeOpacity: "0.14"
|
|
40
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
41
|
+
fillRule: "evenodd",
|
|
42
|
+
clipRule: "evenodd",
|
|
43
|
+
d: "M7.5 6.25977H13.5C13.8978 6.25977 14.2794 6.4178 14.5607 6.69911C14.842 6.98041 15 7.36194 15 7.75977V16.7598C15 17.1576 14.842 17.5391 14.5607 17.8204C14.2794 18.1017 13.8978 18.2598 13.5 18.2598H7.5C7.10218 18.2598 6.72064 18.1017 6.43934 17.8204C6.15804 17.5391 6 17.1576 6 16.7598V7.75977C6 7.36194 6.15804 6.98041 6.43934 6.69911C6.72064 6.4178 7.10218 6.25977 7.5 6.25977ZM8.625 9.25977C8.52554 9.25977 8.43016 9.29927 8.35983 9.3696C8.28951 9.43993 8.25 9.53531 8.25 9.63477V10.3848C8.25 10.4842 8.28951 10.5796 8.35983 10.6499C8.43016 10.7203 8.52554 10.7598 8.625 10.7598H12.375C12.4745 10.7598 12.5698 10.7203 12.6402 10.6499C12.7105 10.5796 12.75 10.4842 12.75 10.3848V9.63477C12.75 9.53531 12.7105 9.43993 12.6402 9.3696C12.5698 9.29927 12.4745 9.25977 12.375 9.25977H8.625ZM8.625 12.2598C8.52554 12.2598 8.43016 12.2993 8.35983 12.3696C8.28951 12.4399 8.25 12.5353 8.25 12.6348V13.3848C8.25 13.4842 8.28951 13.5796 8.35983 13.6499C8.43016 13.7203 8.52554 13.7598 8.625 13.7598H10.875C10.9745 13.7598 11.0698 13.7203 11.1402 13.6499C11.2105 13.5796 11.25 13.4842 11.25 13.3848V12.6348C11.25 12.5353 11.2105 12.4399 11.1402 12.3696C11.0698 12.2993 10.9745 12.2598 10.875 12.2598H8.625Z",
|
|
44
|
+
fill: "var(--ds-background-accent-purple-bolder, #6E5DC6)"
|
|
45
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
46
|
+
x: "6",
|
|
47
|
+
y: "22.2598",
|
|
48
|
+
width: "28",
|
|
49
|
+
height: "1",
|
|
50
|
+
rx: "0.5",
|
|
51
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
52
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
53
|
+
x: "6",
|
|
54
|
+
y: "25.2598",
|
|
55
|
+
width: "28",
|
|
56
|
+
height: "1",
|
|
57
|
+
rx: "0.5",
|
|
58
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
59
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
60
|
+
x: "6",
|
|
61
|
+
y: "28.2598",
|
|
62
|
+
width: "14",
|
|
63
|
+
height: "1",
|
|
64
|
+
rx: "0.5",
|
|
65
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
66
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
67
|
+
id: "clip0_138_1334"
|
|
68
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
69
|
+
y: "0.259766",
|
|
70
|
+
width: "40",
|
|
71
|
+
height: "40",
|
|
72
|
+
rx: "3",
|
|
73
|
+
fill: "var(--ds-surface, #FFFFFF)"
|
|
74
|
+
}))));
|
|
75
|
+
}
|
|
@@ -11,7 +11,8 @@ var iconContainer = css({
|
|
|
11
11
|
width: '24px',
|
|
12
12
|
height: '24px'
|
|
13
13
|
});
|
|
14
|
-
export default function ExpandIcon() {
|
|
14
|
+
export default function ExpandIcon(_ref) {
|
|
15
|
+
var disabled = _ref.disabled;
|
|
15
16
|
return jsx("span", {
|
|
16
17
|
css: iconContainer
|
|
17
18
|
}, jsx("svg", {
|
|
@@ -22,11 +23,11 @@ export default function ExpandIcon() {
|
|
|
22
23
|
fill: "none"
|
|
23
24
|
}, jsx("path", {
|
|
24
25
|
d: "M2 2V14H16V2H2ZM2 0H16C16.5304 0 17.0391 0.210714 17.4142 0.585786C17.7893 0.960859 18 1.46957 18 2V14C18 14.5304 17.7893 15.0391 17.4142 15.4142C17.0391 15.7893 16.5304 16 16 16H2C1.46957 16 0.960859 15.7893 0.585786 15.4142C0.210714 15.0391 0 14.5304 0 14V2C0 1.46957 0.210714 0.960859 0.585786 0.585786C0.960859 0.210714 1.46957 0 2 0Z",
|
|
25
|
-
fill: "var(--ds-icon, #44546F)"
|
|
26
|
+
fill: disabled ? "var(--ds-icon-disabled, #B3B9C4)" : "var(--ds-icon, #44546F)"
|
|
26
27
|
}), jsx("path", {
|
|
27
28
|
fillRule: "evenodd",
|
|
28
29
|
clipRule: "evenodd",
|
|
29
30
|
d: "M5.29158 6.29294C5.10477 6.48183 5 6.73678 5 7.00244C5 7.2681 5.10477 7.52305 5.29158 7.71194L8.23058 10.6769C8.44858 10.8919 8.73058 10.9989 9.00958 10.9989C9.28858 10.9989 9.56558 10.8919 9.77858 10.6769L12.7086 7.72194C12.8951 7.53292 12.9998 7.27803 12.9998 7.01244C12.9998 6.74686 12.8951 6.49196 12.7086 6.30294C12.6167 6.20976 12.5073 6.13576 12.3866 6.08525C12.2659 6.03474 12.1364 6.00873 12.0056 6.00873C11.8748 6.00873 11.7452 6.03474 11.6245 6.08525C11.5039 6.13576 11.3944 6.20976 11.3026 6.30294L9.00458 8.61994L6.69758 6.29294C6.60554 6.20012 6.49604 6.12644 6.37538 6.07617C6.25472 6.02589 6.1253 6 5.99458 6C5.86386 6 5.73444 6.02589 5.61378 6.07617C5.49312 6.12644 5.38362 6.20012 5.29158 6.29294Z",
|
|
30
|
-
fill: "var(--ds-icon, #44546F)"
|
|
31
|
+
fill: disabled ? "var(--ds-icon-disabled, #B3B9C4)" : "var(--ds-icon, #44546F)"
|
|
31
32
|
})));
|
|
32
33
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIconThemed } from './use-icon-themed';
|
|
3
|
+
export default function InstructionsOutlineIcon() {
|
|
4
|
+
var _useIconThemed = useIconThemed(),
|
|
5
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: "40",
|
|
8
|
+
height: "41",
|
|
9
|
+
viewBox: "0 0 40 41",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
clipPath: "url(#clip0_138_1254)"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
15
|
+
y: "0.259766",
|
|
16
|
+
width: "40",
|
|
17
|
+
height: "40",
|
|
18
|
+
rx: "3",
|
|
19
|
+
fill: iconThemed({
|
|
20
|
+
light: '#FFF',
|
|
21
|
+
dark: '#161A1D'
|
|
22
|
+
})
|
|
23
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
24
|
+
x: "0.5",
|
|
25
|
+
y: "0.759766",
|
|
26
|
+
width: "39",
|
|
27
|
+
height: "39",
|
|
28
|
+
rx: "2.5",
|
|
29
|
+
stroke: "var(--ds-border, #091E42)",
|
|
30
|
+
strokeOpacity: "0.14"
|
|
31
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M12 18.2598C10.4087 18.2598 8.88258 17.6276 7.75736 16.5024C6.63214 15.3772 6 13.8511 6 12.2598C6 10.6685 6.63214 9.14234 7.75736 8.01713C8.88258 6.89191 10.4087 6.25977 12 6.25977C13.5913 6.25977 15.1174 6.89191 16.2426 8.01713C17.3679 9.14234 18 10.6685 18 12.2598C18 13.8511 17.3679 15.3772 16.2426 16.5024C15.1174 17.6276 13.5913 18.2598 12 18.2598ZM12 11.8848C11.8011 11.8848 11.6103 11.9638 11.4697 12.1044C11.329 12.2451 11.25 12.4359 11.25 12.6348V14.5098C11.25 14.7087 11.329 14.8994 11.4697 15.0401C11.6103 15.1807 11.8011 15.2598 12 15.2598C12.1989 15.2598 12.3897 15.1807 12.5303 15.0401C12.671 14.8994 12.75 14.7087 12.75 14.5098V12.6348C12.75 12.4359 12.671 12.2451 12.5303 12.1044C12.3897 11.9638 12.1989 11.8848 12 11.8848ZM12 11.041C12.2735 11.041 12.5358 10.9324 12.7292 10.739C12.9226 10.5456 13.0312 10.2833 13.0312 10.0098C13.0312 9.73626 12.9226 9.47396 12.7292 9.28056C12.5358 9.08716 12.2735 8.97852 12 8.97852C11.7265 8.97852 11.4642 9.08716 11.2708 9.28056C11.0774 9.47396 10.9688 9.73626 10.9688 10.0098C10.9688 10.2833 11.0774 10.5456 11.2708 10.739C11.4642 10.9324 11.7265 11.041 12 11.041Z",
|
|
35
|
+
fill: "#4D8CED"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
37
|
+
x: "6",
|
|
38
|
+
y: "22.2598",
|
|
39
|
+
width: "28",
|
|
40
|
+
height: "1",
|
|
41
|
+
rx: "0.5",
|
|
42
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
43
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
44
|
+
x: "6",
|
|
45
|
+
y: "25.2598",
|
|
46
|
+
width: "28",
|
|
47
|
+
height: "1",
|
|
48
|
+
rx: "0.5",
|
|
49
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
50
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
51
|
+
x: "6",
|
|
52
|
+
y: "28.2598",
|
|
53
|
+
width: "14",
|
|
54
|
+
height: "1",
|
|
55
|
+
rx: "0.5",
|
|
56
|
+
fill: "var(--ds-text-disabled, #A5ADBA)"
|
|
57
|
+
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
58
|
+
id: "clip0_138_1254"
|
|
59
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
60
|
+
y: "0.259766",
|
|
61
|
+
width: "40",
|
|
62
|
+
height: "40",
|
|
63
|
+
rx: "3",
|
|
64
|
+
fill: "var(--ds-surface, #FFFFFF)"
|
|
65
|
+
}))));
|
|
66
|
+
}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
|
+
import RefreshIcon from '@atlaskit/icon/glyph/refresh';
|
|
9
|
+
var iconStyle = css({
|
|
10
|
+
transform: 'rotate(-90deg)'
|
|
11
|
+
});
|
|
3
12
|
export default function SwitchIcon() {
|
|
4
|
-
return
|
|
13
|
+
return jsx("span", {
|
|
14
|
+
css: iconStyle
|
|
15
|
+
}, jsx(RefreshIcon, {
|
|
5
16
|
label: ""
|
|
6
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
7
|
-
d: "M6.003 16H8.998C9.26322 16 9.51757 15.8947 9.70511 15.7071C9.89264 15.5196 9.998 15.2652 9.998 15C9.998 14.7348 9.89264 14.4805 9.70511 14.2929C9.51757 14.1054 9.26322 14 8.998 14H5.102C4.494 14 4 14.493 4 15.1V19C4 19.2656 4.10551 19.5204 4.29333 19.7082C4.48115 19.896 4.73589 20.0015 5.0015 20.0015C5.26711 20.0015 5.52185 19.896 5.70967 19.7082C5.89748 19.5204 6.003 19.2656 6.003 19V16Z",
|
|
8
|
-
fill: "var(--ds-icon, #44546F)"
|
|
9
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10
|
-
d: "M18.018 14.572C16.989 16.649 14.807 18 12.37 18C10.104 18 8.051 16.833 6.945 14.98C6.659 14.5 6.023 14.334 5.524 14.609C5.40677 14.6709 5.30331 14.7559 5.21991 14.8589C5.13651 14.9619 5.0749 15.0808 5.0388 15.2083C5.00271 15.3359 4.99289 15.4694 5.00994 15.6009C5.027 15.7323 5.07056 15.8589 5.138 15.973C6.611 18.443 9.35 20 12.37 20C15.618 20 18.528 18.198 19.899 15.43C20.146 14.932 19.925 14.335 19.406 14.098C18.886 13.861 18.265 14.073 18.018 14.572Z",
|
|
11
|
-
fill: "var(--ds-icon, #44546F)"
|
|
12
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
13
|
-
fillRule: "evenodd",
|
|
14
|
-
clipRule: "evenodd",
|
|
15
|
-
d: "M15.002 10L18.898 10C19.506 10 20 9.50703 20 8.90003V5.00003C20 4.73441 19.8945 4.47968 19.7067 4.29186C19.5188 4.10404 19.2641 3.99853 18.9985 3.99853C18.7329 3.99853 18.4782 4.10404 18.2903 4.29186C18.1025 4.47968 17.997 4.73441 17.997 5.00003V8.00003H15.002C14.7368 8.00003 14.4824 8.10538 14.2949 8.29292C14.1074 8.48046 14.002 8.73481 14.002 9.00003C14.002 9.26524 14.1074 9.5196 14.2949 9.70713C14.4824 9.89467 14.7368 10 15.002 10Z",
|
|
16
|
-
fill: "var(--ds-icon, #44546F)"
|
|
17
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
18
|
-
fillRule: "evenodd",
|
|
19
|
-
clipRule: "evenodd",
|
|
20
|
-
d: "M4.596 9.90303C5.116 10.14 5.736 9.92803 5.983 9.42903C7.012 7.35203 9.193 6.00103 11.63 6.00103C13.896 6.00103 15.95 7.16803 17.055 9.02203C17.1988 9.25438 17.4265 9.42245 17.6909 9.49135C17.9553 9.56024 18.2361 9.52468 18.475 9.39203C18.975 9.11803 19.148 8.50703 18.862 8.02803C17.389 5.55803 14.65 4.00103 11.63 4.00103C8.382 4.00103 5.472 5.80303 4.102 8.57103C4.03537 8.70353 4.00045 8.84971 4 8.99803C4.00188 9.1902 4.05909 9.37775 4.16479 9.53825C4.27049 9.69875 4.4202 9.8254 4.596 9.90303Z",
|
|
21
|
-
fill: "var(--ds-icon, #44546F)"
|
|
22
17
|
}));
|
|
23
18
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useThemeObserver } from '@atlaskit/tokens';
|
|
2
|
+
|
|
3
|
+
// Copy of platform/packages/editor/editor-common/src/quick-insert/use-icon-themed.tsx
|
|
4
|
+
// As per warning in the original file, this hook may not be suitable to be exported
|
|
5
|
+
// and we want to avoid making experiment-only icons public (i.e. move to @atlaskit/editor-common/quick-insert)
|
|
6
|
+
export var useIconThemed = function useIconThemed() {
|
|
7
|
+
var _useThemeObserver = useThemeObserver(),
|
|
8
|
+
colorMode = _useThemeObserver.colorMode;
|
|
9
|
+
return {
|
|
10
|
+
iconThemed: function iconThemed(colors) {
|
|
11
|
+
return colorMode && colorMode === 'dark' ? colors['dark'] : colors['light'];
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
};
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import React, { useLayoutEffect } from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
+
import { contentAllowedInCodeBlock, shouldSplitSelectedNodeOnNodeInsertion } from '@atlaskit/editor-common/insert';
|
|
4
5
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
6
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
6
7
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
8
|
+
import { getWrappingOptions } from '@atlaskit/editor-common/utils';
|
|
7
9
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
8
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
11
|
import SwitchIcon from './assets/switch';
|
|
12
|
+
import { templateOptions } from './ui/templateOptions';
|
|
10
13
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
11
14
|
import { transformationOptions } from './ui/transformOptions';
|
|
12
15
|
var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize) {
|
|
@@ -116,10 +119,8 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
116
119
|
// Experiment one-pager: https://hello.atlassian.net/wiki/spaces/ETM/pages/3931754727/Experiment+Elements+Basic+Text+Transformations
|
|
117
120
|
selectionToolbar: function selectionToolbar(state, intl) {
|
|
118
121
|
var _api$featureFlags;
|
|
119
|
-
var
|
|
120
|
-
|
|
121
|
-
// basicTextTransformations is used to present AI enablement status to avoid adding editor props
|
|
122
|
-
(api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.basicTextTransformations) && $from.depth === 1;
|
|
122
|
+
var isEligible = // basicTextTransformations is used to present AI enablement status to avoid adding editor props
|
|
123
|
+
api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.basicTextTransformations;
|
|
123
124
|
if (!isEligible) {
|
|
124
125
|
return;
|
|
125
126
|
}
|
|
@@ -127,13 +128,29 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
127
128
|
exposure: true
|
|
128
129
|
})) {
|
|
129
130
|
var formatMessage = intl.formatMessage;
|
|
130
|
-
var _options = transformationOptions(api).map(function (option) {
|
|
131
|
+
var _options = transformationOptions(api, state.schema).map(function (option) {
|
|
132
|
+
var canWrap;
|
|
133
|
+
if (option.type.name === 'codeBlock') {
|
|
134
|
+
var _$from$node;
|
|
135
|
+
var $from = state.selection.$from;
|
|
136
|
+
var grandParentNodeType = (_$from$node = $from.node(-1)) === null || _$from$node === void 0 ? void 0 : _$from$node.type;
|
|
137
|
+
var parentNodeType = $from.parent.type;
|
|
138
|
+
canWrap = shouldSplitSelectedNodeOnNodeInsertion({
|
|
139
|
+
parentNodeType: parentNodeType,
|
|
140
|
+
grandParentNodeType: grandParentNodeType,
|
|
141
|
+
content: option.type.createAndFill()
|
|
142
|
+
}) && contentAllowedInCodeBlock(state);
|
|
143
|
+
} else {
|
|
144
|
+
canWrap = !!getWrappingOptions(state, option.type).wrapping;
|
|
145
|
+
}
|
|
131
146
|
var IconBefore = option.icon;
|
|
132
147
|
return {
|
|
133
148
|
title: formatMessage(option.title),
|
|
134
149
|
icon: /*#__PURE__*/React.createElement(IconBefore, {
|
|
135
|
-
label: ""
|
|
150
|
+
label: "",
|
|
151
|
+
disabled: !canWrap
|
|
136
152
|
}),
|
|
153
|
+
disabled: !canWrap,
|
|
137
154
|
onClick: function onClick(state, dispatch) {
|
|
138
155
|
var _option$command;
|
|
139
156
|
(_option$command = option.command) === null || _option$command === void 0 || _option$command.call(option, INPUT_METHOD.FLOATING_TB)(state, dispatch);
|
|
@@ -151,6 +168,18 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
151
168
|
rank: -9
|
|
152
169
|
};
|
|
153
170
|
}
|
|
171
|
+
},
|
|
172
|
+
// This is temporarily added for element level templates experiment.
|
|
173
|
+
// This is not the most ideal plugin to add this to, but it is suitable for experiment purpose
|
|
174
|
+
// If we decide to ship the feature, we will consider a separate plugin if needed.
|
|
175
|
+
// Experiment one-pager: https://hello.atlassian.net/wiki/spaces/ETM/pages/3983684902/Experiment+Drive+element+usage+via+element+templates
|
|
176
|
+
quickInsert: function quickInsert() {
|
|
177
|
+
if (editorExperiment('element-level-templates', true, {
|
|
178
|
+
exposure: true
|
|
179
|
+
})) {
|
|
180
|
+
return templateOptions;
|
|
181
|
+
}
|
|
182
|
+
return [];
|
|
154
183
|
}
|
|
155
184
|
},
|
|
156
185
|
usePluginHook: function usePluginHook() {
|
|
@@ -7,37 +7,23 @@ import React from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
10
|
-
import { expandIconWrapperStyle } from '@atlaskit/editor-common/styles';
|
|
11
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
12
11
|
import AddIcon from '@atlaskit/icon/core/migration/add--editor-add';
|
|
13
|
-
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
14
|
-
import { default as AddIconLegacy } from '@atlaskit/icon/glyph/editor/add';
|
|
15
12
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
16
|
-
import {
|
|
17
|
-
import { expandWrapperStyle, triggerWrapper } from './styles';
|
|
13
|
+
import { triggerWrapper } from './styles';
|
|
18
14
|
var DropDownButtonIcon = /*#__PURE__*/React.memo(function (props) {
|
|
19
15
|
return (
|
|
20
16
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
17
|
jsx("span", {
|
|
22
18
|
css: triggerWrapper
|
|
23
|
-
},
|
|
19
|
+
}, jsx(AddIcon, {
|
|
24
20
|
label: props.label,
|
|
25
|
-
color: "currentColor"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}), fg('platform_editor_migration_icon_and_typography') ?
|
|
29
|
-
//eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
30
|
-
jsx("span", {
|
|
31
|
-
css: expandWrapperStyle
|
|
32
|
-
}, jsx(ChevronDownIcon, {
|
|
21
|
+
color: "currentColor",
|
|
22
|
+
spacing: "spacious"
|
|
23
|
+
}), jsx("span", null, jsx(ChevronDownIcon, {
|
|
33
24
|
label: "",
|
|
34
|
-
color: "currentColor"
|
|
35
|
-
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
37
|
-
jsx("span", {
|
|
38
|
-
css: expandIconWrapperStyle
|
|
39
|
-
}, jsx(ExpandIcon, {
|
|
40
|
-
label: ""
|
|
25
|
+
color: "currentColor",
|
|
26
|
+
LEGACY_margin: "0 0 0 -8px"
|
|
41
27
|
})))
|
|
42
28
|
);
|
|
43
29
|
});
|
|
@@ -14,32 +14,19 @@ import CalendarIcon from '@atlaskit/icon/core/migration/calendar--editor-date';
|
|
|
14
14
|
import CheckboxCheckedIcon from '@atlaskit/icon/core/migration/checkbox-checked--editor-task';
|
|
15
15
|
import DecisionIcon from '@atlaskit/icon/core/migration/decision--editor-decision';
|
|
16
16
|
import EmojiIcon from '@atlaskit/icon/core/migration/emoji--editor-emoji';
|
|
17
|
+
import GridIcon from '@atlaskit/icon/core/migration/grid--editor-table';
|
|
17
18
|
import ImageIcon from '@atlaskit/icon/core/migration/image--editor-image';
|
|
18
19
|
import InformationIcon from '@atlaskit/icon/core/migration/information--editor-info';
|
|
19
20
|
import LinkIcon from '@atlaskit/icon/core/migration/link--editor-link';
|
|
20
21
|
import MentionIcon from '@atlaskit/icon/core/migration/mention--editor-mention';
|
|
21
22
|
import QuotationMarkIcon from '@atlaskit/icon/core/migration/quotation-mark--quote';
|
|
22
23
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
|
|
23
|
-
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
24
|
-
import ExpandNodeIcon from '@atlaskit/icon/glyph/chevron-right-circle';
|
|
25
|
-
import CodeIcon from '@atlaskit/icon/glyph/editor/code';
|
|
26
|
-
import DateIcon from '@atlaskit/icon/glyph/editor/date';
|
|
27
|
-
import { default as DecisionIconLegacy } from '@atlaskit/icon/glyph/editor/decision';
|
|
28
|
-
import { default as EmojiIconLegacy } from '@atlaskit/icon/glyph/editor/emoji';
|
|
29
24
|
import HorizontalRuleIcon from '@atlaskit/icon/glyph/editor/horizontal-rule';
|
|
30
|
-
import EditorImageIcon from '@atlaskit/icon/glyph/editor/image';
|
|
31
|
-
import InfoIcon from '@atlaskit/icon/glyph/editor/info';
|
|
32
25
|
import LayoutTwoEqualIcon from '@atlaskit/icon/glyph/editor/layout-two-equal';
|
|
33
|
-
import { default as LinkIconLegacy } from '@atlaskit/icon/glyph/editor/link';
|
|
34
|
-
import { default as MentionIconLegacy } from '@atlaskit/icon/glyph/editor/mention';
|
|
35
|
-
import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
36
|
-
import TableIcon from '@atlaskit/icon/glyph/editor/table';
|
|
37
|
-
import TaskIcon from '@atlaskit/icon/glyph/editor/task';
|
|
38
26
|
import PlaceholderTextIcon from '@atlaskit/icon/glyph/media-services/text';
|
|
39
|
-
import QuoteIcon from '@atlaskit/icon/glyph/quote';
|
|
40
27
|
import StatusIcon from '@atlaskit/icon/glyph/status';
|
|
41
28
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
42
|
-
import
|
|
29
|
+
import ExpandNodeIcon from '@atlaskit/icon/utility/migration/chevron-right--chevron-right-circle';
|
|
43
30
|
import { shallowEquals } from './shallow-equals';
|
|
44
31
|
var from = function from(init) {
|
|
45
32
|
return {
|
|
@@ -49,7 +36,9 @@ var from = function from(init) {
|
|
|
49
36
|
name: init.name
|
|
50
37
|
},
|
|
51
38
|
elemBefore: jsx(init.Icon, {
|
|
52
|
-
label: ""
|
|
39
|
+
label: "",
|
|
40
|
+
color: "currentColor",
|
|
41
|
+
spacing: "spacious"
|
|
53
42
|
}),
|
|
54
43
|
elemAfter: init.shortcut ?
|
|
55
44
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -73,7 +62,7 @@ export var action = mem(function (init) {
|
|
|
73
62
|
disabled: init.disabled,
|
|
74
63
|
name: 'action',
|
|
75
64
|
shortcut: '[]',
|
|
76
|
-
Icon:
|
|
65
|
+
Icon: CheckboxCheckedIcon,
|
|
77
66
|
'aria-keyshortcuts': '[ ] Space'
|
|
78
67
|
});
|
|
79
68
|
});
|
|
@@ -84,7 +73,7 @@ export var link = mem(function (init) {
|
|
|
84
73
|
disabled: init.disabled,
|
|
85
74
|
name: 'link',
|
|
86
75
|
shortcut: tooltip(addLink),
|
|
87
|
-
Icon:
|
|
76
|
+
Icon: LinkIcon,
|
|
88
77
|
'aria-haspopup': init['aria-haspopup'],
|
|
89
78
|
'aria-keyshortcuts': getAriaKeyshortcuts(addLink)
|
|
90
79
|
});
|
|
@@ -95,7 +84,7 @@ export var media = mem(function (init) {
|
|
|
95
84
|
tooltipDescription: init.tooltipDescription,
|
|
96
85
|
disabled: init.disabled,
|
|
97
86
|
name: 'media',
|
|
98
|
-
Icon:
|
|
87
|
+
Icon: ImageIcon
|
|
99
88
|
});
|
|
100
89
|
});
|
|
101
90
|
export var imageUpload = mem(function (init) {
|
|
@@ -104,7 +93,7 @@ export var imageUpload = mem(function (init) {
|
|
|
104
93
|
tooltipDescription: init.tooltipDescription,
|
|
105
94
|
disabled: init.disabled,
|
|
106
95
|
name: 'image upload',
|
|
107
|
-
Icon:
|
|
96
|
+
Icon: ImageIcon
|
|
108
97
|
});
|
|
109
98
|
});
|
|
110
99
|
export var mention = mem(function (init) {
|
|
@@ -113,7 +102,7 @@ export var mention = mem(function (init) {
|
|
|
113
102
|
tooltipDescription: init.tooltipDescription,
|
|
114
103
|
disabled: init.disabled,
|
|
115
104
|
name: 'mention',
|
|
116
|
-
Icon:
|
|
105
|
+
Icon: MentionIcon,
|
|
117
106
|
shortcut: '@',
|
|
118
107
|
'aria-haspopup': init['aria-haspopup'],
|
|
119
108
|
'aria-keyshortcuts': 'Shift+2 Space'
|
|
@@ -125,7 +114,7 @@ export var emoji = mem(function (init) {
|
|
|
125
114
|
tooltipDescription: init.tooltipDescription,
|
|
126
115
|
disabled: init.disabled,
|
|
127
116
|
name: 'emoji',
|
|
128
|
-
Icon:
|
|
117
|
+
Icon: EmojiIcon,
|
|
129
118
|
shortcut: ':',
|
|
130
119
|
'aria-haspopup': init['aria-haspopup'],
|
|
131
120
|
'aria-keyshortcuts': 'Shift+;'
|
|
@@ -137,7 +126,7 @@ export var table = mem(function (init) {
|
|
|
137
126
|
tooltipDescription: init.tooltipDescription,
|
|
138
127
|
disabled: init.disabled,
|
|
139
128
|
name: 'table',
|
|
140
|
-
Icon:
|
|
129
|
+
Icon: GridIcon,
|
|
141
130
|
shortcut: tooltip(toggleTable),
|
|
142
131
|
'aria-keyshortcuts': getAriaKeyshortcuts(toggleTable)
|
|
143
132
|
});
|
|
@@ -148,12 +137,12 @@ export var tableSelector = mem(function (init) {
|
|
|
148
137
|
tooltipDescription: init.tooltipDescription,
|
|
149
138
|
disabled: init.disabled,
|
|
150
139
|
name: 'table selector',
|
|
151
|
-
Icon:
|
|
140
|
+
Icon: function Icon() {
|
|
152
141
|
return jsx(ChevronDownIcon, {
|
|
153
142
|
label: "",
|
|
154
143
|
color: "currentColor"
|
|
155
144
|
});
|
|
156
|
-
}
|
|
145
|
+
}
|
|
157
146
|
});
|
|
158
147
|
});
|
|
159
148
|
export var layout = mem(function (init) {
|
|
@@ -171,7 +160,7 @@ export var codeblock = mem(function (init) {
|
|
|
171
160
|
tooltipDescription: init.tooltipDescription,
|
|
172
161
|
disabled: init.disabled,
|
|
173
162
|
name: 'codeblock',
|
|
174
|
-
Icon:
|
|
163
|
+
Icon: AngleBracketsIcon,
|
|
175
164
|
shortcut: init.shortcut,
|
|
176
165
|
'aria-keyshortcuts': getAriaKeyshortcuts(init.shortcut)
|
|
177
166
|
});
|
|
@@ -182,7 +171,7 @@ export var panel = mem(function (init) {
|
|
|
182
171
|
tooltipDescription: init.tooltipDescription,
|
|
183
172
|
disabled: init.disabled,
|
|
184
173
|
name: 'panel',
|
|
185
|
-
Icon:
|
|
174
|
+
Icon: InformationIcon,
|
|
186
175
|
shortcut: init.shortcut,
|
|
187
176
|
'aria-keyshortcuts': getAriaKeyshortcuts(init.shortcut)
|
|
188
177
|
});
|
|
@@ -193,7 +182,7 @@ export var blockquote = mem(function (init) {
|
|
|
193
182
|
tooltipDescription: init.tooltipDescription,
|
|
194
183
|
disabled: init.disabled,
|
|
195
184
|
name: 'blockquote',
|
|
196
|
-
Icon:
|
|
185
|
+
Icon: QuotationMarkIcon,
|
|
197
186
|
shortcut: init.shortcut,
|
|
198
187
|
'aria-keyshortcuts': 'Shift+. Space'
|
|
199
188
|
});
|
|
@@ -204,7 +193,7 @@ export var decision = mem(function (init) {
|
|
|
204
193
|
tooltipDescription: init.tooltipDescription,
|
|
205
194
|
disabled: init.disabled,
|
|
206
195
|
name: 'decision',
|
|
207
|
-
Icon:
|
|
196
|
+
Icon: DecisionIcon,
|
|
208
197
|
shortcut: '<>',
|
|
209
198
|
'aria-keyshortcuts': 'Shift+, Shift+. Space'
|
|
210
199
|
});
|
|
@@ -235,7 +224,7 @@ export var date = mem(function (init) {
|
|
|
235
224
|
tooltipDescription: init.tooltipDescription,
|
|
236
225
|
disabled: init.disabled,
|
|
237
226
|
name: 'date',
|
|
238
|
-
Icon:
|
|
227
|
+
Icon: CalendarIcon,
|
|
239
228
|
shortcut: '//',
|
|
240
229
|
'aria-keyshortcuts': '/ / Enter'
|
|
241
230
|
});
|
|
@@ -269,11 +258,9 @@ export var more = mem(function (init) {
|
|
|
269
258
|
disabled: init.disabled,
|
|
270
259
|
name: 'macro',
|
|
271
260
|
Icon: function Icon() {
|
|
272
|
-
return
|
|
261
|
+
return jsx(ShowMoreHorizontalIcon, {
|
|
273
262
|
label: "",
|
|
274
263
|
color: "currentColor"
|
|
275
|
-
}) : jsx(EditorMoreIcon, {
|
|
276
|
-
label: ""
|
|
277
264
|
});
|
|
278
265
|
}
|
|
279
266
|
});
|