@atlaskit/editor-plugin-insert-block 3.0.13 → 3.1.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/insertBlockPlugin.js +3 -21
  3. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -15
  4. package/dist/cjs/ui/ToolbarInsertBlock/index.js +1 -1
  5. package/dist/es2019/insertBlockPlugin.js +3 -23
  6. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +3 -15
  7. package/dist/es2019/ui/ToolbarInsertBlock/index.js +1 -1
  8. package/dist/esm/insertBlockPlugin.js +3 -21
  9. package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -15
  10. package/dist/esm/ui/ToolbarInsertBlock/index.js +1 -1
  11. package/package.json +10 -7
  12. package/dist/cjs/ui/assets/action-list.js +0 -79
  13. package/dist/cjs/ui/assets/approvals-tracker.js +0 -66
  14. package/dist/cjs/ui/assets/decision-matrix.js +0 -82
  15. package/dist/cjs/ui/assets/discussion-notes.js +0 -82
  16. package/dist/cjs/ui/assets/instructions-outline.js +0 -73
  17. package/dist/cjs/ui/assets/use-icon-themed.js +0 -19
  18. package/dist/cjs/ui/templateOptions.js +0 -141
  19. package/dist/cjs/ui/templates.js +0 -1130
  20. package/dist/es2019/ui/assets/action-list.js +0 -73
  21. package/dist/es2019/ui/assets/approvals-tracker.js +0 -60
  22. package/dist/es2019/ui/assets/decision-matrix.js +0 -76
  23. package/dist/es2019/ui/assets/discussion-notes.js +0 -76
  24. package/dist/es2019/ui/assets/instructions-outline.js +0 -67
  25. package/dist/es2019/ui/assets/use-icon-themed.js +0 -15
  26. package/dist/es2019/ui/templateOptions.js +0 -120
  27. package/dist/es2019/ui/templates.js +0 -1118
  28. package/dist/esm/ui/assets/action-list.js +0 -72
  29. package/dist/esm/ui/assets/approvals-tracker.js +0 -59
  30. package/dist/esm/ui/assets/decision-matrix.js +0 -75
  31. package/dist/esm/ui/assets/discussion-notes.js +0 -75
  32. package/dist/esm/ui/assets/instructions-outline.js +0 -66
  33. package/dist/esm/ui/assets/use-icon-themed.js +0 -14
  34. package/dist/esm/ui/templateOptions.js +0 -134
  35. package/dist/esm/ui/templates.js +0 -1124
  36. package/dist/types/ui/assets/action-list.d.ts +0 -2
  37. package/dist/types/ui/assets/approvals-tracker.d.ts +0 -2
  38. package/dist/types/ui/assets/decision-matrix.d.ts +0 -2
  39. package/dist/types/ui/assets/discussion-notes.d.ts +0 -2
  40. package/dist/types/ui/assets/instructions-outline.d.ts +0 -2
  41. package/dist/types/ui/assets/use-icon-themed.d.ts +0 -6
  42. package/dist/types/ui/templateOptions.d.ts +0 -4
  43. package/dist/types/ui/templates.d.ts +0 -522
  44. package/dist/types-ts4.5/ui/assets/action-list.d.ts +0 -2
  45. package/dist/types-ts4.5/ui/assets/approvals-tracker.d.ts +0 -2
  46. package/dist/types-ts4.5/ui/assets/decision-matrix.d.ts +0 -2
  47. package/dist/types-ts4.5/ui/assets/discussion-notes.d.ts +0 -2
  48. package/dist/types-ts4.5/ui/assets/instructions-outline.d.ts +0 -2
  49. package/dist/types-ts4.5/ui/assets/use-icon-themed.d.ts +0 -6
  50. package/dist/types-ts4.5/ui/templateOptions.d.ts +0 -4
  51. package/dist/types-ts4.5/ui/templates.d.ts +0 -522
@@ -1,73 +0,0 @@
1
- import React from 'react';
2
- import { useIconThemed } from './use-icon-themed';
3
- export default function ActionListIcon() {
4
- const {
5
- iconThemed
6
- } = useIconThemed();
7
- return /*#__PURE__*/React.createElement("svg", {
8
- width: "40",
9
- height: "41",
10
- viewBox: "0 0 40 41",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, /*#__PURE__*/React.createElement("rect", {
14
- width: "40",
15
- height: "40",
16
- transform: "translate(0 0.259766)",
17
- fill: iconThemed({
18
- light: '#FFF',
19
- dark: '#161A1D'
20
- })
21
- }), /*#__PURE__*/React.createElement("rect", {
22
- x: "0.5",
23
- y: "0.759766",
24
- width: "39",
25
- height: "39",
26
- rx: "2.5",
27
- stroke: "var(--ds-border, #091E42)",
28
- strokeOpacity: "0.14"
29
- }), /*#__PURE__*/React.createElement("rect", {
30
- x: "6",
31
- y: "6.25973",
32
- width: "8",
33
- height: "8",
34
- rx: "2",
35
- fill: "var(--ds-background-selected-bold, #0052cc)"
36
- }), /*#__PURE__*/React.createElement("path", {
37
- fillRule: "evenodd",
38
- clipRule: "evenodd",
39
- d: "M9.04781 12.1515C9.23925 12.3585 9.5745 12.3366 9.7422 12.1099L12.2311 8.74617C12.3921 8.52857 12.3594 8.21106 12.1582 8.03698C11.9569 7.8629 11.6633 7.89818 11.5023 8.11578L9.33981 11.0401L8.46333 10.0924C8.28109 9.8954 7.98561 9.8954 7.80337 10.0924C7.62113 10.2895 7.62113 10.609 7.80337 10.806L9.04781 12.1515Z",
40
- fill: "var(--ds-icon-inverse, #FFFFFF)"
41
- }), /*#__PURE__*/React.createElement("path", {
42
- d: "M17 10.2597C17 9.70744 17.4477 9.25973 18 9.25973H33C33.5523 9.25973 34 9.70744 34 10.2597C34 10.812 33.5523 11.2597 33 11.2597H18C17.4477 11.2597 17 10.812 17 10.2597Z",
43
- fill: "var(--ds-background-accent-gray-subtler, #DCDFE4)"
44
- }), /*#__PURE__*/React.createElement("rect", {
45
- x: "6",
46
- y: "16.2597",
47
- width: "8",
48
- height: "8",
49
- rx: "2",
50
- fill: "var(--ds-background-selected-bold, #0052cc)"
51
- }), /*#__PURE__*/React.createElement("path", {
52
- fillRule: "evenodd",
53
- clipRule: "evenodd",
54
- d: "M9.04781 22.1515C9.23925 22.3585 9.5745 22.3366 9.7422 22.1099L12.2311 18.7462C12.3921 18.5286 12.3594 18.2111 12.1582 18.037C11.9569 17.8629 11.6633 17.8982 11.5023 18.1158L9.33981 21.0401L8.46333 20.0924C8.28109 19.8954 7.98561 19.8954 7.80337 20.0924C7.62113 20.2895 7.62113 20.609 7.80337 20.806L9.04781 22.1515Z",
55
- fill: "var(--ds-icon-inverse, #FFFFFF)"
56
- }), /*#__PURE__*/React.createElement("path", {
57
- d: "M17 20.2597C17 19.7074 17.4477 19.2597 18 19.2597H33C33.5523 19.2597 34 19.7074 34 20.2597C34 20.812 33.5523 21.2597 33 21.2597H18C17.4477 21.2597 17 20.812 17 20.2597Z",
58
- fill: "var(--ds-background-accent-gray-subtler, #DCDFE4)"
59
- }), /*#__PURE__*/React.createElement("rect", {
60
- x: "6",
61
- y: "26.2597",
62
- width: "8",
63
- height: "8",
64
- rx: "2",
65
- fill: iconThemed({
66
- light: '#ECEDF0',
67
- dark: '#454F59'
68
- })
69
- }), /*#__PURE__*/React.createElement("path", {
70
- d: "M17 30.2597C17 29.7074 17.4477 29.2597 18 29.2597H33C33.5523 29.2597 34 29.7074 34 30.2597C34 30.812 33.5523 31.2597 33 31.2597H18C17.4477 31.2597 17 30.812 17 30.2597Z",
71
- fill: "var(--ds-background-accent-gray-subtler, #DCDFE4)"
72
- }));
73
- }
@@ -1,60 +0,0 @@
1
- import React from 'react';
2
- import { useIconThemed } from './use-icon-themed';
3
- export default function ApprovalsTrackerIcon() {
4
- const {
5
- iconThemed
6
- } = useIconThemed();
7
- return /*#__PURE__*/React.createElement("svg", {
8
- width: "40",
9
- height: "41",
10
- viewBox: "0 0 40 41",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, /*#__PURE__*/React.createElement("g", {
14
- clipPath: "url(#clip0_138_1349)"
15
- }, /*#__PURE__*/React.createElement("rect", {
16
- x: "0.5",
17
- y: "0.759766",
18
- width: "39",
19
- height: "39",
20
- rx: "2.5",
21
- stroke: "var(--ds-border, #091E42)",
22
- strokeOpacity: "0.14"
23
- }), /*#__PURE__*/React.createElement("rect", {
24
- width: "40",
25
- height: "40",
26
- fill: iconThemed({
27
- light: '#FFF',
28
- dark: '#161A1D'
29
- })
30
- }), /*#__PURE__*/React.createElement("path", {
31
- d: "M9.25805 12.3098C9.22075 12.2714 9.17611 12.2409 9.12679 12.22C9.07747 12.1992 9.02447 12.1884 8.97092 12.1884C8.91738 12.1884 8.86437 12.1992 8.81505 12.22C8.76573 12.2409 8.7211 12.2714 8.68379 12.3098L8.12 12.8744C8.08219 12.9118 8.05213 12.9562 8.03154 13.0052C8.01094 13.0542 8.00023 13.1067 8 13.1599C7.99978 13.213 8.01005 13.2656 8.03023 13.3148C8.0504 13.3639 8.08009 13.4086 8.11758 13.4463L11.1025 16.432C11.1777 16.5071 11.2796 16.5495 11.3859 16.55C11.4922 16.5504 11.5944 16.5089 11.6703 16.4344L17.8817 10.223C17.9196 10.1857 17.9496 10.1411 17.9699 10.0919C17.9902 10.0428 18.0004 9.99004 18 9.93685C17.9995 9.88366 17.9884 9.83111 17.9673 9.7823C17.9461 9.7335 17.9154 9.68945 17.8768 9.65275L17.3131 9.08896C17.2753 9.05112 17.2305 9.02109 17.1812 9.0006C17.1318 8.98011 17.0789 8.96957 17.0255 8.96957C16.9721 8.96957 16.9192 8.98011 16.8699 9.0006C16.8205 9.02109 16.7757 9.05112 16.738 9.08896L11.6751 14.1518C11.5988 14.2276 11.4956 14.2702 11.388 14.2702C11.2804 14.2702 11.1772 14.2276 11.1009 14.1518L9.25805 12.3098Z",
32
- fill: "var(--ds-icon-subtle, #626F86)"
33
- }), /*#__PURE__*/React.createElement("path", {
34
- d: "M21 12.7598C21 9.44606 23.6863 6.75977 27 6.75977H39V18.7598H27C23.6863 18.7598 21 16.0735 21 12.7598Z",
35
- fill: "var(--ds-background-accent-gray-subtlest, #F1F2F4)"
36
- }), /*#__PURE__*/React.createElement("path", {
37
- fillRule: "evenodd",
38
- clipRule: "evenodd",
39
- d: "M31.0354 13.8626C30.5189 13.8626 30.2063 13.4432 30.2063 12.7512C30.2063 12.0506 30.5137 11.6358 31.044 11.6358C31.5743 11.6358 31.8566 12.0723 31.8566 12.7598C31.8566 13.4426 31.5697 13.8626 31.0349 13.8626H31.0354ZM31 8.75977C28.7571 8.75977 27 10.5169 27 12.7598C27 15.3861 29.0126 16.7598 31 16.7598C31.4994 16.7598 31.9223 16.7083 32.2914 16.6003C32.3953 16.5641 32.4813 16.4894 32.5317 16.3917C32.582 16.2939 32.5929 16.1805 32.5622 16.0749C32.5314 15.9694 32.4612 15.8796 32.3662 15.8243C32.2711 15.7689 32.1585 15.7522 32.0514 15.7775C31.7611 15.8615 31.4171 15.9032 31 15.9032C29.4869 15.9032 27.8571 14.9192 27.8571 12.7603C27.8571 10.9975 29.2383 9.61748 31 9.61748C32.8514 9.61748 34.1429 10.7329 34.1429 12.3318C34.1429 13.5003 33.5469 14.0461 33.144 14.0461C33.1394 14.0461 32.7143 13.9832 32.7143 13.6175V11.3318C32.7143 11.2181 32.6691 11.1091 32.5888 11.0287C32.5084 10.9483 32.3994 10.9032 32.2857 10.9032C32.1721 10.9032 32.063 10.9483 31.9827 11.0287C31.9023 11.1091 31.8571 11.2181 31.8571 11.3318V11.4386C31.6594 11.1043 31.2766 10.8946 30.8314 10.8946C29.9154 10.8946 29.2857 11.6398 29.2857 12.7243C29.2857 13.8581 29.916 14.6169 30.8589 14.6169C31.3531 14.6169 31.7217 14.3958 31.9246 14.0021C32.1154 14.5826 32.7074 14.9026 33.1429 14.9026C34.056 14.9026 35 13.9409 35 12.3312C35 10.2615 33.3189 8.75977 31 8.75977Z",
40
- fill: "var(--ds-background-accent-gray-subtler-pressed, #8590A2)"
41
- }), /*#__PURE__*/React.createElement("path", {
42
- d: "M9.25805 27.3098C9.22075 27.2714 9.17611 27.2409 9.12679 27.22C9.07747 27.1992 9.02447 27.1884 8.97092 27.1884C8.91738 27.1884 8.86437 27.1992 8.81505 27.22C8.76573 27.2409 8.7211 27.2714 8.68379 27.3098L8.12 27.8744C8.08219 27.9118 8.05213 27.9562 8.03154 28.0052C8.01094 28.0542 8.00023 28.1067 8 28.1599C7.99978 28.213 8.01005 28.2656 8.03023 28.3148C8.0504 28.3639 8.08009 28.4086 8.11758 28.4463L11.1025 31.432C11.1777 31.5071 11.2796 31.5495 11.3859 31.55C11.4922 31.5504 11.5944 31.5089 11.6703 31.4344L17.8817 25.223C17.9196 25.1857 17.9496 25.1411 17.9699 25.0919C17.9902 25.0428 18.0004 24.99 18 24.9368C17.9995 24.8837 17.9884 24.8311 17.9673 24.7823C17.9461 24.7335 17.9154 24.6894 17.8768 24.6528L17.3131 24.089C17.2753 24.0511 17.2305 24.0211 17.1812 24.0006C17.1318 23.9801 17.0789 23.9696 17.0255 23.9696C16.9721 23.9696 16.9192 23.9801 16.8699 24.0006C16.8205 24.0211 16.7757 24.0511 16.738 24.089L11.6751 29.1518C11.5988 29.2276 11.4956 29.2702 11.388 29.2702C11.2804 29.2702 11.1772 29.2276 11.1009 29.1518L9.25805 27.3098Z",
43
- fill: "var(--ds-icon-subtle, #626F86)"
44
- }), /*#__PURE__*/React.createElement("path", {
45
- d: "M21 27.7598C21 24.4461 23.6863 21.7598 27 21.7598H39V33.7598H27C23.6863 33.7598 21 31.0735 21 27.7598Z",
46
- fill: "var(--ds-background-accent-gray-subtlest, #F1F2F4)"
47
- }), /*#__PURE__*/React.createElement("path", {
48
- fillRule: "evenodd",
49
- clipRule: "evenodd",
50
- d: "M31.0354 28.8626C30.5189 28.8626 30.2063 28.4432 30.2063 27.7512C30.2063 27.0506 30.5137 26.6358 31.044 26.6358C31.5743 26.6358 31.8566 27.0723 31.8566 27.7598C31.8566 28.4426 31.5697 28.8626 31.0349 28.8626H31.0354ZM31 23.7598C28.7571 23.7598 27 25.5169 27 27.7598C27 30.3861 29.0126 31.7598 31 31.7598C31.4994 31.7598 31.9223 31.7083 32.2914 31.6003C32.3953 31.5641 32.4813 31.4894 32.5317 31.3917C32.582 31.2939 32.5929 31.1805 32.5622 31.0749C32.5314 30.9694 32.4612 30.8796 32.3662 30.8243C32.2711 30.7689 32.1585 30.7522 32.0514 30.7775C31.7611 30.8615 31.4171 30.9032 31 30.9032C29.4869 30.9032 27.8571 29.9192 27.8571 27.7603C27.8571 25.9975 29.2383 24.6175 31 24.6175C32.8514 24.6175 34.1429 25.7329 34.1429 27.3318C34.1429 28.5003 33.5469 29.0461 33.144 29.0461C33.1394 29.0461 32.7143 28.9832 32.7143 28.6175V26.3318C32.7143 26.2181 32.6691 26.1091 32.5888 26.0287C32.5084 25.9483 32.3994 25.9032 32.2857 25.9032C32.1721 25.9032 32.063 25.9483 31.9827 26.0287C31.9023 26.1091 31.8571 26.2181 31.8571 26.3318V26.4386C31.6594 26.1043 31.2766 25.8946 30.8314 25.8946C29.9154 25.8946 29.2857 26.6398 29.2857 27.7243C29.2857 28.8581 29.916 29.6169 30.8589 29.6169C31.3531 29.6169 31.7217 29.3958 31.9246 29.0021C32.1154 29.5826 32.7074 29.9026 33.1429 29.9026C34.056 29.9026 35 28.9409 35 27.3312C35 25.2615 33.3189 23.7598 31 23.7598Z",
51
- fill: "var(--ds-background-accent-gray-subtler-pressed, #8590A2)"
52
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
53
- id: "clip0_138_1349"
54
- }, /*#__PURE__*/React.createElement("rect", {
55
- width: "40",
56
- height: "40",
57
- fill: "var(--ds-icon-inverse, #FFFFFF)",
58
- transform: "translate(0 0.259766)"
59
- }))));
60
- }
@@ -1,76 +0,0 @@
1
- import React from 'react';
2
- import { useIconThemed } from './use-icon-themed';
3
- export default function DecisionMatrixIcon() {
4
- const {
5
- iconThemed
6
- } = useIconThemed();
7
- return /*#__PURE__*/React.createElement("svg", {
8
- width: "40",
9
- height: "41",
10
- viewBox: "0 0 40 41",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, /*#__PURE__*/React.createElement("g", {
14
- clipPath: "url(#clip0_138_1296)"
15
- }, /*#__PURE__*/React.createElement("rect", {
16
- x: "0.5",
17
- y: "0.759766",
18
- width: "39",
19
- height: "39",
20
- rx: "2.5",
21
- stroke: "var(--ds-border, #091E42)",
22
- strokeOpacity: "0.14"
23
- }), /*#__PURE__*/React.createElement("rect", {
24
- width: "40",
25
- height: "40",
26
- fill: iconThemed({
27
- light: '#FFF',
28
- dark: '#161A1D'
29
- })
30
- }), /*#__PURE__*/React.createElement("path", {
31
- fillRule: "evenodd",
32
- clipRule: "evenodd",
33
- 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",
34
- fill: "var(--ds-background-accent-green-subtle, #4BCE97)"
35
- }), /*#__PURE__*/React.createElement("rect", {
36
- x: "6",
37
- y: "26.2598",
38
- width: "12",
39
- height: "1",
40
- rx: "0.5",
41
- fill: "var(--ds-text-disabled, #A5ADBA)"
42
- }), /*#__PURE__*/React.createElement("rect", {
43
- x: "6",
44
- y: "29.2598",
45
- width: "12",
46
- height: "1",
47
- rx: "0.5",
48
- fill: "var(--ds-text-disabled, #A5ADBA)"
49
- }), /*#__PURE__*/React.createElement("path", {
50
- fillRule: "evenodd",
51
- clipRule: "evenodd",
52
- 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",
53
- fill: "var(--ds-background-accent-red-subtler-pressed, #F87168)"
54
- }), /*#__PURE__*/React.createElement("rect", {
55
- x: "22",
56
- y: "26.2598",
57
- width: "12",
58
- height: "1",
59
- rx: "0.5",
60
- fill: "var(--ds-text-disabled, #A5ADBA)"
61
- }), /*#__PURE__*/React.createElement("rect", {
62
- x: "22",
63
- y: "29.2598",
64
- width: "12",
65
- height: "1",
66
- rx: "0.5",
67
- fill: "var(--ds-text-disabled, #A5ADBA)"
68
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
69
- id: "clip0_138_1296"
70
- }, /*#__PURE__*/React.createElement("rect", {
71
- width: "40",
72
- height: "40",
73
- fill: "var(--ds-icon-inverse, #FFFFFF)",
74
- transform: "translate(0 0.259766)"
75
- }))));
76
- }
@@ -1,76 +0,0 @@
1
- import React from 'react';
2
- import { useIconThemed } from './use-icon-themed';
3
- export default function DiscussionNotesIcon() {
4
- const {
5
- iconThemed
6
- } = useIconThemed();
7
- return /*#__PURE__*/React.createElement("svg", {
8
- width: "40",
9
- height: "41",
10
- viewBox: "0 0 40 41",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, /*#__PURE__*/React.createElement("g", {
14
- clipPath: "url(#clip0_138_1334)"
15
- }, /*#__PURE__*/React.createElement("rect", {
16
- y: "0.259766",
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
- y: "0.259766",
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.759766",
36
- width: "39",
37
- height: "39",
38
- rx: "2.5",
39
- stroke: "var(--ds-border, #091E4224)",
40
- strokeOpacity: "0.14"
41
- })), /*#__PURE__*/React.createElement("path", {
42
- fillRule: "evenodd",
43
- clipRule: "evenodd",
44
- 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",
45
- fill: "var(--ds-background-accent-purple-bolder, #6E5DC6)"
46
- }), /*#__PURE__*/React.createElement("rect", {
47
- x: "6",
48
- y: "22.2598",
49
- width: "28",
50
- height: "1",
51
- rx: "0.5",
52
- fill: "var(--ds-text-disabled, #A5ADBA)"
53
- }), /*#__PURE__*/React.createElement("rect", {
54
- x: "6",
55
- y: "25.2598",
56
- width: "28",
57
- height: "1",
58
- rx: "0.5",
59
- fill: "var(--ds-text-disabled, #A5ADBA)"
60
- }), /*#__PURE__*/React.createElement("rect", {
61
- x: "6",
62
- y: "28.2598",
63
- width: "14",
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_1334"
69
- }, /*#__PURE__*/React.createElement("rect", {
70
- y: "0.259766",
71
- width: "40",
72
- height: "40",
73
- rx: "3",
74
- fill: "var(--ds-surface, #FFFFFF)"
75
- }))));
76
- }
@@ -1,67 +0,0 @@
1
- import React from 'react';
2
- import { useIconThemed } from './use-icon-themed';
3
- export default function InstructionsOutlineIcon() {
4
- const {
5
- iconThemed
6
- } = useIconThemed();
7
- return /*#__PURE__*/React.createElement("svg", {
8
- width: "40",
9
- height: "41",
10
- viewBox: "0 0 40 41",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, /*#__PURE__*/React.createElement("g", {
14
- clipPath: "url(#clip0_138_1254)"
15
- }, /*#__PURE__*/React.createElement("rect", {
16
- y: "0.259766",
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
- x: "0.5",
26
- y: "0.759766",
27
- width: "39",
28
- height: "39",
29
- rx: "2.5",
30
- stroke: "var(--ds-border, #091E42)",
31
- strokeOpacity: "0.14"
32
- })), /*#__PURE__*/React.createElement("path", {
33
- fillRule: "evenodd",
34
- clipRule: "evenodd",
35
- 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",
36
- fill: "#4D8CED"
37
- }), /*#__PURE__*/React.createElement("rect", {
38
- x: "6",
39
- y: "22.2598",
40
- width: "28",
41
- height: "1",
42
- rx: "0.5",
43
- fill: "var(--ds-text-disabled, #A5ADBA)"
44
- }), /*#__PURE__*/React.createElement("rect", {
45
- x: "6",
46
- y: "25.2598",
47
- width: "28",
48
- height: "1",
49
- rx: "0.5",
50
- fill: "var(--ds-text-disabled, #A5ADBA)"
51
- }), /*#__PURE__*/React.createElement("rect", {
52
- x: "6",
53
- y: "28.2598",
54
- width: "14",
55
- height: "1",
56
- rx: "0.5",
57
- fill: "var(--ds-text-disabled, #A5ADBA)"
58
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
59
- id: "clip0_138_1254"
60
- }, /*#__PURE__*/React.createElement("rect", {
61
- y: "0.259766",
62
- width: "40",
63
- height: "40",
64
- rx: "3",
65
- fill: "var(--ds-surface, #FFFFFF)"
66
- }))));
67
- }
@@ -1,15 +0,0 @@
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 const useIconThemed = () => {
7
- const {
8
- colorMode
9
- } = useThemeObserver();
10
- return {
11
- iconThemed: colors => {
12
- return colorMode && colorMode === 'dark' ? colors['dark'] : colors['light'];
13
- }
14
- };
15
- };
@@ -1,120 +0,0 @@
1
- import React from 'react';
2
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
- import ActionListIcon from './assets/action-list';
5
- import ApprovalsTrackerIcon from './assets/approvals-tracker';
6
- import DecisionMatrixIcon from './assets/decision-matrix';
7
- import DiscussionNotesIcon from './assets/discussion-notes';
8
- import InstructionsOutlineIcon from './assets/instructions-outline';
9
- import { actionList, approvalsTracker, decisionMatrix, discussionNotes, instructionsOutline } from './templates';
10
- const getTemplateInsertionPayload = (templateType, source) => ({
11
- action: ACTION.INSERTED,
12
- actionSubject: ACTION_SUBJECT.DOCUMENT,
13
- actionSubjectId: 'elementTemplate',
14
- attributes: {
15
- inputMethod: source !== null && source !== void 0 ? source : INPUT_METHOD.QUICK_INSERT,
16
- templateType
17
- },
18
- eventType: EVENT_TYPE.TRACK
19
- });
20
- const getTableWidth = api => {
21
- var _api$table, _api$table$sharedStat;
22
- return api !== null && api !== void 0 && (_api$table = api.table) !== null && _api$table !== void 0 && (_api$table$sharedStat = _api$table.sharedState.currentState()) !== null && _api$table$sharedStat !== void 0 && _api$table$sharedStat.isFullWidthModeEnabled ? 1800 : 760;
23
- };
24
- export const templateOptions = api => [{
25
- title: 'Discussion notes',
26
- // @ts-ignore
27
- id: 'discussionNotes',
28
- description: 'Record discussion points and action items',
29
- keywords: ['decisions', 'summary', 'meeting', 'chat', 'debrief', 'track', 'keep track', 'tasks', 'outstanding items', 'owners'],
30
- // Place templates right after AI item
31
- priority: 99,
32
- icon: () => /*#__PURE__*/React.createElement(DiscussionNotesIcon, null),
33
- action: (insert, state, source) => {
34
- var _api$analytics;
35
- const tr = insert(Fragment.fromJSON(state.schema, discussionNotes(getTableWidth(api))), {
36
- // @ts-ignore
37
- isTemplate: true
38
- });
39
- api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions.attachAnalyticsEvent(
40
- // @ts-ignore
41
- getTemplateInsertionPayload('discussionNotes', source))(tr);
42
- return tr;
43
- }
44
- }, {
45
- title: 'Approvals tracker',
46
- // @ts-ignore
47
- id: 'approvalsTracker',
48
- description: 'Track reviewer approvals and dates',
49
- keywords: ['reviews', 'requests', 'rejected requests', 'review dates', 'timeline', 'checklist', 'sme timeline', 'sme requests', 'sme check', 'table'],
50
- priority: 99,
51
- icon: () => /*#__PURE__*/React.createElement(ApprovalsTrackerIcon, null),
52
- action: (insert, state, source) => {
53
- var _api$analytics2;
54
- const tr = insert(Fragment.fromJSON(state.schema, approvalsTracker(getTableWidth(api))), {
55
- // @ts-ignore
56
- isTemplate: true
57
- });
58
- api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions.attachAnalyticsEvent(
59
- // @ts-ignore
60
- getTemplateInsertionPayload('approvalsTracker', source))(tr);
61
- return tr;
62
- }
63
- }, {
64
- title: 'Decision matrix',
65
- // @ts-ignore
66
- id: 'decisionMatrix',
67
- description: 'Compare options and make recommendations',
68
- keywords: ['pros', 'cons', 'recommended', 'rationale', 'evaluation', 'options', 'choice', 'table'],
69
- priority: 99,
70
- icon: () => /*#__PURE__*/React.createElement(DecisionMatrixIcon, null),
71
- action: (insert, state, source) => {
72
- var _api$analytics3;
73
- const tr = insert(Fragment.fromJSON(state.schema, decisionMatrix(getTableWidth(api))), {
74
- // @ts-ignore
75
- isTemplate: true
76
- });
77
- api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions.attachAnalyticsEvent(
78
- // @ts-ignore
79
- getTemplateInsertionPayload('decisionMatrix', source))(tr);
80
- return tr;
81
- }
82
- }, {
83
- title: 'List of actions',
84
- // @ts-ignore
85
- id: 'actionList',
86
- description: 'Track tasks, assignees and deadlines',
87
- keywords: ['checklist', 'check', 'items', 'shopping list', 'jtbd', 'jobs to be done', 'due date', 'progress', 'task', 'tasks', 'prioritization', 'timeline', 'approvals', 'reviewers', 'review date'],
88
- priority: 99,
89
- icon: () => /*#__PURE__*/React.createElement(ActionListIcon, null),
90
- action: (insert, state, source) => {
91
- var _api$analytics4;
92
- // @ts-ignore
93
- const tr = insert(Fragment.fromJSON(state.schema, actionList), {
94
- isTemplate: true
95
- });
96
- api === null || api === void 0 ? void 0 : (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions.attachAnalyticsEvent(
97
- // @ts-ignore
98
- getTemplateInsertionPayload('actionList', source))(tr);
99
- return tr;
100
- }
101
- }, {
102
- title: 'Instructions outline',
103
- // @ts-ignore
104
- id: 'instructionsOutline',
105
- description: 'Detailed steps for any process',
106
- keywords: ['steps', 'manual', 'tasks', 'jobs to be done', 'jtbd', 'how-to', 'guide', 'journey', 'checklist', 'tutorial', 'map', 'brochure', 'columns', 'layout', 'help'],
107
- priority: 99,
108
- icon: () => /*#__PURE__*/React.createElement(InstructionsOutlineIcon, null),
109
- action: (insert, state, source) => {
110
- var _api$analytics5;
111
- // @ts-ignore
112
- const tr = insert(Fragment.fromJSON(state.schema, instructionsOutline), {
113
- isTemplate: true
114
- });
115
- api === null || api === void 0 ? void 0 : (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions.attachAnalyticsEvent(
116
- // @ts-ignore
117
- getTemplateInsertionPayload('instructionsOutline', source))(tr);
118
- return tr;
119
- }
120
- }];