@nestia/editor 11.1.0 → 11.2.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/assets/index-BCljFOyw.js +4750 -0
- package/dist/index.html +1 -1
- package/lib/NestiaEditorApplication.js +46 -131
- package/lib/NestiaEditorApplication.js.map +1 -1
- package/lib/NestiaEditorIframe.js +91 -208
- package/lib/NestiaEditorIframe.js.map +1 -1
- package/lib/NestiaEditorModule.js +60 -174
- package/lib/NestiaEditorModule.js.map +1 -1
- package/lib/NestiaEditorUploader.js +47 -104
- package/lib/NestiaEditorUploader.js.map +1 -1
- package/lib/internal/NestiaEditorComposer.js +48 -146
- package/lib/internal/NestiaEditorComposer.js.map +1 -1
- package/lib/internal/NestiaEditorFileUploader.js +25 -78
- package/lib/internal/NestiaEditorFileUploader.js.map +1 -1
- package/lib/main.js +4 -4
- package/lib/main.js.map +1 -1
- package/package.json +5 -5
- package/dist/assets/index-OWA5eAP4.js +0 -4807
|
@@ -41,159 +41,61 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
41
41
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
45
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
46
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
47
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
48
|
-
function step(op) {
|
|
49
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
50
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
51
|
-
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;
|
|
52
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
53
|
-
switch (op[0]) {
|
|
54
|
-
case 0: case 1: t = op; break;
|
|
55
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
56
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
57
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
58
|
-
default:
|
|
59
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
60
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
61
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
62
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
63
|
-
if (t[2]) _.ops.pop();
|
|
64
|
-
_.trys.pop(); continue;
|
|
65
|
-
}
|
|
66
|
-
op = body.call(thisArg, _);
|
|
67
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
68
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
var __values = (this && this.__values) || function(o) {
|
|
72
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
73
|
-
if (m) return m.call(o);
|
|
74
|
-
if (o && typeof o.length === "number") return {
|
|
75
|
-
next: function () {
|
|
76
|
-
if (o && i >= o.length) o = void 0;
|
|
77
|
-
return { value: o && o[i++], done: !o };
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
81
|
-
};
|
|
82
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
83
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
84
|
-
if (!m) return o;
|
|
85
|
-
var i = m.call(o), r, ar = [], e;
|
|
86
|
-
try {
|
|
87
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
88
|
-
}
|
|
89
|
-
catch (error) { e = { error: error }; }
|
|
90
|
-
finally {
|
|
91
|
-
try {
|
|
92
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
93
|
-
}
|
|
94
|
-
finally { if (e) throw e.error; }
|
|
95
|
-
}
|
|
96
|
-
return ar;
|
|
97
|
-
};
|
|
98
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
99
45
|
exports.NestiaEditorComposer = void 0;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
46
|
+
const migrate_1 = require("@nestia/migrate");
|
|
47
|
+
const prettierEsTreePlugin = __importStar(require("prettier/plugins/estree"));
|
|
48
|
+
const prettierTsPlugin = __importStar(require("prettier/plugins/typescript"));
|
|
49
|
+
const standalone_1 = require("prettier/standalone");
|
|
104
50
|
var NestiaEditorComposer;
|
|
105
51
|
(function (NestiaEditorComposer) {
|
|
106
|
-
|
|
107
|
-
|
|
52
|
+
NestiaEditorComposer.nest = (props) => compose({
|
|
53
|
+
openFile: "README.md,test/start.ts",
|
|
54
|
+
startScript: ["build:test,test", ""],
|
|
55
|
+
migrate: (app) => app.nest(props),
|
|
56
|
+
})(props);
|
|
57
|
+
NestiaEditorComposer.sdk = (props) => __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
console.log("NestiaEditorComposer.sdk()", props);
|
|
108
59
|
return compose({
|
|
109
60
|
openFile: "README.md,test/start.ts",
|
|
110
|
-
startScript: ["
|
|
111
|
-
migrate:
|
|
61
|
+
startScript: ["swagger", "hello"],
|
|
62
|
+
migrate: (app) => app.sdk(props),
|
|
112
63
|
})(props);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
openFile: config.openFile,
|
|
137
|
-
startScript: config.startScript,
|
|
138
|
-
},
|
|
139
|
-
}];
|
|
140
|
-
return [4 /*yield*/, migrate_1.NestiaMigrateApplication.validate(props.document)];
|
|
141
|
-
case 1:
|
|
142
|
-
result = _g.sent();
|
|
143
|
-
if (result.success === false)
|
|
144
|
-
return [2 /*return*/, result];
|
|
145
|
-
app = result.data;
|
|
146
|
-
files = config.migrate(app);
|
|
147
|
-
_g.label = 2;
|
|
148
|
-
case 2:
|
|
149
|
-
_g.trys.push([2, 9, 10, 11]);
|
|
150
|
-
_a = __values(Object.entries(files)), _b = _a.next();
|
|
151
|
-
_g.label = 3;
|
|
152
|
-
case 3:
|
|
153
|
-
if (!!_b.done) return [3 /*break*/, 8];
|
|
154
|
-
_c = __read(_b.value, 2), key = _c[0], value = _c[1];
|
|
155
|
-
if (!(key.substring(key.length - 3) === ".ts")) return [3 /*break*/, 7];
|
|
156
|
-
_g.label = 4;
|
|
157
|
-
case 4:
|
|
158
|
-
_g.trys.push([4, 6, , 7]);
|
|
159
|
-
_d = files;
|
|
160
|
-
_e = key;
|
|
161
|
-
return [4 /*yield*/, (0, standalone_1.format)(value, {
|
|
162
|
-
parser: "typescript",
|
|
163
|
-
plugins: [prettierEsTreePlugin, prettierTsPlugin],
|
|
164
|
-
})];
|
|
165
|
-
case 5:
|
|
166
|
-
_d[_e] = _g.sent();
|
|
167
|
-
return [3 /*break*/, 7];
|
|
168
|
-
case 6:
|
|
169
|
-
exp_1 = _g.sent();
|
|
170
|
-
console.log(exp_1);
|
|
171
|
-
return [3 /*break*/, 7];
|
|
172
|
-
case 7:
|
|
173
|
-
_b = _a.next();
|
|
174
|
-
return [3 /*break*/, 3];
|
|
175
|
-
case 8: return [3 /*break*/, 11];
|
|
176
|
-
case 9:
|
|
177
|
-
e_1_1 = _g.sent();
|
|
178
|
-
e_1 = { error: e_1_1 };
|
|
179
|
-
return [3 /*break*/, 11];
|
|
180
|
-
case 10:
|
|
181
|
-
try {
|
|
182
|
-
if (_b && !_b.done && (_f = _a.return)) _f.call(_a);
|
|
183
|
-
}
|
|
184
|
-
finally { if (e_1) throw e_1.error; }
|
|
185
|
-
return [7 /*endfinally*/];
|
|
186
|
-
case 11: return [2 /*return*/, {
|
|
187
|
-
success: true,
|
|
188
|
-
data: {
|
|
189
|
-
files: files,
|
|
190
|
-
openFile: config.openFile,
|
|
191
|
-
startScript: config.startScript,
|
|
192
|
-
},
|
|
193
|
-
}];
|
|
64
|
+
});
|
|
65
|
+
const compose = (config) => (props) => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
if (props.files !== undefined)
|
|
67
|
+
return {
|
|
68
|
+
success: true,
|
|
69
|
+
data: {
|
|
70
|
+
files: props.files,
|
|
71
|
+
openFile: config.openFile,
|
|
72
|
+
startScript: config.startScript,
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
const result = yield migrate_1.NestiaMigrateApplication.validate(props.document);
|
|
76
|
+
if (result.success === false)
|
|
77
|
+
return result;
|
|
78
|
+
const app = result.data;
|
|
79
|
+
const files = config.migrate(app);
|
|
80
|
+
for (const [key, value] of Object.entries(files))
|
|
81
|
+
if (key.substring(key.length - 3) === ".ts")
|
|
82
|
+
try {
|
|
83
|
+
files[key] = yield (0, standalone_1.format)(value, {
|
|
84
|
+
parser: "typescript",
|
|
85
|
+
plugins: [prettierEsTreePlugin, prettierTsPlugin],
|
|
86
|
+
});
|
|
194
87
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
88
|
+
catch (exp) {
|
|
89
|
+
console.log(exp);
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
success: true,
|
|
93
|
+
data: {
|
|
94
|
+
files,
|
|
95
|
+
openFile: config.openFile,
|
|
96
|
+
startScript: config.startScript,
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
});
|
|
198
100
|
})(NestiaEditorComposer || (exports.NestiaEditorComposer = NestiaEditorComposer = {}));
|
|
199
101
|
//# sourceMappingURL=NestiaEditorComposer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaEditorComposer.js","sourceRoot":"","sources":["../../src/internal/NestiaEditorComposer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NestiaEditorComposer.js","sourceRoot":"","sources":["../../src/internal/NestiaEditorComposer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA2D;AAO3D,8EAAgE;AAChE,8EAAgE;AAChE,oDAA6C;AAG7C,IAAiB,oBAAoB,CA6EpC;AA7ED,WAAiB,oBAAoB;IAoBtB,yBAAI,GAAG,CAAC,KAAa,EAAiC,EAAE,CACnE,OAAO,CAAC;QACN,QAAQ,EAAE,yBAAyB;QACnC,WAAW,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC;QACpC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;KAClC,CAAC,CAAC,KAAK,CAAC,CAAC;IAEC,wBAAG,GAAG,CAAO,KAAa,EAAiC,EAAE;QACxE,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;QACjD,OAAO,OAAO,CAAC;YACb,QAAQ,EAAE,yBAAyB;YACnC,WAAW,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;YACjC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;SACjC,CAAC,CAAC,KAAK,CAAC,CAAC;IACZ,CAAC,CAAA,CAAC;IAEF,MAAM,OAAO,GACX,CAAC,MAIA,EAAE,EAAE,CACL,CAAO,KAAa,EAAiC,EAAE;QACrD,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;YAC3B,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE;oBACJ,KAAK,EAAE,KAAK,CAAC,KAAK;oBAClB,QAAQ,EAAE,MAAM,CAAC,QAAQ;oBACzB,WAAW,EAAE,MAAM,CAAC,WAAW;iBAChC;aACF,CAAC;QACJ,MAAM,MAAM,GACV,MAAM,kCAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC1D,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK;YAAE,OAAO,MAAM,CAAC;QAE5C,MAAM,GAAG,GAA6B,MAAM,CAAC,IAAI,CAAC;QAClD,MAAM,KAAK,GAA2B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1D,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;YAC9C,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,KAAK;gBACzC,IAAI,CAAC;oBACH,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,IAAA,mBAAM,EAAC,KAAK,EAAE;wBAC/B,MAAM,EAAE,YAAY;wBACpB,OAAO,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;qBAClD,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACnB,CAAC;QACL,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE;gBACJ,KAAK;gBACL,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC;SAC6B,CAAC;IACnC,CAAC,CAAA,CAAC;AACN,CAAC,EA7EgB,oBAAoB,oCAApB,oBAAoB,QA6EpC"}
|
|
@@ -8,91 +8,38 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
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;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
39
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
40
|
-
if (!m) return o;
|
|
41
|
-
var i = m.call(o), r, ar = [], e;
|
|
42
|
-
try {
|
|
43
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
44
|
-
}
|
|
45
|
-
catch (error) { e = { error: error }; }
|
|
46
|
-
finally {
|
|
47
|
-
try {
|
|
48
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49
|
-
}
|
|
50
|
-
finally { if (e) throw e.error; }
|
|
51
|
-
}
|
|
52
|
-
return ar;
|
|
53
|
-
};
|
|
54
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
55
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
56
13
|
};
|
|
57
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
15
|
exports.NestiaEditorFileUploader = NestiaEditorFileUploader;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
16
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
|
+
const js_yaml_1 = require("js-yaml");
|
|
18
|
+
const react_1 = __importDefault(require("react"));
|
|
62
19
|
// @ts-ignore
|
|
63
|
-
|
|
20
|
+
const react_mui_fileuploader_1 = __importDefault(require("react-mui-fileuploader"));
|
|
64
21
|
function NestiaEditorFileUploader(props) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
catch (_b) {
|
|
87
|
-
props.onChange(null, extension === "json" ? "Invalid JSON file" : "Invalid YAML file");
|
|
88
|
-
return [2 /*return*/];
|
|
89
|
-
}
|
|
90
|
-
if (array.length > 1)
|
|
91
|
-
setElements([file]);
|
|
92
|
-
return [2 /*return*/];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
}); };
|
|
22
|
+
const [elements, setElements] = react_1.default.useState([]);
|
|
23
|
+
const onChange = (array) => __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
if (array.length === 0) {
|
|
25
|
+
props.onChange(null, null);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const file = array[array.length - 1];
|
|
29
|
+
const buffer = yield file.arrayBuffer();
|
|
30
|
+
const content = new TextDecoder().decode(buffer);
|
|
31
|
+
const extension = file.name.split(".").pop();
|
|
32
|
+
try {
|
|
33
|
+
const json = extension === "json" ? JSON.parse(content) : (0, js_yaml_1.load)(content);
|
|
34
|
+
props.onChange(json, null);
|
|
35
|
+
}
|
|
36
|
+
catch (_a) {
|
|
37
|
+
props.onChange(null, extension === "json" ? "Invalid JSON file" : "Invalid YAML file");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (array.length > 1)
|
|
41
|
+
setElements([file]);
|
|
42
|
+
});
|
|
96
43
|
return ((0, jsx_runtime_1.jsx)(react_mui_fileuploader_1.default, { defaultFiles: elements, onFilesChange: onChange, acceptedType: ".json, .yaml", getBase64: false, multiFile: false, maxUploadFiles: 1, title: "Swagger file uploader", header: "Drag and drop a Swagger file here", buttonLabel: "Click Here", rightLabel: "to select swagger.json/yaml file", buttonRemoveLabel: "Clear" }));
|
|
97
44
|
}
|
|
98
45
|
//# sourceMappingURL=NestiaEditorFileUploader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaEditorFileUploader.js","sourceRoot":"","sources":["../../src/internal/NestiaEditorFileUploader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NestiaEditorFileUploader.js","sourceRoot":"","sources":["../../src/internal/NestiaEditorFileUploader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAQA,4DA+CC;;AAtDD,qCAA+B;AAC/B,kDAA0B;AAC1B,aAAa;AACb,oFAAgD;AAIhD,SAAgB,wBAAwB,CACtC,KAAsC;IAEtC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAsB,EAAE,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,CAAO,KAA0B,EAAE,EAAE;QACpD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAC3B,OAAO;QACT,CAAC;QACD,MAAM,IAAI,GAAsB,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;QACzD,MAAM,MAAM,GAAgB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACrD,MAAM,OAAO,GAAW,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACzD,MAAM,SAAS,GAAoB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAEjD,CAAC;QAEX,IAAI,CAAC;YACH,MAAM,IAAI,GAIR,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAA,cAAI,EAAC,OAAO,CAAC,CAAC;YAC7D,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC;QAAC,WAAM,CAAC;YACP,KAAK,CAAC,QAAQ,CACZ,IAAI,EACJ,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CACjE,CAAC;YACF,OAAO;QACT,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC;IACF,OAAO,CACL,uBAAC,gCAAU,IACT,YAAY,EAAE,QAAQ,EACtB,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAC,cAAc,EAC3B,SAAS,EAAE,KAAK,EAChB,SAAS,EAAE,KAAK,EAChB,cAAc,EAAE,CAAC,EACjB,KAAK,EAAC,uBAAuB,EAC7B,MAAM,EAAC,mCAAmC,EAC1C,WAAW,EAAC,YAAY,EACxB,UAAU,EAAC,kCAAkC,EAC7C,iBAAiB,EAAC,OAAO,GACzB,CACH,CAAC;AACJ,CAAC"}
|
package/lib/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const client_1 = require("react-dom/client");
|
|
6
|
+
const NestiaEditorApplication_1 = require("./NestiaEditorApplication");
|
|
7
7
|
(0, client_1.createRoot)(document.getElementById("root")).render((0, jsx_runtime_1.jsx)(react_1.StrictMode, { children: (0, jsx_runtime_1.jsx)(NestiaEditorApplication_1.NestiaEditorApplication, {}) }));
|
|
8
8
|
//# sourceMappingURL=main.js.map
|
package/lib/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,6CAA8C;AAE9C,uEAAoE;AAEpE,IAAA,mBAAU,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAE,CAAC,CAAC,MAAM,CACjD,uBAAC,kBAAU,cACT,uBAAC,iDAAuB,KAAG,GAChB,CACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/editor",
|
|
3
|
-
"version": "11.1
|
|
3
|
+
"version": "11.2.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@mui/material": "^5.15.6",
|
|
41
41
|
"@stackblitz/sdk": "^1.11.0",
|
|
42
|
-
"@typia/interface": "
|
|
42
|
+
"@typia/interface": "12.1.0",
|
|
43
43
|
"js-yaml": "^4.1.0",
|
|
44
44
|
"prettier": "^3.8.1",
|
|
45
45
|
"react-mui-fileuploader": "^0.5.2",
|
|
46
|
-
"typia": "
|
|
47
|
-
"@nestia/migrate": "^11.1
|
|
46
|
+
"typia": "12.1.0",
|
|
47
|
+
"@nestia/migrate": "^11.2.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@eslint/js": "^9.13.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react-dom": "^18.3.1",
|
|
68
68
|
"rollup": "^4.24.2",
|
|
69
69
|
"ts-node": "^10.9.2",
|
|
70
|
-
"typescript": "~
|
|
70
|
+
"typescript": "~6.0.3",
|
|
71
71
|
"typescript-eslint": "^8.10.0",
|
|
72
72
|
"vite": "^5.4.9"
|
|
73
73
|
},
|