@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.
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/components/button/button-recipe.d.ts.map +1 -1
- package/dist/components/button/button-recipe.js +80 -39
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/types.d.ts +1 -1
- package/dist/components/input/types.d.ts.map +1 -1
- package/dist/components/rich-text-editor/boolean-control.d.ts +3 -0
- package/dist/components/rich-text-editor/boolean-control.d.ts.map +1 -0
- package/dist/components/rich-text-editor/boolean-control.js +35 -0
- package/dist/components/rich-text-editor/extensions.d.ts +4 -0
- package/dist/components/rich-text-editor/extensions.d.ts.map +1 -0
- package/dist/components/rich-text-editor/extensions.js +37 -0
- package/dist/components/rich-text-editor/index.d.ts +26 -0
- package/dist/components/rich-text-editor/index.d.ts.map +1 -0
- package/dist/components/rich-text-editor/index.js +23 -0
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +10 -0
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor-context.js +13 -0
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts +11 -0
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor-control.js +202 -0
- package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts +4 -0
- package/dist/components/rich-text-editor/rich-text-editor-recipe.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +58 -0
- package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts +6 -0
- package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +11 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.js +60 -0
- package/dist/components/rich-text-editor/rich-text-editor.test.d.ts +2 -0
- package/dist/components/rich-text-editor/rich-text-editor.test.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.visual.test.d.ts +2 -0
- package/dist/components/rich-text-editor/rich-text-editor.visual.test.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-renderer.d.ts +3 -0
- package/dist/components/rich-text-editor/rich-text-renderer.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-renderer.js +21 -0
- package/dist/components/rich-text-editor/translations.d.ts +23 -0
- package/dist/components/rich-text-editor/translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/translations.js +120 -0
- package/dist/components/rich-text-editor/types.d.ts +30 -0
- package/dist/components/rich-text-editor/types.d.ts.map +1 -0
- package/dist/components/rich-text-editor/use-rich-text-editor.d.ts +3 -0
- package/dist/components/rich-text-editor/use-rich-text-editor.d.ts.map +1 -0
- package/dist/components/rich-text-editor/use-rich-text-editor.js +17 -0
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +68 -66
- package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.js +11 -11
- package/dist/components/toggle-button/types.d.ts +2 -0
- package/dist/components/toggle-button/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +774 -763
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +83 -31
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +411 -226
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +33 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +29 -28
- package/dist/node_modules/@tiptap/core/dist/index.js +3953 -0
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -0
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +62 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +85 -0
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +219 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +12 -0
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +61 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +67 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +56 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +83 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +341 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +796 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +49 -0
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +66 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +13 -0
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +65 -0
- package/dist/node_modules/@tiptap/extensions/dist/index.js +446 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +28 -0
- package/dist/node_modules/fast-equals/dist/es/index.js +324 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js +705 -0
- package/dist/node_modules/orderedmap/dist/index.js +103 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
- package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
- package/dist/node_modules/prosemirror-model/dist/index.js +2736 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
- package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js +1552 -0
- package/dist/node_modules/prosemirror-view/dist/index.js +3802 -0
- package/dist/node_modules/rope-sequence/dist/index.js +100 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +58 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +57 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +58 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +46 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
- package/dist/node_modules/w3c-keyname/index.js +93 -0
- package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +506 -0
- 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
|
|
2
|
-
let
|
|
1
|
+
function E(n, i, e) {
|
|
2
|
+
let t = e.initialDeps ?? [], o, s = !0;
|
|
3
3
|
function h() {
|
|
4
|
-
var d
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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⏱ ${
|
|
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 *
|
|
26
|
+
Math.min(120 - 120 * p, 120)
|
|
26
27
|
)}deg 100% 31%);`,
|
|
27
28
|
e?.key
|
|
28
29
|
);
|
|
29
30
|
}
|
|
30
|
-
return e?.onChange && !(
|
|
31
|
+
return e?.onChange && !(s && e.skipInitialOnChange) && e.onChange(o), s = !1, o;
|
|
31
32
|
}
|
|
32
33
|
return h.updateDeps = (d) => {
|
|
33
|
-
|
|
34
|
+
t = d;
|
|
34
35
|
}, h;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
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
|
|
42
|
-
let
|
|
43
|
-
return function(...
|
|
44
|
-
n.clearTimeout(
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
T as approxEqual,
|
|
50
|
+
v as debounce,
|
|
51
|
+
E as memo,
|
|
52
|
+
b as notUndefined
|
|
52
53
|
};
|