@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.
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/index.d.ts +230 -15
- package/dist/index.js +78 -75
- package/dist/index10.js +1 -1
- package/dist/index11.js +4 -4
- package/dist/index14.js +1 -1
- package/dist/index15.js +134 -127
- package/dist/index17.js +2 -2
- package/dist/index18.js +1 -1
- package/dist/index19.js +86 -86
- package/dist/index20.js +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.js +16 -13
- package/dist/index24.js +164 -11
- package/dist/index25.js +12 -53
- package/dist/index26.js +49 -136
- package/dist/index27.js +132 -59
- package/dist/index28.js +66 -32
- package/dist/index29.js +35 -21
- package/dist/index3.js +91 -90
- package/dist/index30.js +23 -9
- package/dist/index31.js +9 -147
- package/dist/index32.js +138 -256
- package/dist/index33.js +258 -85
- package/dist/index34.js +84 -55
- package/dist/index35.js +64 -4
- package/dist/index36.js +4 -123
- package/dist/index37.js +111 -315
- package/dist/index38.js +321 -481
- package/dist/index39.js +12 -47
- package/dist/index4.js +1 -1
- package/dist/index40.js +463 -655
- package/dist/index41.js +48 -4
- package/dist/index42.js +694 -4
- package/dist/index43.js +4 -238
- package/dist/index44.js +4 -82
- package/dist/index45.js +237 -16
- package/dist/index46.js +81 -57
- package/dist/index47.js +17 -15
- package/dist/index48.js +57 -285
- package/dist/index49.js +15 -202
- package/dist/index5.js +78 -68
- package/dist/index50.js +281 -1497
- package/dist/index51.js +202 -5
- package/dist/index52.js +1408 -1467
- package/dist/index53.js +5 -723
- package/dist/index54.js +1109 -81
- package/dist/index55.js +703 -226
- package/dist/index56.js +84 -3
- package/dist/index57.js +219 -1205
- package/dist/index58.js +3 -734
- package/dist/index59.js +1232 -21
- package/dist/index6.js +1 -1
- package/dist/index60.js +734 -10
- package/dist/index61.js +21 -7
- package/dist/index62.js +10 -8
- package/dist/index63.js +6 -13
- package/dist/index64.js +7 -18
- package/dist/index65.js +12 -23
- package/dist/index66.js +17 -53
- package/dist/index67.js +23 -1059
- package/dist/index68.js +54 -90
- package/dist/index69.js +1061 -98
- package/dist/index7.js +108 -96
- package/dist/index70.js +98 -4
- package/dist/index71.js +93 -0
- package/dist/index72.js +6 -0
- package/dist/index8.js +1 -1
- package/dist/index9.js +75 -65
- package/dist/mathematics.css +1 -0
- package/dist/mathematics.css.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +90 -52
package/dist/index.js
CHANGED
|
@@ -1,71 +1,72 @@
|
|
|
1
1
|
import { BubbleMenuPlugin as r } from "@tiptap/extension-bubble-menu";
|
|
2
|
-
import { VIZEL_DEFAULT_AUTO_SAVE_OPTIONS as
|
|
2
|
+
import { VIZEL_DEFAULT_AUTO_SAVE_OPTIONS as a, createVizelAutoSaveHandlers as t, formatVizelRelativeTime as i, getVizelStorageBackend as n } from "./index2.js";
|
|
3
3
|
import { createVizelExtensions as z } from "./index3.js";
|
|
4
4
|
import { createVizelCharacterCountExtension as m } from "./index4.js";
|
|
5
|
-
import { createVizelCodeBlockExtension as E, findVizelLanguage as p, getAllVizelLanguageIds as c, getVizelRegisteredLanguages as
|
|
5
|
+
import { createVizelCodeBlockExtension as E, findVizelLanguage as p, getAllVizelLanguageIds as c, getVizelRegisteredLanguages as f } from "./index5.js";
|
|
6
6
|
import { createVizelDetailsExtensions as g } from "./index6.js";
|
|
7
7
|
import { VizelDiagram as T, createVizelDiagramExtension as _ } from "./index7.js";
|
|
8
8
|
import { VizelBlockMoveKeymap as h, createVizelDragHandleExtension as L, createVizelDragHandleExtensions as S } from "./index8.js";
|
|
9
9
|
import { VizelEmbed as D, createVizelDefaultFetchEmbedData as M, createVizelEmbedExtension as v, detectVizelEmbedProvider as A, vizelDefaultEmbedProviders as P, vizelEmbedPastePluginKey as H } from "./index9.js";
|
|
10
|
-
import { VIZEL_DEFAULT_FILE_MIME_TYPES as
|
|
10
|
+
import { VIZEL_DEFAULT_FILE_MIME_TYPES as b, createVizelFileHandlerExtension as O, createVizelImageFileHandlers as R, filterVizelFilesByMimeType as k } from "./index10.js";
|
|
11
11
|
import { createVizelImageExtension as F, createVizelImageUploadExtensions as B, createVizelImageUploadWithFileHandler as y, vizelDefaultBase64Upload as G } from "./index11.js";
|
|
12
12
|
import { VizelResizableImage as w, VizelResizableImage as K } from "./index12.js";
|
|
13
13
|
import { createVizelLinkExtension as X } from "./index13.js";
|
|
14
14
|
import { VizelMarkdown as j, createVizelMarkdownExtension as q } from "./index14.js";
|
|
15
15
|
import { VizelMathBlock as Q, VizelMathInline as $, createVizelMathematicsExtensions as ee } from "./index15.js";
|
|
16
|
-
import { getVizelActiveNodeType as re, vizelDefaultNodeTypes as
|
|
16
|
+
import { getVizelActiveNodeType as re, vizelDefaultNodeTypes as oe } from "./index16.js";
|
|
17
17
|
import { VizelSlashCommand as te } from "./index17.js";
|
|
18
18
|
import { createVizelTableExtensions as ne } from "./index18.js";
|
|
19
19
|
import { VIZEL_TABLE_MENU_ITEMS as ze, VizelTableWithControls as se } from "./index19.js";
|
|
20
20
|
import { createVizelTaskListExtensions as de } from "./index20.js";
|
|
21
|
-
import { VIZEL_HIGHLIGHT_COLORS as pe, VIZEL_TEXT_COLORS as ce, addVizelRecentColor as
|
|
21
|
+
import { VIZEL_HIGHLIGHT_COLORS as pe, VIZEL_TEXT_COLORS as ce, addVizelRecentColor as fe, createVizelTextColorExtensions as xe, getVizelRecentColors as ge } from "./index21.js";
|
|
22
22
|
import { getVizelIconId as Te, initVizelIconRenderer as _e, renderVizelIcon as ue, renderVizelIconSvg as he, setVizelIconRenderer as Le, vizelDefaultIconIds as Se } from "./index22.js";
|
|
23
|
-
import { VIZEL_DEFAULT_THEME as De, VIZEL_DEFAULT_THEME_STORAGE_KEY as Me, VIZEL_THEME_DATA_ATTRIBUTE as ve, applyVizelTheme as Ae, createVizelSystemThemeListener as Pe, getStoredVizelTheme as He, getVizelSystemTheme as Ue, getVizelThemeInitScript as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { default as
|
|
35
|
-
import {
|
|
23
|
+
import { VIZEL_DEFAULT_THEME as De, VIZEL_DEFAULT_THEME_STORAGE_KEY as Me, VIZEL_THEME_DATA_ATTRIBUTE as ve, applyVizelTheme as Ae, createVizelSystemThemeListener as Pe, getStoredVizelTheme as He, getVizelSystemTheme as Ue, getVizelThemeInitScript as be, resolveVizelTheme as Oe, storeVizelTheme as Re } from "./index23.js";
|
|
24
|
+
import { groupVizelToolbarActions as Ze, vizelDefaultToolbarActions as Fe } from "./index24.js";
|
|
25
|
+
import { isVizelValidHexColor as ye, normalizeVizelHexColor as Ge } from "./index25.js";
|
|
26
|
+
import { createVizelEditorInstance as we } from "./index26.js";
|
|
27
|
+
import { VIZEL_UPLOAD_IMAGE_EVENT as We, convertVizelCodeBlocksToDiagrams as Xe, createVizelUploadEventHandler as Ye, getVizelEditorState as je, registerVizelUploadEventHandler as qe, resolveVizelFeatures as Je, transformVizelDiagramCodeBlocks as Qe, vizelDefaultEditorProps as $e } from "./index27.js";
|
|
28
|
+
import { VIZEL_DEFAULT_MARKDOWN_DEBOUNCE_MS as ll, createVizelMarkdownSyncHandlers as rl, getVizelMarkdown as ol, initializeVizelMarkdownContent as al, parseVizelMarkdown as tl, setVizelMarkdown as il } from "./index28.js";
|
|
29
|
+
import { VIZEL_PORTAL_ID as Vl, VIZEL_PORTAL_Z_INDEX as zl, createVizelPortalElement as sl, getVizelPortalContainer as ml, hasVizelPortalContainer as dl, mountToVizelPortal as El, removeVizelPortalContainer as pl, unmountFromVizelPortal as cl } from "./index29.js";
|
|
30
|
+
import { VIZEL_SUGGESTION_Z_INDEX as xl, createVizelSuggestionContainer as gl, handleVizelSuggestionEscape as Il } from "./index30.js";
|
|
31
|
+
import { splitVizelTextByMatches as _l } from "./index31.js";
|
|
32
|
+
import { createVizelImageUploadPlugin as hl, createVizelImageUploader as Ll, getVizelImageUploadPluginKey as Sl, handleVizelImageDrop as Cl, handleVizelImagePaste as Dl, validateVizelImageFile as Ml } from "./index32.js";
|
|
33
|
+
import { filterSlashCommands as Al, flattenSlashCommandGroups as Pl, groupSlashCommands as Hl, searchSlashCommands as Ul, defaultGroupOrder as bl, defaultSlashCommands as Ol } from "./index33.js";
|
|
34
|
+
import { default as kl } from "@tiptap/extension-drag-handle";
|
|
35
|
+
import { default as Fl } from "@tiptap/extension-image";
|
|
36
|
+
import { VizelTable as yl, VizelTableCell as Gl, VizelTableHeader as Nl } from "./index34.js";
|
|
36
37
|
export {
|
|
37
38
|
r as BubbleMenuPlugin,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
a as VIZEL_DEFAULT_AUTO_SAVE_OPTIONS,
|
|
40
|
+
b as VIZEL_DEFAULT_FILE_MIME_TYPES,
|
|
41
|
+
ll as VIZEL_DEFAULT_MARKDOWN_DEBOUNCE_MS,
|
|
41
42
|
De as VIZEL_DEFAULT_THEME,
|
|
42
43
|
Me as VIZEL_DEFAULT_THEME_STORAGE_KEY,
|
|
43
44
|
pe as VIZEL_HIGHLIGHT_COLORS,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
Vl as VIZEL_PORTAL_ID,
|
|
46
|
+
zl as VIZEL_PORTAL_Z_INDEX,
|
|
47
|
+
xl as VIZEL_SUGGESTION_Z_INDEX,
|
|
47
48
|
ze as VIZEL_TABLE_MENU_ITEMS,
|
|
48
49
|
ce as VIZEL_TEXT_COLORS,
|
|
49
50
|
ve as VIZEL_THEME_DATA_ATTRIBUTE,
|
|
50
|
-
|
|
51
|
+
We as VIZEL_UPLOAD_IMAGE_EVENT,
|
|
51
52
|
h as VizelBlockMoveKeymap,
|
|
52
53
|
T as VizelDiagram,
|
|
53
|
-
|
|
54
|
+
kl as VizelDragHandle,
|
|
54
55
|
D as VizelEmbed,
|
|
55
|
-
|
|
56
|
+
Fl as VizelImage,
|
|
56
57
|
w as VizelImageResize,
|
|
57
58
|
j as VizelMarkdown,
|
|
58
59
|
Q as VizelMathBlock,
|
|
59
60
|
$ as VizelMathInline,
|
|
60
61
|
K as VizelResizableImage,
|
|
61
62
|
te as VizelSlashCommand,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
yl as VizelTable,
|
|
64
|
+
Gl as VizelTableCell,
|
|
65
|
+
Nl as VizelTableHeader,
|
|
65
66
|
se as VizelTableWithControls,
|
|
66
|
-
|
|
67
|
+
fe as addVizelRecentColor,
|
|
67
68
|
Ae as applyVizelTheme,
|
|
68
|
-
|
|
69
|
+
Xe as convertVizelCodeBlocksToDiagrams,
|
|
69
70
|
t as createVizelAutoSaveHandlers,
|
|
70
71
|
m as createVizelCharacterCountExtension,
|
|
71
72
|
E as createVizelCodeBlockExtension,
|
|
@@ -74,77 +75,79 @@ export {
|
|
|
74
75
|
_ as createVizelDiagramExtension,
|
|
75
76
|
L as createVizelDragHandleExtension,
|
|
76
77
|
S as createVizelDragHandleExtensions,
|
|
77
|
-
|
|
78
|
+
we as createVizelEditorInstance,
|
|
78
79
|
v as createVizelEmbedExtension,
|
|
79
80
|
z as createVizelExtensions,
|
|
80
|
-
|
|
81
|
+
O as createVizelFileHandlerExtension,
|
|
81
82
|
F as createVizelImageExtension,
|
|
82
|
-
|
|
83
|
+
R as createVizelImageFileHandlers,
|
|
83
84
|
B as createVizelImageUploadExtensions,
|
|
84
|
-
|
|
85
|
+
hl as createVizelImageUploadPlugin,
|
|
85
86
|
y as createVizelImageUploadWithFileHandler,
|
|
86
|
-
|
|
87
|
+
Ll as createVizelImageUploader,
|
|
87
88
|
X as createVizelLinkExtension,
|
|
88
89
|
q as createVizelMarkdownExtension,
|
|
89
|
-
|
|
90
|
+
rl as createVizelMarkdownSyncHandlers,
|
|
90
91
|
ee as createVizelMathematicsExtensions,
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
sl as createVizelPortalElement,
|
|
93
|
+
gl as createVizelSuggestionContainer,
|
|
93
94
|
Pe as createVizelSystemThemeListener,
|
|
94
95
|
ne as createVizelTableExtensions,
|
|
95
96
|
de as createVizelTaskListExtensions,
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
xe as createVizelTextColorExtensions,
|
|
98
|
+
Ye as createVizelUploadEventHandler,
|
|
98
99
|
A as detectVizelEmbedProvider,
|
|
99
100
|
k as filterVizelFilesByMimeType,
|
|
100
|
-
|
|
101
|
+
Al as filterVizelSlashCommands,
|
|
101
102
|
p as findVizelLanguage,
|
|
102
|
-
|
|
103
|
+
Pl as flattenVizelSlashCommandGroups,
|
|
103
104
|
i as formatVizelRelativeTime,
|
|
104
105
|
c as getAllVizelLanguageIds,
|
|
105
106
|
He as getStoredVizelTheme,
|
|
106
107
|
re as getVizelActiveNodeType,
|
|
107
|
-
|
|
108
|
+
je as getVizelEditorState,
|
|
108
109
|
Te as getVizelIconId,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
Sl as getVizelImageUploadPluginKey,
|
|
111
|
+
ol as getVizelMarkdown,
|
|
112
|
+
ml as getVizelPortalContainer,
|
|
112
113
|
ge as getVizelRecentColors,
|
|
113
|
-
|
|
114
|
+
f as getVizelRegisteredLanguages,
|
|
114
115
|
n as getVizelStorageBackend,
|
|
115
116
|
Ue as getVizelSystemTheme,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
be as getVizelThemeInitScript,
|
|
118
|
+
Hl as groupVizelSlashCommands,
|
|
119
|
+
Ze as groupVizelToolbarActions,
|
|
120
|
+
Cl as handleVizelImageDrop,
|
|
121
|
+
Dl as handleVizelImagePaste,
|
|
122
|
+
Il as handleVizelSuggestionEscape,
|
|
123
|
+
dl as hasVizelPortalContainer,
|
|
122
124
|
_e as initVizelIconRenderer,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
al as initializeVizelMarkdownContent,
|
|
126
|
+
ye as isVizelValidHexColor,
|
|
127
|
+
El as mountToVizelPortal,
|
|
128
|
+
Ge as normalizeVizelHexColor,
|
|
129
|
+
tl as parseVizelMarkdown,
|
|
130
|
+
qe as registerVizelUploadEventHandler,
|
|
131
|
+
pl as removeVizelPortalContainer,
|
|
130
132
|
ue as renderVizelIcon,
|
|
131
133
|
he as renderVizelIconSvg,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
Je as resolveVizelFeatures,
|
|
135
|
+
Oe as resolveVizelTheme,
|
|
136
|
+
Ul as searchVizelSlashCommands,
|
|
135
137
|
Le as setVizelIconRenderer,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
il as setVizelMarkdown,
|
|
139
|
+
_l as splitVizelTextByMatches,
|
|
140
|
+
Re as storeVizelTheme,
|
|
141
|
+
Qe as transformVizelDiagramCodeBlocks,
|
|
142
|
+
cl as unmountFromVizelPortal,
|
|
143
|
+
Ml as validateVizelImageFile,
|
|
142
144
|
G as vizelDefaultBase64Upload,
|
|
143
|
-
|
|
145
|
+
$e as vizelDefaultEditorProps,
|
|
144
146
|
P as vizelDefaultEmbedProviders,
|
|
145
|
-
|
|
147
|
+
bl as vizelDefaultGroupOrder,
|
|
146
148
|
Se as vizelDefaultIconIds,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
oe as vizelDefaultNodeTypes,
|
|
150
|
+
Ol as vizelDefaultSlashCommands,
|
|
151
|
+
Fe as vizelDefaultToolbarActions,
|
|
149
152
|
H as vizelEmbedPastePluginKey
|
|
150
153
|
};
|
package/dist/index10.js
CHANGED
package/dist/index11.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Extension as p } from "@tiptap/core";
|
|
2
|
-
import { FileHandler as V } from "./
|
|
2
|
+
import { FileHandler as V } from "./index41.js";
|
|
3
3
|
import W from "@tiptap/extension-image";
|
|
4
4
|
import { default as k } from "@tiptap/extension-image";
|
|
5
|
-
import { Plugin as U } from "./
|
|
6
|
-
import { createVizelImageUploader as M, createVizelImageUploadPlugin as v, handleVizelImageDrop as T, handleVizelImagePaste as y, validateVizelImageFile as E } from "./
|
|
7
|
-
import { getVizelImageUploadPluginKey as C } from "./
|
|
5
|
+
import { Plugin as U } from "./index40.js";
|
|
6
|
+
import { createVizelImageUploader as M, createVizelImageUploadPlugin as v, handleVizelImageDrop as T, handleVizelImagePaste as y, validateVizelImageFile as E } from "./index32.js";
|
|
7
|
+
import { getVizelImageUploadPluginKey as C } from "./index32.js";
|
|
8
8
|
import { VizelResizableImage as P } from "./index12.js";
|
|
9
9
|
const j = {
|
|
10
10
|
enabled: !0,
|
package/dist/index14.js
CHANGED