@luna-park/plugin 1.4.1 → 1.5.0
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/bin/preview.js +50 -0
- package/dist/{dist-hc-SHkAg.mjs → dist-JzydDdZn.mjs} +97 -95
- package/dist/extractor.d.mts +6 -8
- package/dist/extractor.mjs +3 -4
- package/dist/{index-X3hhfmWd.d.mts → index-DwEOlEBY.d.mts} +75 -44
- package/dist/index.d.mts +616 -524
- package/dist/index.mjs +124 -70
- package/dist/preview.d.mts +2 -3
- package/package.json +26 -26
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as LogicUtil, i as LogicType, n as ELogicType, o as makeLogicNode, r as EVarType, t as ELogicScope, u as cloneWithFunctions } from "./dist-
|
|
1
|
+
import { a as LogicUtil, i as LogicType, n as ELogicType, o as makeLogicNode, r as EVarType, t as ELogicScope, u as cloneWithFunctions } from "./dist-JzydDdZn.mjs";
|
|
2
2
|
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
3
3
|
import { Type } from "@sinclair/typebox";
|
|
4
4
|
//#region \0/plugin-vue/export-helper
|
|
@@ -14,7 +14,7 @@ const _hoisted_1 = { class: "story-wrapper" };
|
|
|
14
14
|
function _sfc_render(_ctx, _cache) {
|
|
15
15
|
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]);
|
|
16
16
|
}
|
|
17
|
-
var LSettingsStoryWrapper_default =
|
|
17
|
+
var LSettingsStoryWrapper_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8d6cff07"]]);
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/types/hooks.ts
|
|
20
20
|
let EPluginHooks = /* @__PURE__ */ function(EPluginHooks) {
|
|
@@ -47,7 +47,7 @@ let ETokenType = /* @__PURE__ */ function(ETokenType) {
|
|
|
47
47
|
return ETokenType;
|
|
48
48
|
}({});
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region ../shared/dist/
|
|
50
|
+
//#region ../shared/dist/rolldown-runtime-D7D4PA-g.mjs
|
|
51
51
|
var __defProp = Object.defineProperty;
|
|
52
52
|
var __exportAll = (all, no_symbols) => {
|
|
53
53
|
let target = {};
|
|
@@ -126,18 +126,14 @@ var api_default = {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
-
let ERouteType = /* @__PURE__ */ function(ERouteType) {
|
|
130
|
-
ERouteType["Get"] = "get";
|
|
131
|
-
ERouteType["Post"] = "post";
|
|
132
|
-
ERouteType["Delete"] = "delete";
|
|
133
|
-
ERouteType["Put"] = "put";
|
|
134
|
-
return ERouteType;
|
|
135
|
-
}({});
|
|
136
129
|
const TypeDate = Type.String({ format: "date-time" });
|
|
137
130
|
var app_exports$1 = /* @__PURE__ */ __exportAll({
|
|
138
131
|
app: () => app,
|
|
139
132
|
appEdits: () => appEdits
|
|
140
133
|
});
|
|
134
|
+
/**
|
|
135
|
+
* Wire schema of an application, validated loosely (see `TApplication<true>` for the full shape)
|
|
136
|
+
*/
|
|
141
137
|
const app = Type.Object({
|
|
142
138
|
name: Type.String(),
|
|
143
139
|
config: Type.Record(Type.String(), Type.Unknown()),
|
|
@@ -172,7 +168,7 @@ const project = Type.Object({
|
|
|
172
168
|
starsCount: Type.Number()
|
|
173
169
|
})
|
|
174
170
|
});
|
|
175
|
-
const publicProject =
|
|
171
|
+
const publicProject = project;
|
|
176
172
|
const privateProject = Type.Object({
|
|
177
173
|
...project.properties,
|
|
178
174
|
app: Type.Unknown()
|
|
@@ -214,12 +210,12 @@ const flags = {
|
|
|
214
210
|
watermark: false
|
|
215
211
|
}
|
|
216
212
|
};
|
|
217
|
-
|
|
213
|
+
flags.pro, flags.pro, flags.pro, flags.free;
|
|
218
214
|
const user = Type.Object({
|
|
219
215
|
id: Type.Optional(Type.String()),
|
|
220
216
|
auth: Type.Optional(Type.Object({})),
|
|
221
217
|
mail: Type.String(),
|
|
222
|
-
plan: Type.Object({ name: Type.
|
|
218
|
+
plan: Type.Object({ name: Type.Enum(EPlanKey) }),
|
|
223
219
|
profile: Type.Object({
|
|
224
220
|
other: Type.Object({
|
|
225
221
|
avatar: Type.String(),
|
|
@@ -239,7 +235,10 @@ const user = Type.Object({
|
|
|
239
235
|
twitter: Type.String()
|
|
240
236
|
})
|
|
241
237
|
}),
|
|
242
|
-
settings: Type.Object({
|
|
238
|
+
settings: Type.Object({
|
|
239
|
+
newsletter: Type.Boolean(),
|
|
240
|
+
onboarding: Type.Boolean()
|
|
241
|
+
})
|
|
243
242
|
});
|
|
244
243
|
let EElementType = /* @__PURE__ */ function(EElementType) {
|
|
245
244
|
EElementType["Script"] = "script";
|
|
@@ -268,10 +267,10 @@ const types = {
|
|
|
268
267
|
};
|
|
269
268
|
var app_exports = /* @__PURE__ */ __exportAll({
|
|
270
269
|
edit: () => edit$1,
|
|
271
|
-
get: () => get$
|
|
270
|
+
get: () => get$3
|
|
272
271
|
});
|
|
273
|
-
const get$
|
|
274
|
-
type:
|
|
272
|
+
const get$3 = {
|
|
273
|
+
type: "get",
|
|
275
274
|
params: Type.Object({ id: Type.String() }),
|
|
276
275
|
response: { 200: Type.Object({
|
|
277
276
|
app: types.app,
|
|
@@ -280,7 +279,7 @@ const get$2 = {
|
|
|
280
279
|
url: "/app/:id"
|
|
281
280
|
};
|
|
282
281
|
const edit$1 = {
|
|
283
|
-
type:
|
|
282
|
+
type: "post",
|
|
284
283
|
body: Type.Object({
|
|
285
284
|
app: Type.Optional(types.app),
|
|
286
285
|
deletes: Type.Optional(Type.Array(Type.String())),
|
|
@@ -297,7 +296,7 @@ var auth_exports = /* @__PURE__ */ __exportAll({
|
|
|
297
296
|
token: () => token
|
|
298
297
|
});
|
|
299
298
|
const authorize = {
|
|
300
|
-
type:
|
|
299
|
+
type: "post",
|
|
301
300
|
body: Type.Object({
|
|
302
301
|
client_id: Type.String(),
|
|
303
302
|
redirect_uri: Type.String(),
|
|
@@ -308,7 +307,7 @@ const authorize = {
|
|
|
308
307
|
url: "/auth/authorize"
|
|
309
308
|
};
|
|
310
309
|
const token = {
|
|
311
|
-
type:
|
|
310
|
+
type: "post",
|
|
312
311
|
body: Type.Union([Type.Object({
|
|
313
312
|
client_id: Type.String(),
|
|
314
313
|
client_secret: Type.String(),
|
|
@@ -330,7 +329,7 @@ const token = {
|
|
|
330
329
|
url: "/auth/token"
|
|
331
330
|
};
|
|
332
331
|
const me = {
|
|
333
|
-
type:
|
|
332
|
+
type: "get",
|
|
334
333
|
headers: Type.Object({ authorization: Type.String() }),
|
|
335
334
|
response: { 200: Type.Object({
|
|
336
335
|
id: Type.String(),
|
|
@@ -339,7 +338,7 @@ const me = {
|
|
|
339
338
|
url: "/auth/me"
|
|
340
339
|
};
|
|
341
340
|
const client = {
|
|
342
|
-
type:
|
|
341
|
+
type: "get",
|
|
343
342
|
querystring: Type.Object({
|
|
344
343
|
client_id: Type.String(),
|
|
345
344
|
redirect_uri: Type.String()
|
|
@@ -347,13 +346,29 @@ const client = {
|
|
|
347
346
|
response: { 200: Type.Object({ client_name: Type.String() }) },
|
|
348
347
|
url: "/auth/client"
|
|
349
348
|
};
|
|
349
|
+
var challenge_exports = /* @__PURE__ */ __exportAll({
|
|
350
|
+
get: () => get$2,
|
|
351
|
+
update: () => update$2
|
|
352
|
+
});
|
|
353
|
+
const progression = Type.Object({ done: Type.Array(Type.String()) });
|
|
354
|
+
const get$2 = {
|
|
355
|
+
type: "get",
|
|
356
|
+
response: { 200: progression },
|
|
357
|
+
url: "/challenge"
|
|
358
|
+
};
|
|
359
|
+
const update$2 = {
|
|
360
|
+
type: "post",
|
|
361
|
+
body: progression,
|
|
362
|
+
response: { 200: progression },
|
|
363
|
+
url: "/challenge"
|
|
364
|
+
};
|
|
350
365
|
var compiler_exports = /* @__PURE__ */ __exportAll({
|
|
351
366
|
build: () => build,
|
|
352
367
|
compile: () => compile$1,
|
|
353
368
|
download: () => download
|
|
354
369
|
});
|
|
355
370
|
const build = {
|
|
356
|
-
type:
|
|
371
|
+
type: "post",
|
|
357
372
|
body: Type.Object({
|
|
358
373
|
entry: Type.Optional(Type.String()),
|
|
359
374
|
key: Type.String(),
|
|
@@ -367,7 +382,7 @@ const build = {
|
|
|
367
382
|
url: "/compiler/build/:type"
|
|
368
383
|
};
|
|
369
384
|
const compile$1 = {
|
|
370
|
-
type:
|
|
385
|
+
type: "post",
|
|
371
386
|
body: Type.Object({
|
|
372
387
|
platform: Type.Optional(Type.Union([
|
|
373
388
|
Type.Literal("win32"),
|
|
@@ -389,7 +404,7 @@ const compile$1 = {
|
|
|
389
404
|
url: "/compiler/compile/:id"
|
|
390
405
|
};
|
|
391
406
|
const download = {
|
|
392
|
-
type:
|
|
407
|
+
type: "get",
|
|
393
408
|
params: Type.Object({
|
|
394
409
|
id: Type.String(),
|
|
395
410
|
platform: Type.Optional(Type.Union([
|
|
@@ -411,7 +426,7 @@ const download = {
|
|
|
411
426
|
};
|
|
412
427
|
var desktop_exports = /* @__PURE__ */ __exportAll({ latest: () => latest });
|
|
413
428
|
const latest = {
|
|
414
|
-
type:
|
|
429
|
+
type: "get",
|
|
415
430
|
dev: true,
|
|
416
431
|
querystring: Type.Object({
|
|
417
432
|
arch: Type.Union([
|
|
@@ -436,6 +451,28 @@ const latest = {
|
|
|
436
451
|
}) },
|
|
437
452
|
url: "/desktop/release/latest"
|
|
438
453
|
};
|
|
454
|
+
var deploy_exports = /* @__PURE__ */ __exportAll({
|
|
455
|
+
create: () => create$3,
|
|
456
|
+
listServers: () => listServers
|
|
457
|
+
});
|
|
458
|
+
const create$3 = {
|
|
459
|
+
type: "post",
|
|
460
|
+
body: Type.Object({ serverId: Type.String({ format: "uuid" }) }),
|
|
461
|
+
params: Type.Object({
|
|
462
|
+
appId: Type.String({ format: "uuid" }),
|
|
463
|
+
environment: Type.Union([Type.Literal("staging"), Type.Literal("production")])
|
|
464
|
+
}),
|
|
465
|
+
response: { 200: Type.Object({ id: Type.String({ format: "uuid" }) }) },
|
|
466
|
+
url: "/deploy/:appId/:environment"
|
|
467
|
+
};
|
|
468
|
+
const listServers = {
|
|
469
|
+
type: "get",
|
|
470
|
+
response: { 200: Type.Array(Type.Object({
|
|
471
|
+
id: Type.String({ format: "uuid" }),
|
|
472
|
+
name: Type.String()
|
|
473
|
+
})) },
|
|
474
|
+
url: "/deploy/servers"
|
|
475
|
+
};
|
|
439
476
|
var file_exports = /* @__PURE__ */ __exportAll({
|
|
440
477
|
list: () => list$3,
|
|
441
478
|
remove: () => remove$2,
|
|
@@ -443,7 +480,7 @@ var file_exports = /* @__PURE__ */ __exportAll({
|
|
|
443
480
|
upload: () => upload
|
|
444
481
|
});
|
|
445
482
|
const upload = {
|
|
446
|
-
type:
|
|
483
|
+
type: "post",
|
|
447
484
|
body: Type.Object({
|
|
448
485
|
file: Type.Object({
|
|
449
486
|
filename: Type.String(),
|
|
@@ -460,13 +497,13 @@ const upload = {
|
|
|
460
497
|
url: "/file/upload"
|
|
461
498
|
};
|
|
462
499
|
const remove$2 = {
|
|
463
|
-
type:
|
|
500
|
+
type: "post",
|
|
464
501
|
body: Type.Object({ target: Type.String() }),
|
|
465
502
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
466
503
|
url: "/file/remove"
|
|
467
504
|
};
|
|
468
505
|
const list$3 = {
|
|
469
|
-
type:
|
|
506
|
+
type: "get",
|
|
470
507
|
querystring: Type.Object({
|
|
471
508
|
limit: Type.Optional(Type.String()),
|
|
472
509
|
search: Type.Optional(Type.String()),
|
|
@@ -490,7 +527,7 @@ const list$3 = {
|
|
|
490
527
|
url: "/file/list"
|
|
491
528
|
};
|
|
492
529
|
const status = {
|
|
493
|
-
type:
|
|
530
|
+
type: "get",
|
|
494
531
|
response: { 200: Type.Object({
|
|
495
532
|
limit: Type.Number(),
|
|
496
533
|
total: Type.Number()
|
|
@@ -499,7 +536,7 @@ const status = {
|
|
|
499
536
|
};
|
|
500
537
|
var integrations_exports = /* @__PURE__ */ __exportAll({ googleAuth: () => googleAuth });
|
|
501
538
|
const googleAuth = {
|
|
502
|
-
type:
|
|
539
|
+
type: "get",
|
|
503
540
|
querystring: Type.Object({
|
|
504
541
|
code: Type.Optional(Type.String()),
|
|
505
542
|
scope: Type.Optional(Type.String()),
|
|
@@ -515,7 +552,7 @@ var keyConfig_exports = /* @__PURE__ */ __exportAll({
|
|
|
515
552
|
remove: () => remove$1
|
|
516
553
|
});
|
|
517
554
|
const create$2 = {
|
|
518
|
-
type:
|
|
555
|
+
type: "post",
|
|
519
556
|
body: Type.Object({ domain: Type.String() }),
|
|
520
557
|
response: { 200: Type.Object({
|
|
521
558
|
key: types.keyConfig,
|
|
@@ -524,18 +561,18 @@ const create$2 = {
|
|
|
524
561
|
url: "/key-config"
|
|
525
562
|
};
|
|
526
563
|
const list$2 = {
|
|
527
|
-
type:
|
|
564
|
+
type: "get",
|
|
528
565
|
response: { 200: Type.Array(types.keyConfig) },
|
|
529
566
|
url: "/key-config"
|
|
530
567
|
};
|
|
531
568
|
const remove$1 = {
|
|
532
|
-
type:
|
|
569
|
+
type: "delete",
|
|
533
570
|
params: Type.Object({ id: Type.String() }),
|
|
534
571
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
535
572
|
url: "/key-config/:id"
|
|
536
573
|
};
|
|
537
574
|
const check$1 = {
|
|
538
|
-
type:
|
|
575
|
+
type: "post",
|
|
539
576
|
body: Type.Object({
|
|
540
577
|
domain: Type.String(),
|
|
541
578
|
key: Type.String()
|
|
@@ -550,17 +587,18 @@ var license_exports = /* @__PURE__ */ __exportAll({
|
|
|
550
587
|
list: () => list$1,
|
|
551
588
|
reset: () => reset
|
|
552
589
|
});
|
|
590
|
+
const TypeMachineFingerprint = Type.String({ pattern: "^v1:[0-9a-f]{64}$" });
|
|
553
591
|
const reset = {
|
|
554
|
-
type:
|
|
592
|
+
type: "post",
|
|
555
593
|
body: Type.Object({ id: Type.String() }),
|
|
556
594
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
557
595
|
url: "/license/reset"
|
|
558
596
|
};
|
|
559
597
|
const link = {
|
|
560
|
-
type:
|
|
598
|
+
type: "post",
|
|
561
599
|
body: Type.Object({
|
|
562
600
|
name: Type.String(),
|
|
563
|
-
fingerprint:
|
|
601
|
+
fingerprint: TypeMachineFingerprint,
|
|
564
602
|
key: Type.String()
|
|
565
603
|
}),
|
|
566
604
|
dev: true,
|
|
@@ -568,9 +606,9 @@ const link = {
|
|
|
568
606
|
url: "/license/link"
|
|
569
607
|
};
|
|
570
608
|
const check = {
|
|
571
|
-
type:
|
|
609
|
+
type: "post",
|
|
572
610
|
body: Type.Object({
|
|
573
|
-
fingerprint:
|
|
611
|
+
fingerprint: TypeMachineFingerprint,
|
|
574
612
|
key: Type.String()
|
|
575
613
|
}),
|
|
576
614
|
dev: true,
|
|
@@ -582,7 +620,7 @@ const check = {
|
|
|
582
620
|
url: "/license/check"
|
|
583
621
|
};
|
|
584
622
|
const list$1 = {
|
|
585
|
-
type:
|
|
623
|
+
type: "get",
|
|
586
624
|
response: { 200: Type.Array(Type.Object({
|
|
587
625
|
id: Type.String(),
|
|
588
626
|
name: Type.String(),
|
|
@@ -599,7 +637,7 @@ var magiclink_exports = /* @__PURE__ */ __exportAll({
|
|
|
599
637
|
signup: () => signup
|
|
600
638
|
});
|
|
601
639
|
const activate = {
|
|
602
|
-
type:
|
|
640
|
+
type: "get",
|
|
603
641
|
params: Type.Object({
|
|
604
642
|
id: Type.String(),
|
|
605
643
|
token: Type.String()
|
|
@@ -608,7 +646,7 @@ const activate = {
|
|
|
608
646
|
url: "/magiclink/activate/:id/:token"
|
|
609
647
|
};
|
|
610
648
|
const create$1 = {
|
|
611
|
-
type:
|
|
649
|
+
type: "post",
|
|
612
650
|
body: Type.Object({ mail: Type.String({ format: "email" }) }),
|
|
613
651
|
response: { 200: Type.Object({
|
|
614
652
|
expirationDate: Type.String(),
|
|
@@ -617,7 +655,7 @@ const create$1 = {
|
|
|
617
655
|
url: "/magiclink/create"
|
|
618
656
|
};
|
|
619
657
|
const signup = {
|
|
620
|
-
type:
|
|
658
|
+
type: "post",
|
|
621
659
|
body: Type.Object({ mail: Type.String({ format: "email" }) }),
|
|
622
660
|
response: { 200: Type.Object({
|
|
623
661
|
expirationDate: Type.String(),
|
|
@@ -630,8 +668,8 @@ var payment_exports = /* @__PURE__ */ __exportAll({
|
|
|
630
668
|
portal: () => portal
|
|
631
669
|
});
|
|
632
670
|
const checkout = {
|
|
633
|
-
type:
|
|
634
|
-
body: Type.Object({ plan: Type.Union([Type.Literal(
|
|
671
|
+
type: "post",
|
|
672
|
+
body: Type.Object({ plan: Type.Union([Type.Literal("pro"), Type.Literal("org")]) }),
|
|
635
673
|
response: { 200: Type.Object({
|
|
636
674
|
message: Type.String(),
|
|
637
675
|
redirection: Type.String()
|
|
@@ -639,7 +677,7 @@ const checkout = {
|
|
|
639
677
|
url: "/payment/checkout"
|
|
640
678
|
};
|
|
641
679
|
const portal = {
|
|
642
|
-
type:
|
|
680
|
+
type: "post",
|
|
643
681
|
response: { 200: Type.Object({
|
|
644
682
|
message: Type.String(),
|
|
645
683
|
redirection: Type.String()
|
|
@@ -655,15 +693,14 @@ var project_exports = /* @__PURE__ */ __exportAll({
|
|
|
655
693
|
star: () => star
|
|
656
694
|
});
|
|
657
695
|
const create = {
|
|
658
|
-
type:
|
|
696
|
+
type: "post",
|
|
659
697
|
body: Type.Object({
|
|
660
698
|
icon: Type.String(),
|
|
661
699
|
template: Type.Union([
|
|
662
700
|
Type.Literal("default"),
|
|
663
|
-
Type.Literal("
|
|
701
|
+
Type.Literal("ferris-wheel"),
|
|
664
702
|
Type.Literal("frontend"),
|
|
665
|
-
Type.Literal("
|
|
666
|
-
Type.Literal("database"),
|
|
703
|
+
Type.Literal("nuxt"),
|
|
667
704
|
Type.Literal("testing")
|
|
668
705
|
]),
|
|
669
706
|
title: Type.String()
|
|
@@ -675,7 +712,7 @@ const create = {
|
|
|
675
712
|
url: "/project/create"
|
|
676
713
|
};
|
|
677
714
|
const list = {
|
|
678
|
-
type:
|
|
715
|
+
type: "get",
|
|
679
716
|
params: Type.Object({ type: Type.Union([
|
|
680
717
|
Type.Literal("mine"),
|
|
681
718
|
Type.Literal("popular"),
|
|
@@ -692,19 +729,19 @@ const list = {
|
|
|
692
729
|
url: "/project/list/:type"
|
|
693
730
|
};
|
|
694
731
|
const remove = {
|
|
695
|
-
type:
|
|
732
|
+
type: "delete",
|
|
696
733
|
params: Type.Object({ id: Type.String() }),
|
|
697
734
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
698
735
|
url: "/project/remove/:id"
|
|
699
736
|
};
|
|
700
737
|
const edit = {
|
|
701
|
-
type:
|
|
738
|
+
type: "post",
|
|
702
739
|
body: types.privateProject,
|
|
703
740
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
704
741
|
url: "/project/edit"
|
|
705
742
|
};
|
|
706
743
|
const star = {
|
|
707
|
-
type:
|
|
744
|
+
type: "post",
|
|
708
745
|
body: Type.Object({
|
|
709
746
|
id: Type.String(),
|
|
710
747
|
like: Type.Boolean()
|
|
@@ -713,7 +750,7 @@ const star = {
|
|
|
713
750
|
url: "/project/star"
|
|
714
751
|
};
|
|
715
752
|
const proxy = {
|
|
716
|
-
type:
|
|
753
|
+
type: "post",
|
|
717
754
|
body: Type.Object({
|
|
718
755
|
body: Type.Optional(Type.Unknown()),
|
|
719
756
|
headers: Type.Optional(Type.Record(Type.String(), Type.String())),
|
|
@@ -734,7 +771,7 @@ var script_exports = /* @__PURE__ */ __exportAll({
|
|
|
734
771
|
update: () => update$1
|
|
735
772
|
});
|
|
736
773
|
const get$1 = {
|
|
737
|
-
type:
|
|
774
|
+
type: "get",
|
|
738
775
|
params: Type.Object({
|
|
739
776
|
id: Type.String(),
|
|
740
777
|
script: Type.String()
|
|
@@ -743,7 +780,7 @@ const get$1 = {
|
|
|
743
780
|
url: "/script/:id/:script"
|
|
744
781
|
};
|
|
745
782
|
const compile = {
|
|
746
|
-
type:
|
|
783
|
+
type: "post",
|
|
747
784
|
params: Type.Object({
|
|
748
785
|
id: Type.String(),
|
|
749
786
|
script: Type.String()
|
|
@@ -752,7 +789,7 @@ const compile = {
|
|
|
752
789
|
url: "/script/:id/:script/compile"
|
|
753
790
|
};
|
|
754
791
|
const update$1 = {
|
|
755
|
-
type:
|
|
792
|
+
type: "post",
|
|
756
793
|
body: Type.Object({ autoReload: Type.Optional(Type.Boolean()) }),
|
|
757
794
|
params: Type.Object({
|
|
758
795
|
id: Type.String(),
|
|
@@ -763,7 +800,7 @@ const update$1 = {
|
|
|
763
800
|
};
|
|
764
801
|
var turnstile_exports = /* @__PURE__ */ __exportAll({ tick: () => tick });
|
|
765
802
|
const tick = {
|
|
766
|
-
type:
|
|
803
|
+
type: "post",
|
|
767
804
|
body: Type.Object({
|
|
768
805
|
data: Type.Optional(Type.Unknown()),
|
|
769
806
|
scope: Type.String()
|
|
@@ -772,15 +809,17 @@ const tick = {
|
|
|
772
809
|
url: "/turnstile/tick"
|
|
773
810
|
};
|
|
774
811
|
var user_exports = /* @__PURE__ */ __exportAll({
|
|
812
|
+
confirmAccountDeletion: () => confirmAccountDeletion,
|
|
775
813
|
disconnect: () => disconnect,
|
|
776
814
|
get: () => get,
|
|
777
815
|
ping: () => ping,
|
|
816
|
+
requestAccountDeletion: () => requestAccountDeletion,
|
|
778
817
|
unsubscribe: () => unsubscribe,
|
|
779
818
|
update: () => update,
|
|
780
819
|
waitlist: () => waitlist
|
|
781
820
|
});
|
|
782
821
|
const ping = {
|
|
783
|
-
type:
|
|
822
|
+
type: "get",
|
|
784
823
|
response: { 200: Type.Object({
|
|
785
824
|
message: Type.String(),
|
|
786
825
|
user: Type.Optional(types.user)
|
|
@@ -788,38 +827,52 @@ const ping = {
|
|
|
788
827
|
url: "/user/ping"
|
|
789
828
|
};
|
|
790
829
|
const get = {
|
|
791
|
-
type:
|
|
830
|
+
type: "get",
|
|
792
831
|
response: { 200: types.user },
|
|
793
832
|
url: "/user"
|
|
794
833
|
};
|
|
795
834
|
const update = {
|
|
796
|
-
type:
|
|
835
|
+
type: "post",
|
|
797
836
|
body: Type.Partial(types.user),
|
|
798
837
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
799
838
|
url: "/user"
|
|
800
839
|
};
|
|
840
|
+
const requestAccountDeletion = {
|
|
841
|
+
type: "post",
|
|
842
|
+
response: { 200: Type.Object({ message: Type.String() }) },
|
|
843
|
+
url: "/user/account-deletion/request"
|
|
844
|
+
};
|
|
845
|
+
const confirmAccountDeletion = {
|
|
846
|
+
type: "delete",
|
|
847
|
+
params: Type.Object({ token: Type.String() }),
|
|
848
|
+
response: { 200: Type.Object({ message: Type.String() }) },
|
|
849
|
+
url: "/user/account-deletion/:token"
|
|
850
|
+
};
|
|
801
851
|
const disconnect = {
|
|
802
|
-
type:
|
|
852
|
+
type: "get",
|
|
803
853
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
804
854
|
url: "/user/disconnect"
|
|
805
855
|
};
|
|
806
856
|
const waitlist = {
|
|
807
|
-
type:
|
|
857
|
+
type: "post",
|
|
808
858
|
body: Type.Object({ mail: Type.String({ format: "email" }) }),
|
|
809
859
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
810
860
|
url: "/user/waitlist"
|
|
811
861
|
};
|
|
812
862
|
const unsubscribe = {
|
|
813
|
-
type:
|
|
814
|
-
body: Type.Object({
|
|
863
|
+
type: "post",
|
|
864
|
+
body: Type.Object({ "List-Unsubscribe": Type.Union([Type.Literal("One-Click"), Type.Object({ value: Type.Literal("One-Click") })]) }),
|
|
865
|
+
params: Type.Object({ token: Type.String() }),
|
|
815
866
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
816
|
-
url: "/user/unsubscribe"
|
|
867
|
+
url: "/user/unsubscribe/:token"
|
|
817
868
|
};
|
|
818
869
|
const routes = {
|
|
819
870
|
app: app_exports,
|
|
820
871
|
auth: auth_exports,
|
|
872
|
+
challenge: challenge_exports,
|
|
821
873
|
compiler: compiler_exports,
|
|
822
874
|
desktop: desktop_exports,
|
|
875
|
+
deploy: deploy_exports,
|
|
823
876
|
file: file_exports,
|
|
824
877
|
integrations: integrations_exports,
|
|
825
878
|
keyConfig: keyConfig_exports,
|
|
@@ -865,14 +918,15 @@ function makeComponent(component) {
|
|
|
865
918
|
}
|
|
866
919
|
async function loadPlugin(plugin, env) {
|
|
867
920
|
const result = cloneWithFunctions(plugin);
|
|
868
|
-
const config = env.app?.config?.plugins?.[plugin.id]
|
|
921
|
+
const { config, internals } = env.app?.config?.plugins?.[plugin.id] ?? {};
|
|
869
922
|
for (const category of [
|
|
870
923
|
"build",
|
|
871
924
|
"editor",
|
|
872
925
|
"inject"
|
|
873
926
|
]) if (result[category]) for (const key in result[category]) result[category][key] = await getPluginParam(result[category][key], {
|
|
874
927
|
...env,
|
|
875
|
-
config
|
|
928
|
+
config,
|
|
929
|
+
internals
|
|
876
930
|
});
|
|
877
931
|
return result;
|
|
878
932
|
}
|
package/dist/preview.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/preview/server.d.ts
|
|
2
|
-
declare function startPreviewServer(config: {
|
|
2
|
+
export declare function startPreviewServer(config: {
|
|
3
3
|
dist: string;
|
|
4
4
|
externals: Array<string>;
|
|
5
5
|
port: number;
|
|
6
6
|
}): Promise<void>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { startPreviewServer };
|
|
7
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luna-park/plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Plugin helper for Luna Park.",
|
|
6
6
|
"homepage": "https://luna-park.app",
|
|
@@ -27,42 +27,42 @@
|
|
|
27
27
|
"module": "./dist/index.mjs",
|
|
28
28
|
"types": "./dist/index.d.mts",
|
|
29
29
|
"bin": {
|
|
30
|
-
"luna-preview": "./bin/preview.
|
|
30
|
+
"luna-preview": "./bin/preview.js"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"dist/**"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@electric-sql/pglite": "^0.
|
|
37
|
-
"@fastify/cors": "^11.
|
|
38
|
-
"@fastify/static": "^
|
|
39
|
-
"@fortawesome/fontawesome-svg-core": "^7.
|
|
40
|
-
"@sinclair/typebox": "^0.34.
|
|
41
|
-
"fastify": "^5.
|
|
36
|
+
"@electric-sql/pglite": "^0.5.8",
|
|
37
|
+
"@fastify/cors": "^11.3.0",
|
|
38
|
+
"@fastify/static": "^10.1.3",
|
|
39
|
+
"@fortawesome/fontawesome-svg-core": "^7.3.1",
|
|
40
|
+
"@sinclair/typebox": "^0.34.52",
|
|
41
|
+
"fastify": "^5.12.4",
|
|
42
42
|
"jsep": "^1.4.0",
|
|
43
43
|
"lite-cron": "^1.1.0",
|
|
44
|
-
"typescript": "^6.0.
|
|
45
|
-
"vue": "^3.5.
|
|
44
|
+
"typescript": "^6.0.3",
|
|
45
|
+
"vue": "^3.5.42"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@luna-park/eslint-config": "^1.
|
|
49
|
-
"@tsdown/css": "^0.21.7",
|
|
50
|
-
"@vitejs/plugin-vue": "^6.0.5",
|
|
51
|
-
"@vitest/ui": "^4.1.2",
|
|
52
|
-
"@vue/language-core": "^3.2.6",
|
|
53
|
-
"eslint": "^10.2.0",
|
|
54
|
-
"rimraf": "^6.1.3",
|
|
55
|
-
"rolldown-plugin-dts": "^0.23.2",
|
|
56
|
-
"tsdown": "^0.21.7",
|
|
57
|
-
"typescript": "^6.0.2",
|
|
58
|
-
"typescript-eslint": "^8.58.0",
|
|
59
|
-
"unplugin-vue": "^7.1.1",
|
|
60
|
-
"vite": "^8.0.3",
|
|
61
|
-
"vitest": "^4.1.2",
|
|
62
|
-
"vue": "^3.5.32",
|
|
48
|
+
"@luna-park/eslint-config": "^1.3.0",
|
|
63
49
|
"@luna-park/logicnodes": "^2.0.0",
|
|
64
50
|
"@luna-park/shared": "^1.0.0",
|
|
65
|
-
"@luna-park/utils": "^2.0.0"
|
|
51
|
+
"@luna-park/utils": "^2.0.0",
|
|
52
|
+
"@tsdown/css": "^0.23.0",
|
|
53
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
54
|
+
"@vitest/ui": "^5.0.0",
|
|
55
|
+
"@vue/language-core": "^3.3.11",
|
|
56
|
+
"eslint": "^10.10.0",
|
|
57
|
+
"rimraf": "^6.1.3",
|
|
58
|
+
"rolldown-plugin-dts": "^0.28.5",
|
|
59
|
+
"tsdown": "^0.23.0",
|
|
60
|
+
"typescript": "^6.0.3",
|
|
61
|
+
"typescript-eslint": "^8.70.0",
|
|
62
|
+
"unplugin-vue": "^7.2.0",
|
|
63
|
+
"vite": "^8.3.0",
|
|
64
|
+
"vitest": "^5.0.0",
|
|
65
|
+
"vue": "^3.5.42"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "rimraf dist && tsdown",
|