@limetech/lime-elements 39.13.3 → 39.14.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 (184) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{_assignValue-D2D1zedG.js → _assignValue-DpsLUlF4.js} +25 -2
  3. package/dist/cjs/{_baseForOwn-QM0kHQT5.js → _baseEach-C570gT5Y.js} +43 -1
  4. package/dist/cjs/{_baseIsEqual-D6hrjmx4.js → _baseIsEqual-aOPReRWl.js} +1 -0
  5. package/dist/cjs/{_baseIteratee-iGEZ9pZY.js → _baseIteratee-DggA4e7a.js} +3 -1
  6. package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
  7. package/dist/cjs/_getAllKeysIn-BQIV8aw7.js +118 -0
  8. package/dist/cjs/_isIterateeCall-CPWXFS_s.js +72 -0
  9. package/dist/cjs/cloneDeep-CxFNKF1Y.js +619 -0
  10. package/dist/cjs/{isArrayLikeObject-CTP6Ak01.js → difference-Bfsq4sXB.js} +93 -5
  11. package/dist/cjs/{focus-trigger-element-NnpJ5nTp.js → focus-trigger-element-Brw8VubX.js} +1 -1
  12. package/dist/cjs/{format-D04vDIBj.js → format-D4jZb7Ls.js} +1 -1
  13. package/dist/cjs/{index-mbfaT7TB.js → index-BgFEL6FF.js} +1 -1
  14. package/dist/cjs/{isEmpty-DCC_l2Xp.js → isEmpty-EBCFxX1S.js} +1 -1
  15. package/dist/cjs/{isEqual-BsHLqE-x.js → isEqual-bXyw7kXo.js} +1 -1
  16. package/dist/cjs/lime-elements.cjs.js +1 -1
  17. package/dist/cjs/limel-badge.cjs.entry.js +2 -2
  18. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +2 -3
  19. package/dist/cjs/limel-chip_2.cjs.entry.js +3 -3
  20. package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
  21. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
  23. package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
  24. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +5 -44
  25. package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
  26. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +12 -74
  27. package/dist/cjs/limel-form.cjs.entry.js +38541 -50295
  28. package/dist/cjs/limel-markdown.cjs.entry.js +3 -3
  29. package/dist/cjs/limel-popover_2.cjs.entry.js +2 -3
  30. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +23 -481
  31. package/dist/cjs/limel-tab-bar.cjs.entry.js +4 -83
  32. package/dist/cjs/limel-table.cjs.entry.js +14 -269
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/cjs/{markdown-parser-DCnW9yak.js → markdown-parser-BIa99LAc.js} +2 -2
  35. package/dist/cjs/{moment-DCqC7BZP.js → moment-CqRdiK10.js} +1 -1
  36. package/dist/cjs/pickBy-kLjYLoam.js +201 -0
  37. package/dist/cjs/{sv-jO-ewmqh.js → sv-BSR4W58y.js} +1 -1
  38. package/dist/collection/components/form/adapters/widget-adapter.js +23 -30
  39. package/dist/collection/components/form/fields/array-field.js +39 -6
  40. package/dist/collection/components/form/fields/field-helpers.js +4 -4
  41. package/dist/collection/components/form/fields/object-field.js +4 -2
  42. package/dist/collection/components/form/fields/schema-field.js +33 -70
  43. package/dist/collection/components/form/form.css +19 -19
  44. package/dist/collection/components/form/form.js +40 -72
  45. package/dist/collection/components/form/form.test-schemas.js +308 -0
  46. package/dist/collection/components/form/row/row-context.js +2 -0
  47. package/dist/collection/components/form/row/row.js +2 -2
  48. package/dist/collection/components/form/templates/array-context.js +2 -0
  49. package/dist/collection/components/form/templates/array-field-collapsible-item.js +4 -4
  50. package/dist/collection/components/form/templates/array-field-item.js +47 -0
  51. package/dist/collection/components/form/templates/array-field-simple-item.js +6 -7
  52. package/dist/collection/components/form/templates/array-field.js +38 -94
  53. package/dist/collection/components/form/templates/index.js +1 -0
  54. package/dist/collection/components/form/templates/object-field.js +15 -11
  55. package/dist/collection/components/form/validation-display.js +75 -0
  56. package/dist/collection/components/form/validator.js +10 -0
  57. package/dist/collection/components/form/widgets/code-editor.js +1 -1
  58. package/dist/collection/components/form/widgets/select.js +2 -1
  59. package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/create-html-inserter.js +2 -2
  60. package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/factory-helpers/append-transaction-handler.js +7 -0
  61. package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/inserter.js +1 -1
  62. package/dist/esm/{_assignValue-DkGAX8ec.js → _assignValue-DOEO9byf.js} +24 -2
  63. package/dist/esm/{_baseForOwn-CfpQNnvA.js → _baseEach-CL_-rBMy.js} +42 -2
  64. package/dist/esm/{_baseIsEqual-BvHnKRmD.js → _baseIsEqual-BfXMsuGh.js} +2 -2
  65. package/dist/esm/{_baseIteratee-DFBCJcMA.js → _baseIteratee-kS1-0_xD.js} +3 -3
  66. package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
  67. package/dist/esm/_getAllKeysIn-BKpeslPJ.js +113 -0
  68. package/dist/esm/_isIterateeCall-CTcCv8Mb.js +69 -0
  69. package/dist/esm/cloneDeep-BXAw5H-1.js +609 -0
  70. package/dist/esm/{isArrayLikeObject-D7yRwRv4.js → difference-DMAjHh-t.js} +91 -7
  71. package/dist/esm/{focus-trigger-element-6aEStEKM.js → focus-trigger-element-DubROLkE.js} +1 -1
  72. package/dist/esm/{format-BMPGHLQ8.js → format-hTrthuPP.js} +1 -1
  73. package/dist/esm/{index-DJJymEnS.js → index-t4DgGbWS.js} +1 -1
  74. package/dist/esm/{isArrayLike-bWHU4ebg.js → isArrayLike-D1QkaJU2.js} +1 -1
  75. package/dist/esm/{isEmpty-tfwtR2ai.js → isEmpty-DrFXbHWO.js} +2 -2
  76. package/dist/esm/{isEqual-BkQ4Z_9r.js → isEqual-CpaoJ_AF.js} +1 -1
  77. package/dist/esm/lime-elements.js +1 -1
  78. package/dist/esm/limel-badge.entry.js +2 -2
  79. package/dist/esm/limel-breadcrumbs_7.entry.js +2 -3
  80. package/dist/esm/limel-chip_2.entry.js +4 -4
  81. package/dist/esm/limel-circular-progress.entry.js +2 -2
  82. package/dist/esm/limel-code-editor.entry.js +1 -1
  83. package/dist/esm/limel-date-picker.entry.js +3 -3
  84. package/dist/esm/limel-dialog.entry.js +3 -3
  85. package/dist/esm/limel-file-dropzone_2.entry.js +4 -43
  86. package/dist/esm/limel-file-viewer.entry.js +2 -2
  87. package/dist/esm/limel-flatpickr-adapter.entry.js +8 -70
  88. package/dist/esm/limel-form.entry.js +38553 -50307
  89. package/dist/esm/limel-markdown.entry.js +3 -3
  90. package/dist/esm/limel-popover_2.entry.js +2 -3
  91. package/dist/esm/limel-prosemirror-adapter.entry.js +22 -480
  92. package/dist/esm/limel-tab-bar.entry.js +4 -83
  93. package/dist/esm/limel-table.entry.js +11 -266
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/{markdown-parser-CXYHPPe2.js → markdown-parser-D7vLKElE.js} +2 -2
  96. package/dist/esm/{moment-DhvPC9Jt.js → moment-DQRNe8qq.js} +1 -1
  97. package/dist/esm/pickBy-BEA90LIZ.js +195 -0
  98. package/dist/esm/{sv-84mf7Xsv.js → sv-CY-6-yEp.js} +1 -1
  99. package/dist/lime-elements/lime-elements.esm.js +1 -1
  100. package/dist/lime-elements/p-1cb2d781.entry.js +13 -0
  101. package/dist/lime-elements/{p-00d6ccd6.entry.js → p-25ae3a55.entry.js} +5 -5
  102. package/dist/lime-elements/{p-be0cbddb.entry.js → p-374ec191.entry.js} +1 -1
  103. package/dist/lime-elements/p-3a662d7e.entry.js +1 -0
  104. package/dist/lime-elements/{p-f0f5eda1.entry.js → p-41be4893.entry.js} +1 -1
  105. package/dist/lime-elements/{p-c84911e6.entry.js → p-4ad193a2.entry.js} +1 -1
  106. package/dist/lime-elements/{p-dd7a2361.entry.js → p-4ce682cf.entry.js} +3 -3
  107. package/dist/lime-elements/{p-eeae0ef6.entry.js → p-5ee484a7.entry.js} +4 -4
  108. package/dist/lime-elements/{p-b1d6553c.entry.js → p-77abb595.entry.js} +1 -1
  109. package/dist/lime-elements/p-8065425a.entry.js +1 -0
  110. package/dist/lime-elements/{p-77ba0f66.entry.js → p-8299af78.entry.js} +1 -1
  111. package/dist/lime-elements/{p-87c5e951.entry.js → p-8c7a7003.entry.js} +1 -1
  112. package/dist/lime-elements/{p-ce20d720.entry.js → p-97c401f1.entry.js} +1 -1
  113. package/dist/lime-elements/p-9a378cf0.entry.js +1 -0
  114. package/dist/lime-elements/p-B3zCFNAw.js +1 -0
  115. package/dist/lime-elements/p-B6bNnxRu.js +1 -0
  116. package/dist/lime-elements/p-B85MJLTf.js +1 -0
  117. package/dist/lime-elements/p-BCMRfUKp.js +1 -0
  118. package/dist/lime-elements/p-BbU4FGNT.js +1 -0
  119. package/dist/lime-elements/p-Bp0tNo1s.js +1 -0
  120. package/dist/lime-elements/{p-DpyWBa_Z.js → p-Bt64o80S.js} +1 -1
  121. package/dist/lime-elements/{p-BqiDn_Sf.js → p-BvDmWgCs.js} +1 -1
  122. package/dist/lime-elements/p-CMjGNANG.js +1 -0
  123. package/dist/lime-elements/p-DFWcgJ_i.js +1 -0
  124. package/dist/lime-elements/{p-B4YDb6f3.js → p-DJvGLFul.js} +1 -1
  125. package/dist/lime-elements/p-DTXIk0fN.js +1 -0
  126. package/dist/lime-elements/{p-BgPHaiMH.js → p-D_uMnX5g.js} +1 -1
  127. package/dist/lime-elements/{p-g3InYy9F.js → p-DdYOzHlg.js} +1 -1
  128. package/dist/lime-elements/{p-ndpPJpml.js → p-DsDkl4Sy.js} +1 -1
  129. package/dist/lime-elements/p-UGKt6Ywx.js +1 -0
  130. package/dist/lime-elements/p-afcf580c.entry.js +16 -0
  131. package/dist/lime-elements/p-f6c3f49b.entry.js +1 -0
  132. package/dist/lime-elements/p-v6b303K5.js +1 -0
  133. package/dist/lime-elements/p-xQsJdKrq.js +1 -0
  134. package/dist/lime-elements/{p-BYx8mudw.js → p-zo6O9LC9.js} +2 -2
  135. package/dist/types/components/form/adapters/widget-adapter.d.ts +3 -2
  136. package/dist/types/components/form/fields/array-field.d.ts +11 -19
  137. package/dist/types/components/form/fields/object-field.d.ts +2 -2
  138. package/dist/types/components/form/fields/schema-field.d.ts +5 -18
  139. package/dist/types/components/form/form.d.ts +4 -8
  140. package/dist/types/components/form/form.test-schemas.d.ts +30 -0
  141. package/dist/types/components/form/row/row-context.d.ts +2 -0
  142. package/dist/types/components/form/templates/array-context.d.ts +7 -0
  143. package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +7 -11
  144. package/dist/types/components/form/templates/array-field-item.d.ts +6 -0
  145. package/dist/types/components/form/templates/array-field-simple-item.d.ts +7 -9
  146. package/dist/types/components/form/templates/array-field.d.ts +7 -8
  147. package/dist/types/components/form/templates/index.d.ts +1 -0
  148. package/dist/types/components/form/templates/object-field.d.ts +6 -1
  149. package/dist/types/components/form/templates/types.d.ts +2 -4
  150. package/dist/types/components/form/validation-display.d.ts +60 -0
  151. package/dist/types/components/form/validator.d.ts +6 -0
  152. package/dist/types/components/form/widgets/code-editor.d.ts +1 -1
  153. package/dist/types/components/form/widgets/types.d.ts +1 -1
  154. package/dist/types/components/text-editor/prosemirror-adapter/plugins/trigger/create-html-inserter.d.ts +2 -1
  155. package/package.json +4 -2
  156. package/dist/cjs/_baseAssignValue-BJgt6T7z.js +0 -27
  157. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  158. package/dist/cjs/_getPrototype-BK9cL-57.js +0 -8
  159. package/dist/cjs/negate-Bg3SqQh6.js +0 -42
  160. package/dist/collection/components/form/fields/types.js +0 -1
  161. package/dist/collection/components/form/schema-cache.js +0 -66
  162. package/dist/esm/_baseAssignValue-C8Uwn8zr.js +0 -25
  163. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  164. package/dist/esm/_getPrototype-jV9gkkJy.js +0 -6
  165. package/dist/esm/negate-ooVD-6_a.js +0 -40
  166. package/dist/lime-elements/p-45dfcaf3.entry.js +0 -1
  167. package/dist/lime-elements/p-5db2d069.entry.js +0 -1
  168. package/dist/lime-elements/p-9728aa4a.entry.js +0 -1
  169. package/dist/lime-elements/p-BFTU3MAI.js +0 -1
  170. package/dist/lime-elements/p-BlJd1RC5.js +0 -1
  171. package/dist/lime-elements/p-C6SEjICu.js +0 -1
  172. package/dist/lime-elements/p-CqEHNkif.js +0 -1
  173. package/dist/lime-elements/p-Cs5T63LB.js +0 -1
  174. package/dist/lime-elements/p-Cw1B5fXE.js +0 -1
  175. package/dist/lime-elements/p-DKxusNKT.js +0 -1
  176. package/dist/lime-elements/p-DrjUjEz3.js +0 -1
  177. package/dist/lime-elements/p-DzlmgobW.js +0 -1
  178. package/dist/lime-elements/p-ZcW3uvZL.js +0 -1
  179. package/dist/lime-elements/p-a4a09ce9.entry.js +0 -7
  180. package/dist/lime-elements/p-c4e2885d.entry.js +0 -16
  181. package/dist/lime-elements/p-ee80a6f2.entry.js +0 -1
  182. package/dist/lime-elements/p-ooVD-6_a.js +0 -1
  183. package/dist/types/components/form/fields/types.d.ts +0 -41
  184. package/dist/types/components/form/schema-cache.d.ts +0 -17
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-DBTJNfo7.js';
2
- import { m as markdownToHTML } from './markdown-parser-CXYHPPe2.js';
2
+ import { m as markdownToHTML } from './markdown-parser-D7vLKElE.js';
3
3
  import { g as globalConfig } from './config-Dnt5w_Bp.js';
4
- import { d as defaultSchema } from './index-DJJymEnS.js';
5
- import './_commonjsHelpers-BFTU3MAI.js';
4
+ import { d as defaultSchema } from './index-t4DgGbWS.js';
5
+ import './_commonjsHelpers-B85MJLTf.js';
6
6
 
7
7
  class ImageIntersectionObserver {
8
8
  /**
@@ -1,9 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as getElement } from './index-DBTJNfo7.js';
2
2
  import { c as createRandomString } from './random-string-JbKhhoXs.js';
3
3
  import { E as ESCAPE } from './keycodes-rI0IeKpx.js';
4
- import { f as focusTriggerElement, z as zipObject } from './focus-trigger-element-6aEStEKM.js';
5
- import './_assignValue-DkGAX8ec.js';
6
- import './_baseAssignValue-C8Uwn8zr.js';
4
+ import { f as focusTriggerElement, z as zipObject } from './focus-trigger-element-DubROLkE.js';
5
+ import './_assignValue-DOEO9byf.js';
7
6
  import './_defineProperty-yVdnnt__.js';
8
7
  import './_getNative-aN4R8EiP.js';
9
8
  import './eq-D7VMHFyO.js';
@@ -1,495 +1,30 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DBTJNfo7.js';
2
2
  import { E as EditorMenuTypes, L as LevelMapping, M as MouseButtons, e as editorMenuTypesArray } from './types-BWYo6dLf.js';
3
- import { g as getLinkAttributes, m as markdownToHTML, s as sanitizeHTML } from './markdown-parser-CXYHPPe2.js';
4
- import { U as Uint8Array, f as isPrototype, g as getTag, r as baseUnary, t as nodeUtil, i as isBuffer, j as Stack, u as getAllKeys } from './_baseIsEqual-BvHnKRmD.js';
5
- import { a as assignValue } from './_assignValue-DkGAX8ec.js';
6
- import { i as isObject$1, S as Symbol } from './isObject-BJQylLSL.js';
7
- import { g as getPrototype } from './_getPrototype-jV9gkkJy.js';
8
- import { i as isArray } from './isArray-B8VKuhvH.js';
9
- import { i as isObjectLike } from './isObjectLike-oiMYqRQ0.js';
10
- import { c as decodeHTML } from './index-DJJymEnS.js';
3
+ import { g as getLinkAttributes, m as markdownToHTML, s as sanitizeHTML } from './markdown-parser-D7vLKElE.js';
4
+ import { h as cloneDeep } from './cloneDeep-BXAw5H-1.js';
5
+ import { c as decodeHTML } from './index-t4DgGbWS.js';
11
6
  import { t as translate } from './translations-DVRaJQvC.js';
12
7
  import { c as createRandomString } from './random-string-JbKhhoXs.js';
13
8
  import { i as isItem } from './is-item-CrvUOVvg.js';
14
9
  import { c as createFileInfo } from './files-P324wLau.js';
15
- import { i as isEqual } from './isEqual-BkQ4Z_9r.js';
10
+ import { i as isEqual } from './isEqual-CpaoJ_AF.js';
16
11
  import { d as debounce } from './debounce-B67JMchz.js';
17
- import './_commonjsHelpers-BFTU3MAI.js';
12
+ import './_commonjsHelpers-B85MJLTf.js';
13
+ import './_baseIsEqual-BfXMsuGh.js';
18
14
  import './eq-D7VMHFyO.js';
15
+ import './isObject-BJQylLSL.js';
19
16
  import './_getNative-aN4R8EiP.js';
20
- import './isArrayLike-bWHU4ebg.js';
21
- import './_baseAssignValue-C8Uwn8zr.js';
17
+ import './isArray-B8VKuhvH.js';
18
+ import './isObjectLike-oiMYqRQ0.js';
19
+ import './isArrayLike-D1QkaJU2.js';
20
+ import './_assignValue-DOEO9byf.js';
22
21
  import './_defineProperty-yVdnnt__.js';
22
+ import './_getAllKeysIn-BKpeslPJ.js';
23
23
  import './file-metadata-BwF9vTXN.js';
24
24
  import './get-icon-props-CgNJbSP4.js';
25
25
  import './toNumber-D6JYpQI9.js';
26
26
  import './isSymbol-ClAke5ga.js';
27
27
 
28
- /** Built-in value references. */
29
- var objectCreate = Object.create;
30
-
31
- /**
32
- * The base implementation of `_.create` without support for assigning
33
- * properties to the created object.
34
- *
35
- * @private
36
- * @param {Object} proto The object to inherit from.
37
- * @returns {Object} Returns the new object.
38
- */
39
- var baseCreate = (function() {
40
- function object() {}
41
- return function(proto) {
42
- if (!isObject$1(proto)) {
43
- return {};
44
- }
45
- if (objectCreate) {
46
- return objectCreate(proto);
47
- }
48
- object.prototype = proto;
49
- var result = new object;
50
- object.prototype = undefined;
51
- return result;
52
- };
53
- }());
54
-
55
- /**
56
- * A specialized version of `_.forEach` for arrays without support for
57
- * iteratee shorthands.
58
- *
59
- * @private
60
- * @param {Array} [array] The array to iterate over.
61
- * @param {Function} iteratee The function invoked per iteration.
62
- * @returns {Array} Returns `array`.
63
- */
64
- function arrayEach(array, iteratee) {
65
- var index = -1,
66
- length = array == null ? 0 : array.length;
67
-
68
- while (++index < length) {
69
- if (iteratee(array[index], index, array) === false) {
70
- break;
71
- }
72
- }
73
- return array;
74
- }
75
-
76
- /** Detect free variable `exports`. */
77
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
78
-
79
- /** Detect free variable `module`. */
80
- freeExports && typeof module == 'object' && module && !module.nodeType && module;
81
-
82
- /**
83
- * Creates a clone of `buffer`.
84
- *
85
- * @private
86
- * @param {Buffer} buffer The buffer to clone.
87
- * @param {boolean} [isDeep] Specify a deep clone.
88
- * @returns {Buffer} Returns the cloned buffer.
89
- */
90
- function cloneBuffer(buffer, isDeep) {
91
- {
92
- return buffer.slice();
93
- }
94
- }
95
-
96
- /** Used for built-in method references. */
97
- var objectProto = Object.prototype;
98
-
99
- /** Used to check objects for own properties. */
100
- var hasOwnProperty = objectProto.hasOwnProperty;
101
-
102
- /**
103
- * Initializes an array clone.
104
- *
105
- * @private
106
- * @param {Array} array The array to clone.
107
- * @returns {Array} Returns the initialized clone.
108
- */
109
- function initCloneArray(array) {
110
- var length = array.length,
111
- result = new array.constructor(length);
112
-
113
- // Add properties assigned by `RegExp#exec`.
114
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
115
- result.index = array.index;
116
- result.input = array.input;
117
- }
118
- return result;
119
- }
120
-
121
- /**
122
- * Creates a clone of `arrayBuffer`.
123
- *
124
- * @private
125
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
126
- * @returns {ArrayBuffer} Returns the cloned array buffer.
127
- */
128
- function cloneArrayBuffer(arrayBuffer) {
129
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
130
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
131
- return result;
132
- }
133
-
134
- /**
135
- * Creates a clone of `dataView`.
136
- *
137
- * @private
138
- * @param {Object} dataView The data view to clone.
139
- * @param {boolean} [isDeep] Specify a deep clone.
140
- * @returns {Object} Returns the cloned data view.
141
- */
142
- function cloneDataView(dataView, isDeep) {
143
- var buffer = cloneArrayBuffer(dataView.buffer) ;
144
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
145
- }
146
-
147
- /** Used to match `RegExp` flags from their coerced string values. */
148
- var reFlags = /\w*$/;
149
-
150
- /**
151
- * Creates a clone of `regexp`.
152
- *
153
- * @private
154
- * @param {Object} regexp The regexp to clone.
155
- * @returns {Object} Returns the cloned regexp.
156
- */
157
- function cloneRegExp(regexp) {
158
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
159
- result.lastIndex = regexp.lastIndex;
160
- return result;
161
- }
162
-
163
- /** Used to convert symbols to primitives and strings. */
164
- var symbolProto = Symbol ? Symbol.prototype : undefined,
165
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
166
-
167
- /**
168
- * Creates a clone of the `symbol` object.
169
- *
170
- * @private
171
- * @param {Object} symbol The symbol object to clone.
172
- * @returns {Object} Returns the cloned symbol object.
173
- */
174
- function cloneSymbol(symbol) {
175
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
176
- }
177
-
178
- /**
179
- * Creates a clone of `typedArray`.
180
- *
181
- * @private
182
- * @param {Object} typedArray The typed array to clone.
183
- * @param {boolean} [isDeep] Specify a deep clone.
184
- * @returns {Object} Returns the cloned typed array.
185
- */
186
- function cloneTypedArray(typedArray, isDeep) {
187
- var buffer = cloneArrayBuffer(typedArray.buffer) ;
188
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
189
- }
190
-
191
- /** `Object#toString` result references. */
192
- var boolTag$1 = '[object Boolean]',
193
- dateTag$1 = '[object Date]',
194
- mapTag$2 = '[object Map]',
195
- numberTag$1 = '[object Number]',
196
- regexpTag$1 = '[object RegExp]',
197
- setTag$2 = '[object Set]',
198
- stringTag$1 = '[object String]',
199
- symbolTag$1 = '[object Symbol]';
200
-
201
- var arrayBufferTag$1 = '[object ArrayBuffer]',
202
- dataViewTag$1 = '[object DataView]',
203
- float32Tag$1 = '[object Float32Array]',
204
- float64Tag$1 = '[object Float64Array]',
205
- int8Tag$1 = '[object Int8Array]',
206
- int16Tag$1 = '[object Int16Array]',
207
- int32Tag$1 = '[object Int32Array]',
208
- uint8Tag$1 = '[object Uint8Array]',
209
- uint8ClampedTag$1 = '[object Uint8ClampedArray]',
210
- uint16Tag$1 = '[object Uint16Array]',
211
- uint32Tag$1 = '[object Uint32Array]';
212
-
213
- /**
214
- * Initializes an object clone based on its `toStringTag`.
215
- *
216
- * **Note:** This function only supports cloning values with tags of
217
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
218
- *
219
- * @private
220
- * @param {Object} object The object to clone.
221
- * @param {string} tag The `toStringTag` of the object to clone.
222
- * @param {boolean} [isDeep] Specify a deep clone.
223
- * @returns {Object} Returns the initialized clone.
224
- */
225
- function initCloneByTag(object, tag, isDeep) {
226
- var Ctor = object.constructor;
227
- switch (tag) {
228
- case arrayBufferTag$1:
229
- return cloneArrayBuffer(object);
230
-
231
- case boolTag$1:
232
- case dateTag$1:
233
- return new Ctor(+object);
234
-
235
- case dataViewTag$1:
236
- return cloneDataView(object);
237
-
238
- case float32Tag$1: case float64Tag$1:
239
- case int8Tag$1: case int16Tag$1: case int32Tag$1:
240
- case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
241
- return cloneTypedArray(object);
242
-
243
- case mapTag$2:
244
- return new Ctor;
245
-
246
- case numberTag$1:
247
- case stringTag$1:
248
- return new Ctor(object);
249
-
250
- case regexpTag$1:
251
- return cloneRegExp(object);
252
-
253
- case setTag$2:
254
- return new Ctor;
255
-
256
- case symbolTag$1:
257
- return cloneSymbol(object);
258
- }
259
- }
260
-
261
- /**
262
- * Initializes an object clone.
263
- *
264
- * @private
265
- * @param {Object} object The object to clone.
266
- * @returns {Object} Returns the initialized clone.
267
- */
268
- function initCloneObject(object) {
269
- return (typeof object.constructor == 'function' && !isPrototype(object))
270
- ? baseCreate(getPrototype(object))
271
- : {};
272
- }
273
-
274
- /** `Object#toString` result references. */
275
- var mapTag$1 = '[object Map]';
276
-
277
- /**
278
- * The base implementation of `_.isMap` without Node.js optimizations.
279
- *
280
- * @private
281
- * @param {*} value The value to check.
282
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
283
- */
284
- function baseIsMap(value) {
285
- return isObjectLike(value) && getTag(value) == mapTag$1;
286
- }
287
-
288
- /* Node.js helper references. */
289
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
290
-
291
- /**
292
- * Checks if `value` is classified as a `Map` object.
293
- *
294
- * @static
295
- * @memberOf _
296
- * @since 4.3.0
297
- * @category Lang
298
- * @param {*} value The value to check.
299
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
300
- * @example
301
- *
302
- * _.isMap(new Map);
303
- * // => true
304
- *
305
- * _.isMap(new WeakMap);
306
- * // => false
307
- */
308
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
309
-
310
- /** `Object#toString` result references. */
311
- var setTag$1 = '[object Set]';
312
-
313
- /**
314
- * The base implementation of `_.isSet` without Node.js optimizations.
315
- *
316
- * @private
317
- * @param {*} value The value to check.
318
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
319
- */
320
- function baseIsSet(value) {
321
- return isObjectLike(value) && getTag(value) == setTag$1;
322
- }
323
-
324
- /* Node.js helper references. */
325
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
326
-
327
- /**
328
- * Checks if `value` is classified as a `Set` object.
329
- *
330
- * @static
331
- * @memberOf _
332
- * @since 4.3.0
333
- * @category Lang
334
- * @param {*} value The value to check.
335
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
336
- * @example
337
- *
338
- * _.isSet(new Set);
339
- * // => true
340
- *
341
- * _.isSet(new WeakSet);
342
- * // => false
343
- */
344
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
345
-
346
- /** `Object#toString` result references. */
347
- var argsTag = '[object Arguments]',
348
- arrayTag = '[object Array]',
349
- boolTag = '[object Boolean]',
350
- dateTag = '[object Date]',
351
- errorTag = '[object Error]',
352
- funcTag = '[object Function]',
353
- genTag = '[object GeneratorFunction]',
354
- mapTag = '[object Map]',
355
- numberTag = '[object Number]',
356
- objectTag = '[object Object]',
357
- regexpTag = '[object RegExp]',
358
- setTag = '[object Set]',
359
- stringTag = '[object String]',
360
- symbolTag = '[object Symbol]',
361
- weakMapTag = '[object WeakMap]';
362
-
363
- var arrayBufferTag = '[object ArrayBuffer]',
364
- dataViewTag = '[object DataView]',
365
- float32Tag = '[object Float32Array]',
366
- float64Tag = '[object Float64Array]',
367
- int8Tag = '[object Int8Array]',
368
- int16Tag = '[object Int16Array]',
369
- int32Tag = '[object Int32Array]',
370
- uint8Tag = '[object Uint8Array]',
371
- uint8ClampedTag = '[object Uint8ClampedArray]',
372
- uint16Tag = '[object Uint16Array]',
373
- uint32Tag = '[object Uint32Array]';
374
-
375
- /** Used to identify `toStringTag` values supported by `_.clone`. */
376
- var cloneableTags = {};
377
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
378
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
379
- cloneableTags[boolTag] = cloneableTags[dateTag] =
380
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
381
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
382
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
383
- cloneableTags[numberTag] = cloneableTags[objectTag] =
384
- cloneableTags[regexpTag] = cloneableTags[setTag] =
385
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
386
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
387
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
388
- cloneableTags[errorTag] = cloneableTags[funcTag] =
389
- cloneableTags[weakMapTag] = false;
390
-
391
- /**
392
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
393
- * traversed objects.
394
- *
395
- * @private
396
- * @param {*} value The value to clone.
397
- * @param {boolean} bitmask The bitmask flags.
398
- * 1 - Deep clone
399
- * 2 - Flatten inherited properties
400
- * 4 - Clone symbols
401
- * @param {Function} [customizer] The function to customize cloning.
402
- * @param {string} [key] The key of `value`.
403
- * @param {Object} [object] The parent object of `value`.
404
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
405
- * @returns {*} Returns the cloned value.
406
- */
407
- function baseClone(value, bitmask, customizer, key, object, stack) {
408
- var result;
409
- if (result !== undefined) {
410
- return result;
411
- }
412
- if (!isObject$1(value)) {
413
- return value;
414
- }
415
- var isArr = isArray(value);
416
- if (isArr) {
417
- result = initCloneArray(value);
418
- } else {
419
- var tag = getTag(value),
420
- isFunc = tag == funcTag || tag == genTag;
421
-
422
- if (isBuffer(value)) {
423
- return cloneBuffer(value);
424
- }
425
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
426
- result = (isFunc) ? {} : initCloneObject(value);
427
- } else {
428
- if (!cloneableTags[tag]) {
429
- return object ? value : {};
430
- }
431
- result = initCloneByTag(value, tag);
432
- }
433
- }
434
- // Check for circular references and return its corresponding clone.
435
- stack || (stack = new Stack);
436
- var stacked = stack.get(value);
437
- if (stacked) {
438
- return stacked;
439
- }
440
- stack.set(value, result);
441
-
442
- if (isSet(value)) {
443
- value.forEach(function(subValue) {
444
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
445
- });
446
- } else if (isMap(value)) {
447
- value.forEach(function(subValue, key) {
448
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
449
- });
450
- }
451
-
452
- var keysFunc = (getAllKeys)
453
- ;
454
-
455
- var props = isArr ? undefined : keysFunc(value);
456
- arrayEach(props || value, function(subValue, key) {
457
- if (props) {
458
- key = subValue;
459
- subValue = value[key];
460
- }
461
- // Recursively populate clone (susceptible to call stack limits).
462
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
463
- });
464
- return result;
465
- }
466
-
467
- /** Used to compose bitmasks for cloning. */
468
- var CLONE_DEEP_FLAG = 1,
469
- CLONE_SYMBOLS_FLAG = 4;
470
-
471
- /**
472
- * This method is like `_.clone` except that it recursively clones `value`.
473
- *
474
- * @static
475
- * @memberOf _
476
- * @since 1.0.0
477
- * @category Lang
478
- * @param {*} value The value to recursively clone.
479
- * @returns {*} Returns the deep cloned value.
480
- * @see _.clone
481
- * @example
482
- *
483
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
484
- *
485
- * var deep = _.cloneDeep(objects);
486
- * console.log(deep[0] === objects[0]);
487
- * // => false
488
- */
489
- function cloneDeep(value) {
490
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
491
- }
492
-
493
28
  // ::- Persistent data structure representing an ordered mapping from
494
29
  // strings to values, with some convenient update methods.
495
30
  function OrderedMap(content) {
@@ -25928,20 +25463,20 @@ const createNodeSpec = (config) => {
25928
25463
  };
25929
25464
  };
25930
25465
 
25931
- const createHtmlInserter = (view, contentConverter, startPos, dispatchTransaction) => {
25466
+ const createHtmlInserter = (view, contentConverter, trigger, dispatchTransaction) => {
25932
25467
  const schema = view.state.schema;
25933
25468
  return async (input) => {
25934
25469
  const container = document.createElement('span');
25935
25470
  container.innerHTML = await contentConverter.parseAsHTML(input, schema);
25936
25471
  const fragment = DOMParser.fromSchema(schema).parse(container).content;
25937
- dispatchTransaction(view, startPos, fragment);
25472
+ dispatchTransaction(view, trigger.position, fragment);
25938
25473
  };
25939
25474
  };
25940
25475
 
25941
25476
  const inserterFactory = (view, contentConverter, trigger) => {
25942
25477
  return {
25943
25478
  insert: createNodeAndTextInserter(view, trigger),
25944
- insertHtml: createHtmlInserter(view, contentConverter, trigger.position, dispatchTransaction),
25479
+ insertHtml: createHtmlInserter(view, contentConverter, trigger, dispatchTransaction),
25945
25480
  stopTrigger: () => stopTriggerTransaction(view),
25946
25481
  };
25947
25482
  };
@@ -26079,6 +25614,13 @@ const getAppendTransactionHandler = (getCurrentView, getActiveTrigger, resetActi
26079
25614
  resetActiveTrigger();
26080
25615
  return;
26081
25616
  }
25617
+ for (const transaction of transactions) {
25618
+ if (transaction.docChanged) {
25619
+ activeTrigger.position = transaction.mapping.map(activeTrigger.position,
25620
+ // eslint-disable-next-line unicorn/no-array-method-this-argument -- ProseMirror Mapping#map(pos, assoc), not Array#map
25621
+ -1);
25622
+ }
25623
+ }
26082
25624
  monitorTriggeredText(newState.doc, activeTrigger, newState.selection.from, contentConverter, getCurrentView());
26083
25625
  };
26084
25626
  };
@@ -1,98 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as getElement } from './index-DBTJNfo7.js';
2
2
  import { g as getIconName, b as getIconColor } from './get-icon-props-CgNJbSP4.js';
3
- import { i as isEqual } from './isEqual-BkQ4Z_9r.js';
3
+ import { i as isEqual } from './isEqual-CpaoJ_AF.js';
4
4
  import { _ as __extends, a as __assign, f as __read, M as MDCFoundation, c as MDCComponent, m as matches, b as __values } from './ponyfill-ChRGk668.js';
5
5
  import { a as applyPassive, b as MDCRippleFoundation, M as MDCRipple } from './component-7QB0OUSF.js';
6
- import { a as SetCache, c as cacheHas } from './_baseIsEqual-BvHnKRmD.js';
7
- import { a as arrayIncludes, b as baseRest, i as isArrayLikeObject, c as baseFlatten } from './isArrayLikeObject-D7yRwRv4.js';
6
+ import { e as difference } from './difference-DMAjHh-t.js';
7
+ import './_baseIsEqual-BfXMsuGh.js';
8
8
  import './eq-D7VMHFyO.js';
9
9
  import './isObject-BJQylLSL.js';
10
10
  import './_getNative-aN4R8EiP.js';
11
11
  import './isArray-B8VKuhvH.js';
12
12
  import './isObjectLike-oiMYqRQ0.js';
13
- import './isArrayLike-bWHU4ebg.js';
13
+ import './isArrayLike-D1QkaJU2.js';
14
14
  import './identity-CK4jS9_E.js';
15
15
  import './_defineProperty-yVdnnt__.js';
16
16
 
17
- /** Used as the size to enable large array optimizations. */
18
- var LARGE_ARRAY_SIZE = 200;
19
-
20
- /**
21
- * The base implementation of methods like `_.difference` without support
22
- * for excluding multiple arrays or iteratee shorthands.
23
- *
24
- * @private
25
- * @param {Array} array The array to inspect.
26
- * @param {Array} values The values to exclude.
27
- * @param {Function} [iteratee] The iteratee invoked per element.
28
- * @param {Function} [comparator] The comparator invoked per element.
29
- * @returns {Array} Returns the new array of filtered values.
30
- */
31
- function baseDifference(array, values, iteratee, comparator) {
32
- var index = -1,
33
- includes = arrayIncludes,
34
- isCommon = true,
35
- length = array.length,
36
- result = [],
37
- valuesLength = values.length;
38
-
39
- if (!length) {
40
- return result;
41
- }
42
- if (values.length >= LARGE_ARRAY_SIZE) {
43
- includes = cacheHas;
44
- isCommon = false;
45
- values = new SetCache(values);
46
- }
47
- outer:
48
- while (++index < length) {
49
- var value = array[index],
50
- computed = value ;
51
-
52
- value = (value !== 0) ? value : 0;
53
- if (isCommon && computed === computed) {
54
- var valuesIndex = valuesLength;
55
- while (valuesIndex--) {
56
- if (values[valuesIndex] === computed) {
57
- continue outer;
58
- }
59
- }
60
- result.push(value);
61
- }
62
- else if (!includes(values, computed, comparator)) {
63
- result.push(value);
64
- }
65
- }
66
- return result;
67
- }
68
-
69
- /**
70
- * Creates an array of `array` values not included in the other given arrays
71
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
72
- * for equality comparisons. The order and references of result values are
73
- * determined by the first array.
74
- *
75
- * **Note:** Unlike `_.pullAll`, this method returns a new array.
76
- *
77
- * @static
78
- * @memberOf _
79
- * @since 0.1.0
80
- * @category Array
81
- * @param {Array} array The array to inspect.
82
- * @param {...Array} [values] The values to exclude.
83
- * @returns {Array} Returns the new array of filtered values.
84
- * @see _.without, _.xor
85
- * @example
86
- *
87
- * _.difference([2, 1], [2, 3]);
88
- * // => [1]
89
- */
90
- var difference = baseRest(function(array, values) {
91
- return isArrayLikeObject(array)
92
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject))
93
- : [];
94
- });
95
-
96
17
  /**
97
18
  * @license
98
19
  * Copyright 2018 Google Inc.