@lotte-innovate/ui-component-test 0.2.70 → 0.2.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/globals.css +1 -1
- package/dist/lib/components/Avatar/index.js +1 -0
- package/dist/lib/components/Avatar/index.mjs +1 -1
- package/dist/lib/components/Editor/index.d.ts +0 -1
- package/dist/lib/components/Editor/index.js +12 -2
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Gnb/GnbMenuItem.js +1 -1
- package/dist/lib/components/Gnb/GnbMenuItem.mjs +1 -1
- package/dist/lib/components/Grid/NumberingPagination.d.ts +1 -1
- package/dist/lib/components/Grid/NumberingPagination.js +15 -15
- package/dist/lib/components/Grid/NumberingPagination.mjs +1 -1
- package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -1
- package/dist/lib/components/Grid/index.d.ts +2 -1
- package/dist/lib/components/Grid/index.js +4 -4
- package/dist/lib/components/Grid/index.mjs +1 -1
- package/dist/lib/components/Grid/useGrid.js +11 -0
- package/dist/lib/components/Grid/useGrid.mjs +1 -1
- package/dist/lib/components/SideBar/index.js +3 -1
- package/dist/lib/components/SideBar/index.mjs +1 -1
- package/dist/lib/components/Tabs/DynamicTabs.js +2 -0
- package/dist/lib/components/Tabs/DynamicTabs.mjs +1 -1
- package/dist/lib/components/Tree/index.d.ts +1 -2
- package/dist/lib/components/Tree/index.js +3 -2
- package/dist/lib/components/Tree/index.mjs +1 -1
- package/dist/lib/components/Tree/index.mjs.map +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/utils/useLoadTinyMCE.d.ts +1 -37
- package/dist/lib/utils/useLoadTinyMCE.js +151 -36
- package/dist/lib/utils/useLoadTinyMCE.mjs +2 -0
- package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -0
- package/dist/lib/utils/useWindowSize.d.ts +1 -0
- package/dist/lib/utils/useWindowSize.js +17 -18
- package/dist/lib/utils/useWindowSize.mjs +2 -0
- package/dist/lib/utils/useWindowSize.mjs.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lib/node_modules/react-complex-tree/lib/style-modern.mjs +0 -2
- package/dist/lib/node_modules/react-complex-tree/lib/style-modern.mjs.map +0 -1
- package/dist/lib/node_modules/style-inject/dist/style-inject.es.mjs +0 -2
- package/dist/lib/node_modules/style-inject/dist/style-inject.es.mjs.map +0 -1
@@ -1,37 +1 @@
|
|
1
|
-
|
2
|
-
import 'tinymce/tinymce.js';
|
3
|
-
import 'tinymce/themes/silver/theme.js';
|
4
|
-
import 'tinymce/models/dom/model.js';
|
5
|
-
import 'tinymce/icons/default/icons.js';
|
6
|
-
import 'tinymce/plugins/advlist/plugin.js';
|
7
|
-
import 'tinymce/plugins/code/plugin.js';
|
8
|
-
import 'tinymce/plugins/codesample/plugin.js';
|
9
|
-
import 'tinymce/plugins/link/plugin.js';
|
10
|
-
import 'tinymce/plugins/lists/plugin.js';
|
11
|
-
import 'tinymce/plugins/table/plugin.js';
|
12
|
-
import 'tinymce/plugins/image/plugin.js';
|
13
|
-
import 'tinymce/plugins/preview/plugin.js';
|
14
|
-
import 'tinymce/plugins/importcss/plugin.js';
|
15
|
-
import 'tinymce/plugins/searchreplace/plugin.js';
|
16
|
-
import 'tinymce/plugins/autolink/plugin.js';
|
17
|
-
import 'tinymce/plugins/autosave/plugin.js';
|
18
|
-
import 'tinymce/plugins/save/plugin.js';
|
19
|
-
import 'tinymce/plugins/directionality/plugin.js';
|
20
|
-
import 'tinymce/plugins/visualblocks/plugin.js';
|
21
|
-
import 'tinymce/plugins/visualchars/plugin.js';
|
22
|
-
import 'tinymce/plugins/fullscreen/plugin.js';
|
23
|
-
import 'tinymce/plugins/media/plugin.js';
|
24
|
-
import 'tinymce/plugins/charmap/plugin.js';
|
25
|
-
import 'tinymce/plugins/pagebreak/plugin.js';
|
26
|
-
import 'tinymce/plugins/nonbreaking/plugin.js';
|
27
|
-
import 'tinymce/plugins/anchor/plugin.js';
|
28
|
-
import 'tinymce/plugins/insertdatetime/plugin.js';
|
29
|
-
import 'tinymce/plugins/wordcount/plugin.js';
|
30
|
-
import 'tinymce/plugins/quickbars/plugin.js';
|
31
|
-
import 'tinymce/plugins/emoticons/plugin.js';
|
32
|
-
import 'tinymce/plugins/accordion/plugin.js';
|
33
|
-
import '../../lib/utils/langs/ko_KR.js';
|
34
|
-
import '../../lib/utils/langs/it.js';
|
35
|
-
import '../../lib/utils/langs/ja.js';
|
36
|
-
import '../../lib/utils/langs/vi.js';
|
37
|
-
import '../../lib/utils/langs/zh_CN.js';
|
1
|
+
export declare const loadTinymce: () => Promise<void>;
|
@@ -1,36 +1,151 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
14
|
+
function step(op) {
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
19
|
+
switch (op[0]) {
|
20
|
+
case 0: case 1: t = op; break;
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
24
|
+
default:
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
29
|
+
if (t[2]) _.ops.pop();
|
30
|
+
_.trys.pop(); continue;
|
31
|
+
}
|
32
|
+
op = body.call(thisArg, _);
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
35
|
+
}
|
36
|
+
};
|
37
|
+
export var loadTinymce = function () { return __awaiter(void 0, void 0, void 0, function () {
|
38
|
+
return __generator(this, function (_a) {
|
39
|
+
switch (_a.label) {
|
40
|
+
case 0: return [4 /*yield*/, import('tinymce/tinymce.js')];
|
41
|
+
case 1:
|
42
|
+
_a.sent();
|
43
|
+
return [4 /*yield*/, import('tinymce/themes/silver/theme.js')];
|
44
|
+
case 2:
|
45
|
+
_a.sent();
|
46
|
+
return [4 /*yield*/, import('tinymce/models/dom/model.js')];
|
47
|
+
case 3:
|
48
|
+
_a.sent();
|
49
|
+
return [4 /*yield*/, import('tinymce/icons/default/icons.js')];
|
50
|
+
case 4:
|
51
|
+
_a.sent();
|
52
|
+
return [4 /*yield*/, import('tinymce/plugins/advlist/plugin.js')];
|
53
|
+
case 5:
|
54
|
+
_a.sent();
|
55
|
+
return [4 /*yield*/, import('tinymce/plugins/code/plugin.js')];
|
56
|
+
case 6:
|
57
|
+
_a.sent();
|
58
|
+
return [4 /*yield*/, import('tinymce/plugins/codesample/plugin.js')];
|
59
|
+
case 7:
|
60
|
+
_a.sent();
|
61
|
+
return [4 /*yield*/, import('tinymce/plugins/link/plugin.js')];
|
62
|
+
case 8:
|
63
|
+
_a.sent();
|
64
|
+
return [4 /*yield*/, import('tinymce/plugins/lists/plugin.js')];
|
65
|
+
case 9:
|
66
|
+
_a.sent();
|
67
|
+
return [4 /*yield*/, import('tinymce/plugins/table/plugin.js')];
|
68
|
+
case 10:
|
69
|
+
_a.sent();
|
70
|
+
return [4 /*yield*/, import('tinymce/plugins/image/plugin.js')];
|
71
|
+
case 11:
|
72
|
+
_a.sent();
|
73
|
+
return [4 /*yield*/, import('tinymce/plugins/preview/plugin.js')];
|
74
|
+
case 12:
|
75
|
+
_a.sent();
|
76
|
+
return [4 /*yield*/, import('tinymce/plugins/importcss/plugin.js')];
|
77
|
+
case 13:
|
78
|
+
_a.sent();
|
79
|
+
return [4 /*yield*/, import('tinymce/plugins/searchreplace/plugin.js')];
|
80
|
+
case 14:
|
81
|
+
_a.sent();
|
82
|
+
return [4 /*yield*/, import('tinymce/plugins/autolink/plugin.js')];
|
83
|
+
case 15:
|
84
|
+
_a.sent();
|
85
|
+
return [4 /*yield*/, import('tinymce/plugins/autosave/plugin.js')];
|
86
|
+
case 16:
|
87
|
+
_a.sent();
|
88
|
+
return [4 /*yield*/, import('tinymce/plugins/save/plugin.js')];
|
89
|
+
case 17:
|
90
|
+
_a.sent();
|
91
|
+
return [4 /*yield*/, import('tinymce/plugins/directionality/plugin.js')];
|
92
|
+
case 18:
|
93
|
+
_a.sent();
|
94
|
+
return [4 /*yield*/, import('tinymce/plugins/visualblocks/plugin.js')];
|
95
|
+
case 19:
|
96
|
+
_a.sent();
|
97
|
+
return [4 /*yield*/, import('tinymce/plugins/visualchars/plugin.js')];
|
98
|
+
case 20:
|
99
|
+
_a.sent();
|
100
|
+
return [4 /*yield*/, import('tinymce/plugins/fullscreen/plugin.js')];
|
101
|
+
case 21:
|
102
|
+
_a.sent();
|
103
|
+
return [4 /*yield*/, import('tinymce/plugins/media/plugin.js')];
|
104
|
+
case 22:
|
105
|
+
_a.sent();
|
106
|
+
return [4 /*yield*/, import('tinymce/plugins/charmap/plugin.js')];
|
107
|
+
case 23:
|
108
|
+
_a.sent();
|
109
|
+
return [4 /*yield*/, import('tinymce/plugins/pagebreak/plugin.js')];
|
110
|
+
case 24:
|
111
|
+
_a.sent();
|
112
|
+
return [4 /*yield*/, import('tinymce/plugins/nonbreaking/plugin.js')];
|
113
|
+
case 25:
|
114
|
+
_a.sent();
|
115
|
+
return [4 /*yield*/, import('tinymce/plugins/anchor/plugin.js')];
|
116
|
+
case 26:
|
117
|
+
_a.sent();
|
118
|
+
return [4 /*yield*/, import('tinymce/plugins/insertdatetime/plugin.js')];
|
119
|
+
case 27:
|
120
|
+
_a.sent();
|
121
|
+
return [4 /*yield*/, import('tinymce/plugins/wordcount/plugin.js')];
|
122
|
+
case 28:
|
123
|
+
_a.sent();
|
124
|
+
return [4 /*yield*/, import('tinymce/plugins/quickbars/plugin.js')];
|
125
|
+
case 29:
|
126
|
+
_a.sent();
|
127
|
+
return [4 /*yield*/, import('tinymce/plugins/emoticons/plugin.js')];
|
128
|
+
case 30:
|
129
|
+
_a.sent();
|
130
|
+
return [4 /*yield*/, import('tinymce/plugins/accordion/plugin.js')];
|
131
|
+
case 31:
|
132
|
+
_a.sent();
|
133
|
+
return [4 /*yield*/, import('../../lib/utils/langs/ko_KR.js')];
|
134
|
+
case 32:
|
135
|
+
_a.sent();
|
136
|
+
return [4 /*yield*/, import('../../lib/utils/langs/it.js')];
|
137
|
+
case 33:
|
138
|
+
_a.sent();
|
139
|
+
return [4 /*yield*/, import('../../lib/utils/langs/ja.js')];
|
140
|
+
case 34:
|
141
|
+
_a.sent();
|
142
|
+
return [4 /*yield*/, import('../../lib/utils/langs/vi.js')];
|
143
|
+
case 35:
|
144
|
+
_a.sent();
|
145
|
+
return [4 /*yield*/, import('../../lib/utils/langs/zh_CN.js')];
|
146
|
+
case 36:
|
147
|
+
_a.sent();
|
148
|
+
return [2 /*return*/];
|
149
|
+
}
|
150
|
+
});
|
151
|
+
}); };
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var n=function(n,e,t,i){return new(t||(t=Promise))((function(r,s){function u(n){try{l(i.next(n))}catch(n){s(n)}}function c(n){try{l(i.throw(n))}catch(n){s(n)}}function l(n){var e;n.done?r(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(u,c)}l((i=i.apply(n,e||[])).next())}))},e=function(n,e){var t,i,r,s,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(u=0)),u;)try{if(t=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,i=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(r=u.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){u.label=c[1];break}if(6===c[0]&&u.label<r[1]){u.label=r[1],r=c;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(c);break}r[2]&&u.ops.pop(),u.trys.pop();continue}c=e.call(n,u)}catch(n){c=[6,n],i=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},t=function(){return n(void 0,void 0,void 0,(function(){return e(this,(function(n){switch(n.label){case 0:return[4,import("tinymce/tinymce.js")];case 1:return n.sent(),[4,import("tinymce/themes/silver/theme.js")];case 2:return n.sent(),[4,import("tinymce/models/dom/model.js")];case 3:return n.sent(),[4,import("tinymce/icons/default/icons.js")];case 4:return n.sent(),[4,import("tinymce/plugins/advlist/plugin.js")];case 5:return n.sent(),[4,import("tinymce/plugins/code/plugin.js")];case 6:return n.sent(),[4,import("tinymce/plugins/codesample/plugin.js")];case 7:return n.sent(),[4,import("tinymce/plugins/link/plugin.js")];case 8:return n.sent(),[4,import("tinymce/plugins/lists/plugin.js")];case 9:return n.sent(),[4,import("tinymce/plugins/table/plugin.js")];case 10:return n.sent(),[4,import("tinymce/plugins/image/plugin.js")];case 11:return n.sent(),[4,import("tinymce/plugins/preview/plugin.js")];case 12:return n.sent(),[4,import("tinymce/plugins/importcss/plugin.js")];case 13:return n.sent(),[4,import("tinymce/plugins/searchreplace/plugin.js")];case 14:return n.sent(),[4,import("tinymce/plugins/autolink/plugin.js")];case 15:return n.sent(),[4,import("tinymce/plugins/autosave/plugin.js")];case 16:return n.sent(),[4,import("tinymce/plugins/save/plugin.js")];case 17:return n.sent(),[4,import("tinymce/plugins/directionality/plugin.js")];case 18:return n.sent(),[4,import("tinymce/plugins/visualblocks/plugin.js")];case 19:return n.sent(),[4,import("tinymce/plugins/visualchars/plugin.js")];case 20:return n.sent(),[4,import("tinymce/plugins/fullscreen/plugin.js")];case 21:return n.sent(),[4,import("tinymce/plugins/media/plugin.js")];case 22:return n.sent(),[4,import("tinymce/plugins/charmap/plugin.js")];case 23:return n.sent(),[4,import("tinymce/plugins/pagebreak/plugin.js")];case 24:return n.sent(),[4,import("tinymce/plugins/nonbreaking/plugin.js")];case 25:return n.sent(),[4,import("tinymce/plugins/anchor/plugin.js")];case 26:return n.sent(),[4,import("tinymce/plugins/insertdatetime/plugin.js")];case 27:return n.sent(),[4,import("tinymce/plugins/wordcount/plugin.js")];case 28:return n.sent(),[4,import("tinymce/plugins/quickbars/plugin.js")];case 29:return n.sent(),[4,import("tinymce/plugins/emoticons/plugin.js")];case 30:return n.sent(),[4,import("tinymce/plugins/accordion/plugin.js")];case 31:return n.sent(),[4,import("./langs/ko_KR.mjs")];case 32:return n.sent(),[4,import("./langs/it.mjs")];case 33:return n.sent(),[4,import("./langs/ja.mjs")];case 34:return n.sent(),[4,import("./langs/vi.mjs")];case 35:return n.sent(),[4,import("./langs/zh_CN.mjs")];case 36:return n.sent(),[2]}}))}))};export{t as loadTinymce};
|
2
|
+
//# sourceMappingURL=useLoadTinyMCE.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLoadTinyMCE.mjs","sources":["../../lib/utils/useLoadTinyMCE.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nexport var loadTinymce = function () { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import('tinymce/tinymce.js')];\n case 1:\n _a.sent();\n return [4 /*yield*/, import('tinymce/themes/silver/theme.js')];\n case 2:\n _a.sent();\n return [4 /*yield*/, import('tinymce/models/dom/model.js')];\n case 3:\n _a.sent();\n return [4 /*yield*/, import('tinymce/icons/default/icons.js')];\n case 4:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/advlist/plugin.js')];\n case 5:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/code/plugin.js')];\n case 6:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/codesample/plugin.js')];\n case 7:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/link/plugin.js')];\n case 8:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/lists/plugin.js')];\n case 9:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/table/plugin.js')];\n case 10:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/image/plugin.js')];\n case 11:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/preview/plugin.js')];\n case 12:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/importcss/plugin.js')];\n case 13:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/searchreplace/plugin.js')];\n case 14:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/autolink/plugin.js')];\n case 15:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/autosave/plugin.js')];\n case 16:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/save/plugin.js')];\n case 17:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/directionality/plugin.js')];\n case 18:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/visualblocks/plugin.js')];\n case 19:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/visualchars/plugin.js')];\n case 20:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/fullscreen/plugin.js')];\n case 21:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/media/plugin.js')];\n case 22:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/charmap/plugin.js')];\n case 23:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/pagebreak/plugin.js')];\n case 24:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/nonbreaking/plugin.js')];\n case 25:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/anchor/plugin.js')];\n case 26:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/insertdatetime/plugin.js')];\n case 27:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/wordcount/plugin.js')];\n case 28:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/quickbars/plugin.js')];\n case 29:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/emoticons/plugin.js')];\n case 30:\n _a.sent();\n return [4 /*yield*/, import('tinymce/plugins/accordion/plugin.js')];\n case 31:\n _a.sent();\n return [4 /*yield*/, import('../../lib/utils/langs/ko_KR.js')];\n case 32:\n _a.sent();\n return [4 /*yield*/, import('../../lib/utils/langs/it.js')];\n case 33:\n _a.sent();\n return [4 /*yield*/, import('../../lib/utils/langs/ja.js')];\n case 34:\n _a.sent();\n return [4 /*yield*/, import('../../lib/utils/langs/vi.js')];\n case 35:\n _a.sent();\n return [4 /*yield*/, import('../../lib/utils/langs/zh_CN.js')];\n case 36:\n _a.sent();\n return [2 /*return*/];\n }\n });\n}); };\n"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","this","n","v","op","TypeError","call","pop","length","push","loadTinymce","_a","import"],"mappings":"AAAA,IAAIA,EAAwC,SAAUC,EAASC,EAAYC,EAAGC,GAE1E,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAQ,CAAG,MAAOG,GAAKL,EAAOK,GAAO,CAC3F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,GAAU,CAAC,MAAOG,GAAKL,EAAOK,GAAO,CAC9F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,GAAE,SAAUG,GAA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D,EAAGlB,OACI,CAAC,EAAamB,OAAO,sCAChC,KAAK,EAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,mCAChC,KAAK,EAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,yCAChC,KAAK,EAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,mCAChC,KAAK,EAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,oCAChC,KAAK,EAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,oCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,oCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,sCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,wCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,4CAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,uCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,uCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,mCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,6CAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,2CAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,0CAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,yCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,oCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,sCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,wCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,0CAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,qCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,6CAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,wCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,wCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,wCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,wCAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,sBAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,mBAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,mBAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,mBAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,EAAamB,OAAO,sBAChC,KAAK,GAED,OADAD,EAAGlB,OACI,CAAC,GAExB,GACA,GAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function useWindowSize(): number;
|
@@ -1,18 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
// }
|
1
|
+
import { useState, useEffect } from 'react';
|
2
|
+
var MIN_SIZE = 250;
|
3
|
+
export function useWindowSize() {
|
4
|
+
var _a = useState(MIN_SIZE), size = _a[0], setSize = _a[1];
|
5
|
+
useEffect(function () {
|
6
|
+
function handleResize() {
|
7
|
+
var width = 130 + window.innerWidth * 0.15;
|
8
|
+
width = Math.max(width, MIN_SIZE);
|
9
|
+
width = Math.min(width, 300);
|
10
|
+
setSize(width);
|
11
|
+
}
|
12
|
+
window.addEventListener('resize', handleResize);
|
13
|
+
handleResize();
|
14
|
+
return function () { return window.removeEventListener('resize', handleResize); };
|
15
|
+
}, []);
|
16
|
+
return size;
|
17
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{useState as n,useEffect as e}from"react";function r(){var r=n(250),t=r[0],i=r[1];return e((function(){function n(){var n=130+.15*window.innerWidth;n=Math.max(n,250),n=Math.min(n,300),i(n)}return window.addEventListener("resize",n),n(),function(){return window.removeEventListener("resize",n)}}),[]),t}export{r as useWindowSize};
|
2
|
+
//# sourceMappingURL=useWindowSize.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useWindowSize.mjs","sources":["../../lib/utils/useWindowSize.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nvar MIN_SIZE = 250;\nexport function useWindowSize() {\n var _a = useState(MIN_SIZE), size = _a[0], setSize = _a[1];\n useEffect(function () {\n function handleResize() {\n var width = 130 + window.innerWidth * 0.15;\n width = Math.max(width, MIN_SIZE);\n width = Math.min(width, 300);\n setSize(width);\n }\n window.addEventListener('resize', handleResize);\n handleResize();\n return function () { return window.removeEventListener('resize', handleResize); };\n }, []);\n return size;\n}\n"],"names":["useWindowSize","_a","useState","size","setSize","useEffect","handleResize","width","window","innerWidth","Math","max","min","addEventListener","removeEventListener"],"mappings":"gDAEO,SAASA,IACZ,IAAIC,EAAKC,EAFE,KAEkBC,EAAOF,EAAG,GAAIG,EAAUH,EAAG,GAYxD,OAXAI,GAAU,WACN,SAASC,IACL,IAAIC,EAAQ,IAA0B,IAApBC,OAAOC,WACzBF,EAAQG,KAAKC,IAAIJ,EANd,KAOHA,EAAQG,KAAKE,IAAIL,EAAO,KACxBH,EAAQG,EACX,CAGD,OAFAC,OAAOK,iBAAiB,SAAUP,GAClCA,IACO,WAAc,OAAOE,OAAOM,oBAAoB,SAAUR,GACpE,GAAE,IACIH,CACX"}
|