@caspeco/casper-ui-library 9.9.0 → 9.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/_virtual/index.js +5 -0
  2. package/dist/_virtual/index2.js +4 -0
  3. package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
  4. package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
  5. package/dist/_virtual/with-selector.development.js +4 -0
  6. package/dist/_virtual/with-selector.js +5 -0
  7. package/dist/_virtual/with-selector.production.js +4 -0
  8. package/dist/_virtual/with-selector2.js +4 -0
  9. package/dist/components/button/button-recipe.d.ts.map +1 -1
  10. package/dist/components/button/button-recipe.js +80 -39
  11. package/dist/components/input/input.d.ts +1 -0
  12. package/dist/components/input/input.d.ts.map +1 -1
  13. package/dist/components/input/types.d.ts +1 -1
  14. package/dist/components/input/types.d.ts.map +1 -1
  15. package/dist/components/rich-text-editor/boolean-control.d.ts +3 -0
  16. package/dist/components/rich-text-editor/boolean-control.d.ts.map +1 -0
  17. package/dist/components/rich-text-editor/boolean-control.js +35 -0
  18. package/dist/components/rich-text-editor/extensions.d.ts +4 -0
  19. package/dist/components/rich-text-editor/extensions.d.ts.map +1 -0
  20. package/dist/components/rich-text-editor/extensions.js +37 -0
  21. package/dist/components/rich-text-editor/index.d.ts +26 -0
  22. package/dist/components/rich-text-editor/index.d.ts.map +1 -0
  23. package/dist/components/rich-text-editor/index.js +23 -0
  24. package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +10 -0
  25. package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -0
  26. package/dist/components/rich-text-editor/rich-text-editor-context.js +13 -0
  27. package/dist/components/rich-text-editor/rich-text-editor-control.d.ts +11 -0
  28. package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -0
  29. package/dist/components/rich-text-editor/rich-text-editor-control.js +202 -0
  30. package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts +4 -0
  31. package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts.map +1 -0
  32. package/dist/components/rich-text-editor/rich-text-editor-recipe.js +58 -0
  33. package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts +6 -0
  34. package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts.map +1 -0
  35. package/dist/components/rich-text-editor/rich-text-editor.d.ts +11 -0
  36. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -0
  37. package/dist/components/rich-text-editor/rich-text-editor.js +60 -0
  38. package/dist/components/rich-text-editor/rich-text-editor.test.d.ts +2 -0
  39. package/dist/components/rich-text-editor/rich-text-editor.test.d.ts.map +1 -0
  40. package/dist/components/rich-text-editor/rich-text-editor.visual.test.d.ts +2 -0
  41. package/dist/components/rich-text-editor/rich-text-editor.visual.test.d.ts.map +1 -0
  42. package/dist/components/rich-text-editor/rich-text-renderer.d.ts +3 -0
  43. package/dist/components/rich-text-editor/rich-text-renderer.d.ts.map +1 -0
  44. package/dist/components/rich-text-editor/rich-text-renderer.js +21 -0
  45. package/dist/components/rich-text-editor/translations.d.ts +23 -0
  46. package/dist/components/rich-text-editor/translations.d.ts.map +1 -0
  47. package/dist/components/rich-text-editor/translations.js +120 -0
  48. package/dist/components/rich-text-editor/types.d.ts +30 -0
  49. package/dist/components/rich-text-editor/types.d.ts.map +1 -0
  50. package/dist/components/rich-text-editor/use-rich-text-editor.d.ts +3 -0
  51. package/dist/components/rich-text-editor/use-rich-text-editor.d.ts.map +1 -0
  52. package/dist/components/rich-text-editor/use-rich-text-editor.js +17 -0
  53. package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
  54. package/dist/components/table/table-header-dropdown.js +68 -66
  55. package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
  56. package/dist/components/toggle-button/toggle-button.js +11 -11
  57. package/dist/components/toggle-button/types.d.ts +2 -0
  58. package/dist/components/toggle-button/types.d.ts.map +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +774 -763
  62. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +83 -31
  63. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +411 -226
  64. package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +33 -0
  65. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +29 -28
  66. package/dist/node_modules/@tiptap/core/dist/index.js +3953 -0
  67. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -0
  68. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +62 -0
  69. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +85 -0
  70. package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
  71. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +219 -0
  72. package/dist/node_modules/@tiptap/extension-document/dist/index.js +12 -0
  73. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +61 -0
  74. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +67 -0
  75. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +56 -0
  76. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +83 -0
  77. package/dist/node_modules/@tiptap/extension-link/dist/index.js +341 -0
  78. package/dist/node_modules/@tiptap/extension-list/dist/index.js +796 -0
  79. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +49 -0
  80. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +66 -0
  81. package/dist/node_modules/@tiptap/extension-text/dist/index.js +13 -0
  82. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +65 -0
  83. package/dist/node_modules/@tiptap/extensions/dist/index.js +446 -0
  84. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +28 -0
  85. package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
  86. package/dist/node_modules/linkifyjs/dist/linkify.js +705 -0
  87. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  88. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  89. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  90. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  91. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  92. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  93. package/dist/node_modules/prosemirror-model/dist/index.js +2736 -0
  94. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  95. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  96. package/dist/node_modules/prosemirror-transform/dist/index.js +1552 -0
  97. package/dist/node_modules/prosemirror-view/dist/index.js +3802 -0
  98. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  99. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +58 -0
  100. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +57 -0
  101. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +58 -0
  102. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +46 -0
  103. package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
  104. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
  105. package/dist/node_modules/w3c-keyname/index.js +93 -0
  106. package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +506 -0
  107. package/package.json +14 -8
@@ -0,0 +1,33 @@
1
+ function d(t, r, u) {
2
+ const y = new Array(t);
3
+ return new Proxy(y, {
4
+ get(i, n, a) {
5
+ if (typeof n == "string") {
6
+ const c = n.charCodeAt(0);
7
+ if (c >= 48 && c <= 57) {
8
+ const e = +n;
9
+ if (Number.isInteger(e) && e >= 0 && e < t) {
10
+ let s = i[e];
11
+ if (!s) {
12
+ const f = r[e * 2];
13
+ s = i[e] = {
14
+ index: e,
15
+ key: u(e),
16
+ start: f,
17
+ size: r[e * 2 + 1],
18
+ end: f + r[e * 2 + 1],
19
+ lane: 0
20
+ };
21
+ }
22
+ return s;
23
+ }
24
+ }
25
+ if (n === "length") return t;
26
+ }
27
+ return Reflect.get(i, n, a);
28
+ }
29
+ });
30
+ }
31
+ export {
32
+ d as createLazyMeasurementsView
33
+ };
@@ -1,52 +1,53 @@
1
- function T(n, l, e) {
2
- let i = e.initialDeps ?? [], t, c = !0;
1
+ function E(n, i, e) {
2
+ let t = e.initialDeps ?? [], o, s = !0;
3
3
  function h() {
4
- var d, m, f;
5
- let g;
6
- e.key && ((d = e.debug) != null && d.call(e)) && (g = Date.now());
7
- const o = n();
8
- if (!(o.length !== i.length || o.some((r, a) => i[a] !== r)))
9
- return t;
10
- i = o;
11
- let s;
12
- if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = l(...o), e.key && ((f = e.debug) != null && f.call(e))) {
13
- const r = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (u, D) => {
14
- for (u = String(u); u.length < D; )
15
- u = " " + u;
16
- return u;
4
+ var d;
5
+ const r = process.env.NODE_ENV !== "production" && !!e.key && !!((d = e.debug) != null && d.call(e));
6
+ let m = 0;
7
+ r && (m = Date.now());
8
+ const u = n();
9
+ if (!(u.length !== t.length || u.some((c, a) => t[a] !== c)))
10
+ return o;
11
+ t = u;
12
+ let f = 0;
13
+ if (r && (f = Date.now()), o = i(...u), r) {
14
+ const c = Math.round((Date.now() - m) * 100) / 100, a = Math.round((Date.now() - f) * 100) / 100, p = a / 16, g = (l, w) => {
15
+ for (l = String(l); l.length < w; )
16
+ l = " " + l;
17
+ return l;
17
18
  };
18
19
  console.info(
19
- `%c⏱ ${w(a, 5)} /${w(r, 5)} ms`,
20
+ `%c⏱ ${g(a, 5)} /${g(c, 5)} ms`,
20
21
  `
21
22
  font-size: .6rem;
22
23
  font-weight: bold;
23
24
  color: hsl(${Math.max(
24
25
  0,
25
- Math.min(120 - 120 * b, 120)
26
+ Math.min(120 - 120 * p, 120)
26
27
  )}deg 100% 31%);`,
27
28
  e?.key
28
29
  );
29
30
  }
30
- return e?.onChange && !(c && e.skipInitialOnChange) && e.onChange(t), c = !1, t;
31
+ return e?.onChange && !(s && e.skipInitialOnChange) && e.onChange(o), s = !1, o;
31
32
  }
32
33
  return h.updateDeps = (d) => {
33
- i = d;
34
+ t = d;
34
35
  }, h;
35
36
  }
36
- function k(n, l) {
37
+ function b(n, i) {
37
38
  if (n === void 0)
38
39
  throw new Error("Unexpected undefined");
39
40
  return n;
40
41
  }
41
- const y = (n, l) => Math.abs(n - l) < 1.01, C = (n, l, e) => {
42
- let i;
43
- return function(...t) {
44
- n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
42
+ const T = (n, i) => Math.abs(n - i) < 1.01, v = (n, i, e) => {
43
+ let t;
44
+ return function(...o) {
45
+ n.clearTimeout(t), t = n.setTimeout(() => i.apply(this, o), e);
45
46
  };
46
47
  };
47
48
  export {
48
- y as approxEqual,
49
- C as debounce,
50
- T as memo,
51
- k as notUndefined
49
+ T as approxEqual,
50
+ v as debounce,
51
+ E as memo,
52
+ b as notUndefined
52
53
  };