@caspeco/casper-ui-library 12.1.0 → 12.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/_virtual/builtin_esm-external-require-react.js +1 -1
  2. package/dist/components/combobox/combobox.d.ts.map +1 -1
  3. package/dist/components/combobox/combobox.js +88 -93
  4. package/dist/components/image-upload/image-cropper.js +1 -1
  5. package/dist/components/image-upload/image-upload-dropzone.js +2 -6
  6. package/dist/components/menu/menu-group.js +0 -1
  7. package/dist/components/rich-text-editor/rich-text-editor-control.js +2 -6
  8. package/dist/components/table/table.d.ts.map +1 -1
  9. package/dist/components/table/table.js +1 -1
  10. package/dist/node_modules/@dnd-kit/abstract/index.js +1 -1
  11. package/dist/node_modules/@dnd-kit/dom/index.js +11 -16
  12. package/dist/node_modules/@dnd-kit/dom/sortable.js +4 -4
  13. package/dist/node_modules/@dnd-kit/dom/utilities.js +2 -6
  14. package/dist/node_modules/@dnd-kit/react/hooks.js +2 -5
  15. package/dist/node_modules/@dnd-kit/react/sortable.js +4 -4
  16. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +16 -30
  17. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +9 -18
  18. package/dist/node_modules/@tiptap/core/dist/index.js +838 -790
  19. package/dist/node_modules/@tiptap/extension-code/dist/index.js +14 -3
  20. package/dist/node_modules/@tiptap/extension-link/dist/index.js +114 -97
  21. package/dist/node_modules/@tiptap/extension-list/dist/index.js +133 -120
  22. package/dist/node_modules/@tiptap/extensions/dist/index.js +33 -33
  23. package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +1 -2
  24. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
  25. package/dist/node_modules/date-fns/getISOWeek.js +1 -1
  26. package/dist/node_modules/date-fns/getWeek.js +1 -1
  27. package/dist/node_modules/libphonenumber-js/es6-modern/metadata.js +1 -1
  28. package/dist/node_modules/prosemirror-commands/dist/index.js +1 -1
  29. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +2 -6
  30. package/dist/node_modules/prosemirror-history/dist/index.js +27 -22
  31. package/dist/node_modules/prosemirror-model/dist/index.js +32 -35
  32. package/dist/node_modules/prosemirror-view/dist/index.js +10 -11
  33. package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +74 -57
  34. package/package.json +13 -13
@@ -1,23 +1,41 @@
1
1
  "use client";
2
- import { require_shim as e } from "../../../../../../node_modules/use-sync-external-store/shim/index.js";
3
- import { CommandManager as t, DECORATION_MANAGER_PLUGIN_KEY as n, DecorationManager as r, Editor as i, Extendable as ee, Extension as te, InputRule as ne, MappablePosition as re, Mark as ie, Node as ae, NodePos as oe, PasteRule as se, callOrReturn as ce, canInsertNode as le, combineTransactionSteps as ue, commands as de, createChainableState as fe, createDocument as pe, createMappablePosition as me, createNodeFromContent as he, createStyleTag as ge, defaultBlockAt as _e, deleteProps as ve, elementFromString as ye, findChildrenInRange as be, findDuplicates as xe, findParentNode as Se, findParentNodeClosestToPos as Ce, flattenExtensions as we, fromString as a, generateHTML as o, generateJSON as s, getAttributes as c, getAttributesFromExtensions as l, getChangedRanges as u, getExtensionField as d, getHTMLFromFragment as f, getMarkAttributes as p, getMarkRange as m, getMarkType as h, getMarksBetween as g, getNodeAtPosition as _, getNodeAttributes as v, getNodeType as y, getPreviousBlockSibling as b, getRenderedAttributes as x, getSchema as S, getSchemaByResolvedExtensions as C, getSchemaTypeByName as w, getSchemaTypeNameByName as T, getSplittedAttributes as E, getText as D, getTextBetween as O, getTextContentFromNodes as k, getTextSerializersFromSchema as Te, getUpdatedPosition as Ee, injectExtensionAttributesToParseRule as De, inputRulesPlugin as Oe, isActive as ke, isAndroid as Ae, isAtEndOfNode as je, isAtStartOfNode as Me, isEmptyObject as Ne, isExtensionRulesEnabled as Pe, isFunction as Fe, isList as Ie, isMacOS as Le, isMarkActive as Re, isNodeActive as ze, isNodeEmpty as Be, isNodeSelection as Ve, isNumber as He, isPlainObject as Ue, isRegExp as We, isSafari as Ge, isTextSelection as A, isiOS as Ke, markInputRule as qe, markPasteRule as Je, mergeAttributes as Ye, mergeDeep as Xe, minMax as Ze, nodeInputRule as Qe, objectIncludes as $e, parseIndentedBlocks as et, pasteRulesPlugin as tt, removeDuplicates as nt, renderNestedMarkdownContent as rt, resolveExtensions as it, resolveFocusPosition as at, selectionToInsertionEnd as ot, sortExtensions as st, splitExtensions as ct, textblockTypeInputRule as lt, updateMarkViewAttributes as ut, wrappingInputRule as dt } from "../../../../../../node_modules/@tiptap/core/dist/index.js";
4
- import { deepEqual as ft } from "../../../../../../node_modules/fast-equals/dist/es/index.js";
5
- import { require_with_selector as pt } from "../../../../../../node_modules/use-sync-external-store/shim/with-selector.js";
6
- import j, { createContext as M, forwardRef as mt, useContext as N, useDebugValue as P, useEffect as F, useLayoutEffect as ht, useMemo as I, useRef as gt, useState as L } from "react";
7
- import { Fragment as R, jsx as z, jsxs as _t } from "react/jsx-runtime";
8
- import vt from "react-dom";
2
+ import { Plugin as e, PluginKey as t } from "../../../../../../node_modules/prosemirror-state/dist/index.js";
3
+ import { require_shim as n } from "../../../../../../node_modules/use-sync-external-store/shim/index.js";
4
+ import { CommandManager as r, DECORATION_MANAGER_PLUGIN_KEY as i, DecorationManager as a, Editor as o, Extendable as s, Extension as ee, InputRule as te, MappablePosition as ne, Mark as re, Node as ie, NodePos as ae, PasteRule as oe, callOrReturn as se, canInsertNode as ce, combineTransactionSteps as le, commands as ue, createChainableState as de, createDocument as fe, createMappablePosition as pe, createNodeFromContent as me, createStyleTag as he, defaultBlockAt as ge, deleteProps as _e, elementFromString as ve, findChildrenInRange as ye, findDuplicates as be, findParentNode as xe, findParentNodeClosestToPos as Se, flattenExtensions as Ce, fromString as we, generateHTML as Te, generateJSON as Ee, getAttributes as De, getAttributesFromExtensions as c, getChangedRanges as l, getExtensionField as u, getHTMLFromFragment as d, getMarkAttributes as f, getMarkRange as p, getMarkType as m, getMarksBetween as h, getNodeAtPosition as g, getNodeAttributes as _, getNodeType as v, getPreviousBlockSibling as y, getRenderedAttributes as b, getSchema as x, getSchemaByResolvedExtensions as S, getSchemaTypeByName as C, getSchemaTypeNameByName as w, getSplittedAttributes as T, getText as E, getTextBetween as Oe, getTextContentFromNodes as ke, getTextSerializersFromSchema as Ae, getUpdatedPosition as je, injectExtensionAttributesToParseRule as Me, inputRulesPlugin as Ne, isActive as Pe, isAndroid as D, isAtEndOfNode as Fe, isAtStartOfNode as Ie, isEmptyObject as Le, isExtensionRulesEnabled as Re, isFunction as ze, isList as Be, isMacOS as Ve, isMarkActive as He, isNodeActive as Ue, isNodeEmpty as We, isNodeSelection as Ge, isNumber as Ke, isPlainObject as qe, isRegExp as O, isSafari as Je, isTextSelection as Ye, isiOS as k, markInputRule as Xe, markPasteRule as Ze, mergeAttributes as Qe, mergeDeep as $e, minMax as et, nodeInputRule as tt, objectIncludes as nt, parseIndentedBlocks as rt, pasteRulesPlugin as it, removeDuplicates as at, renderNestedMarkdownContent as ot, resolveExtensions as st, resolveFocusPosition as ct, selectionToInsertionEnd as lt, sortExtensions as ut, splitExtensions as dt, textblockTypeInputRule as ft, updateMarkViewAttributes as pt, wrappingInputRule as mt } from "../../../../../../node_modules/@tiptap/core/dist/index.js";
5
+ import { deepEqual as ht } from "../../../../../../node_modules/fast-equals/dist/es/index.js";
6
+ import { require_with_selector as gt } from "../../../../../../node_modules/use-sync-external-store/shim/with-selector.js";
7
+ import A, { createContext as j, forwardRef as _t, useContext as M, useDebugValue as N, useEffect as P, useLayoutEffect as vt, useMemo as F, useRef as yt, useState as I } from "react";
8
+ import { Fragment as L, jsx as R, jsxs as bt } from "react/jsx-runtime";
9
+ import xt from "react-dom";
9
10
  //#region node_modules/@tiptap/react/dist/index.js
10
- var B = e(), yt = pt(), bt = (...e) => (t) => {
11
+ var z = n(), St = gt();
12
+ function Ct(e, t) {
13
+ if (e.isDestroyed || t.defaultPrevented || !t.cancelable || !e.isEditable || t.inputType !== "insertParagraph" && t.inputType !== "insertLineBreak" || !k() && !D()) return;
14
+ let n = e.view, r = n.root, i = (r.getSelection?.call(r) ?? n.dom.ownerDocument.getSelection())?.anchorNode, a = (i?.nodeType === 1 ? i : i?.parentElement)?.closest("[data-node-view-content-react]");
15
+ if (!a || !n.dom.contains(a)) return;
16
+ let o = n.input.lastKeyCode;
17
+ o === 13 && (n.input.lastKeyCode = null), n.domObserver.forceFlush(), n.domObserver.flush();
18
+ let s = new KeyboardEvent("keydown", {
19
+ key: "Enter",
20
+ code: "Enter",
21
+ keyCode: 13,
22
+ shiftKey: t.inputType === "insertLineBreak",
23
+ bubbles: !0,
24
+ cancelable: !0
25
+ });
26
+ n.someProp("handleKeyDown", (e) => e(n, s)) ? (t.preventDefault(), n.input.lastIOSEnter = 0, clearTimeout(n.input.lastIOSEnterFallbackTimeout)) : o === 13 && (n.input.lastKeyCode = o);
27
+ }
28
+ var B = new t("reactMobileEnter"), wt = (...e) => (t) => {
11
29
  e.forEach((e) => {
12
30
  typeof e == "function" ? e(t) : e && (e.current = t);
13
31
  });
14
- }, xt = ({ contentComponent: e }) => {
15
- let t = (0, B.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getServerSnapshot);
16
- return /* @__PURE__ */ z(R, { children: Object.values(t) });
32
+ }, Tt = ({ contentComponent: e }) => {
33
+ let t = (0, z.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getServerSnapshot);
34
+ return /* @__PURE__ */ R(L, { children: Object.values(t) });
17
35
  };
18
36
  function V() {
19
37
  let e = /* @__PURE__ */ new Set(), t = {}, n = !1, r = () => {
20
- n || !e.size || (n = !0, queueMicrotask(() => {
38
+ !n && e.size && (n = !0, queueMicrotask(() => {
21
39
  n = !1, e.forEach((e) => e());
22
40
  }));
23
41
  };
@@ -36,7 +54,7 @@ function V() {
36
54
  setRenderer(e, n) {
37
55
  t = {
38
56
  ...t,
39
- [e]: vt.createPortal(n.reactElement, n.element, e)
57
+ [e]: xt.createPortal(n.reactElement, n.element, e)
40
58
  }, r();
41
59
  },
42
60
  removeRenderer(e) {
@@ -45,9 +63,9 @@ function V() {
45
63
  }
46
64
  };
47
65
  }
48
- var H = class extends j.Component {
66
+ var H = class extends A.Component {
49
67
  constructor(e) {
50
- super(e), this.editorContentRef = j.createRef();
68
+ super(e), this.editorContentRef = A.createRef();
51
69
  }
52
70
  componentDidMount() {
53
71
  this.init();
@@ -56,17 +74,20 @@ var H = class extends j.Component {
56
74
  this.init();
57
75
  }
58
76
  init() {
59
- let e = this.props.editor;
60
- if (e && !e.isDestroyed && e.view.dom?.parentNode) {
61
- if (e.contentComponent) return;
62
- let t = this.editorContentRef.current;
63
- t.append(...e.view.dom.parentNode.childNodes), e.setOptions({ element: t }), e.contentComponent = V(), e.createNodeViews(), e.isEditorContentInitialized = !0, this.forceUpdate();
77
+ let t = this.props.editor;
78
+ if (t && !t.isDestroyed && t.view.dom?.parentNode) {
79
+ if (t.contentComponent) return;
80
+ let n = this.editorContentRef.current;
81
+ n.append(...t.view.dom.parentNode.childNodes), t.setOptions({ element: n }), t.contentComponent = V(), t.createNodeViews(), t.registerPlugin(new e({
82
+ key: B,
83
+ props: { handleDOMEvents: { beforeinput: (e, n) => Ct(t, n) } }
84
+ })), t.isEditorContentInitialized = !0, this.forceUpdate();
64
85
  }
65
86
  }
66
87
  componentWillUnmount() {
67
88
  let e = this.props.editor;
68
89
  if (e) {
69
- e.isEditorContentInitialized = !1, e.isDestroyed || e.view.setProps({ nodeViews: {} }), e.contentComponent = null;
90
+ e.isEditorContentInitialized = !1, e.isDestroyed || (e.unregisterPlugin(B), e.view.setProps({ nodeViews: {} })), e.contentComponent = null;
70
91
  try {
71
92
  if (!e.view.dom?.parentNode) return;
72
93
  let t = document.createElement("div");
@@ -76,19 +97,19 @@ var H = class extends j.Component {
76
97
  }
77
98
  render() {
78
99
  let { editor: e, innerRef: t, ...n } = this.props;
79
- return /* @__PURE__ */ _t(R, { children: [/* @__PURE__ */ z("div", {
80
- ref: bt(t, this.editorContentRef),
100
+ return /* @__PURE__ */ bt(L, { children: [/* @__PURE__ */ R("div", {
101
+ ref: wt(t, this.editorContentRef),
81
102
  ...n
82
- }), e?.contentComponent && /* @__PURE__ */ z(xt, { contentComponent: e.contentComponent })] });
103
+ }), e?.contentComponent && /* @__PURE__ */ R(Tt, { contentComponent: e.contentComponent })] });
83
104
  }
84
- }, St = mt((e, t) => {
85
- let n = j.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
86
- return j.createElement(H, {
105
+ }, Et = _t((e, t) => {
106
+ let n = A.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
107
+ return A.createElement(H, {
87
108
  key: n,
88
109
  innerRef: t,
89
110
  ...e
90
111
  });
91
- }), U = j.memo(St), Ct = typeof window < "u" ? ht : F, wt = class {
112
+ }), U = A.memo(Et), Dt = typeof window < "u" ? vt : P, Ot = class {
92
113
  constructor(e) {
93
114
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = {
94
115
  editor: e,
@@ -96,10 +117,10 @@ var H = class extends j.Component {
96
117
  }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
97
118
  }
98
119
  getSnapshot() {
99
- return this.transactionNumber === this.lastTransactionNumber ? this.lastSnapshot : (this.lastTransactionNumber = this.transactionNumber, this.lastSnapshot = {
120
+ return this.transactionNumber === this.lastTransactionNumber || (this.lastTransactionNumber = this.transactionNumber, this.lastSnapshot = {
100
121
  editor: this.editor,
101
122
  transactionNumber: this.transactionNumber
102
- }, this.lastSnapshot);
123
+ }), this.lastSnapshot;
103
124
  }
104
125
  getServerSnapshot() {
105
126
  return {
@@ -124,10 +145,10 @@ var H = class extends j.Component {
124
145
  }
125
146
  };
126
147
  function W(e) {
127
- let [t] = L(() => new wt(e.editor)), n = (0, yt.useSyncExternalStoreWithSelector)(t.subscribe, t.getSnapshot, t.getServerSnapshot, e.selector, e.equalityFn ?? ft);
128
- return Ct(() => t.watch(e.editor), [e.editor, t]), P(n), n;
148
+ let [t] = I(() => new Ot(e.editor)), n = (0, St.useSyncExternalStoreWithSelector)(t.subscribe, t.getSnapshot, t.getServerSnapshot, e.selector, e.equalityFn ?? ht);
149
+ return Dt(() => t.watch(e.editor), [e.editor, t]), N(n), n;
129
150
  }
130
- var G = process.env.NODE_ENV !== "production", K = typeof window > "u", Tt = K || !!(typeof window < "u" && window.next), Et = class e {
151
+ var G = process.env.NODE_ENV !== "production", K = typeof window > "u", kt = K || !!(typeof window < "u" && window.next), At = class e {
131
152
  constructor(e) {
132
153
  this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
133
154
  }
@@ -136,7 +157,7 @@ var G = process.env.NODE_ENV !== "production", K = typeof window > "u", Tt = K |
136
157
  }
137
158
  getInitialEditor() {
138
159
  let e = this.options.current.immediatelyRender, t = e ?? !0;
139
- return K ? (t && G && console.warn("SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches"), t = !1) : Tt && e === void 0 && (t = !1, G && console.warn("Next.js detected. `immediatelyRender` defaults to false to avoid hydration mismatches. Pass `immediatelyRender: true` explicitly if you are rendering the editor only on the client.")), t ? this.createEditor() : null;
160
+ return K ? (t && G && console.warn("SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches"), t = !1) : kt && e === void 0 && (t = !1, G && console.warn("Next.js detected. `immediatelyRender` defaults to false to avoid hydration mismatches. Pass `immediatelyRender: true` explicitly if you are rendering the editor only on the client.")), t ? this.createEditor() : null;
140
161
  }
141
162
  createEditor() {
142
163
  let e = {
@@ -198,7 +219,7 @@ var G = process.env.NODE_ENV !== "production", K = typeof window > "u", Tt = K |
198
219
  return (t = this.options.current).onUnmount?.call(t, ...e);
199
220
  }
200
221
  };
201
- return new i(e);
222
+ return new o(e);
202
223
  }
203
224
  getEditor() {
204
225
  return this.editor;
@@ -247,33 +268,29 @@ var G = process.env.NODE_ENV !== "production", K = typeof window > "u", Tt = K |
247
268
  scheduleDestroy() {
248
269
  let e = this.instanceId, t = this.editor;
249
270
  this.scheduledDestructionTimeout = setTimeout(() => {
250
- if (this.isComponentMounted && this.instanceId === e) {
251
- t && t.setOptions(this.options.current);
252
- return;
253
- }
254
- t && !t.isDestroyed && (t.destroy(), this.instanceId === e && this.setEditor(null));
271
+ this.isComponentMounted && this.instanceId === e ? t && t.setOptions(this.options.current) : t && !t.isDestroyed && (t.destroy(), this.instanceId === e && this.setEditor(null));
255
272
  }, 1);
256
273
  }
257
274
  };
258
- function Dt(e = {}, t = []) {
259
- let n = gt(e);
275
+ function jt(e = {}, t = []) {
276
+ let n = yt(e);
260
277
  n.current = e;
261
- let [r] = L(() => new Et(n)), i = (0, B.useSyncExternalStore)(r.subscribe, r.getEditor, r.getServerSnapshot);
262
- return P(i), F(r.onRender(t)), W({
278
+ let [r] = I(() => new At(n)), i = (0, z.useSyncExternalStore)(r.subscribe, r.getEditor, r.getServerSnapshot);
279
+ return N(i), P(r.onRender(t)), W({
263
280
  editor: i,
264
281
  selector: ({ transactionNumber: t }) => e.shouldRerenderOnTransaction === !1 || e.shouldRerenderOnTransaction === void 0 ? null : e.immediatelyRender && t === 0 ? 0 : t + 1
265
282
  }), i;
266
283
  }
267
- var q = M({ editor: null });
284
+ var q = j({ editor: null });
268
285
  q.Consumer;
269
- var J = M({
286
+ var J = j({
270
287
  onDragStart: () => {},
271
288
  nodeViewContentChildren: void 0,
272
289
  nodeViewContentRef: () => {}
273
- }), Y = () => N(J);
274
- j.forwardRef((e, t) => {
290
+ }), Y = () => M(J);
291
+ A.forwardRef((e, t) => {
275
292
  let { onDragStart: n } = Y(), r = e.as || "div";
276
- return /* @__PURE__ */ z(r, {
293
+ return /* @__PURE__ */ R(r, {
277
294
  ...e,
278
295
  ref: t,
279
296
  "data-node-view-wrapper": "",
@@ -283,19 +300,19 @@ j.forwardRef((e, t) => {
283
300
  ...e.style
284
301
  }
285
302
  });
286
- }), j.createContext({ markViewContentRef: () => {} });
287
- var X = M({ get editor() {
303
+ }), A.createContext({ markViewContentRef: () => {} });
304
+ var X = j({ get editor() {
288
305
  throw Error("useTiptap must be used within a <Tiptap> provider");
289
306
  } });
290
307
  X.displayName = "TiptapContext";
291
- var Z = () => N(X);
308
+ var Z = () => M(X);
292
309
  function Q({ children: e, ...t }) {
293
310
  let n = "editor" in t ? t.editor : t.instance;
294
311
  if (!n) throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");
295
- let r = I(() => ({ editor: n }), [n]), i = I(() => ({ editor: n }), [n]);
296
- return /* @__PURE__ */ z(q.Provider, {
312
+ let r = F(() => ({ editor: n }), [n]), i = F(() => ({ editor: n }), [n]);
313
+ return /* @__PURE__ */ R(q.Provider, {
297
314
  value: i,
298
- children: /* @__PURE__ */ z(X.Provider, {
315
+ children: /* @__PURE__ */ R(X.Provider, {
299
316
  value: r,
300
317
  children: e
301
318
  })
@@ -304,11 +321,11 @@ function Q({ children: e, ...t }) {
304
321
  Q.displayName = "Tiptap";
305
322
  function $({ ...e }) {
306
323
  let { editor: t } = Z();
307
- return /* @__PURE__ */ z(U, {
324
+ return /* @__PURE__ */ R(U, {
308
325
  editor: t,
309
326
  ...e
310
327
  });
311
328
  }
312
329
  $.displayName = "Tiptap.Content", Object.assign(Q, { Content: $ });
313
330
  //#endregion
314
- export { t as CommandManager, n as DECORATION_MANAGER_PLUGIN_KEY, r as DecorationManager, i as Editor, U as EditorContent, q as EditorContext, ee as Extendable, te as Extension, ne as InputRule, re as MappablePosition, ie as Mark, ae as Node, oe as NodePos, se as PasteRule, H as PureEditorContent, J as ReactNodeViewContext, $ as TiptapContent, X as TiptapContext, Q as TiptapWrapper, ce as callOrReturn, le as canInsertNode, ue as combineTransactionSteps, de as commands, fe as createChainableState, V as createContentComponent, pe as createDocument, me as createMappablePosition, he as createNodeFromContent, ge as createStyleTag, _e as defaultBlockAt, ve as deleteProps, ye as elementFromString, be as findChildrenInRange, xe as findDuplicates, Se as findParentNode, Ce as findParentNodeClosestToPos, we as flattenExtensions, a as fromString, o as generateHTML, s as generateJSON, c as getAttributes, l as getAttributesFromExtensions, u as getChangedRanges, d as getExtensionField, f as getHTMLFromFragment, p as getMarkAttributes, m as getMarkRange, h as getMarkType, g as getMarksBetween, _ as getNodeAtPosition, v as getNodeAttributes, y as getNodeType, b as getPreviousBlockSibling, x as getRenderedAttributes, S as getSchema, C as getSchemaByResolvedExtensions, w as getSchemaTypeByName, T as getSchemaTypeNameByName, E as getSplittedAttributes, D as getText, O as getTextBetween, k as getTextContentFromNodes, Te as getTextSerializersFromSchema, Ee as getUpdatedPosition, De as injectExtensionAttributesToParseRule, Oe as inputRulesPlugin, ke as isActive, Ae as isAndroid, je as isAtEndOfNode, Me as isAtStartOfNode, Ne as isEmptyObject, Pe as isExtensionRulesEnabled, Fe as isFunction, Ie as isList, Le as isMacOS, Re as isMarkActive, ze as isNodeActive, Be as isNodeEmpty, Ve as isNodeSelection, He as isNumber, Ue as isPlainObject, We as isRegExp, Ge as isSafari, A as isTextSelection, Ke as isiOS, qe as markInputRule, Je as markPasteRule, Ye as mergeAttributes, Xe as mergeDeep, Ze as minMax, Qe as nodeInputRule, $e as objectIncludes, et as parseIndentedBlocks, tt as pasteRulesPlugin, nt as removeDuplicates, rt as renderNestedMarkdownContent, it as resolveExtensions, at as resolveFocusPosition, ot as selectionToInsertionEnd, st as sortExtensions, ct as splitExtensions, lt as textblockTypeInputRule, ut as updateMarkViewAttributes, Dt as useEditor, W as useEditorState, Y as useReactNodeView, Z as useTiptap, dt as wrappingInputRule };
331
+ export { r as CommandManager, i as DECORATION_MANAGER_PLUGIN_KEY, a as DecorationManager, o as Editor, U as EditorContent, q as EditorContext, s as Extendable, ee as Extension, te as InputRule, ne as MappablePosition, re as Mark, ie as Node, ae as NodePos, oe as PasteRule, H as PureEditorContent, J as ReactNodeViewContext, $ as TiptapContent, X as TiptapContext, Q as TiptapWrapper, se as callOrReturn, ce as canInsertNode, le as combineTransactionSteps, ue as commands, de as createChainableState, V as createContentComponent, fe as createDocument, pe as createMappablePosition, me as createNodeFromContent, he as createStyleTag, ge as defaultBlockAt, _e as deleteProps, ve as elementFromString, ye as findChildrenInRange, be as findDuplicates, xe as findParentNode, Se as findParentNodeClosestToPos, Ce as flattenExtensions, we as fromString, Te as generateHTML, Ee as generateJSON, De as getAttributes, c as getAttributesFromExtensions, l as getChangedRanges, u as getExtensionField, d as getHTMLFromFragment, f as getMarkAttributes, p as getMarkRange, m as getMarkType, h as getMarksBetween, g as getNodeAtPosition, _ as getNodeAttributes, v as getNodeType, y as getPreviousBlockSibling, b as getRenderedAttributes, x as getSchema, S as getSchemaByResolvedExtensions, C as getSchemaTypeByName, w as getSchemaTypeNameByName, T as getSplittedAttributes, E as getText, Oe as getTextBetween, ke as getTextContentFromNodes, Ae as getTextSerializersFromSchema, je as getUpdatedPosition, Me as injectExtensionAttributesToParseRule, Ne as inputRulesPlugin, Pe as isActive, D as isAndroid, Fe as isAtEndOfNode, Ie as isAtStartOfNode, Le as isEmptyObject, Re as isExtensionRulesEnabled, ze as isFunction, Be as isList, Ve as isMacOS, He as isMarkActive, Ue as isNodeActive, We as isNodeEmpty, Ge as isNodeSelection, Ke as isNumber, qe as isPlainObject, O as isRegExp, Je as isSafari, Ye as isTextSelection, k as isiOS, Xe as markInputRule, Ze as markPasteRule, Qe as mergeAttributes, $e as mergeDeep, et as minMax, tt as nodeInputRule, nt as objectIncludes, rt as parseIndentedBlocks, it as pasteRulesPlugin, at as removeDuplicates, ot as renderNestedMarkdownContent, st as resolveExtensions, ct as resolveFocusPosition, lt as selectionToInsertionEnd, ut as sortExtensions, dt as splitExtensions, ft as textblockTypeInputRule, pt as updateMarkViewAttributes, jt as useEditor, W as useEditorState, Y as useReactNodeView, Z as useTiptap, mt as wrappingInputRule };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
- "homepage": "https://github.com/Caspeco/casper-ui-library",
7
+ "homepage": "https://caspeco.github.io/casper-ui-library/",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/Caspeco/casper-ui-library.git"
@@ -45,25 +45,25 @@
45
45
  "@caspeco/prettier-config": "^1.0.7",
46
46
  "@chakra-ui/cli": "^3.37.0",
47
47
  "@rolldown/plugin-babel": "^0.2.4",
48
- "@types/node": "^26.6.3",
48
+ "@types/node": "^26.6.4",
49
49
  "@types/react": "^19.3.0",
50
50
  "@types/react-dom": "^19.3.0",
51
- "@vitejs/plugin-react": "^6.1.1",
52
- "@vitest/browser-playwright": "^5.0.2",
51
+ "@vitejs/plugin-react": "^6.1.2",
52
+ "@vitest/browser-playwright": "^5.0.3",
53
53
  "@vitest/ui": "^5.0.0",
54
54
  "babel-plugin-react-compiler": "^1.0.0",
55
55
  "eslint": "^9.39.2",
56
56
  "eslint-plugin-react-hooks": "^7.1.1",
57
57
  "eslint-plugin-react-refresh": "^0.5.7",
58
- "globals": "^17.12.0",
59
- "knip": "^6.38.0",
58
+ "globals": "^17.13.0",
59
+ "knip": "^6.40.0",
60
60
  "playwright": "1.63.0",
61
61
  "prettier": "^3.9.9",
62
62
  "rimraf": "^6.1.3",
63
63
  "tsc-alias": "^1.9.5",
64
64
  "typescript": "^6.0.3",
65
65
  "vite": "^8.2.1",
66
- "vite-plugin-dts": "^5.1.1",
66
+ "vite-plugin-dts": "^5.1.2",
67
67
  "vitest": "^5.0.0",
68
68
  "vitest-browser-react": "^2.2.0"
69
69
  },
@@ -81,11 +81,11 @@
81
81
  "@floating-ui/dom": "^1.8.0",
82
82
  "@tanstack/react-table": "^8.21.3",
83
83
  "@tanstack/react-virtual": "^3.14.13",
84
- "@tiptap/core": "^3.31.3",
85
- "@tiptap/extension-link": "^3.31.3",
86
- "@tiptap/extension-underline": "^3.31.3",
87
- "@tiptap/react": "^3.31.3",
88
- "@tiptap/starter-kit": "^3.31.3",
84
+ "@tiptap/core": "^3.31.4",
85
+ "@tiptap/extension-link": "^3.31.4",
86
+ "@tiptap/extension-underline": "^3.31.4",
87
+ "@tiptap/react": "^3.31.4",
88
+ "@tiptap/starter-kit": "^3.31.4",
89
89
  "country-flag-icons": "^1.6.20",
90
90
  "csstype": "^3.2.3",
91
91
  "date-fns": "^4.4.0",