@chuzi/shared 1.3.9 → 1.3.11
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/api/index.d.ts +15 -1
- package/dist/api/index.js +12 -0
- package/dist/api/index.js.map +1 -1
- package/dist/config/index.js +129 -3
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +141 -3
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +32 -1
- package/dist/types/index.js.map +1 -1
- package/dist/ui/index.js +129 -3
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -199,7 +199,49 @@ var REALMS = {
|
|
|
199
199
|
tags_placeholder: "Search signal tags\u2026",
|
|
200
200
|
tags_empty: "No signal tags yet",
|
|
201
201
|
story_picker_label: "Constellations",
|
|
202
|
-
created_by: "Directed by"
|
|
202
|
+
created_by: "Directed by",
|
|
203
|
+
director_profile_title: "Director profile",
|
|
204
|
+
director_profile_name_label: "Name",
|
|
205
|
+
director_profile_realm_label: "Experience realm",
|
|
206
|
+
director_profile_image_label: "Image",
|
|
207
|
+
director_profile_image_hint: "Realm-themed seal \u2014 switching the realm above swaps the seal. Custom uploads land with the V1 avatar endpoints.",
|
|
208
|
+
director_profile_tab_profile: "Profile",
|
|
209
|
+
director_profile_tab_experience_mapping: "Experience Mapping",
|
|
210
|
+
director_profile_admin_only: "Admin only",
|
|
211
|
+
director_profile_cancel: "Cancel",
|
|
212
|
+
director_profile_save: "Save",
|
|
213
|
+
director_profile_saving: "Saving\u2026",
|
|
214
|
+
director_profile_name_required: "Name is required.",
|
|
215
|
+
director_profile_save_failed: "Save failed",
|
|
216
|
+
experience_mapping_loading: "Loading experience mapping\u2026",
|
|
217
|
+
experience_mapping_empty: "No template hierarchy available yet.",
|
|
218
|
+
experience_mapping_retry: "Retry",
|
|
219
|
+
experience_mapping_story_label: "Story",
|
|
220
|
+
experience_mapping_scene_label: "Scene",
|
|
221
|
+
experience_mapping_action_label: "Action",
|
|
222
|
+
experience_mapping_field_title: "Title",
|
|
223
|
+
experience_mapping_field_description: "Description",
|
|
224
|
+
experience_mapping_field_genre: "Genre",
|
|
225
|
+
experience_mapping_field_content_rating: "Content rating",
|
|
226
|
+
experience_mapping_field_color: "Color",
|
|
227
|
+
experience_mapping_field_name: "Name",
|
|
228
|
+
experience_mapping_field_type: "Type",
|
|
229
|
+
experience_mapping_field_order: "Order",
|
|
230
|
+
experience_mapping_field_duration: "Duration",
|
|
231
|
+
experience_mapping_field_properties: "Properties",
|
|
232
|
+
experience_mapping_field_subproperties: "Subproperties",
|
|
233
|
+
experience_mapping_save_changes: "Save changes",
|
|
234
|
+
experience_mapping_saved: "Saved",
|
|
235
|
+
experience_mapping_save_error: "Could not save changes.",
|
|
236
|
+
experience_mapping_delete_story: "Delete story",
|
|
237
|
+
experience_mapping_delete_scene: "Delete scene",
|
|
238
|
+
experience_mapping_delete_action: "Delete action",
|
|
239
|
+
experience_mapping_delete_confirm: "Click again to confirm",
|
|
240
|
+
experience_mapping_delete_error: "Delete failed.",
|
|
241
|
+
experience_mapping_expand_all: "Expand all",
|
|
242
|
+
experience_mapping_collapse_all: "Collapse all",
|
|
243
|
+
experience_mapping_forbidden: "You do not have admin access for this section.",
|
|
244
|
+
experience_mapping_bad_json: "JSON must be valid before saving."
|
|
203
245
|
},
|
|
204
246
|
locales: {
|
|
205
247
|
es: {
|
|
@@ -361,7 +403,49 @@ var REALMS = {
|
|
|
361
403
|
tags_placeholder: "Search root tags\u2026",
|
|
362
404
|
tags_empty: "No root tags yet",
|
|
363
405
|
story_picker_label: "Groves",
|
|
364
|
-
created_by: "Tended by"
|
|
406
|
+
created_by: "Tended by",
|
|
407
|
+
director_profile_title: "Director profile",
|
|
408
|
+
director_profile_name_label: "Name",
|
|
409
|
+
director_profile_realm_label: "Experience realm",
|
|
410
|
+
director_profile_image_label: "Image",
|
|
411
|
+
director_profile_image_hint: "Realm-themed seal \u2014 switching the realm above swaps the seal. Custom uploads land with the V1 avatar endpoints.",
|
|
412
|
+
director_profile_tab_profile: "Profile",
|
|
413
|
+
director_profile_tab_experience_mapping: "Experience Mapping",
|
|
414
|
+
director_profile_admin_only: "Admin only",
|
|
415
|
+
director_profile_cancel: "Cancel",
|
|
416
|
+
director_profile_save: "Save",
|
|
417
|
+
director_profile_saving: "Saving\u2026",
|
|
418
|
+
director_profile_name_required: "Name is required.",
|
|
419
|
+
director_profile_save_failed: "Save failed",
|
|
420
|
+
experience_mapping_loading: "Loading experience mapping\u2026",
|
|
421
|
+
experience_mapping_empty: "No template hierarchy available yet.",
|
|
422
|
+
experience_mapping_retry: "Retry",
|
|
423
|
+
experience_mapping_story_label: "Story",
|
|
424
|
+
experience_mapping_scene_label: "Scene",
|
|
425
|
+
experience_mapping_action_label: "Action",
|
|
426
|
+
experience_mapping_field_title: "Title",
|
|
427
|
+
experience_mapping_field_description: "Description",
|
|
428
|
+
experience_mapping_field_genre: "Genre",
|
|
429
|
+
experience_mapping_field_content_rating: "Content rating",
|
|
430
|
+
experience_mapping_field_color: "Color",
|
|
431
|
+
experience_mapping_field_name: "Name",
|
|
432
|
+
experience_mapping_field_type: "Type",
|
|
433
|
+
experience_mapping_field_order: "Order",
|
|
434
|
+
experience_mapping_field_duration: "Duration",
|
|
435
|
+
experience_mapping_field_properties: "Properties",
|
|
436
|
+
experience_mapping_field_subproperties: "Subproperties",
|
|
437
|
+
experience_mapping_save_changes: "Save changes",
|
|
438
|
+
experience_mapping_saved: "Saved",
|
|
439
|
+
experience_mapping_save_error: "Could not save changes.",
|
|
440
|
+
experience_mapping_delete_story: "Delete story",
|
|
441
|
+
experience_mapping_delete_scene: "Delete scene",
|
|
442
|
+
experience_mapping_delete_action: "Delete action",
|
|
443
|
+
experience_mapping_delete_confirm: "Click again to confirm",
|
|
444
|
+
experience_mapping_delete_error: "Delete failed.",
|
|
445
|
+
experience_mapping_expand_all: "Expand all",
|
|
446
|
+
experience_mapping_collapse_all: "Collapse all",
|
|
447
|
+
experience_mapping_forbidden: "You do not have admin access for this section.",
|
|
448
|
+
experience_mapping_bad_json: "JSON must be valid before saving."
|
|
365
449
|
},
|
|
366
450
|
locales: {
|
|
367
451
|
es: {
|
|
@@ -521,7 +605,49 @@ var FALLBACK_LEXICON = {
|
|
|
521
605
|
tags_placeholder: "Search tags\u2026",
|
|
522
606
|
tags_empty: "No tags yet",
|
|
523
607
|
story_picker_label: "Stories",
|
|
524
|
-
created_by: "Created by"
|
|
608
|
+
created_by: "Created by",
|
|
609
|
+
director_profile_title: "Director profile",
|
|
610
|
+
director_profile_name_label: "Name",
|
|
611
|
+
director_profile_realm_label: "Experience realm",
|
|
612
|
+
director_profile_image_label: "Image",
|
|
613
|
+
director_profile_image_hint: "Realm-themed seal \u2014 switching the realm above swaps the seal. Custom uploads land with the V1 avatar endpoints.",
|
|
614
|
+
director_profile_tab_profile: "Profile",
|
|
615
|
+
director_profile_tab_experience_mapping: "Experience Mapping",
|
|
616
|
+
director_profile_admin_only: "Admin only",
|
|
617
|
+
director_profile_cancel: "Cancel",
|
|
618
|
+
director_profile_save: "Save",
|
|
619
|
+
director_profile_saving: "Saving\u2026",
|
|
620
|
+
director_profile_name_required: "Name is required.",
|
|
621
|
+
director_profile_save_failed: "Save failed",
|
|
622
|
+
experience_mapping_loading: "Loading experience mapping\u2026",
|
|
623
|
+
experience_mapping_empty: "No template hierarchy available yet.",
|
|
624
|
+
experience_mapping_retry: "Retry",
|
|
625
|
+
experience_mapping_story_label: "Story",
|
|
626
|
+
experience_mapping_scene_label: "Scene",
|
|
627
|
+
experience_mapping_action_label: "Action",
|
|
628
|
+
experience_mapping_field_title: "Title",
|
|
629
|
+
experience_mapping_field_description: "Description",
|
|
630
|
+
experience_mapping_field_genre: "Genre",
|
|
631
|
+
experience_mapping_field_content_rating: "Content rating",
|
|
632
|
+
experience_mapping_field_color: "Color",
|
|
633
|
+
experience_mapping_field_name: "Name",
|
|
634
|
+
experience_mapping_field_type: "Type",
|
|
635
|
+
experience_mapping_field_order: "Order",
|
|
636
|
+
experience_mapping_field_duration: "Duration",
|
|
637
|
+
experience_mapping_field_properties: "Properties",
|
|
638
|
+
experience_mapping_field_subproperties: "Subproperties",
|
|
639
|
+
experience_mapping_save_changes: "Save changes",
|
|
640
|
+
experience_mapping_saved: "Saved",
|
|
641
|
+
experience_mapping_save_error: "Could not save changes.",
|
|
642
|
+
experience_mapping_delete_story: "Delete story",
|
|
643
|
+
experience_mapping_delete_scene: "Delete scene",
|
|
644
|
+
experience_mapping_delete_action: "Delete action",
|
|
645
|
+
experience_mapping_delete_confirm: "Click again to confirm",
|
|
646
|
+
experience_mapping_delete_error: "Delete failed.",
|
|
647
|
+
experience_mapping_expand_all: "Expand all",
|
|
648
|
+
experience_mapping_collapse_all: "Collapse all",
|
|
649
|
+
experience_mapping_forbidden: "You do not have admin access for this section.",
|
|
650
|
+
experience_mapping_bad_json: "JSON must be valid before saving."
|
|
525
651
|
};
|
|
526
652
|
var FALLBACK_LOCALES = {
|
|
527
653
|
es: {
|
|
@@ -771,6 +897,18 @@ function createChuziClient(config) {
|
|
|
771
897
|
update: (id, req) => request("PATCH", `/api/v1/scenes/${encodeURIComponent(id)}`, { body: req }),
|
|
772
898
|
destroy: (id) => request("DELETE", `/api/v1/scenes/${encodeURIComponent(id)}`)
|
|
773
899
|
},
|
|
900
|
+
sceneActions: {
|
|
901
|
+
index: (opts) => request("GET", "/api/v1/scene-actions", {
|
|
902
|
+
signal: opts?.signal,
|
|
903
|
+
query: opts?.sceneId ? { scene_id: opts.sceneId } : void 0
|
|
904
|
+
}),
|
|
905
|
+
show: (id, opts) => request("GET", `/api/v1/scene-actions/${encodeURIComponent(id)}`, opts),
|
|
906
|
+
create: (req) => request("POST", "/api/v1/scene-actions", { body: req }),
|
|
907
|
+
update: (id, req) => request("PATCH", `/api/v1/scene-actions/${encodeURIComponent(id)}`, {
|
|
908
|
+
body: req
|
|
909
|
+
}),
|
|
910
|
+
destroy: (id) => request("DELETE", `/api/v1/scene-actions/${encodeURIComponent(id)}`)
|
|
911
|
+
},
|
|
774
912
|
media: {
|
|
775
913
|
uploadUrl: (req) => request("POST", "/api/v1/media/upload-url", { body: req }),
|
|
776
914
|
register: (req) => request("POST", "/api/v1/media/register", { body: req }),
|