@atlaskit/editor-common 60.0.0 → 61.0.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.
Files changed (191) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/card/package.json +7 -0
  3. package/dist/cjs/card/cardOptions.js +5 -0
  4. package/dist/cjs/emoji.js +23 -0
  5. package/dist/cjs/extensions/index.js +6 -0
  6. package/dist/cjs/extensions/types/field-definitions.js +7 -1
  7. package/dist/cjs/extensions/types/index.js +6 -0
  8. package/dist/cjs/extensions.js +6 -0
  9. package/dist/cjs/i18n/cs.js +1 -0
  10. package/dist/cjs/i18n/da.js +1 -0
  11. package/dist/cjs/i18n/de.js +1 -0
  12. package/dist/cjs/i18n/es.js +1 -0
  13. package/dist/cjs/i18n/fi.js +1 -0
  14. package/dist/cjs/i18n/fr.js +1 -0
  15. package/dist/cjs/i18n/hu.js +1 -0
  16. package/dist/cjs/i18n/it.js +1 -0
  17. package/dist/cjs/i18n/ja.js +1 -0
  18. package/dist/cjs/i18n/ko.js +1 -0
  19. package/dist/cjs/i18n/nb.js +1 -0
  20. package/dist/cjs/i18n/nl.js +1 -0
  21. package/dist/cjs/i18n/pl.js +1 -0
  22. package/dist/cjs/i18n/pt_BR.js +1 -0
  23. package/dist/cjs/i18n/ru.js +1 -0
  24. package/dist/cjs/i18n/sv.js +1 -0
  25. package/dist/cjs/i18n/th.js +1 -0
  26. package/dist/cjs/i18n/tr.js +1 -0
  27. package/dist/cjs/i18n/uk.js +1 -0
  28. package/dist/cjs/i18n/vi.js +1 -0
  29. package/dist/cjs/i18n/zh.js +1 -1
  30. package/dist/cjs/i18n/zh_TW.js +1 -0
  31. package/dist/cjs/index.js +12 -0
  32. package/dist/cjs/mention.js +23 -0
  33. package/dist/cjs/messages/codeBidiWarning.js +21 -0
  34. package/dist/cjs/messages/index.js +8 -0
  35. package/dist/cjs/styles/index.js +6 -0
  36. package/dist/cjs/styles/shared/panel.js +92 -37
  37. package/dist/cjs/styles/shared/table.js +2 -2
  38. package/dist/cjs/ufo/experience-store.js +160 -0
  39. package/dist/cjs/ufo/index.js +25 -0
  40. package/dist/cjs/ui/Messages/index.js +1 -3
  41. package/dist/cjs/utils/compareNodes.js +6 -0
  42. package/dist/cjs/utils/index.js +23 -1
  43. package/dist/cjs/utils/profiler/render-count.js +135 -0
  44. package/dist/cjs/utils/validator.js +46 -26
  45. package/dist/cjs/version.json +1 -1
  46. package/dist/es2019/card/cardOptions.js +1 -0
  47. package/dist/es2019/emoji.js +2 -0
  48. package/dist/es2019/extensions/index.js +1 -1
  49. package/dist/es2019/extensions/types/field-definitions.js +3 -0
  50. package/dist/es2019/extensions/types/index.js +1 -1
  51. package/dist/es2019/extensions.js +1 -1
  52. package/dist/es2019/i18n/cs.js +1 -0
  53. package/dist/es2019/i18n/da.js +1 -0
  54. package/dist/es2019/i18n/de.js +1 -0
  55. package/dist/es2019/i18n/es.js +1 -0
  56. package/dist/es2019/i18n/fi.js +1 -0
  57. package/dist/es2019/i18n/fr.js +1 -0
  58. package/dist/es2019/i18n/hu.js +1 -0
  59. package/dist/es2019/i18n/it.js +1 -0
  60. package/dist/es2019/i18n/ja.js +1 -0
  61. package/dist/es2019/i18n/ko.js +1 -0
  62. package/dist/es2019/i18n/nb.js +1 -0
  63. package/dist/es2019/i18n/nl.js +1 -0
  64. package/dist/es2019/i18n/pl.js +1 -0
  65. package/dist/es2019/i18n/pt_BR.js +1 -0
  66. package/dist/es2019/i18n/ru.js +1 -0
  67. package/dist/es2019/i18n/sv.js +1 -0
  68. package/dist/es2019/i18n/th.js +1 -0
  69. package/dist/es2019/i18n/tr.js +1 -0
  70. package/dist/es2019/i18n/uk.js +1 -0
  71. package/dist/es2019/i18n/vi.js +1 -0
  72. package/dist/es2019/i18n/zh.js +1 -1
  73. package/dist/es2019/i18n/zh_TW.js +1 -0
  74. package/dist/es2019/index.js +26 -8
  75. package/dist/es2019/mention.js +2 -0
  76. package/dist/es2019/messages/codeBidiWarning.js +12 -0
  77. package/dist/es2019/messages/index.js +1 -0
  78. package/dist/es2019/styles/index.js +4 -2
  79. package/dist/es2019/styles/shared/panel.js +104 -39
  80. package/dist/es2019/styles/shared/table.js +2 -1
  81. package/dist/es2019/ufo/experience-store.js +116 -0
  82. package/dist/es2019/ufo/index.js +1 -0
  83. package/dist/es2019/ui/Messages/index.js +1 -2
  84. package/dist/es2019/ui/index.js +8 -3
  85. package/dist/es2019/utils/compareNodes.js +6 -0
  86. package/dist/es2019/utils/index.js +3 -1
  87. package/dist/es2019/utils/profiler/render-count.js +107 -0
  88. package/dist/es2019/utils/validator.js +36 -13
  89. package/dist/es2019/version.json +1 -1
  90. package/dist/esm/card/cardOptions.js +1 -0
  91. package/dist/esm/emoji.js +2 -0
  92. package/dist/esm/extensions/index.js +1 -1
  93. package/dist/esm/extensions/types/field-definitions.js +3 -0
  94. package/dist/esm/extensions/types/index.js +1 -1
  95. package/dist/esm/extensions.js +1 -1
  96. package/dist/esm/i18n/cs.js +1 -0
  97. package/dist/esm/i18n/da.js +1 -0
  98. package/dist/esm/i18n/de.js +1 -0
  99. package/dist/esm/i18n/es.js +1 -0
  100. package/dist/esm/i18n/fi.js +1 -0
  101. package/dist/esm/i18n/fr.js +1 -0
  102. package/dist/esm/i18n/hu.js +1 -0
  103. package/dist/esm/i18n/it.js +1 -0
  104. package/dist/esm/i18n/ja.js +1 -0
  105. package/dist/esm/i18n/ko.js +1 -0
  106. package/dist/esm/i18n/nb.js +1 -0
  107. package/dist/esm/i18n/nl.js +1 -0
  108. package/dist/esm/i18n/pl.js +1 -0
  109. package/dist/esm/i18n/pt_BR.js +1 -0
  110. package/dist/esm/i18n/ru.js +1 -0
  111. package/dist/esm/i18n/sv.js +1 -0
  112. package/dist/esm/i18n/th.js +1 -0
  113. package/dist/esm/i18n/tr.js +1 -0
  114. package/dist/esm/i18n/uk.js +1 -0
  115. package/dist/esm/i18n/vi.js +1 -0
  116. package/dist/esm/i18n/zh.js +1 -1
  117. package/dist/esm/i18n/zh_TW.js +1 -0
  118. package/dist/esm/index.js +26 -8
  119. package/dist/esm/mention.js +2 -0
  120. package/dist/esm/messages/codeBidiWarning.js +12 -0
  121. package/dist/esm/messages/index.js +1 -0
  122. package/dist/esm/styles/index.js +4 -2
  123. package/dist/esm/styles/shared/panel.js +87 -38
  124. package/dist/esm/styles/shared/table.js +2 -2
  125. package/dist/esm/ufo/experience-store.js +144 -0
  126. package/dist/esm/ufo/index.js +1 -0
  127. package/dist/esm/ui/Messages/index.js +1 -2
  128. package/dist/esm/ui/index.js +8 -3
  129. package/dist/esm/utils/compareNodes.js +6 -0
  130. package/dist/esm/utils/index.js +3 -1
  131. package/dist/esm/utils/profiler/render-count.js +123 -0
  132. package/dist/esm/utils/validator.js +46 -26
  133. package/dist/esm/version.json +1 -1
  134. package/dist/types/card/cardOptions.d.ts +9 -0
  135. package/dist/types/card/index.d.ts +1 -9
  136. package/dist/types/collab/types.d.ts +5 -0
  137. package/dist/types/collab.d.ts +1 -1
  138. package/dist/types/emoji.d.ts +3 -0
  139. package/dist/types/extensions/index.d.ts +1 -1
  140. package/dist/types/extensions/types/extension-handler.d.ts +6 -2
  141. package/dist/types/extensions/types/extension-parameters.d.ts +1 -0
  142. package/dist/types/extensions/types/field-definitions.d.ts +2 -0
  143. package/dist/types/extensions/types/index.d.ts +1 -1
  144. package/dist/types/extensions.d.ts +1 -1
  145. package/dist/types/i18n/cs.d.ts +1 -0
  146. package/dist/types/i18n/da.d.ts +1 -0
  147. package/dist/types/i18n/de.d.ts +1 -0
  148. package/dist/types/i18n/es.d.ts +1 -0
  149. package/dist/types/i18n/fi.d.ts +1 -0
  150. package/dist/types/i18n/fr.d.ts +1 -0
  151. package/dist/types/i18n/hu.d.ts +1 -0
  152. package/dist/types/i18n/it.d.ts +1 -0
  153. package/dist/types/i18n/ja.d.ts +1 -0
  154. package/dist/types/i18n/ko.d.ts +1 -0
  155. package/dist/types/i18n/nb.d.ts +1 -0
  156. package/dist/types/i18n/nl.d.ts +1 -0
  157. package/dist/types/i18n/pl.d.ts +1 -0
  158. package/dist/types/i18n/pt_BR.d.ts +1 -0
  159. package/dist/types/i18n/ru.d.ts +1 -0
  160. package/dist/types/i18n/sv.d.ts +1 -0
  161. package/dist/types/i18n/th.d.ts +1 -0
  162. package/dist/types/i18n/tr.d.ts +1 -0
  163. package/dist/types/i18n/uk.d.ts +1 -0
  164. package/dist/types/i18n/vi.d.ts +1 -0
  165. package/dist/types/i18n/zh.d.ts +1 -0
  166. package/dist/types/i18n/zh_TW.d.ts +1 -0
  167. package/dist/types/index.d.ts +7 -3
  168. package/dist/types/mention.d.ts +2 -0
  169. package/dist/types/messages/codeBidiWarning.d.ts +11 -0
  170. package/dist/types/messages/index.d.ts +1 -0
  171. package/dist/types/provider-factory.d.ts +1 -0
  172. package/dist/types/styles/index.d.ts +1 -1
  173. package/dist/types/styles/shared/panel.d.ts +3 -1
  174. package/dist/types/ufo/experience-store.d.ts +33 -0
  175. package/dist/types/ufo/index.d.ts +1 -0
  176. package/dist/types/utils/index.d.ts +2 -0
  177. package/dist/types/utils/profiler/render-count.d.ts +50 -0
  178. package/emoji/package.json +7 -0
  179. package/mention/package.json +7 -0
  180. package/package.json +33 -21
  181. package/provider-helpers/package.json +7 -0
  182. package/types/package.json +7 -0
  183. package/ufo/package.json +7 -0
  184. package/ui/package.json +7 -0
  185. package/utils/package.json +7 -0
  186. package/dist/cjs/ui/Caption/index.test.js +0 -82
  187. package/dist/cjs/utils/performance/measure-tti.test.js +0 -183
  188. package/dist/es2019/ui/Caption/index.test.js +0 -73
  189. package/dist/es2019/utils/performance/measure-tti.test.js +0 -124
  190. package/dist/esm/ui/Caption/index.test.js +0 -73
  191. package/dist/esm/utils/performance/measure-tti.test.js +0 -174
package/CHANGELOG.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 61.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`fd675db8754`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd675db8754) - [ux] ED-13100: added GroupedField.hasGroupedValues and enable parameter flattening for expand/tab-group/tab fields in config panels. The default value of `GroupedField.hasGroupedValues` is `False`, which will flatten data structures. Set `GroupedField.hasGroupedValues` to `True` on all tab-group/tab/expand fields if you wish to retain existing behaviour.
8
+
9
+ This change has several parts to ensure the correctness of serialize(), deserialize(), GroupedField.hasGroupedValues and BaseFieldDefinition.allowDuplicates
10
+
11
+ - Introduced GroupedField.hasGroupedValues which allows expand/tabgroup/tab to store the value of its fields by the name of the expand/tabgroup/tab if hasGroupedValues=True (False by default)
12
+ - Fixed a type safety issue with Parameters and ParametersWithDuplicateFields where Typescript would consider the types Parameters = Parameters[] (resolves some inconsistencies in the editor code and extensions)
13
+ - Restrict allowDuplicates so it only works within Fieldset as originally intended
14
+ - serialize() now populates `Field.defaultValue` as expected
15
+
16
+ ### Minor Changes
17
+
18
+ - [`3a2a5e14fdc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a2a5e14fdc) - As we are moving to full schema, merged the customPanel nodeSpec with panel nodeSpec
19
+ - [`d8b414ed707`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d8b414ed707) - CETI-170 Emoji vertical alignment in Firefox
20
+ - [`23514411f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23514411f27) - CETI-134 added support to render dark colors for the custom panels in the dark mode
21
+ - [`8581ed429dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8581ed429dd) - ED-13688: Add reliability edit sessions to UFO analytics
22
+ - [`b230f366971`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b230f366971) - [ED-14008] Bump prosemirror-view from 1.20.2 to 1.23.1
23
+ - [`47c349601b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47c349601b2) - ED-13869 Added the option to automatically select ADF content inserted via the `insertAfter()` extension API. We've modified our extension API and introduced a new parameter in `insertAfter()`. The function has now a third parameter, ie `options`, which is an object and has a property flag called `allowSelectionToNewNode` that lets you focus on the ADF added when set to `true`.
24
+ - [`8bbb96540ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8bbb96540ea) - Add "fragment" mark to stage0 ADF schema
25
+ - [`a3737a9b3aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a3737a9b3aa) - CETI-64 Updating the dark mode colors for the standard panels
26
+ - [`d21da111ec2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d21da111ec2) - CETI-95 Predefined icon sizes are different from existing icons
27
+
28
+ ### Patch Changes
29
+
30
+ - [`c6feed82071`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6feed82071) - ED-11632: Bump prosemirror packages;
31
+
32
+ - prosmirror-commands 1.1.4 -> 1.1.11,
33
+ - prosemirror-model 1.11.0 -> 1.14.3,
34
+ - prosemirror-state 1.3.3 -> 1.3.4,
35
+ - prosemirror-transform 1.2.8 -> 1.3.2,
36
+ - prosemirror-view 1.15.4 + 1.18.8 -> 1.20.2.
37
+
38
+ - [`b1034ea4393`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1034ea4393) - ED-13752 Added child entry points for each export in editor-common root entry point file
39
+ - [`d44279ef8dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d44279ef8dd) - [ux] Fixes the issue on mobile when the media file is set to wrap-left and the table below has a numbered column. Adds a css rule to pm-table-container[data-number-column='true']
40
+ - [`17552f32a6c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17552f32a6c) - CONFDEV-77488 Updated the reference entity type
41
+ - [`8f0577e0eb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f0577e0eb1) - [ux] Promoted captions to full schema and better support of wikimarkup, email and slack renderer
42
+ - [`a82305310db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a82305310db) - [ux] ED-7449: Sort cells in a given table column based on case sensitivity of same letter then on alphabet+ascii code values
43
+ - [`9d43feb1f6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d43feb1f6a) - CETI-167 Remove opacity for panels in dark mode.
44
+ - Updated dependencies
45
+
46
+ ## 60.3.0
47
+
48
+ ### Minor Changes
49
+
50
+ - [`c80c71b537d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c80c71b537d) - [ux] ED-13860 add bidi warning decorations to code components
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies
55
+
56
+ ## 60.2.0
57
+
58
+ ### Minor Changes
59
+
60
+ - [`53d2eac387d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53d2eac387d) - ED-12705 Fail all active editor UFO experiences from the editor error boundary
61
+ - [`b58f3c24179`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b58f3c24179) - ED-13643 Instrument editor interaction UFO experience
62
+ - [`971845eac0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/971845eac0d) - CETI-96 Added new rule to emoji to solve the duplicate icon issue when we copy from renderer
63
+ - [`87ea2112afe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87ea2112afe) - ED-13214 Update ExperienceStore to use EditorView as unique identifier rather than session id
64
+ - [`3c5548e50da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c5548e50da) - [ux] Introducing new Media Inline component to renderer
65
+ - [`d7f62de1e40`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7f62de1e40) - CETI-157 Fix panel selection in safari
66
+ - [`b53d0d54ac2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b53d0d54ac2) - ED-12887 Add render count profiler utilities
67
+ - [`746e1f37cb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/746e1f37cb8) - ED-13214 Add experience store available via new entry point @atlaskit/editor-common/ufo
68
+
69
+ ### Patch Changes
70
+
71
+ - [`cbde8994bd4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cbde8994bd4) - ED-12846: Fix disappearing table borders in Chrome
72
+ - [`500420bcc7e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/500420bcc7e) - Updated to newest UFO API
73
+ - [`f897443ad45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f897443ad45) - Revert AK-279
74
+ - [`99757fa97fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/99757fa97fb) - ED-13642 added ufo session complete analytics event
75
+ - Updated dependencies
76
+
77
+ ## 60.1.0
78
+
79
+ ### Minor Changes
80
+
81
+ - [`981052d2a94`](https://bitbucket.org/atlassian/atlassian-frontend/commits/981052d2a94) - COLLAB-933: Update common types to support disconnected event
82
+ - [`8c36177a89c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c36177a89c) - [ux] Changed wording of 'hideEmoji' to 'removeEmoji' & disbaled th button when there is no emoji (& enabled when there was one)
83
+ - [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - AK-279 Moved copy button outside of heading, that made heading accessible
84
+ - [`1a07c1caf61`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a07c1caf61) - CETI-93 - Fixed custom panel icon sizing and alignment when icon render as image
85
+
86
+ ### Patch Changes
87
+
88
+ - [`114cfd6cb20`](https://bitbucket.org/atlassian/atlassian-frontend/commits/114cfd6cb20) - CETI-7 Select custom panel through keyboard
89
+ - [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - Internal changes to remove `@atlaskit/theme/math` usage.
90
+ - Updated dependencies
91
+
3
92
  ## 60.0.0
4
93
 
5
94
  ### Major Changes
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/card",
3
+ "main": "../dist/cjs/card/index.js",
4
+ "module": "../dist/esm/card/index.js",
5
+ "module:es2019": "../dist/es2019/card/index.js",
6
+ "types": "../dist/types/card/index.d.ts"
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "Emoji", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Emoji.default;
12
+ }
13
+ });
14
+ Object.defineProperty(exports, "EmojiSharedCssClassName", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _emoji.EmojiSharedCssClassName;
18
+ }
19
+ });
20
+
21
+ var _Emoji = _interopRequireDefault(require("./ui/Emoji"));
22
+
23
+ var _emoji = require("./styles/shared/emoji");
@@ -17,6 +17,12 @@ Object.defineProperty(exports, "isTabGroup", {
17
17
  return _types.isTabGroup;
18
18
  }
19
19
  });
20
+ Object.defineProperty(exports, "isTabField", {
21
+ enumerable: true,
22
+ get: function get() {
23
+ return _types.isTabField;
24
+ }
25
+ });
20
26
  Object.defineProperty(exports, "isExpand", {
21
27
  enumerable: true,
22
28
  get: function get() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isDateRange = exports.isExpand = exports.isTabGroup = exports.isFieldset = void 0;
6
+ exports.isDateRange = exports.isExpand = exports.isTabField = exports.isTabGroup = exports.isFieldset = void 0;
7
7
 
8
8
  // Radio fields are different, they cannot be deselected by a user
9
9
  // Thereby they _always_ need a value for submission
@@ -21,6 +21,12 @@ var isTabGroup = function isTabGroup(field) {
21
21
 
22
22
  exports.isTabGroup = isTabGroup;
23
23
 
24
+ var isTabField = function isTabField(field) {
25
+ return 'type' in field && field.type === 'tab';
26
+ };
27
+
28
+ exports.isTabField = isTabField;
29
+
24
30
  var isExpand = function isExpand(field) {
25
31
  return field.type === 'expand';
26
32
  };
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "isTabGroup", {
15
15
  return _fieldDefinitions.isTabGroup;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "isTabField", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _fieldDefinitions.isTabField;
22
+ }
23
+ });
18
24
  Object.defineProperty(exports, "isExpand", {
19
25
  enumerable: true,
20
26
  get: function get() {
@@ -99,6 +99,12 @@ Object.defineProperty(exports, "isTabGroup", {
99
99
  return _index.isTabGroup;
100
100
  }
101
101
  });
102
+ Object.defineProperty(exports, "isTabField", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _index.isTabField;
106
+ }
107
+ });
102
108
  Object.defineProperty(exports, "isExpand", {
103
109
  enumerable: true,
104
110
  get: function get() {
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Czech
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Obousměrné znaky mění pořadí vykreslování textu. Může to být použito k zakrytí škodlivého kódu.',
16
17
  'fabric.editor.captionPlaceholder': 'Přidejte popisek',
17
18
  'fabric.editor.collapseNode': 'Sbalit obsah',
18
19
  'fabric.editor.expandDefaultTitle': 'Klikněte sem pro rozbalení...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Danish
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Tegn med tovejsfunktionalitet ændrer rækkefølgen, som teksten er gengivet i. Dette kan udnyttes til at skjule skadelig kode.',
16
17
  'fabric.editor.captionPlaceholder': 'Tilføj en billedtekst',
17
18
  'fabric.editor.collapseNode': 'skjul indhold',
18
19
  'fabric.editor.expandDefaultTitle': 'Klik her for at udvide...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // German
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Bidirektionale Zeichen ändern die Reihenfolge, in der Text gerendert wird. Dies könnte verwendet werden, um bösartigen Code zu verbergen.',
16
17
  'fabric.editor.captionPlaceholder': 'Eine Bildunterschrift hinzufügen',
17
18
  'fabric.editor.collapseNode': 'Inhaltsanzeige reduzieren',
18
19
  'fabric.editor.expandDefaultTitle': 'Klicken Sie hier, um zu erweitern …',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Spanish
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Los caracteres bidireccionales cambian el orden de renderización del texto. Esto podría utilizarse para ocultar código malicioso.',
16
17
  'fabric.editor.captionPlaceholder': 'Añadir un subtítulo',
17
18
  'fabric.editor.collapseNode': 'contraer contenido',
18
19
  'fabric.editor.expandDefaultTitle': 'Haz clic aquí para ampliar...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Finnish
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Kaksisuuntaiset merkit muuttavat tekstin renderöintijärjestystä. Tätä voidaan hyödyntää haitallisen koodin peittämisessä.',
16
17
  'fabric.editor.captionPlaceholder': 'Lisää kuvateksti',
17
18
  'fabric.editor.collapseNode': 'piilota sisältö',
18
19
  'fabric.editor.expandDefaultTitle': 'Klikkaa tähän laajentaaksesi...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // French
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': "Les caractères bidirectionnels changent l'ordre de rendu du texte. Ils peuvent être utilisés pour masquer du code malveillant.",
16
17
  'fabric.editor.captionPlaceholder': 'Ajouter une légende',
17
18
  'fabric.editor.collapseNode': 'Réduire le contenu',
18
19
  'fabric.editor.expandDefaultTitle': 'Cliquez ici pour développer...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Hungarian
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'A kétirányú karakterek megváltoztatják a szöveg renderelési sorrendjét. Ez felhasználható rosszindulatú kód elfedésére.',
16
17
  'fabric.editor.captionPlaceholder': 'Képaláírás hozzáadása',
17
18
  'fabric.editor.collapseNode': 'tartalom összecsukása',
18
19
  'fabric.editor.expandDefaultTitle': 'Kattints ide a kibontáshoz…',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Italian
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': "I caratteri bidirezionali modificano l'ordine in cui è visualizzato il testo. Possono essere utilizzati per nascondere un codice dannoso.",
16
17
  'fabric.editor.captionPlaceholder': 'Aggiungi didascalia',
17
18
  'fabric.editor.collapseNode': 'Comprimi contenuto',
18
19
  'fabric.editor.expandDefaultTitle': 'Clicca qui per espandere...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Japanese
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': '双方向文字はテキストのレンダリング順序を変更します。このため、悪意あるコードを隠すために使用される場合があります。',
16
17
  'fabric.editor.captionPlaceholder': 'キャプションを追加',
17
18
  'fabric.editor.collapseNode': 'コンテンツを折りたたむ',
18
19
  'fabric.editor.expandDefaultTitle': 'こちらをクリックして展開…',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Korean
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': '양방향 문자가 텍스트가 렌더링되는 순서를 변경합니다. 악성 코드를 가리는 데 사용할 수 있습니다.',
16
17
  'fabric.editor.captionPlaceholder': '캡션 추가',
17
18
  'fabric.editor.collapseNode': '콘텐츠 접기',
18
19
  'fabric.editor.expandDefaultTitle': '여기를 클릭하여 펼치기...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Norwegian Bokmål
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Toveistegn endrer rekkefølgen som tekst vises i. Dette kan brukes til å skjule skadelig kode.',
16
17
  'fabric.editor.captionPlaceholder': 'Legg til bildetekst',
17
18
  'fabric.editor.collapseNode': 'Minimer innhold',
18
19
  'fabric.editor.expandDefaultTitle': 'Klikk her for å utvide …',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Dutch
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Bidirectionele tekens wijzigen de volgorde waarin de tekst wordt weergegeven. Dit kan worden gebruikt om schadelijke code te verdoezelen.',
16
17
  'fabric.editor.captionPlaceholder': 'Bijschrift toevoegen',
17
18
  'fabric.editor.collapseNode': 'Content inklappen',
18
19
  'fabric.editor.expandDefaultTitle': 'Klik hier om uit te breiden...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Polish
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Znaki dwukierunkowe zmieniają kolejność, w jakiej tekst jest renderowany. Może to zostać wykorzystane do ukrycia złośliwego kodu.',
16
17
  'fabric.editor.captionPlaceholder': 'Dodaj podpis',
17
18
  'fabric.editor.collapseNode': 'Zwiń zawartość',
18
19
  'fabric.editor.expandDefaultTitle': 'Kliknij tutaj, aby rozwinąć...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Portuguese (Brazil)
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Caracteres bidirecionais alteram a ordem em que o texto é renderizado. Eles podem ser usados para ocultar códigos mal-intencionados.',
16
17
  'fabric.editor.captionPlaceholder': 'Adicionar legenda',
17
18
  'fabric.editor.collapseNode': 'Recolher conteúdo',
18
19
  'fabric.editor.expandDefaultTitle': 'Clique aqui para expandir...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Russian
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Двунаправленные символы изменяют порядок отображения текста. Они могут использоваться для маскировки вредоносного кода.',
16
17
  'fabric.editor.captionPlaceholder': 'Добавьте подпись',
17
18
  'fabric.editor.collapseNode': 'Свернуть содержимое',
18
19
  'fabric.editor.expandDefaultTitle': 'Нажмите здесь, чтобы развернуть…',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Swedish
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Dubbelriktade tecken ändrar återgivningsordningen för text. Detta kan användas för att dölja skadlig kod.',
16
17
  'fabric.editor.captionPlaceholder': 'Lägg till en bildtext',
17
18
  'fabric.editor.collapseNode': 'komprimera innehåll',
18
19
  'fabric.editor.expandDefaultTitle': 'Klicka här för att expandera ...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Thai
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'ตัวอักษรแบบสองทิศทางเปลี่ยนลำดับการแสดงข้อความ ซึ่งอาจนำไปใช้เพื่อปิดบังรหัสที่มีวัตถุประสงค์ในทางที่ไม่ดีได้',
16
17
  'fabric.editor.captionPlaceholder': 'เพิ่มคำอธิบาย',
17
18
  'fabric.editor.collapseNode': 'ย่อเนื้อหา',
18
19
  'fabric.editor.expandDefaultTitle': 'คลิกที่นี่เพื่อขยาย...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Turkish
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Çift yönlü karakterler metnin oluşturulduğu sırayı değiştirir. Bu, kötü amaçlı kodu gizlemek için kullanılabilir.',
16
17
  'fabric.editor.captionPlaceholder': 'Açıklama yazısı ekleyin',
17
18
  'fabric.editor.collapseNode': 'içeriği daraltın',
18
19
  'fabric.editor.expandDefaultTitle': 'Genişletmek için buraya tıklayın...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Ukrainian
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Двонаправлені символи змінюють порядок відображення тексту. Такий спосіб може використовуватися, щоб приховати зловмисний код.',
16
17
  'fabric.editor.captionPlaceholder': 'Додати підпис',
17
18
  'fabric.editor.collapseNode': 'Згорніть вміст',
18
19
  'fabric.editor.expandDefaultTitle': 'Натисніть, щоб розгорнути…',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // Vietnamese
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': 'Ký tự hai chiều thay đổi thứ tự kết xuất văn bản. Điều này có thể được dùng để che giấu mã độc hại.',
16
17
  'fabric.editor.captionPlaceholder': 'Thêm chú thích',
17
18
  'fabric.editor.collapseNode': 'thu gọn nội dung',
18
19
  'fabric.editor.expandDefaultTitle': 'Nhấp vào đây để mở rộng...',
@@ -11,8 +11,8 @@ exports.default = void 0;
11
11
  * This file is automatically generated by i18n-tools.
12
12
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
13
  */
14
- // Chinese
15
14
  var _default = {
15
+ 'fabric.editor.codeBidiWarningLabel': '双向字符会更改文本的呈现顺序。这可能被用于掩盖恶意代码。',
16
16
  'fabric.editor.captionPlaceholder': '添加标题',
17
17
  'fabric.editor.collapseNode': '收起内容',
18
18
  'fabric.editor.expandDefaultTitle': '点击此处展开...',
@@ -13,6 +13,7 @@ exports.default = void 0;
13
13
  */
14
14
  // undefined
15
15
  var _default = {
16
+ 'fabric.editor.codeBidiWarningLabel': '雙向字元會變更文字呈現的順序。這可用來將惡意程式碼模糊化。',
16
17
  'fabric.editor.captionPlaceholder': '新增標題',
17
18
  'fabric.editor.collapseNode': '摺疊內容',
18
19
  'fabric.editor.expandDefaultTitle': '按一下此處以展開...',
package/dist/cjs/index.js CHANGED
@@ -333,6 +333,12 @@ Object.defineProperty(exports, "sniffUserBrowserExtensions", {
333
333
  return _utils.sniffUserBrowserExtensions;
334
334
  }
335
335
  });
336
+ Object.defineProperty(exports, "RenderCountProfiler", {
337
+ enumerable: true,
338
+ get: function get() {
339
+ return _utils.RenderCountProfiler;
340
+ }
341
+ });
336
342
  Object.defineProperty(exports, "SortOrder", {
337
343
  enumerable: true,
338
344
  get: function get() {
@@ -543,6 +549,12 @@ Object.defineProperty(exports, "getPanelTypeBackground", {
543
549
  return _styles.getPanelTypeBackground;
544
550
  }
545
551
  });
552
+ Object.defineProperty(exports, "getPanelBackgroundDarkModeColors", {
553
+ enumerable: true,
554
+ get: function get() {
555
+ return _styles.getPanelBackgroundDarkModeColors;
556
+ }
557
+ });
546
558
  Object.defineProperty(exports, "panelSharedStyles", {
547
559
  enumerable: true,
548
560
  get: function get() {
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "Mention", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Mention.default;
12
+ }
13
+ });
14
+ Object.defineProperty(exports, "MentionSharedCssClassName", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _mention.MentionSharedCssClassName;
18
+ }
19
+ });
20
+
21
+ var _Mention = _interopRequireDefault(require("./ui/Mention"));
22
+
23
+ var _mention = require("./styles/shared/mention");
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.codeBidiWarningMessages = void 0;
7
+
8
+ var _reactIntl = require("react-intl");
9
+
10
+ var codeBidiWarningMessages = (0, _reactIntl.defineMessages)({
11
+ /**
12
+ * Message taken from
13
+ * https://hello.atlassian.net/wiki/spaces/~tswan/pages/1366555782/PSHELP-2943+Investigate+Trojan+Source+Attack+Vulnerability+design
14
+ */
15
+ label: {
16
+ id: 'fabric.editor.codeBidiWarningLabel',
17
+ defaultMessage: 'Bidirectional characters change the order that text is rendered. This could be used to obscure malicious code.',
18
+ description: 'Tooltip message to present to users when a bidirectional character is encountered in code.'
19
+ }
20
+ });
21
+ exports.codeBidiWarningMessages = codeBidiWarningMessages;
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "codeBidiWarningMessages", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _codeBidiWarning.codeBidiWarningMessages;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "linkMessages", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -16,6 +22,8 @@ Object.defineProperty(exports, "unsupportedContentMessages", {
16
22
  }
17
23
  });
18
24
 
25
+ var _codeBidiWarning = require("./codeBidiWarning");
26
+
19
27
  var _link = require("./link");
20
28
 
21
29
  var _unsupportedContent = require("./unsupportedContent");
@@ -141,6 +141,12 @@ Object.defineProperty(exports, "PanelSharedSelectors", {
141
141
  return _panel.PanelSharedSelectors;
142
142
  }
143
143
  });
144
+ Object.defineProperty(exports, "getPanelBackgroundDarkModeColors", {
145
+ enumerable: true,
146
+ get: function get() {
147
+ return _panel.getPanelBackgroundDarkModeColors;
148
+ }
149
+ });
144
150
  Object.defineProperty(exports, "ruleSharedStyles", {
145
151
  enumerable: true,
146
152
  get: function get() {