@atlaskit/editor-common 106.6.2 → 106.8.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 (58) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/collab/index.js +4 -2
  3. package/dist/cjs/i18n/en_ZZ.js +4 -0
  4. package/dist/cjs/i18n/hr.js +2 -0
  5. package/dist/cjs/i18n/sl.js +878 -1
  6. package/dist/cjs/i18n/sr_RS.js +894 -0
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/cjs/user-preferences/hooks.js +6 -5
  10. package/dist/cjs/user-preferences/user-preferences-provider.js +26 -29
  11. package/dist/cjs/user-preferences/user-preferences.js +6 -1
  12. package/dist/cjs/user-preferences/utils.js +42 -0
  13. package/dist/cjs/utils/processRawValue.js +9 -14
  14. package/dist/es2019/collab/index.js +36 -0
  15. package/dist/es2019/i18n/en_ZZ.js +4 -0
  16. package/dist/es2019/i18n/hr.js +2 -0
  17. package/dist/es2019/i18n/sl.js +878 -1
  18. package/dist/es2019/i18n/sr_RS.js +888 -0
  19. package/dist/es2019/monitoring/error.js +1 -1
  20. package/dist/es2019/ui/DropList/index.js +1 -1
  21. package/dist/es2019/user-preferences/hooks.js +6 -5
  22. package/dist/es2019/user-preferences/user-preferences-provider.js +26 -21
  23. package/dist/es2019/user-preferences/user-preferences.js +6 -1
  24. package/dist/es2019/user-preferences/utils.js +27 -0
  25. package/dist/es2019/utils/processRawValue.js +11 -16
  26. package/dist/esm/collab/index.js +3 -1
  27. package/dist/esm/i18n/en_ZZ.js +4 -0
  28. package/dist/esm/i18n/hr.js +2 -0
  29. package/dist/esm/i18n/sl.js +878 -1
  30. package/dist/esm/i18n/sr_RS.js +888 -0
  31. package/dist/esm/monitoring/error.js +1 -1
  32. package/dist/esm/ui/DropList/index.js +1 -1
  33. package/dist/esm/user-preferences/hooks.js +6 -5
  34. package/dist/esm/user-preferences/user-preferences-provider.js +26 -29
  35. package/dist/esm/user-preferences/user-preferences.js +6 -1
  36. package/dist/esm/user-preferences/utils.js +35 -0
  37. package/dist/esm/utils/processRawValue.js +9 -14
  38. package/dist/types/collab/index.d.ts +2 -0
  39. package/dist/types/i18n/en_ZZ.d.ts +4 -0
  40. package/dist/types/i18n/hr.d.ts +2 -0
  41. package/dist/types/i18n/sl.d.ts +877 -0
  42. package/dist/types/i18n/sr_RS.d.ts +887 -0
  43. package/dist/types/user-preferences/hooks.d.ts +8 -6
  44. package/dist/types/user-preferences/persistence-api.d.ts +1 -1
  45. package/dist/types/user-preferences/user-preferences-provider.d.ts +19 -11
  46. package/dist/types/user-preferences/user-preferences.d.ts +6 -4
  47. package/dist/types/user-preferences/utils.d.ts +17 -0
  48. package/dist/types-ts4.5/collab/index.d.ts +2 -0
  49. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +4 -0
  50. package/dist/types-ts4.5/i18n/hr.d.ts +2 -0
  51. package/dist/types-ts4.5/i18n/sl.d.ts +877 -0
  52. package/dist/types-ts4.5/i18n/sr_RS.d.ts +887 -0
  53. package/dist/types-ts4.5/user-preferences/hooks.d.ts +8 -6
  54. package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +1 -1
  55. package/dist/types-ts4.5/user-preferences/user-preferences-provider.d.ts +19 -11
  56. package/dist/types-ts4.5/user-preferences/user-preferences.d.ts +6 -4
  57. package/dist/types-ts4.5/user-preferences/utils.d.ts +17 -0
  58. package/package.json +2 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 106.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#171561](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171561)
8
+ [`d0c41c462c511`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0c41c462c511) -
9
+ [ux] Telepointers now stay expanded even if there are other transactions received which will
10
+ re-create their DOM elements.
11
+
12
+ ### Patch Changes
13
+
14
+ - [#171565](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171565)
15
+ [`a0cb383a8d353`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a0cb383a8d353) -
16
+ Clean up feature flags
17
+ - Updated dependencies
18
+
19
+ ## 106.7.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#158546](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/158546)
24
+ [`b7fe4e6f226f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7fe4e6f226f3) -
25
+ ED-27284 use user preferences plugin in editor preset.
26
+
27
+ ### Patch Changes
28
+
29
+ - [#171482](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171482)
30
+ [`aaa3084f0ce5e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aaa3084f0ce5e) - \*
31
+ I18n translations, see
32
+ [commit](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/445044272c9e6779d186874b3e2e7ad714a13457)
33
+ - [#169039](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169039)
34
+ [`d2488752fcad8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2488752fcad8) -
35
+ EDITOR-508 Part 1 of cleaning up `platform_editor_use_nested_table_pm_nodes`
36
+ - Updated dependencies
37
+
3
38
  ## 106.6.2
4
39
 
5
40
  ### Patch Changes
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.tintDirtyTransaction = exports.telepointerStyleWithInitialOnly = exports.telepointerStyle = exports.isDirtyTransaction = exports.TELEPOINTER_PULSE_CLASS = exports.TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DATA_SESSION_ID_ATTR = exports.PROVIDER_ERROR_CODE = exports.DisconnectReason = void 0;
7
+ exports.tintDirtyTransaction = exports.telepointerStyleWithInitialOnly = exports.telepointerStyle = exports.isDirtyTransaction = exports.TELEPOINTER_PULSE_DURING_TR_DURATION_MS = exports.TELEPOINTER_PULSE_DURING_TR_CLASS = exports.TELEPOINTER_PULSE_CLASS = exports.TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DATA_SESSION_ID_ATTR = exports.PROVIDER_ERROR_CODE = exports.DisconnectReason = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
@@ -134,6 +134,8 @@ var telepointerColorStyle = function telepointerColorStyle(backgroundColor, text
134
134
  };
135
135
  var TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DIM_CLASS = 'telepointer-dim';
136
136
  var TELEPOINTER_PULSE_CLASS = exports.TELEPOINTER_PULSE_CLASS = 'telepointer-pulse-animate';
137
+ var TELEPOINTER_PULSE_DURING_TR_CLASS = exports.TELEPOINTER_PULSE_DURING_TR_CLASS = 'telepointer-pulse-during-tr';
138
+ var TELEPOINTER_PULSE_DURING_TR_DURATION_MS = exports.TELEPOINTER_PULSE_DURING_TR_DURATION_MS = 7500; // Keeping it longer so it'll be easier to spot during transactions
137
139
  var TELEPOINTER_DATA_SESSION_ID_ATTR = exports.TELEPOINTER_DATA_SESSION_ID_ATTR = 'data-telepointer-sessionid';
138
140
 
139
141
  // ED-22557: Safely convert to object styling
@@ -146,7 +148,7 @@ var telepointerStyleWithInitialOnly = exports.telepointerStyleWithInitialOnly =
146
148
  // ED-22557: Safely convert to object styling
147
149
  // Disable top: -14px since it is necessary to align to cursor
148
150
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
149
- var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t@keyframes pulseIn {\n\t\t0%,\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t\t10% {\n\t\t\ttransform: scaleX(1.4);\n\t\t\topacity: 1;\n\t\t}\n\t\t15%,\n\t\t85% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes pulseOut {\n\t\t0%,\n\t\t90%,\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t10%,\n\t\t80% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge {\n\t\t\t.telepointer-initial,\n\t\t\t.telepointer-fullname {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\tuser-select: none;\n\t\t\t\twhite-space: pre;\n\t\t\t\ttop: -14px;\n\t\t\t\tleft: 0px;\n\t\t\t\tfont: ", ";\n\t\t\t\tpadding-left: ", ";\n\t\t\t\tpadding-right: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: 0 2px 2px 0;\n\t\t\t}\n\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 1;\n\t\t\t\ttransition: opacity 0.15s ease-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: scaleX(0);\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransition:\n\t\t\t\t\ttransform 0.15s ease-out,\n\t\t\t\t\topacity 0.15s ease-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOut 2.5s ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseIn 2.5s ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 0;\n\t\t\t\ttransition-delay: 150ms;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\ttransform: scaleX(1);\n\t\t\t\topacity: 1;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_PULSE_CLASS, TELEPOINTER_DIM_CLASS, _editorSharedStyles.participantColors.map(function (participantColor, index) {
151
+ var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t@keyframes pulseIn {\n\t\t0%,\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t\t10% {\n\t\t\ttransform: scaleX(1.4);\n\t\t\topacity: 1;\n\t\t}\n\t\t15%,\n\t\t85% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes pulseOut {\n\t\t0%,\n\t\t90%,\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t10%,\n\t\t80% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseInDuringTr {\n\t\t0%,\n\t\t95% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseOutDuringTr {\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t0%,\n\t\t90% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge {\n\t\t\t.telepointer-initial,\n\t\t\t.telepointer-fullname {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\tuser-select: none;\n\t\t\t\twhite-space: pre;\n\t\t\t\ttop: -14px;\n\t\t\t\tleft: 0px;\n\t\t\t\tfont: ", ";\n\t\t\t\tpadding-left: ", ";\n\t\t\t\tpadding-right: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: 0 2px 2px 0;\n\t\t\t}\n\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 1;\n\t\t\t\ttransition: opacity 0.15s ease-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: scaleX(0);\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransition:\n\t\t\t\t\ttransform 0.15s ease-out,\n\t\t\t\t\topacity 0.15s ease-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOut 2.5s ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseIn 2.5s ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOutDuringTr ", "ms ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseInDuringTr ", "ms ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 0;\n\t\t\t\ttransition-delay: 150ms;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\ttransform: scaleX(1);\n\t\t\t\topacity: 1;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_PULSE_CLASS, TELEPOINTER_PULSE_DURING_TR_CLASS, TELEPOINTER_PULSE_DURING_TR_DURATION_MS, TELEPOINTER_PULSE_DURING_TR_DURATION_MS, TELEPOINTER_DIM_CLASS, _editorSharedStyles.participantColors.map(function (participantColor, index) {
150
152
  return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
151
153
  }));
152
154
  var tintKey = 'collab:isDirtyTransaction';
@@ -341,6 +341,10 @@ var _default = exports.default = {
341
341
  'fabric.editor.blockquote.description': '⁣⁢Insert a quote or citation⁠؜⁡⁣⁤',
342
342
  'fabric.editor.blockquote2': '⁣⁢Quote‍؜؜⁡⁡⁠؜⁠‌‍⁣⁤',
343
343
  'fabric.editor.bold': '⁣⁢Bold‌⁠‍؜‌؜؜⁠؜‍⁣⁤',
344
+ 'fabric.editor.breakout.resizeCodeBlock': '⁣⁢Resize code snippet⁠‍؜⁠‌⁠‍⁡؜‍⁠؜؜؜⁣⁤',
345
+ 'fabric.editor.breakout.resizeElement': '⁣⁢Resize element‍‍‌⁡‌⁡⁠‌⁡‌؜⁡‍⁠⁣⁤',
346
+ 'fabric.editor.breakout.resizeExpand': '⁣⁢Resize expand‍‌⁡⁡؜⁡؜‌‍⁠⁣⁤',
347
+ 'fabric.editor.breakout.resizeLayout': '⁣⁢Resize layout⁡‍‌‍⁠⁠⁠⁣⁤',
344
348
  'fabric.editor.breakoutFullWidthLabel': '⁣⁢Full-width‍⁡؜⁡‌؜⁠؜⁡‍⁣⁤',
345
349
  'fabric.editor.breakoutWideWidthLabel': '⁣⁢Wide؜⁡؜؜؜‌⁡‍⁠‌⁣⁤',
346
350
  'fabric.editor.bug': '⁣⁢Bug؜⁡‌⁡‍⁠⁡‍⁡؜⁡⁣⁤',
@@ -788,6 +788,8 @@ var _default = exports.default = {
788
788
  'fabric.editor.toolbarMediaTitle': 'Dodaj sliku, videozapis ili datoteku',
789
789
  'fabric.editor.toolbarPositionFixedAtTop': 'Fiksirano na vrhu',
790
790
  'fabric.editor.toolbarPositionInline': 'U liniji s tekstom',
791
+ 'fabric.editor.toolbarPositionPinedAtTop': 'Otkvači alatnu traku',
792
+ 'fabric.editor.toolbarPositionUnpined': 'Prikvači alatnu traku na vrhu',
791
793
  'fabric.editor.tooltip.blockPanel': 'ploča',
792
794
  'fabric.editor.tooltip.bulletList': 'popis',
793
795
  'fabric.editor.tooltip.decisionList': 'popis odluka',