@vizel/core 0.0.1-alpha.5 → 1.0.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 (75) hide show
  1. package/dist/components.css +1 -1
  2. package/dist/components.css.map +1 -1
  3. package/dist/index.d.ts +230 -15
  4. package/dist/index.js +78 -75
  5. package/dist/index10.js +1 -1
  6. package/dist/index11.js +4 -4
  7. package/dist/index14.js +1 -1
  8. package/dist/index15.js +134 -127
  9. package/dist/index17.js +2 -2
  10. package/dist/index18.js +1 -1
  11. package/dist/index19.js +86 -86
  12. package/dist/index20.js +2 -2
  13. package/dist/index21.js +2 -2
  14. package/dist/index22.js +16 -13
  15. package/dist/index24.js +164 -11
  16. package/dist/index25.js +12 -53
  17. package/dist/index26.js +49 -136
  18. package/dist/index27.js +132 -59
  19. package/dist/index28.js +66 -32
  20. package/dist/index29.js +35 -21
  21. package/dist/index3.js +91 -90
  22. package/dist/index30.js +23 -9
  23. package/dist/index31.js +9 -147
  24. package/dist/index32.js +138 -256
  25. package/dist/index33.js +258 -85
  26. package/dist/index34.js +84 -55
  27. package/dist/index35.js +64 -4
  28. package/dist/index36.js +4 -123
  29. package/dist/index37.js +111 -315
  30. package/dist/index38.js +321 -481
  31. package/dist/index39.js +12 -47
  32. package/dist/index4.js +1 -1
  33. package/dist/index40.js +463 -655
  34. package/dist/index41.js +48 -4
  35. package/dist/index42.js +694 -4
  36. package/dist/index43.js +4 -238
  37. package/dist/index44.js +4 -82
  38. package/dist/index45.js +237 -16
  39. package/dist/index46.js +81 -57
  40. package/dist/index47.js +17 -15
  41. package/dist/index48.js +57 -285
  42. package/dist/index49.js +15 -202
  43. package/dist/index5.js +78 -68
  44. package/dist/index50.js +281 -1497
  45. package/dist/index51.js +202 -5
  46. package/dist/index52.js +1408 -1467
  47. package/dist/index53.js +5 -723
  48. package/dist/index54.js +1109 -81
  49. package/dist/index55.js +703 -226
  50. package/dist/index56.js +84 -3
  51. package/dist/index57.js +219 -1205
  52. package/dist/index58.js +3 -734
  53. package/dist/index59.js +1232 -21
  54. package/dist/index6.js +1 -1
  55. package/dist/index60.js +734 -10
  56. package/dist/index61.js +21 -7
  57. package/dist/index62.js +10 -8
  58. package/dist/index63.js +6 -13
  59. package/dist/index64.js +7 -18
  60. package/dist/index65.js +12 -23
  61. package/dist/index66.js +17 -53
  62. package/dist/index67.js +23 -1059
  63. package/dist/index68.js +54 -90
  64. package/dist/index69.js +1061 -98
  65. package/dist/index7.js +108 -96
  66. package/dist/index70.js +98 -4
  67. package/dist/index71.js +93 -0
  68. package/dist/index72.js +6 -0
  69. package/dist/index8.js +1 -1
  70. package/dist/index9.js +75 -65
  71. package/dist/mathematics.css +1 -0
  72. package/dist/mathematics.css.map +1 -0
  73. package/dist/styles.css +1 -1
  74. package/dist/styles.css.map +1 -1
  75. package/package.json +90 -52
package/dist/index39.js CHANGED
@@ -1,50 +1,15 @@
1
- import { Extension as u } from "@tiptap/core";
2
- import { PluginKey as p, Plugin as h } from "./index38.js";
3
- var g = ({ key: d, editor: o, onPaste: n, onDrop: s, allowedMimeTypes: a }) => new h({
4
- key: d || new p("fileHandler"),
5
- props: {
6
- handleDrop(f, r) {
7
- var i;
8
- if (!s || !((i = r.dataTransfer) != null && i.files.length))
9
- return !1;
10
- const e = f.posAtCoords({
11
- left: r.clientX,
12
- top: r.clientY
13
- });
14
- let t = Array.from(r.dataTransfer.files);
15
- return a && (t = t.filter((l) => a.includes(l.type))), t.length === 0 ? !1 : (r.preventDefault(), r.stopPropagation(), s(o, t, e?.pos || 0), !0);
16
- },
17
- handlePaste(f, r) {
18
- var i;
19
- if (!n || !((i = r.clipboardData) != null && i.files.length))
20
- return !1;
21
- let e = Array.from(r.clipboardData.files);
22
- const t = r.clipboardData.getData("text/html");
23
- return a && (e = e.filter((l) => a.includes(l.type))), !(e.length === 0 || (r.preventDefault(), r.stopPropagation(), n(o, e, t), t.length > 0));
1
+ function i(l, t) {
2
+ let r = null, e = null;
3
+ return () => r ? Promise.resolve(r) : e || (e = t().then(
4
+ (n) => (r = n, e = null, n),
5
+ (n) => {
6
+ throw e = null, new Error(
7
+ `[Vizel] Failed to load "${l}". Please install it: npm install ${l}
8
+ Original error: ${n instanceof Error ? n.message : String(n)}`
9
+ );
24
10
  }
25
- }
26
- }), m = u.create({
27
- name: "fileHandler",
28
- addOptions() {
29
- return {
30
- onPaste: void 0,
31
- onDrop: void 0,
32
- allowedMimeTypes: void 0
33
- };
34
- },
35
- addProseMirrorPlugins() {
36
- return [
37
- g({
38
- key: new p(this.name),
39
- editor: this.editor,
40
- allowedMimeTypes: this.options.allowedMimeTypes,
41
- onDrop: this.options.onDrop,
42
- onPaste: this.options.onPaste
43
- })
44
- ];
45
- }
46
- });
11
+ ), e);
12
+ }
47
13
  export {
48
- g as FileHandlePlugin,
49
- m as FileHandler
14
+ i as createLazyLoader
50
15
  };
package/dist/index4.js CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index35.js";
1
+ import n from "./index36.js";
2
2
  function u(e = {}) {
3
3
  const { limit: o = null, mode: r = "textSize", wordCounter: t } = e;
4
4
  return n.configure({