@cyberskill/cyber-editor 3.9.0 → 3.9.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/_tsup-dts-rollup.d.cts +196 -0
- package/dist/_tsup-dts-rollup.d.ts +196 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1 -0
- package/dist/modules/accordion/accordion-extension.cjs +1 -0
- package/dist/modules/accordion/accordion-extension.d.cts +1 -0
- package/dist/modules/accordion/accordion-extension.d.ts +1 -0
- package/dist/modules/accordion/accordion-extension.js +1 -0
- package/dist/modules/accordion/accordion-view.component.cjs +1 -0
- package/dist/modules/accordion/accordion-view.component.d.cts +1 -0
- package/dist/modules/accordion/accordion-view.component.d.ts +1 -0
- package/dist/modules/accordion/accordion-view.component.js +1 -0
- package/dist/modules/accordion/accordion-view.type.cjs +1 -0
- package/dist/modules/accordion/accordion-view.type.d.cts +2 -0
- package/dist/modules/accordion/accordion-view.type.d.ts +2 -0
- package/dist/modules/accordion/accordion-view.type.js +0 -0
- package/dist/modules/accordion/index.cjs +1 -0
- package/dist/modules/accordion/index.d.cts +4 -0
- package/dist/modules/accordion/index.d.ts +4 -0
- package/dist/modules/accordion/index.js +1 -0
- package/dist/modules/color-picker/color-picker.component.cjs +1 -0
- package/dist/modules/color-picker/color-picker.component.d.cts +1 -0
- package/dist/modules/color-picker/color-picker.component.d.ts +1 -0
- package/dist/modules/color-picker/color-picker.component.js +1 -0
- package/dist/modules/color-picker/color-picker.type.cjs +1 -0
- package/dist/modules/color-picker/color-picker.type.d.cts +1 -0
- package/dist/modules/color-picker/color-picker.type.d.ts +1 -0
- package/dist/modules/color-picker/color-picker.type.js +0 -0
- package/dist/modules/color-picker/index.cjs +1 -0
- package/dist/modules/color-picker/index.d.cts +2 -0
- package/dist/modules/color-picker/index.d.ts +2 -0
- package/dist/modules/color-picker/index.js +1 -0
- package/dist/modules/editor/editor.component.cjs +1 -0
- package/dist/modules/editor/editor.component.d.cts +1 -0
- package/dist/modules/editor/editor.component.d.ts +1 -0
- package/dist/modules/editor/editor.component.js +1 -0
- package/dist/modules/editor/editor.constant.cjs +1 -0
- package/dist/modules/editor/editor.constant.d.cts +1 -0
- package/dist/modules/editor/editor.constant.d.ts +1 -0
- package/dist/modules/editor/editor.constant.js +1 -0
- package/dist/modules/editor/editor.module.d.cts +1 -0
- package/dist/modules/editor/editor.module.d.ts +1 -0
- package/dist/modules/editor/editor.module.scss +313 -0
- package/dist/modules/editor/editor.type.cjs +1 -0
- package/dist/modules/editor/editor.type.d.cts +1 -0
- package/dist/modules/editor/editor.type.d.ts +1 -0
- package/dist/modules/editor/editor.type.js +0 -0
- package/dist/modules/editor/index.cjs +1 -0
- package/dist/modules/editor/index.d.cts +3 -0
- package/dist/modules/editor/index.d.ts +3 -0
- package/dist/modules/editor/index.js +1 -0
- package/dist/modules/heading/heading.component.cjs +1 -0
- package/dist/modules/heading/heading.component.d.cts +1 -0
- package/dist/modules/heading/heading.component.d.ts +1 -0
- package/dist/modules/heading/heading.component.js +1 -0
- package/dist/modules/heading/heading.type.cjs +1 -0
- package/dist/modules/heading/heading.type.d.cts +1 -0
- package/dist/modules/heading/heading.type.d.ts +1 -0
- package/dist/modules/heading/heading.type.js +0 -0
- package/dist/modules/heading/index.cjs +1 -0
- package/dist/modules/heading/index.d.cts +2 -0
- package/dist/modules/heading/index.d.ts +2 -0
- package/dist/modules/heading/index.js +1 -0
- package/dist/modules/home/home.page.cjs +1 -0
- package/dist/modules/home/home.page.d.cts +1 -0
- package/dist/modules/home/home.page.d.ts +1 -0
- package/dist/modules/home/home.page.js +1 -0
- package/dist/modules/home/index.cjs +1 -0
- package/dist/modules/home/index.d.cts +1 -0
- package/dist/modules/home/index.d.ts +1 -0
- package/dist/modules/home/index.js +1 -0
- package/dist/modules/image/image-view.component.cjs +1 -0
- package/dist/modules/image/image-view.component.d.cts +1 -0
- package/dist/modules/image/image-view.component.d.ts +1 -0
- package/dist/modules/image/image-view.component.js +1 -0
- package/dist/modules/image/image-view.type.cjs +1 -0
- package/dist/modules/image/image-view.type.d.cts +2 -0
- package/dist/modules/image/image-view.type.d.ts +2 -0
- package/dist/modules/image/image-view.type.js +0 -0
- package/dist/modules/image/image.cjs +1 -0
- package/dist/modules/image/image.d.cts +1 -0
- package/dist/modules/image/image.d.ts +1 -0
- package/dist/modules/image/image.js +1 -0
- package/dist/modules/image/index.cjs +1 -0
- package/dist/modules/image/index.d.cts +4 -0
- package/dist/modules/image/index.d.ts +4 -0
- package/dist/modules/image/index.js +1 -0
- package/dist/modules/index.cjs +1 -0
- package/dist/modules/index.d.cts +20 -0
- package/dist/modules/index.d.ts +20 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/table/index.cjs +1 -0
- package/dist/modules/table/index.d.cts +2 -0
- package/dist/modules/table/index.d.ts +2 -0
- package/dist/modules/table/index.js +1 -0
- package/dist/modules/table/table.component.cjs +1 -0
- package/dist/modules/table/table.component.d.cts +1 -0
- package/dist/modules/table/table.component.d.ts +1 -0
- package/dist/modules/table/table.component.js +1 -0
- package/dist/modules/table/table.type.cjs +1 -0
- package/dist/modules/table/table.type.d.cts +1 -0
- package/dist/modules/table/table.type.d.ts +1 -0
- package/dist/modules/table/table.type.js +0 -0
- package/dist/modules/toolbar/index.cjs +1 -0
- package/dist/modules/toolbar/index.d.cts +2 -0
- package/dist/modules/toolbar/index.d.ts +2 -0
- package/dist/modules/toolbar/index.js +1 -0
- package/dist/modules/toolbar/toolbar.component.cjs +1 -0
- package/dist/modules/toolbar/toolbar.component.d.cts +1 -0
- package/dist/modules/toolbar/toolbar.component.d.ts +1 -0
- package/dist/modules/toolbar/toolbar.component.js +1 -0
- package/dist/modules/toolbar/toolbar.custom.component.cjs +1 -0
- package/dist/modules/toolbar/toolbar.custom.component.d.cts +1 -0
- package/dist/modules/toolbar/toolbar.custom.component.d.ts +1 -0
- package/dist/modules/toolbar/toolbar.custom.component.js +1 -0
- package/dist/shared/component/color-picker/color-picker.component.cjs +1 -0
- package/dist/shared/component/color-picker/color-picker.component.d.cts +1 -0
- package/dist/shared/component/color-picker/color-picker.component.d.ts +1 -0
- package/dist/shared/component/color-picker/color-picker.component.js +1 -0
- package/dist/shared/component/color-picker/color-picker.type.cjs +1 -0
- package/dist/shared/component/color-picker/color-picker.type.d.cts +1 -0
- package/dist/shared/component/color-picker/color-picker.type.d.ts +1 -0
- package/dist/shared/component/color-picker/color-picker.type.js +0 -0
- package/dist/shared/component/color-picker/index.cjs +1 -0
- package/dist/shared/component/color-picker/index.d.cts +2 -0
- package/dist/shared/component/color-picker/index.d.ts +2 -0
- package/dist/shared/component/color-picker/index.js +1 -0
- package/dist/shared/component/index.cjs +1 -0
- package/dist/shared/component/index.d.cts +4 -0
- package/dist/shared/component/index.d.ts +4 -0
- package/dist/shared/component/index.js +1 -0
- package/dist/shared/component/modal-edit/index.cjs +1 -0
- package/dist/shared/component/modal-edit/index.d.cts +2 -0
- package/dist/shared/component/modal-edit/index.d.ts +2 -0
- package/dist/shared/component/modal-edit/index.js +1 -0
- package/dist/shared/component/modal-edit/modal-edit.component.cjs +1 -0
- package/dist/shared/component/modal-edit/modal-edit.component.d.cts +1 -0
- package/dist/shared/component/modal-edit/modal-edit.component.d.ts +1 -0
- package/dist/shared/component/modal-edit/modal-edit.component.js +1 -0
- package/dist/shared/component/modal-edit/modal-edit.type.cjs +1 -0
- package/dist/shared/component/modal-edit/modal-edit.type.d.cts +1 -0
- package/dist/shared/component/modal-edit/modal-edit.type.d.ts +1 -0
- package/dist/shared/component/modal-edit/modal-edit.type.js +0 -0
- package/dist/shared/style/global.css +2 -0
- package/dist/shared/style/global.d.cts +1 -0
- package/dist/shared/style/global.d.ts +1 -0
- package/dist/shared/typescript/style.d.cjs +1 -0
- package/dist/shared/typescript/style.d.d.cts +1 -0
- package/dist/shared/typescript/style.d.d.ts +1 -0
- package/dist/shared/typescript/style.d.js +0 -0
- package/package.json +42 -32
- package/dist/client/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/client/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/client/assets/manifest-e1ae6e39.js +0 -1
- package/dist/client/chunk-D4RADZKF-CqCYZIAv.js +0 -6257
- package/dist/client/chunk-D4RADZKF-sLhgGPy5.cjs +0 -56
- package/dist/client/cyber-editor.cjs.js +0 -259
- package/dist/client/cyber-editor.cjs2.js +0 -1
- package/dist/client/cyber-editor.cjs3.js +0 -1
- package/dist/client/cyber-editor.cjs4.js +0 -604
- package/dist/client/cyber-editor.cjs5.js +0 -1
- package/dist/client/cyber-editor.css +0 -1
- package/dist/client/cyber-editor.es.js +0 -25364
- package/dist/client/cyber-editor.es2.js +0 -43
- package/dist/client/cyber-editor.es3.js +0 -11
- package/dist/client/cyber-editor.es4.js +0 -46769
- package/dist/client/cyber-editor.es5.js +0 -11
- package/dist/client/index-HJNgKdvE.cjs +0 -5
- package/dist/client/index-rkLJDvut.js +0 -156
- package/dist/client/index.d.ts +0 -23
- package/dist/client/index.html +0 -6
- package/dist/client/with-props-Ba4118z_.js +0 -27
- package/dist/client/with-props-CuGIah2q.cjs +0 -1
- /package/{dist/client → public}/assets/icons/index.ts +0 -0
- /package/{dist/client → public}/favicon.svg +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("./_commonjsHelpers-DwGv2jUC.cjs"),s=require("react");var d={exports:{}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var p;function E(){return p||(p=1,function(e){(function(){var n={}.hasOwnProperty;function r(){for(var t="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(t=o(t,a(u)))}return t}function a(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var i="";for(var u in t)n.call(t,u)&&t[u]&&(i=o(i,u));return i}function o(t,i){return i?t?t+" "+i:t+i:t}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(d)),d.exports}var S=E();const g=w.getDefaultExportFromCjs(S),N="_fullscreen_1srm8_1",x="_block_1srm8_2",L="_container_1srm8_28",P="_ring_1srm8_35",k="_message_1srm8_64",l={fullscreen:N,block:x,container:L,ring:P,message:k};function y(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,a=new Array(n);r<n;r++)a[r]=e[r];return a}function A(e){if(Array.isArray(e))return e}function C(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function q(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a=[],o=!0,t=!1,i,u;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(a.push(i.value),!(n&&a.length===n));o=!0);}catch(c){t=!0,u=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(t)throw u}}return a}}function I(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},a=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),a.forEach(function(o){C(e,o,r[o])})}return e}function M(e,n){if(e==null)return{};var r=R(e,n),a,o;if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);for(o=0;o<t.length;o++)a=t[o],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function R(e,n){if(e==null)return{};var r={},a=Object.keys(e),o,t;for(t=0;t<a.length;t++)o=a[t],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function h(e,n){return A(e)||q(e,n)||F(e,n)||I()}function F(e,n){if(e){if(typeof e=="string")return y(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,n)}}var G=Object.defineProperty,v=function(e,n){return G(e,"name",{value:n,configurable:!0})};function b(e){var n=e.full,r=n===void 0?!1:n,a=e.block,o=a===void 0?!1:a,t=e.className,i=t===void 0?"":t,u=e.message,c=u===void 0?"Loading":u,m=M(e,["full","block","className","message"]);function f(){return s.createElement("div",D({className:l.container},m),s.createElement("div",{className:l.ring}),s.createElement("div",{className:l.ring}),s.createElement("div",{className:l.ring}),s.createElement("div",{className:l.ring}),c&&s.createElement("div",{className:l.message},c))}return v(f,"_renderLoading"),r?s.createElement("div",{className:g(l.fullscreen,i)},f()):o?s.createElement("div",{className:g(l.block,i)},f()):f()}v(b,"Loading");var O=s.createContext(void 0);function H(){var e=s.use(O);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}v(H,"useLoading");function j(e){var n=e.children,r=h(s.useState(!1),2),a=r[0],o=r[1],t=h(s.useState(!1),2),i=t[0],u=t[1],c=s.useCallback(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o(!0),u(_)},[]),m=s.useCallback(function(){o(!1),u(!1)},[]),f=s.useMemo(function(){return{isLoading:a,isGlobalLoading:i,showLoading:c,hideLoading:m}},[a,i,c,m]);return s.createElement(O,{value:f},a?s.createElement(b,{full:i}):n)}v(j,"LoadingProvider");exports.cn=g;exports.g=b;exports.j=j;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { g as E } from "./_commonjsHelpers-C6fGbg64.js";
|
|
2
|
-
import l, { createContext as S, use as x, useState as g, useCallback as b, useMemo as N } from "react";
|
|
3
|
-
var d = { exports: {} };
|
|
4
|
-
/*!
|
|
5
|
-
Copyright (c) 2018 Jed Watson.
|
|
6
|
-
Licensed under the MIT License (MIT), see
|
|
7
|
-
http://jedwatson.github.io/classnames
|
|
8
|
-
*/
|
|
9
|
-
var p;
|
|
10
|
-
function L() {
|
|
11
|
-
return p || (p = 1, function(e) {
|
|
12
|
-
(function() {
|
|
13
|
-
var n = {}.hasOwnProperty;
|
|
14
|
-
function r() {
|
|
15
|
-
for (var t = "", i = 0; i < arguments.length; i++) {
|
|
16
|
-
var s = arguments[i];
|
|
17
|
-
s && (t = o(t, a(s)));
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
}
|
|
21
|
-
function a(t) {
|
|
22
|
-
if (typeof t == "string" || typeof t == "number")
|
|
23
|
-
return t;
|
|
24
|
-
if (typeof t != "object")
|
|
25
|
-
return "";
|
|
26
|
-
if (Array.isArray(t))
|
|
27
|
-
return r.apply(null, t);
|
|
28
|
-
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
29
|
-
return t.toString();
|
|
30
|
-
var i = "";
|
|
31
|
-
for (var s in t)
|
|
32
|
-
n.call(t, s) && t[s] && (i = o(i, s));
|
|
33
|
-
return i;
|
|
34
|
-
}
|
|
35
|
-
function o(t, i) {
|
|
36
|
-
return i ? t ? t + " " + i : t + i : t;
|
|
37
|
-
}
|
|
38
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
39
|
-
})();
|
|
40
|
-
}(d)), d.exports;
|
|
41
|
-
}
|
|
42
|
-
var P = L();
|
|
43
|
-
const y = /* @__PURE__ */ E(P), k = "_fullscreen_1srm8_1", A = "_block_1srm8_2", C = "_container_1srm8_28", I = "_ring_1srm8_35", q = "_message_1srm8_64", u = {
|
|
44
|
-
fullscreen: k,
|
|
45
|
-
block: A,
|
|
46
|
-
container: C,
|
|
47
|
-
ring: I,
|
|
48
|
-
message: q
|
|
49
|
-
};
|
|
50
|
-
function h(e, n) {
|
|
51
|
-
(n == null || n > e.length) && (n = e.length);
|
|
52
|
-
for (var r = 0, a = new Array(n); r < n; r++) a[r] = e[r];
|
|
53
|
-
return a;
|
|
54
|
-
}
|
|
55
|
-
function D(e) {
|
|
56
|
-
if (Array.isArray(e)) return e;
|
|
57
|
-
}
|
|
58
|
-
function M(e, n, r) {
|
|
59
|
-
return n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
60
|
-
}
|
|
61
|
-
function R(e, n) {
|
|
62
|
-
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
63
|
-
if (r != null) {
|
|
64
|
-
var a = [], o = !0, t = !1, i, s;
|
|
65
|
-
try {
|
|
66
|
-
for (r = r.call(e); !(o = (i = r.next()).done) && (a.push(i.value), !(n && a.length === n)); o = !0)
|
|
67
|
-
;
|
|
68
|
-
} catch (c) {
|
|
69
|
-
t = !0, s = c;
|
|
70
|
-
} finally {
|
|
71
|
-
try {
|
|
72
|
-
!o && r.return != null && r.return();
|
|
73
|
-
} finally {
|
|
74
|
-
if (t) throw s;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return a;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function F() {
|
|
81
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
82
|
-
}
|
|
83
|
-
function G(e) {
|
|
84
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
85
|
-
var r = arguments[n] != null ? arguments[n] : {}, a = Object.keys(r);
|
|
86
|
-
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function(o) {
|
|
87
|
-
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
88
|
-
}))), a.forEach(function(o) {
|
|
89
|
-
M(e, o, r[o]);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return e;
|
|
93
|
-
}
|
|
94
|
-
function T(e, n) {
|
|
95
|
-
if (e == null) return {};
|
|
96
|
-
var r = U(e, n), a, o;
|
|
97
|
-
if (Object.getOwnPropertySymbols) {
|
|
98
|
-
var t = Object.getOwnPropertySymbols(e);
|
|
99
|
-
for (o = 0; o < t.length; o++)
|
|
100
|
-
a = t[o], !(n.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
|
|
101
|
-
}
|
|
102
|
-
return r;
|
|
103
|
-
}
|
|
104
|
-
function U(e, n) {
|
|
105
|
-
if (e == null) return {};
|
|
106
|
-
var r = {}, a = Object.keys(e), o, t;
|
|
107
|
-
for (t = 0; t < a.length; t++)
|
|
108
|
-
o = a[t], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
109
|
-
return r;
|
|
110
|
-
}
|
|
111
|
-
function O(e, n) {
|
|
112
|
-
return D(e) || R(e, n) || V(e, n) || F();
|
|
113
|
-
}
|
|
114
|
-
function V(e, n) {
|
|
115
|
-
if (e) {
|
|
116
|
-
if (typeof e == "string") return h(e, n);
|
|
117
|
-
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
118
|
-
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(r);
|
|
119
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return h(e, n);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
var $ = Object.defineProperty, v = function(e, n) {
|
|
123
|
-
return $(e, "name", { value: n, configurable: !0 });
|
|
124
|
-
};
|
|
125
|
-
function _(e) {
|
|
126
|
-
var n = e.full, r = n === void 0 ? !1 : n, a = e.block, o = a === void 0 ? !1 : a, t = e.className, i = t === void 0 ? "" : t, s = e.message, c = s === void 0 ? "Loading" : s, m = T(e, ["full", "block", "className", "message"]);
|
|
127
|
-
function f() {
|
|
128
|
-
return l.createElement("div", G({ className: u.container }, m), l.createElement("div", { className: u.ring }), l.createElement("div", { className: u.ring }), l.createElement("div", { className: u.ring }), l.createElement("div", { className: u.ring }), c && l.createElement("div", { className: u.message }, c));
|
|
129
|
-
}
|
|
130
|
-
return v(f, "_renderLoading"), r ? l.createElement("div", { className: y(u.fullscreen, i) }, f()) : o ? l.createElement("div", { className: y(u.block, i) }, f()) : f();
|
|
131
|
-
}
|
|
132
|
-
v(_, "Loading");
|
|
133
|
-
var j = S(void 0);
|
|
134
|
-
function z() {
|
|
135
|
-
var e = x(j);
|
|
136
|
-
if (!e) throw new Error("useLoading must be used within a LoadingProvider");
|
|
137
|
-
return e;
|
|
138
|
-
}
|
|
139
|
-
v(z, "useLoading");
|
|
140
|
-
function B(e) {
|
|
141
|
-
var n = e.children, r = O(g(!1), 2), a = r[0], o = r[1], t = O(g(!1), 2), i = t[0], s = t[1], c = b(function() {
|
|
142
|
-
var w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
143
|
-
o(!0), s(w);
|
|
144
|
-
}, []), m = b(function() {
|
|
145
|
-
o(!1), s(!1);
|
|
146
|
-
}, []), f = N(function() {
|
|
147
|
-
return { isLoading: a, isGlobalLoading: i, showLoading: c, hideLoading: m };
|
|
148
|
-
}, [a, i, c, m]);
|
|
149
|
-
return l.createElement(j, { value: f }, a ? l.createElement(_, { full: i }) : n);
|
|
150
|
-
}
|
|
151
|
-
v(B, "LoadingProvider");
|
|
152
|
-
export {
|
|
153
|
-
y as c,
|
|
154
|
-
_ as g,
|
|
155
|
-
B as j
|
|
156
|
-
};
|
package/dist/client/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
export declare function EditorProvider({ content, slotBefore, className, editorClassName, editable, onChange, }: I_CyberEditorProviderProps_2): JSX.Element;
|
|
4
|
-
|
|
5
|
-
export declare interface I_CyberEditorProviderProps {
|
|
6
|
-
content?: string;
|
|
7
|
-
slotBefore?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
editorClassName?: string;
|
|
10
|
-
editable?: boolean;
|
|
11
|
-
onChange?: (content: string) => void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare interface I_CyberEditorProviderProps_2 {
|
|
15
|
-
content?: string;
|
|
16
|
-
slotBefore?: boolean;
|
|
17
|
-
className?: string;
|
|
18
|
-
editorClassName?: string;
|
|
19
|
-
editable?: boolean;
|
|
20
|
-
onChange?: (content: string) => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { }
|
package/dist/client/index.html
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="modulepreload" href="/assets/manifest-e1ae6e39.js"/><link rel="modulepreload" href="/cyber-editor.cjs.js"/><link rel="modulepreload" href="/chunk-D4RADZKF-sLhgGPy5.cjs"/><link rel="modulepreload" href="/_commonjsHelpers-DwGv2jUC.cjs"/><link rel="modulepreload" href="/cyber-editor.cjs2.js"/><link rel="modulepreload" href="/with-props-CuGIah2q.cjs"/><link rel="modulepreload" href="/index-HJNgKdvE.cjs"/><link rel="icon" type="image/svg+xml" href="/vite.svg"/><title>Cyber Editor</title></head><body><div class="_fullscreen_1srm8_1"><div class="_container_1srm8_28"><div class="_ring_1srm8_35"></div><div class="_ring_1srm8_35"></div><div class="_ring_1srm8_35"></div><div class="_ring_1srm8_35"></div><div class="_message_1srm8_64">Loading</div></div></div><script>window.__reactRouterContext = {"basename":"/","future":{"unstable_middleware":false,"unstable_optimizeDeps":false,"unstable_splitRouteModules":false,"unstable_subResourceIntegrity":false,"unstable_viteEnvironmentApi":false},"routeDiscovery":{"mode":"initial"},"ssr":false,"isSpaMode":true};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());</script><script type="module" async="">import "/assets/manifest-e1ae6e39.js";
|
|
2
|
-
import * as route0 from "/cyber-editor.cjs2.js";
|
|
3
|
-
|
|
4
|
-
window.__reactRouterRouteModules = {"root":route0};
|
|
5
|
-
|
|
6
|
-
import("/cyber-editor.cjs.js");</script><!--$--><script>window.__reactRouterContext.streamController.enqueue("[{\"_1\":2,\"_3\":-5,\"_4\":-5},\"loaderData\",{},\"actionData\",\"errors\"]\n");</script><!--$--><script>window.__reactRouterContext.streamController.close();</script><!--/$--><!--/$--></body></html>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createElement as r } from "react";
|
|
2
|
-
import { p as o, q as e, r as s, s as p } from "./chunk-D4RADZKF-CqCYZIAv.js";
|
|
3
|
-
function i(a) {
|
|
4
|
-
return function() {
|
|
5
|
-
const t = {
|
|
6
|
-
params: s(),
|
|
7
|
-
loaderData: e(),
|
|
8
|
-
actionData: o(),
|
|
9
|
-
matches: p()
|
|
10
|
-
};
|
|
11
|
-
return r(a, t);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function m(a) {
|
|
15
|
-
return function() {
|
|
16
|
-
const t = {
|
|
17
|
-
params: s(),
|
|
18
|
-
loaderData: e(),
|
|
19
|
-
actionData: o()
|
|
20
|
-
};
|
|
21
|
-
return r(a, t);
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
i as a,
|
|
26
|
-
m as w
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("react"),a=require("./chunk-D4RADZKF-sLhgGPy5.cjs");function o(t){return function(){const e={params:a.useParams(),loaderData:a.useLoaderData(),actionData:a.useActionData(),matches:a.useMatches()};return r.createElement(t,e)}}function s(t){return function(){const e={params:a.useParams(),loaderData:a.useLoaderData(),actionData:a.useActionData()};return r.createElement(t,e)}}exports.withComponentProps=o;exports.withHydrateFallbackProps=s;
|
|
File without changes
|
|
File without changes
|