@fastkit/vui 0.8.10 → 0.8.13
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/vui.cjs.js +6 -16
- package/dist/vui.cjs.prod.js +6 -16
- package/dist/vui.css +25 -50
- package/dist/vui.d.ts +78 -7157
- package/dist/vui.min.css +1 -1
- package/dist/vui.min.css.map +1 -1
- package/dist/vui.mjs +7 -17
- package/package.json +13 -13
- package/src/components/VWysiwygEditor/extensions/linter/Linter.tsx +39 -43
- package/src/plugin.tsx +3 -11
package/dist/vui.cjs.js
CHANGED
|
@@ -3530,7 +3530,7 @@ const WysiwygLinter = createWysiwygExtension(ctx => {
|
|
|
3530
3530
|
};
|
|
3531
3531
|
};
|
|
3532
3532
|
|
|
3533
|
-
|
|
3533
|
+
const linterPlugin = new prosemirrorState.Plugin({
|
|
3534
3534
|
key: new prosemirrorState.PluginKey('linter'),
|
|
3535
3535
|
state: {
|
|
3536
3536
|
init(_, {
|
|
@@ -3546,7 +3546,7 @@ const WysiwygLinter = createWysiwygExtension(ctx => {
|
|
|
3546
3546
|
},
|
|
3547
3547
|
props: {
|
|
3548
3548
|
decorations(state) {
|
|
3549
|
-
return
|
|
3549
|
+
return linterPlugin.getState(state);
|
|
3550
3550
|
},
|
|
3551
3551
|
|
|
3552
3552
|
handleClick(view, _, event) {
|
|
@@ -3572,7 +3572,8 @@ const WysiwygLinter = createWysiwygExtension(ctx => {
|
|
|
3572
3572
|
}
|
|
3573
3573
|
|
|
3574
3574
|
}
|
|
3575
|
-
})
|
|
3575
|
+
});
|
|
3576
|
+
return [linterPlugin];
|
|
3576
3577
|
}
|
|
3577
3578
|
|
|
3578
3579
|
});
|
|
@@ -5694,15 +5695,7 @@ function mergeVuiPluginOptions(base, override) {
|
|
|
5694
5695
|
return merged;
|
|
5695
5696
|
}
|
|
5696
5697
|
class VuiPlugin {
|
|
5697
|
-
static installedApps = new Set();
|
|
5698
|
-
|
|
5699
5698
|
static install(app, opts) {
|
|
5700
|
-
const {
|
|
5701
|
-
installedApps
|
|
5702
|
-
} = this;
|
|
5703
|
-
if (installedApps.has(app)) return;
|
|
5704
|
-
const unmountApp = app.unmount;
|
|
5705
|
-
installedApps.add(app);
|
|
5706
5699
|
const {
|
|
5707
5700
|
colorScheme,
|
|
5708
5701
|
stack,
|
|
@@ -5737,12 +5730,9 @@ class VuiPlugin {
|
|
|
5737
5730
|
const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
|
|
5738
5731
|
app.provide(VuiInjectionKey, $vui);
|
|
5739
5732
|
app.config.globalProperties.$vui = $vui;
|
|
5740
|
-
|
|
5741
|
-
app.unmount = function () {
|
|
5742
|
-
installedApps.delete(app);
|
|
5733
|
+
vueKit.onAppUnmount(app, () => {
|
|
5743
5734
|
delete app.config.globalProperties.$vui;
|
|
5744
|
-
|
|
5745
|
-
};
|
|
5735
|
+
});
|
|
5746
5736
|
}
|
|
5747
5737
|
|
|
5748
5738
|
}
|
package/dist/vui.cjs.prod.js
CHANGED
|
@@ -3530,7 +3530,7 @@ const WysiwygLinter = createWysiwygExtension(ctx => {
|
|
|
3530
3530
|
};
|
|
3531
3531
|
};
|
|
3532
3532
|
|
|
3533
|
-
|
|
3533
|
+
const linterPlugin = new prosemirrorState.Plugin({
|
|
3534
3534
|
key: new prosemirrorState.PluginKey('linter'),
|
|
3535
3535
|
state: {
|
|
3536
3536
|
init(_, {
|
|
@@ -3546,7 +3546,7 @@ const WysiwygLinter = createWysiwygExtension(ctx => {
|
|
|
3546
3546
|
},
|
|
3547
3547
|
props: {
|
|
3548
3548
|
decorations(state) {
|
|
3549
|
-
return
|
|
3549
|
+
return linterPlugin.getState(state);
|
|
3550
3550
|
},
|
|
3551
3551
|
|
|
3552
3552
|
handleClick(view, _, event) {
|
|
@@ -3572,7 +3572,8 @@ const WysiwygLinter = createWysiwygExtension(ctx => {
|
|
|
3572
3572
|
}
|
|
3573
3573
|
|
|
3574
3574
|
}
|
|
3575
|
-
})
|
|
3575
|
+
});
|
|
3576
|
+
return [linterPlugin];
|
|
3576
3577
|
}
|
|
3577
3578
|
|
|
3578
3579
|
});
|
|
@@ -5694,15 +5695,7 @@ function mergeVuiPluginOptions(base, override) {
|
|
|
5694
5695
|
return merged;
|
|
5695
5696
|
}
|
|
5696
5697
|
class VuiPlugin {
|
|
5697
|
-
static installedApps = new Set();
|
|
5698
|
-
|
|
5699
5698
|
static install(app, opts) {
|
|
5700
|
-
const {
|
|
5701
|
-
installedApps
|
|
5702
|
-
} = this;
|
|
5703
|
-
if (installedApps.has(app)) return;
|
|
5704
|
-
const unmountApp = app.unmount;
|
|
5705
|
-
installedApps.add(app);
|
|
5706
5699
|
const {
|
|
5707
5700
|
colorScheme,
|
|
5708
5701
|
stack,
|
|
@@ -5737,12 +5730,9 @@ class VuiPlugin {
|
|
|
5737
5730
|
const $vui = new VuiService(opts, app.config.globalProperties.$vstack);
|
|
5738
5731
|
app.provide(VuiInjectionKey, $vui);
|
|
5739
5732
|
app.config.globalProperties.$vui = $vui;
|
|
5740
|
-
|
|
5741
|
-
app.unmount = function () {
|
|
5742
|
-
installedApps.delete(app);
|
|
5733
|
+
vueKit.onAppUnmount(app, () => {
|
|
5743
5734
|
delete app.config.globalProperties.$vui;
|
|
5744
|
-
|
|
5745
|
-
};
|
|
5735
|
+
});
|
|
5746
5736
|
}
|
|
5747
5737
|
|
|
5748
5738
|
}
|
package/dist/vui.css
CHANGED
|
@@ -16,10 +16,8 @@
|
|
|
16
16
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
17
17
|
*/
|
|
18
18
|
html {
|
|
19
|
-
line-height: 1.15;
|
|
20
|
-
/*
|
|
21
|
-
-webkit-text-size-adjust: 100%;
|
|
22
|
-
/* 2 */
|
|
19
|
+
line-height: 1.15; /* 1 */
|
|
20
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
/* Sections
|
|
@@ -54,10 +52,8 @@ h1 {
|
|
|
54
52
|
* 2. Show the overflow in Edge and IE.
|
|
55
53
|
*/
|
|
56
54
|
hr {
|
|
57
|
-
height: 0;
|
|
58
|
-
/*
|
|
59
|
-
overflow: visible;
|
|
60
|
-
/* 2 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
/**
|
|
@@ -66,10 +62,8 @@ hr {
|
|
|
66
62
|
*/
|
|
67
63
|
pre {
|
|
68
64
|
/* stylelint-disable-next-line */
|
|
69
|
-
font-family: monospace, monospace;
|
|
70
|
-
/*
|
|
71
|
-
font-size: 1em;
|
|
72
|
-
/* 2 */
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
73
67
|
}
|
|
74
68
|
|
|
75
69
|
/* Text-level semantics
|
|
@@ -86,12 +80,9 @@ a {
|
|
|
86
80
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
87
81
|
*/
|
|
88
82
|
abbr[title] {
|
|
89
|
-
text-decoration: underline;
|
|
90
|
-
/* 2 */
|
|
91
|
-
|
|
92
|
-
/* 2 */
|
|
93
|
-
border-bottom: none;
|
|
94
|
-
/* 1 */
|
|
83
|
+
text-decoration: underline; /* 2 */
|
|
84
|
+
text-decoration: underline dotted; /* 2 */
|
|
85
|
+
border-bottom: none; /* 1 */
|
|
95
86
|
}
|
|
96
87
|
|
|
97
88
|
/**
|
|
@@ -110,10 +101,8 @@ code,
|
|
|
110
101
|
kbd,
|
|
111
102
|
samp {
|
|
112
103
|
/* stylelint-disable-next-line */
|
|
113
|
-
font-family: monospace, monospace;
|
|
114
|
-
/*
|
|
115
|
-
font-size: 1em;
|
|
116
|
-
/* 2 */
|
|
104
|
+
font-family: monospace, monospace; /* 1 */
|
|
105
|
+
font-size: 1em; /* 2 */
|
|
117
106
|
}
|
|
118
107
|
|
|
119
108
|
/**
|
|
@@ -163,14 +152,10 @@ input,
|
|
|
163
152
|
optgroup,
|
|
164
153
|
select,
|
|
165
154
|
textarea {
|
|
166
|
-
margin: 0;
|
|
167
|
-
/*
|
|
168
|
-
font-
|
|
169
|
-
/* 1 */
|
|
170
|
-
font-size: 100%;
|
|
171
|
-
/* 1 */
|
|
172
|
-
line-height: 1.15;
|
|
173
|
-
/* 1 */
|
|
155
|
+
margin: 0; /* 2 */
|
|
156
|
+
font-family: inherit; /* 1 */
|
|
157
|
+
font-size: 100%; /* 1 */
|
|
158
|
+
line-height: 1.15; /* 1 */
|
|
174
159
|
color: inherit;
|
|
175
160
|
}
|
|
176
161
|
|
|
@@ -239,16 +224,11 @@ fieldset {
|
|
|
239
224
|
* `fieldset` elements in all browsers.
|
|
240
225
|
*/
|
|
241
226
|
legend {
|
|
242
|
-
display: table;
|
|
243
|
-
/* 1 */
|
|
244
|
-
|
|
245
|
-
/*
|
|
246
|
-
|
|
247
|
-
/* 3 */
|
|
248
|
-
color: inherit;
|
|
249
|
-
/* 2 */
|
|
250
|
-
white-space: normal;
|
|
251
|
-
/* 1 */
|
|
227
|
+
display: table; /* 1 */
|
|
228
|
+
max-width: 100%; /* 1 */
|
|
229
|
+
padding: 0; /* 3 */
|
|
230
|
+
color: inherit; /* 2 */
|
|
231
|
+
white-space: normal; /* 1 */
|
|
252
232
|
}
|
|
253
233
|
|
|
254
234
|
/**
|
|
@@ -271,8 +251,7 @@ textarea {
|
|
|
271
251
|
*/
|
|
272
252
|
[type=checkbox],
|
|
273
253
|
[type=radio] {
|
|
274
|
-
padding: 0;
|
|
275
|
-
/* 2 */
|
|
254
|
+
padding: 0; /* 2 */
|
|
276
255
|
}
|
|
277
256
|
|
|
278
257
|
/**
|
|
@@ -288,10 +267,8 @@ textarea {
|
|
|
288
267
|
* 2. Correct the outline style in Safari.
|
|
289
268
|
*/
|
|
290
269
|
[type=search] {
|
|
291
|
-
-webkit-appearance: textfield;
|
|
292
|
-
/*
|
|
293
|
-
outline-offset: -2px;
|
|
294
|
-
/* 2 */
|
|
270
|
+
-webkit-appearance: textfield; /* 1 */
|
|
271
|
+
outline-offset: -2px; /* 2 */
|
|
295
272
|
}
|
|
296
273
|
|
|
297
274
|
/**
|
|
@@ -306,10 +283,8 @@ textarea {
|
|
|
306
283
|
* 2. Change font properties to `inherit` in Safari.
|
|
307
284
|
*/
|
|
308
285
|
::-webkit-file-upload-button {
|
|
309
|
-
-webkit-appearance: button;
|
|
310
|
-
/*
|
|
311
|
-
font: inherit;
|
|
312
|
-
/* 2 */
|
|
286
|
+
-webkit-appearance: button; /* 1 */
|
|
287
|
+
font: inherit; /* 2 */
|
|
313
288
|
}
|
|
314
289
|
|
|
315
290
|
/* Interactive
|