@contentful/field-editor-markdown 1.5.3 → 1.5.6

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 (68) hide show
  1. package/dist/cjs/MarkdownActions.js +6 -4
  2. package/dist/cjs/MarkdownEditor.js +4 -2
  3. package/dist/cjs/__fixtures__/FakeSdk.js +3 -3
  4. package/dist/cjs/__fixtures__/asset/index.js +5 -5
  5. package/dist/cjs/__fixtures__/entry/index.js +3 -3
  6. package/dist/cjs/__fixtures__/fixtures.js +3 -1
  7. package/dist/cjs/components/HeadingSelector.js +3 -1
  8. package/dist/cjs/components/InsertLinkSelector.js +3 -1
  9. package/dist/cjs/components/MarkdownBottomBar.js +7 -5
  10. package/dist/cjs/components/MarkdownConstraints.js +3 -1
  11. package/dist/cjs/components/MarkdownPreview.js +4 -2
  12. package/dist/cjs/components/MarkdownTabs.js +3 -1
  13. package/dist/cjs/components/MarkdownTextarea/CodeMirrorWrapper.js +4 -2
  14. package/dist/cjs/components/MarkdownTextarea/MarkdownTextarea.js +3 -1
  15. package/dist/cjs/components/MarkdownTextarea/createMarkdownEditor.js +3 -1
  16. package/dist/cjs/components/MarkdownToolbar.js +7 -5
  17. package/dist/cjs/components/icons.js +28 -26
  18. package/dist/cjs/dialogs/CheatsheetModalDialog.js +3 -1
  19. package/dist/cjs/dialogs/ConfirmInsertAssetModalDialog.js +5 -3
  20. package/dist/cjs/dialogs/EmdebExternalContentDialog.js +7 -5
  21. package/dist/cjs/dialogs/InsertLinkModalDialog.js +4 -2
  22. package/dist/cjs/dialogs/InsertTableModalDialog.js +4 -2
  23. package/dist/cjs/dialogs/SpecialCharacterModalDialog.js +4 -2
  24. package/dist/cjs/dialogs/ZenModeModalDialog.js +3 -1
  25. package/dist/cjs/dialogs/openMarkdownDialog.js +9 -7
  26. package/dist/cjs/dialogs/renderMarkdownDialog.js +3 -1
  27. package/dist/cjs/types.js +7 -7
  28. package/dist/cjs/utils/insertAssetLinks.js +5 -5
  29. package/dist/cjs/utils/isValidUrl.js +3 -3
  30. package/dist/cjs/utils/linkOrganizer.js +10 -11
  31. package/dist/cjs/utils/linkOrganizer.spec.js +3 -1
  32. package/dist/esm/MarkdownActions.js +3 -3
  33. package/dist/esm/MarkdownEditor.js +1 -1
  34. package/dist/esm/__fixtures__/FakeSdk.js +3 -3
  35. package/dist/esm/components/MarkdownBottomBar.js +1 -1
  36. package/dist/esm/components/MarkdownPreview.js +1 -1
  37. package/dist/esm/components/MarkdownTextarea/CodeMirrorWrapper.js +1 -1
  38. package/dist/esm/components/MarkdownToolbar.js +1 -1
  39. package/dist/esm/components/icons.js +10 -10
  40. package/dist/esm/dialogs/ConfirmInsertAssetModalDialog.js +2 -2
  41. package/dist/esm/dialogs/EmdebExternalContentDialog.js +4 -4
  42. package/dist/esm/dialogs/InsertLinkModalDialog.js +1 -1
  43. package/dist/esm/dialogs/InsertTableModalDialog.js +1 -1
  44. package/dist/esm/dialogs/SpecialCharacterModalDialog.js +1 -1
  45. package/dist/esm/dialogs/openMarkdownDialog.js +6 -6
  46. package/dist/esm/types.js +7 -7
  47. package/dist/esm/utils/insertAssetLinks.js +2 -2
  48. package/dist/esm/utils/linkOrganizer.js +2 -3
  49. package/dist/types/MarkdownEditor.d.ts +3 -3
  50. package/dist/types/components/HeadingSelector.d.ts +1 -1
  51. package/dist/types/components/InsertLinkSelector.d.ts +2 -2
  52. package/dist/types/components/MarkdownBottomBar.d.ts +3 -3
  53. package/dist/types/components/MarkdownConstraints.d.ts +2 -2
  54. package/dist/types/components/MarkdownPreview.d.ts +1 -1
  55. package/dist/types/components/MarkdownPreviewSkeleton.d.ts +2 -2
  56. package/dist/types/components/MarkdownTabs.d.ts +2 -2
  57. package/dist/types/components/MarkdownTextarea/MarkdownTextarea.d.ts +1 -1
  58. package/dist/types/components/MarkdownToolbar.d.ts +3 -3
  59. package/dist/types/components/icons.d.ts +11 -11
  60. package/dist/types/dialogs/CheatsheetModalDialog.d.ts +2 -2
  61. package/dist/types/dialogs/ConfirmInsertAssetModalDialog.d.ts +2 -2
  62. package/dist/types/dialogs/EmdebExternalContentDialog.d.ts +2 -2
  63. package/dist/types/dialogs/InsertLinkModalDialog.d.ts +2 -2
  64. package/dist/types/dialogs/InsertTableModalDialog.d.ts +2 -2
  65. package/dist/types/dialogs/SpecialCharacterModalDialog.d.ts +2 -2
  66. package/dist/types/dialogs/ZenModeModalDialog.d.ts +2 -2
  67. package/dist/types/dialogs/renderMarkdownDialog.d.ts +2 -2
  68. package/package.json +7 -4
@@ -37,7 +37,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
37
37
  if (cache && cache.has(obj)) {
38
38
  return cache.get(obj);
39
39
  }
40
- var newObj = {};
40
+ var newObj = {
41
+ __proto__: null
42
+ };
41
43
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
42
44
  for(var key in obj){
43
45
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -56,10 +58,10 @@ function _interop_require_wildcard(obj, nodeInterop) {
56
58
  return newObj;
57
59
  }
58
60
  function createMarkdownActions(props) {
59
- const { sdk , editor , locale } = props;
61
+ const { sdk, editor, locale } = props;
60
62
  const insertAssetsWithConfirmation = async (assets)=>{
61
63
  if (assets) {
62
- const { links , fallbacks } = await (0, _insertAssetLinks.insertAssetLinks)(assets, {
64
+ const { links, fallbacks } = await (0, _insertAssetLinks.insertAssetLinks)(assets, {
63
65
  localeCode: locale,
64
66
  defaultLocaleCode: sdk.locales.default,
65
67
  fallbackCode: sdk.locales.fallbacks[locale]
@@ -189,7 +191,7 @@ function createMarkdownActions(props) {
189
191
  return;
190
192
  }
191
193
  try {
192
- const { entity: asset } = await sdk.navigator.openNewAsset({
194
+ const { entity: asset } = await sdk.navigator.openNewAsset({
193
195
  slideIn: {
194
196
  waitForClose: true
195
197
  }
@@ -54,7 +54,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
54
54
  if (cache && cache.has(obj)) {
55
55
  return cache.get(obj);
56
56
  }
57
- var newObj = {};
57
+ var newObj = {
58
+ __proto__: null
59
+ };
58
60
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
59
61
  for(var key in obj){
60
62
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -183,7 +185,7 @@ function MarkdownEditorConnected(props) {
183
185
  debounce: 300,
184
186
  field: props.sdk.field,
185
187
  isInitiallyDisabled: props.isInitiallyDisabled
186
- }, ({ value , disabled , setValue , externalReset })=>_react.createElement(MarkdownEditor, {
188
+ }, ({ value, disabled, setValue, externalReset })=>_react.createElement(MarkdownEditor, {
187
189
  ...props,
188
190
  value: value,
189
191
  disabled: disabled,
@@ -59,7 +59,7 @@ function newReferenceEditorFakeSdk(props) {
59
59
  locales,
60
60
  cmaAdapter: (0, _fieldeditortestutils.createFakeCMAAdapter)({
61
61
  Entry: {
62
- get: async ({ entryId })=>{
62
+ get: async ({ entryId })=>{
63
63
  if (props?.fetchDelay) {
64
64
  await delay(props.fetchDelay);
65
65
  }
@@ -76,7 +76,7 @@ function newReferenceEditorFakeSdk(props) {
76
76
  }
77
77
  },
78
78
  Asset: {
79
- get: async ({ assetId })=>{
79
+ get: async ({ assetId })=>{
80
80
  if (props?.fetchDelay) {
81
81
  await delay(props.fetchDelay);
82
82
  }
@@ -101,7 +101,7 @@ function newReferenceEditorFakeSdk(props) {
101
101
  }
102
102
  },
103
103
  ContentType: {
104
- get: async ({ contentTypeId })=>{
104
+ get: async ({ contentTypeId })=>{
105
105
  if (contentTypeId === _fixtures.contentTypes.published.sys.id) {
106
106
  return _fixtures.contentTypes.published;
107
107
  }
@@ -12,17 +12,17 @@ _export(exports, {
12
12
  changed: function() {
13
13
  return _changed_assetjson.default;
14
14
  },
15
+ created: function() {
16
+ return _created_assetjson.default;
17
+ },
15
18
  empty: function() {
16
19
  return _empty_assetjson.default;
17
20
  },
18
- published: function() {
19
- return _published_assetjson.default;
20
- },
21
21
  invalid: function() {
22
22
  return _invalid_assetjson.default;
23
23
  },
24
- created: function() {
25
- return _created_assetjson.default;
24
+ published: function() {
25
+ return _published_assetjson.default;
26
26
  }
27
27
  });
28
28
  const _changed_assetjson = _interop_require_default(require("./changed_asset.json"));
@@ -15,11 +15,11 @@ _export(exports, {
15
15
  empty: function() {
16
16
  return _empty_entryjson.default;
17
17
  },
18
- published: function() {
19
- return _published_entryjson.default;
20
- },
21
18
  invalid: function() {
22
19
  return _invalid_entryjson.default;
20
+ },
21
+ published: function() {
22
+ return _published_entryjson.default;
23
23
  }
24
24
  });
25
25
  const _changed_entryjson = _interop_require_default(require("./changed_entry.json"));
@@ -51,7 +51,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
51
51
  if (cache && cache.has(obj)) {
52
52
  return cache.get(obj);
53
53
  }
54
- var newObj = {};
54
+ var newObj = {
55
+ __proto__: null
56
+ };
55
57
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
56
58
  for(var key in obj){
57
59
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -31,7 +31,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
31
31
  if (cache && cache.has(obj)) {
32
32
  return cache.get(obj);
33
33
  }
34
- var newObj = {};
34
+ var newObj = {
35
+ __proto__: null
36
+ };
35
37
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
36
38
  for(var key in obj){
37
39
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -32,7 +32,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
32
32
  if (cache && cache.has(obj)) {
33
33
  return cache.get(obj);
34
34
  }
35
- var newObj = {};
35
+ var newObj = {
36
+ __proto__: null
37
+ };
36
38
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
37
39
  for(var key in obj){
38
40
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -9,14 +9,14 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
+ MarkdownBottomBar: function() {
13
+ return MarkdownBottomBar;
14
+ },
12
15
  MarkdownCounter: function() {
13
16
  return MarkdownCounter;
14
17
  },
15
18
  MarkdownHelp: function() {
16
19
  return MarkdownHelp;
17
- },
18
- MarkdownBottomBar: function() {
19
- return MarkdownBottomBar;
20
20
  }
21
21
  });
22
22
  const _react = _interop_require_wildcard(require("react"));
@@ -49,7 +49,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
49
49
  if (cache && cache.has(obj)) {
50
50
  return cache.get(obj);
51
51
  }
52
- var newObj = {};
52
+ var newObj = {
53
+ __proto__: null
54
+ };
53
55
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
54
56
  for(var key in obj){
55
57
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -101,7 +103,7 @@ function SanitizeMessage() {
101
103
  href: SANITIZE_LINK
102
104
  }, "Learn more."));
103
105
  }
104
- function CheatSheetMessage({ onClick }) {
106
+ function CheatSheetMessage({ onClick }) {
105
107
  return _react.createElement("span", null, "Format your text like a pro with the", ' ', _react.createElement(_f36components.TextLink, {
106
108
  as: "button",
107
109
  testId: "open-markdown-cheatsheet-button",
@@ -38,7 +38,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
38
38
  if (cache && cache.has(obj)) {
39
39
  return cache.get(obj);
40
40
  }
41
- var newObj = {};
41
+ var newObj = {
42
+ __proto__: null
43
+ };
42
44
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
43
45
  for(var key in obj){
44
46
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -42,7 +42,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
42
42
  if (cache && cache.has(obj)) {
43
43
  return cache.get(obj);
44
44
  }
45
- var newObj = {};
45
+ var newObj = {
46
+ __proto__: null
47
+ };
46
48
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
47
49
  for(var key in obj){
48
50
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -211,7 +213,7 @@ const styles = {
211
213
  })
212
214
  };
213
215
  function MarkdownLink(props) {
214
- const { Embedly , children , ...rest } = props;
216
+ const { Embedly, children, ...rest } = props;
215
217
  if (props.className === 'embedly-card' && Embedly) {
216
218
  return _react.createElement(Embedly, {
217
219
  url: props.href ?? ''
@@ -37,7 +37,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
37
37
  if (cache && cache.has(obj)) {
38
38
  return cache.get(obj);
39
39
  }
40
- var newObj = {};
40
+ var newObj = {
41
+ __proto__: null
42
+ };
41
43
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
42
44
  for(var key in obj){
43
45
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -39,7 +39,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
39
39
  if (cache && cache.has(obj)) {
40
40
  return cache.get(obj);
41
41
  }
42
- var newObj = {};
42
+ var newObj = {
43
+ __proto__: null
44
+ };
43
45
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
44
46
  for(var key in obj){
45
47
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -67,7 +69,7 @@ function stripUnit(value) {
67
69
  return parseFloat(value);
68
70
  }
69
71
  function create(host, options) {
70
- const { direction , fixedHeight , height , readOnly } = options || {};
72
+ const { direction, fixedHeight, height, readOnly } = options || {};
71
73
  let initializedWithValue = false;
72
74
  const LF = '\n';
73
75
  const EDITOR_SIZE = {
@@ -38,7 +38,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
38
38
  if (cache && cache.has(obj)) {
39
39
  return cache.get(obj);
40
40
  }
41
- var newObj = {};
41
+ var newObj = {
42
+ __proto__: null
43
+ };
42
44
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
43
45
  for(var key in obj){
44
46
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -31,7 +31,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
31
31
  if (cache && cache.has(obj)) {
32
32
  return cache.get(obj);
33
33
  }
34
- var newObj = {};
34
+ var newObj = {
35
+ __proto__: null
36
+ };
35
37
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
36
38
  for(var key in obj){
37
39
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -12,11 +12,11 @@ _export(exports, {
12
12
  DefaultMarkdownToolbar: function() {
13
13
  return DefaultMarkdownToolbar;
14
14
  },
15
- ZenMarkdownToolbar: function() {
16
- return ZenMarkdownToolbar;
17
- },
18
15
  MarkdownToolbar: function() {
19
16
  return MarkdownToolbar;
17
+ },
18
+ ZenMarkdownToolbar: function() {
19
+ return ZenMarkdownToolbar;
20
20
  }
21
21
  });
22
22
  const _react = _interop_require_wildcard(require("react"));
@@ -53,7 +53,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
53
53
  if (cache && cache.has(obj)) {
54
54
  return cache.get(obj);
55
55
  }
56
- var newObj = {};
56
+ var newObj = {
57
+ __proto__: null
58
+ };
57
59
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
58
60
  for(var key in obj){
59
61
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -102,7 +104,7 @@ const styles = {
102
104
  })
103
105
  };
104
106
  const ToolbarButton = _react.forwardRef((props, ref)=>{
105
- const { tooltip , onClick , children , className , variant ='transparent' , tooltipPlace ='top' , isDisabled =false , ...otherProps } = props;
107
+ const { tooltip, onClick, children, className, variant = 'transparent', tooltipPlace = 'top', isDisabled = false, ...otherProps } = props;
106
108
  return _react.createElement(_f36components.Tooltip, {
107
109
  className: styles.tooltip,
108
110
  usePortal: true,
@@ -9,35 +9,35 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Zen: function() {
13
- return Zen;
12
+ Cubes: function() {
13
+ return Cubes;
14
14
  },
15
- Strikethrough: function() {
16
- return Strikethrough;
15
+ Dedent: function() {
16
+ return Dedent;
17
17
  },
18
18
  Indent: function() {
19
19
  return Indent;
20
20
  },
21
- Dedent: function() {
22
- return Dedent;
23
- },
24
- Cubes: function() {
25
- return Cubes;
21
+ OrgLinks: function() {
22
+ return OrgLinks;
26
23
  },
27
- Table: function() {
28
- return Table;
24
+ Redo: function() {
25
+ return Redo;
29
26
  },
30
27
  SpecialChar: function() {
31
28
  return SpecialChar;
32
29
  },
33
- OrgLinks: function() {
34
- return OrgLinks;
30
+ Strikethrough: function() {
31
+ return Strikethrough;
32
+ },
33
+ Table: function() {
34
+ return Table;
35
35
  },
36
36
  Undo: function() {
37
37
  return Undo;
38
38
  },
39
- Redo: function() {
40
- return Redo;
39
+ Zen: function() {
40
+ return Zen;
41
41
  }
42
42
  });
43
43
  const _react = _interop_require_wildcard(require("react"));
@@ -63,7 +63,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
63
63
  if (cache && cache.has(obj)) {
64
64
  return cache.get(obj);
65
65
  }
66
- var newObj = {};
66
+ var newObj = {
67
+ __proto__: null
68
+ };
67
69
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
68
70
  for(var key in obj){
69
71
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -91,7 +93,7 @@ const srOnly = (0, _emotion.css)({
91
93
  clip: 'rect(0, 0, 0, 0)',
92
94
  border: '0'
93
95
  });
94
- const Zen = ({ label , ...rest })=>_react.createElement("svg", {
96
+ const Zen = ({ label, ...rest })=>_react.createElement("svg", {
95
97
  width: 14,
96
98
  height: 14,
97
99
  viewBox: "0 0 1792 1792",
@@ -101,7 +103,7 @@ const Zen = ({ label , ...rest })=>_react.createElement("svg", {
101
103
  }), _react.createElement("span", {
102
104
  className: srOnly
103
105
  }, label));
104
- const Strikethrough = ({ label , ...rest })=>_react.createElement("svg", {
106
+ const Strikethrough = ({ label, ...rest })=>_react.createElement("svg", {
105
107
  width: 14,
106
108
  height: 14,
107
109
  viewBox: "0 0 1792 1792",
@@ -111,7 +113,7 @@ const Strikethrough = ({ label , ...rest })=>_react.createElement("svg", {
111
113
  }), _react.createElement("span", {
112
114
  className: srOnly
113
115
  }, label));
114
- const Indent = ({ label , ...rest })=>_react.createElement("svg", {
116
+ const Indent = ({ label, ...rest })=>_react.createElement("svg", {
115
117
  width: 14,
116
118
  height: 14,
117
119
  viewBox: "0 0 1792 1792",
@@ -121,7 +123,7 @@ const Indent = ({ label , ...rest })=>_react.createElement("svg", {
121
123
  }), _react.createElement("span", {
122
124
  className: srOnly
123
125
  }, label));
124
- const Dedent = ({ label , ...rest })=>_react.createElement("svg", {
126
+ const Dedent = ({ label, ...rest })=>_react.createElement("svg", {
125
127
  width: 14,
126
128
  height: 14,
127
129
  viewBox: "0 0 1792 1792",
@@ -131,7 +133,7 @@ const Dedent = ({ label , ...rest })=>_react.createElement("svg", {
131
133
  }), _react.createElement("span", {
132
134
  className: srOnly
133
135
  }, label));
134
- const Cubes = ({ label , ...rest })=>_react.createElement("svg", {
136
+ const Cubes = ({ label, ...rest })=>_react.createElement("svg", {
135
137
  width: 18,
136
138
  height: 14,
137
139
  viewBox: "0 0 2304 1792",
@@ -141,7 +143,7 @@ const Cubes = ({ label , ...rest })=>_react.createElement("svg", {
141
143
  }), _react.createElement("span", {
142
144
  className: srOnly
143
145
  }, label));
144
- const Table = ({ label , ...rest })=>_react.createElement("svg", {
146
+ const Table = ({ label, ...rest })=>_react.createElement("svg", {
145
147
  width: 14,
146
148
  height: 14,
147
149
  viewBox: "0 0 1792 1792",
@@ -151,7 +153,7 @@ const Table = ({ label , ...rest })=>_react.createElement("svg", {
151
153
  }), _react.createElement("span", {
152
154
  className: srOnly
153
155
  }, label));
154
- const SpecialChar = ({ label , ...rest })=>_react.createElement("svg", {
156
+ const SpecialChar = ({ label, ...rest })=>_react.createElement("svg", {
155
157
  width: 14,
156
158
  height: 14,
157
159
  viewBox: "0 0 1792 1792",
@@ -161,7 +163,7 @@ const SpecialChar = ({ label , ...rest })=>_react.createElement("svg", {
161
163
  }), _react.createElement("span", {
162
164
  className: srOnly
163
165
  }, label));
164
- const OrgLinks = ({ label , ...rest })=>_react.createElement("svg", {
166
+ const OrgLinks = ({ label, ...rest })=>_react.createElement("svg", {
165
167
  width: 14,
166
168
  height: 14,
167
169
  viewBox: "0 0 1792 1792",
@@ -171,7 +173,7 @@ const OrgLinks = ({ label , ...rest })=>_react.createElement("svg", {
171
173
  }), _react.createElement("span", {
172
174
  className: srOnly
173
175
  }, label));
174
- const Undo = ({ label , ...rest })=>_react.createElement("svg", {
176
+ const Undo = ({ label, ...rest })=>_react.createElement("svg", {
175
177
  width: 14,
176
178
  height: 14,
177
179
  viewBox: "0 0 1792 1792",
@@ -181,7 +183,7 @@ const Undo = ({ label , ...rest })=>_react.createElement("svg", {
181
183
  }), _react.createElement("span", {
182
184
  className: srOnly
183
185
  }, label));
184
- const Redo = ({ label , ...rest })=>_react.createElement("svg", {
186
+ const Redo = ({ label, ...rest })=>_react.createElement("svg", {
185
187
  width: 14,
186
188
  height: 14,
187
189
  viewBox: "0 0 1792 1792",
@@ -47,7 +47,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
47
47
  if (cache && cache.has(obj)) {
48
48
  return cache.get(obj);
49
49
  }
50
- var newObj = {};
50
+ var newObj = {
51
+ __proto__: null
52
+ };
51
53
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
52
54
  for(var key in obj){
53
55
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -40,7 +40,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
40
40
  if (cache && cache.has(obj)) {
41
41
  return cache.get(obj);
42
42
  }
43
- var newObj = {};
43
+ var newObj = {
44
+ __proto__: null
45
+ };
44
46
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
47
  for(var key in obj){
46
48
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -58,11 +60,11 @@ function _interop_require_wildcard(obj, nodeInterop) {
58
60
  }
59
61
  return newObj;
60
62
  }
61
- const ConfirmInsertAssetModalDialog = ({ onClose , assets , locale })=>{
63
+ const ConfirmInsertAssetModalDialog = ({ onClose, assets, locale })=>{
62
64
  const localesNumber = assets.length;
63
65
  return _react.createElement(_react.Fragment, null, _react.createElement(_f36components.ModalContent, {
64
66
  testId: "confirm-insert-asset"
65
- }, _react.createElement(_f36components.Paragraph, null, localesNumber === 1 ? `Link asset with missing file for locale ${locale}` : `Link assets with missing files for locale ${locale}`), _react.createElement(_f36components.Paragraph, null, localesNumber === 1 ? 'Do you want to link to the file in its fallback locale?' : 'Do you want to link to the files in their fallback locales?'), _react.createElement(_f36components.EntityList, null, assets.map(({ title , description , thumbnailUrl , thumbnailAltText })=>_react.createElement(_f36components.EntityList.Item, {
67
+ }, _react.createElement(_f36components.Paragraph, null, localesNumber === 1 ? `Link asset with missing file for locale ${locale}` : `Link assets with missing files for locale ${locale}`), _react.createElement(_f36components.Paragraph, null, localesNumber === 1 ? 'Do you want to link to the file in its fallback locale?' : 'Do you want to link to the files in their fallback locales?'), _react.createElement(_f36components.EntityList, null, assets.map(({ title, description, thumbnailUrl, thumbnailAltText })=>_react.createElement(_f36components.EntityList.Item, {
66
68
  key: thumbnailUrl,
67
69
  title: title,
68
70
  thumbnailUrl: `${thumbnailUrl}?w=46&h=46&fit=thumb`,
@@ -48,7 +48,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
48
48
  if (cache && cache.has(obj)) {
49
49
  return cache.get(obj);
50
50
  }
51
- var newObj = {};
51
+ var newObj = {
52
+ __proto__: null
53
+ };
52
54
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
53
55
  for(var key in obj){
54
56
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -81,7 +83,7 @@ const styles = {
81
83
  marginLeft: _f36tokens.default.spacingM
82
84
  })
83
85
  };
84
- const makeEmbedlyLink = ({ url , width , selectedUnit , attachSocial })=>{
86
+ const makeEmbedlyLink = ({ url, width, selectedUnit, attachSocial })=>{
85
87
  const s = {
86
88
  percent: '%',
87
89
  px: 'px'
@@ -94,7 +96,7 @@ const makeEmbedlyLink = ({ url , width , selectedUnit , attachSocial })=>{
94
96
  ].join('');
95
97
  };
96
98
  const isWidthValid = (width, unit)=>unit === 'percent' ? width <= 100 : true;
97
- const EmbedExternalContentModal = ({ onClose })=>{
99
+ const EmbedExternalContentModal = ({ onClose })=>{
98
100
  const mainInputRef = (0, _react.useRef)(null);
99
101
  const [url, setUrl] = (0, _react.useState)('https://');
100
102
  const [selectedUnit, setUnit] = (0, _react.useState)('percent');
@@ -167,11 +169,11 @@ const EmbedExternalContentModal = ({ onClose })=>{
167
169
  as: "p",
168
170
  fontColor: "gray500",
169
171
  marginTop: "spacingXs"
170
- }, "To enable this embedded content in your application make sure to add the\xa0", _react.default.createElement(_f36components.TextLink, {
172
+ }, "To enable this embedded content in your application make sure to add the ", _react.default.createElement(_f36components.TextLink, {
171
173
  href: "http://embed.ly/docs/products/cards",
172
174
  target: "_blank",
173
175
  rel: "noopener noreferrer"
174
- }, "Embedly's platform.js"), "\xa0on your development environment"))), _react.default.createElement(_f36components.ModalControls, null, _react.default.createElement(_f36components.Button, {
176
+ }, "Embedly's platform.js"), " on your development environment"))), _react.default.createElement(_f36components.ModalControls, null, _react.default.createElement(_f36components.Button, {
175
177
  testId: "emded-external-cancel",
176
178
  onClick: ()=>onClose(false),
177
179
  variant: "secondary",
@@ -41,7 +41,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
41
41
  if (cache && cache.has(obj)) {
42
42
  return cache.get(obj);
43
43
  }
44
- var newObj = {};
44
+ var newObj = {
45
+ __proto__: null
46
+ };
45
47
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
46
48
  for(var key in obj){
47
49
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -59,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
59
61
  }
60
62
  return newObj;
61
63
  }
62
- const InsertLinkModal = ({ selectedText , onClose })=>{
64
+ const InsertLinkModal = ({ selectedText, onClose })=>{
63
65
  const mainInputRef = (0, _react.useRef)(null);
64
66
  const [text, setText] = (0, _react.useState)(selectedText || '');
65
67
  const [url, setUrl] = (0, _react.useState)('');
@@ -46,7 +46,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
46
46
  if (cache && cache.has(obj)) {
47
47
  return cache.get(obj);
48
48
  }
49
- var newObj = {};
49
+ var newObj = {
50
+ __proto__: null
51
+ };
50
52
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
51
53
  for(var key in obj){
52
54
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -64,7 +66,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
64
66
  }
65
67
  return newObj;
66
68
  }
67
- const InsertTableModal = ({ onClose })=>{
69
+ const InsertTableModal = ({ onClose })=>{
68
70
  const mainInputRef = (0, _react.useRef)(null);
69
71
  const [rows, setRows] = (0, _react.useState)(2);
70
72
  const [cols, setColumns] = (0, _react.useState)(1);
@@ -48,7 +48,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
48
48
  if (cache && cache.has(obj)) {
49
49
  return cache.get(obj);
50
50
  }
51
- var newObj = {};
51
+ var newObj = {
52
+ __proto__: null
53
+ };
52
54
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
53
55
  for(var key in obj){
54
56
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
@@ -90,7 +92,7 @@ const styles = {
90
92
  marginRight: _f36tokens.default.spacingS
91
93
  })
92
94
  };
93
- const SpecialCharacterModalDialog = ({ onClose })=>{
95
+ const SpecialCharacterModalDialog = ({ onClose })=>{
94
96
  const [selectedCharacter, setSelectedCharacter] = (0, _react.useState)(_specialCharacters.specialCharacters[0]);
95
97
  return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_f36components.ModalContent, {
96
98
  testId: "insert-special-character-modal"
@@ -54,7 +54,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
54
54
  if (cache && cache.has(obj)) {
55
55
  return cache.get(obj);
56
56
  }
57
- var newObj = {};
57
+ var newObj = {
58
+ __proto__: null
59
+ };
58
60
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
59
61
  for(var key in obj){
60
62
  if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {