@esheet/field-kerebron 0.0.4-1
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/__vite-browser-external-DYxpcVy9.js +4 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +34625 -0
- package/dist/odt_parser.internal-CYdkAHGB.js +257 -0
- package/package.json +51 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
let o;
|
|
2
|
+
function D(e) {
|
|
3
|
+
o = e;
|
|
4
|
+
}
|
|
5
|
+
function p(e) {
|
|
6
|
+
const t = typeof e;
|
|
7
|
+
if (t == "number" || t == "boolean" || e == null)
|
|
8
|
+
return `${e}`;
|
|
9
|
+
if (t == "string")
|
|
10
|
+
return `"${e}"`;
|
|
11
|
+
if (t == "symbol") {
|
|
12
|
+
const _ = e.description;
|
|
13
|
+
return _ == null ? "Symbol" : `Symbol(${_})`;
|
|
14
|
+
}
|
|
15
|
+
if (t == "function") {
|
|
16
|
+
const _ = e.name;
|
|
17
|
+
return typeof _ == "string" && _.length > 0 ? `Function(${_})` : "Function";
|
|
18
|
+
}
|
|
19
|
+
if (Array.isArray(e)) {
|
|
20
|
+
const _ = e.length;
|
|
21
|
+
let u = "[";
|
|
22
|
+
_ > 0 && (u += p(e[0]));
|
|
23
|
+
for (let c = 1; c < _; c++)
|
|
24
|
+
u += ", " + p(e[c]);
|
|
25
|
+
return u += "]", u;
|
|
26
|
+
}
|
|
27
|
+
const n = /\[object ([^\]]+)\]/.exec(toString.call(e));
|
|
28
|
+
let r;
|
|
29
|
+
if (n && n.length > 1)
|
|
30
|
+
r = n[1];
|
|
31
|
+
else
|
|
32
|
+
return toString.call(e);
|
|
33
|
+
if (r == "Object")
|
|
34
|
+
try {
|
|
35
|
+
return "Object(" + JSON.stringify(e) + ")";
|
|
36
|
+
} catch {
|
|
37
|
+
return "Object";
|
|
38
|
+
}
|
|
39
|
+
return e instanceof Error ? `${e.name}: ${e.message}
|
|
40
|
+
${e.stack}` : r;
|
|
41
|
+
}
|
|
42
|
+
function x(e, t) {
|
|
43
|
+
return e = e >>> 0, d().subarray(e / 1, e / 1 + t);
|
|
44
|
+
}
|
|
45
|
+
let f = null;
|
|
46
|
+
function y() {
|
|
47
|
+
return (f === null || f.buffer.detached === !0 || f.buffer.detached === void 0 && f.buffer !== o.memory.buffer) && (f = new DataView(o.memory.buffer)), f;
|
|
48
|
+
}
|
|
49
|
+
function g(e, t) {
|
|
50
|
+
return e = e >>> 0, T(e, t);
|
|
51
|
+
}
|
|
52
|
+
let a = null;
|
|
53
|
+
function d() {
|
|
54
|
+
return (a === null || a.byteLength === 0) && (a = new Uint8Array(o.memory.buffer)), a;
|
|
55
|
+
}
|
|
56
|
+
function m(e, t) {
|
|
57
|
+
const n = t(e.length * 1, 1) >>> 0;
|
|
58
|
+
return d().set(e, n / 1), i = e.length, n;
|
|
59
|
+
}
|
|
60
|
+
function A(e, t, n) {
|
|
61
|
+
if (n === void 0) {
|
|
62
|
+
const s = l.encode(e), b = t(s.length, 1) >>> 0;
|
|
63
|
+
return d().subarray(b, b + s.length).set(s), i = s.length, b;
|
|
64
|
+
}
|
|
65
|
+
let r = e.length, _ = t(r, 1) >>> 0;
|
|
66
|
+
const u = d();
|
|
67
|
+
let c = 0;
|
|
68
|
+
for (; c < r; c++) {
|
|
69
|
+
const s = e.charCodeAt(c);
|
|
70
|
+
if (s > 127) break;
|
|
71
|
+
u[_ + c] = s;
|
|
72
|
+
}
|
|
73
|
+
if (c !== r) {
|
|
74
|
+
c !== 0 && (e = e.slice(c)), _ = n(_, r, r = c + e.length * 3, 1) >>> 0;
|
|
75
|
+
const s = d().subarray(_ + c, _ + r), b = l.encodeInto(e, s);
|
|
76
|
+
c += b.written, _ = n(_, r, c, 1) >>> 0;
|
|
77
|
+
}
|
|
78
|
+
return i = c, _;
|
|
79
|
+
}
|
|
80
|
+
let w = new TextDecoder("utf-8", {
|
|
81
|
+
ignoreBOM: !0,
|
|
82
|
+
fatal: !0
|
|
83
|
+
});
|
|
84
|
+
w.decode();
|
|
85
|
+
const M = 2146435072;
|
|
86
|
+
let h = 0;
|
|
87
|
+
function T(e, t) {
|
|
88
|
+
return h += t, h >= M && (w = new TextDecoder("utf-8", {
|
|
89
|
+
ignoreBOM: !0,
|
|
90
|
+
fatal: !0
|
|
91
|
+
}), w.decode(), h = t), w.decode(
|
|
92
|
+
d().subarray(e, e + t)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
const l = new TextEncoder();
|
|
96
|
+
"encodeInto" in l || (l.encodeInto = function(e, t) {
|
|
97
|
+
const n = l.encode(e);
|
|
98
|
+
return t.set(n), {
|
|
99
|
+
read: e.length,
|
|
100
|
+
written: n.length
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
let i = 0;
|
|
104
|
+
const S = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
105
|
+
}, unregister: () => {
|
|
106
|
+
} } : new FinalizationRegistry((e) => o.__wbg_greeter_free(e >>> 0, 1));
|
|
107
|
+
class E {
|
|
108
|
+
__destroy_into_raw() {
|
|
109
|
+
const t = this.__wbg_ptr;
|
|
110
|
+
return this.__wbg_ptr = 0, S.unregister(this), t;
|
|
111
|
+
}
|
|
112
|
+
free() {
|
|
113
|
+
const t = this.__destroy_into_raw();
|
|
114
|
+
o.__wbg_greeter_free(t, 0);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param {string} name
|
|
118
|
+
*/
|
|
119
|
+
constructor(t) {
|
|
120
|
+
const n = A(
|
|
121
|
+
t,
|
|
122
|
+
o.__wbindgen_malloc,
|
|
123
|
+
o.__wbindgen_realloc
|
|
124
|
+
), r = i, _ = o.greeter_new(n, r);
|
|
125
|
+
return this.__wbg_ptr = _ >>> 0, S.register(this, this.__wbg_ptr, this), this;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @returns {string}
|
|
129
|
+
*/
|
|
130
|
+
greet() {
|
|
131
|
+
let t, n;
|
|
132
|
+
try {
|
|
133
|
+
const r = o.greeter_greet(this.__wbg_ptr);
|
|
134
|
+
return t = r[0], n = r[1], g(r[0], r[1]);
|
|
135
|
+
} finally {
|
|
136
|
+
o.__wbindgen_free(t, n, 1);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
Symbol.dispose && (E.prototype[Symbol.dispose] = E.prototype.free);
|
|
141
|
+
function F(e, t) {
|
|
142
|
+
return o.add(e, t);
|
|
143
|
+
}
|
|
144
|
+
function I(e) {
|
|
145
|
+
const t = m(e, o.__wbindgen_malloc), n = i, r = o.echo(t, n);
|
|
146
|
+
var _ = x(r[0], r[1]).slice();
|
|
147
|
+
return o.__wbindgen_free(r[0], r[1] * 1, 1), _;
|
|
148
|
+
}
|
|
149
|
+
function O() {
|
|
150
|
+
o.init_debug();
|
|
151
|
+
}
|
|
152
|
+
function $(e) {
|
|
153
|
+
const t = m(e, o.__wbindgen_malloc), n = i;
|
|
154
|
+
return o.parse_content(t, n);
|
|
155
|
+
}
|
|
156
|
+
function j(e) {
|
|
157
|
+
const t = m(e, o.__wbindgen_malloc), n = i;
|
|
158
|
+
return o.parse_styles(t, n);
|
|
159
|
+
}
|
|
160
|
+
function z(e) {
|
|
161
|
+
const t = m(e, o.__wbindgen_malloc), n = i;
|
|
162
|
+
return o.unzip(t, n);
|
|
163
|
+
}
|
|
164
|
+
function N(e, t) {
|
|
165
|
+
return Error(g(e, t));
|
|
166
|
+
}
|
|
167
|
+
function W(e) {
|
|
168
|
+
return Number(e);
|
|
169
|
+
}
|
|
170
|
+
function k(e, t) {
|
|
171
|
+
const n = p(t), r = A(
|
|
172
|
+
n,
|
|
173
|
+
o.__wbindgen_malloc,
|
|
174
|
+
o.__wbindgen_realloc
|
|
175
|
+
), _ = i;
|
|
176
|
+
y().setInt32(e + 4, _, !0), y().setInt32(e + 0, r, !0);
|
|
177
|
+
}
|
|
178
|
+
function B(e) {
|
|
179
|
+
return typeof e == "string";
|
|
180
|
+
}
|
|
181
|
+
function R(e, t) {
|
|
182
|
+
throw new Error(g(e, t));
|
|
183
|
+
}
|
|
184
|
+
function U(e, t) {
|
|
185
|
+
let n, r;
|
|
186
|
+
try {
|
|
187
|
+
n = e, r = t, console.error(g(e, t));
|
|
188
|
+
} finally {
|
|
189
|
+
o.__wbindgen_free(n, r, 1);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function V() {
|
|
193
|
+
return new Object();
|
|
194
|
+
}
|
|
195
|
+
function C() {
|
|
196
|
+
return new Array();
|
|
197
|
+
}
|
|
198
|
+
function G() {
|
|
199
|
+
return new Error();
|
|
200
|
+
}
|
|
201
|
+
function L() {
|
|
202
|
+
return /* @__PURE__ */ new Map();
|
|
203
|
+
}
|
|
204
|
+
function J(e, t, n) {
|
|
205
|
+
e[t] = n;
|
|
206
|
+
}
|
|
207
|
+
function X(e, t, n) {
|
|
208
|
+
e[t >>> 0] = n;
|
|
209
|
+
}
|
|
210
|
+
function Y(e, t, n) {
|
|
211
|
+
return e.set(t, n);
|
|
212
|
+
}
|
|
213
|
+
function q(e, t) {
|
|
214
|
+
const n = t.stack, r = A(
|
|
215
|
+
n,
|
|
216
|
+
o.__wbindgen_malloc,
|
|
217
|
+
o.__wbindgen_realloc
|
|
218
|
+
), _ = i;
|
|
219
|
+
y().setInt32(e + 4, _, !0), y().setInt32(e + 0, r, !0);
|
|
220
|
+
}
|
|
221
|
+
function H(e, t) {
|
|
222
|
+
return g(e, t);
|
|
223
|
+
}
|
|
224
|
+
function K(e) {
|
|
225
|
+
return e;
|
|
226
|
+
}
|
|
227
|
+
function P() {
|
|
228
|
+
const e = o.__wbindgen_externrefs, t = e.grow(4);
|
|
229
|
+
e.set(0, void 0), e.set(t + 0, void 0), e.set(t + 1, null), e.set(t + 2, !0), e.set(t + 3, !1);
|
|
230
|
+
}
|
|
231
|
+
export {
|
|
232
|
+
E as Greeter,
|
|
233
|
+
N as __wbg_Error_52673b7de5a0ca89,
|
|
234
|
+
W as __wbg_Number_2d1dcfcf4ec51736,
|
|
235
|
+
k as __wbg___wbindgen_debug_string_adfb662ae34724b6,
|
|
236
|
+
B as __wbg___wbindgen_is_string_704ef9c8fc131030,
|
|
237
|
+
R as __wbg___wbindgen_throw_dd24417ed36fc46e,
|
|
238
|
+
U as __wbg_error_7534b8e9a36f1ab4,
|
|
239
|
+
V as __wbg_new_1ba21ce319a06297,
|
|
240
|
+
C as __wbg_new_25f239778d6112b9,
|
|
241
|
+
G as __wbg_new_8a6f238a6ece86ea,
|
|
242
|
+
L as __wbg_new_b546ae120718850e,
|
|
243
|
+
J as __wbg_set_3f1d0b984ed272ed,
|
|
244
|
+
X as __wbg_set_7df433eea03a5c14,
|
|
245
|
+
Y as __wbg_set_efaaf145b9377369,
|
|
246
|
+
D as __wbg_set_wasm,
|
|
247
|
+
q as __wbg_stack_0ed75d68575b0f3c,
|
|
248
|
+
H as __wbindgen_cast_2241b6af4c4b2941,
|
|
249
|
+
K as __wbindgen_cast_d6cd19b81560fd6e,
|
|
250
|
+
P as __wbindgen_init_externref_table,
|
|
251
|
+
F as add,
|
|
252
|
+
I as echo,
|
|
253
|
+
O as init_debug,
|
|
254
|
+
$ as parse_content,
|
|
255
|
+
j as parse_styles,
|
|
256
|
+
z as unzip
|
|
257
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@esheet/field-kerebron",
|
|
3
|
+
"version": "0.0.4-1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/mieweb/eSheet"
|
|
7
|
+
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
".": {
|
|
18
|
+
"@esheet/source": "./src/index.ts",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"!**/*.tsbuildinfo"
|
|
27
|
+
],
|
|
28
|
+
"nx": {
|
|
29
|
+
"tags": [
|
|
30
|
+
"scope:field-kerebron"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@esheet/core": "0.0.4-1",
|
|
35
|
+
"@kerebron/editor": "^0.7.9",
|
|
36
|
+
"@kerebron/editor-kits": "^0.7.9",
|
|
37
|
+
"@kerebron/editor-react": "^0.7.9",
|
|
38
|
+
"@kerebron/extension-basic-editor": "^0.7.9",
|
|
39
|
+
"@kerebron/extension-menu": "^0.7.9",
|
|
40
|
+
"react": "^19.2.4",
|
|
41
|
+
"tslib": "^2.3.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/react": "^19.2.14",
|
|
45
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
46
|
+
"vite-plugin-dts": "^4.5.4"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": "^19.2.4"
|
|
50
|
+
}
|
|
51
|
+
}
|