@chuzi/shared 1.3.9 → 1.3.10
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 +117 -3
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +129 -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 +117 -3
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -199,7 +199,45 @@ 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_name: "Name",
|
|
224
|
+
experience_mapping_field_type: "Type",
|
|
225
|
+
experience_mapping_field_order: "Order",
|
|
226
|
+
experience_mapping_field_duration: "Duration",
|
|
227
|
+
experience_mapping_field_properties: "Properties",
|
|
228
|
+
experience_mapping_field_subproperties: "Subproperties",
|
|
229
|
+
experience_mapping_save_changes: "Save changes",
|
|
230
|
+
experience_mapping_saved: "Saved",
|
|
231
|
+
experience_mapping_save_error: "Could not save changes.",
|
|
232
|
+
experience_mapping_delete_story: "Delete story",
|
|
233
|
+
experience_mapping_delete_scene: "Delete scene",
|
|
234
|
+
experience_mapping_delete_action: "Delete action",
|
|
235
|
+
experience_mapping_delete_confirm: "Click again to confirm",
|
|
236
|
+
experience_mapping_delete_error: "Delete failed.",
|
|
237
|
+
experience_mapping_expand_all: "Expand all",
|
|
238
|
+
experience_mapping_collapse_all: "Collapse all",
|
|
239
|
+
experience_mapping_forbidden: "You do not have admin access for this section.",
|
|
240
|
+
experience_mapping_bad_json: "JSON must be valid before saving."
|
|
203
241
|
},
|
|
204
242
|
locales: {
|
|
205
243
|
es: {
|
|
@@ -361,7 +399,45 @@ var REALMS = {
|
|
|
361
399
|
tags_placeholder: "Search root tags\u2026",
|
|
362
400
|
tags_empty: "No root tags yet",
|
|
363
401
|
story_picker_label: "Groves",
|
|
364
|
-
created_by: "Tended by"
|
|
402
|
+
created_by: "Tended by",
|
|
403
|
+
director_profile_title: "Director profile",
|
|
404
|
+
director_profile_name_label: "Name",
|
|
405
|
+
director_profile_realm_label: "Experience realm",
|
|
406
|
+
director_profile_image_label: "Image",
|
|
407
|
+
director_profile_image_hint: "Realm-themed seal \u2014 switching the realm above swaps the seal. Custom uploads land with the V1 avatar endpoints.",
|
|
408
|
+
director_profile_tab_profile: "Profile",
|
|
409
|
+
director_profile_tab_experience_mapping: "Experience Mapping",
|
|
410
|
+
director_profile_admin_only: "Admin only",
|
|
411
|
+
director_profile_cancel: "Cancel",
|
|
412
|
+
director_profile_save: "Save",
|
|
413
|
+
director_profile_saving: "Saving\u2026",
|
|
414
|
+
director_profile_name_required: "Name is required.",
|
|
415
|
+
director_profile_save_failed: "Save failed",
|
|
416
|
+
experience_mapping_loading: "Loading experience mapping\u2026",
|
|
417
|
+
experience_mapping_empty: "No template hierarchy available yet.",
|
|
418
|
+
experience_mapping_retry: "Retry",
|
|
419
|
+
experience_mapping_story_label: "Story",
|
|
420
|
+
experience_mapping_scene_label: "Scene",
|
|
421
|
+
experience_mapping_action_label: "Action",
|
|
422
|
+
experience_mapping_field_title: "Title",
|
|
423
|
+
experience_mapping_field_name: "Name",
|
|
424
|
+
experience_mapping_field_type: "Type",
|
|
425
|
+
experience_mapping_field_order: "Order",
|
|
426
|
+
experience_mapping_field_duration: "Duration",
|
|
427
|
+
experience_mapping_field_properties: "Properties",
|
|
428
|
+
experience_mapping_field_subproperties: "Subproperties",
|
|
429
|
+
experience_mapping_save_changes: "Save changes",
|
|
430
|
+
experience_mapping_saved: "Saved",
|
|
431
|
+
experience_mapping_save_error: "Could not save changes.",
|
|
432
|
+
experience_mapping_delete_story: "Delete story",
|
|
433
|
+
experience_mapping_delete_scene: "Delete scene",
|
|
434
|
+
experience_mapping_delete_action: "Delete action",
|
|
435
|
+
experience_mapping_delete_confirm: "Click again to confirm",
|
|
436
|
+
experience_mapping_delete_error: "Delete failed.",
|
|
437
|
+
experience_mapping_expand_all: "Expand all",
|
|
438
|
+
experience_mapping_collapse_all: "Collapse all",
|
|
439
|
+
experience_mapping_forbidden: "You do not have admin access for this section.",
|
|
440
|
+
experience_mapping_bad_json: "JSON must be valid before saving."
|
|
365
441
|
},
|
|
366
442
|
locales: {
|
|
367
443
|
es: {
|
|
@@ -521,7 +597,45 @@ var FALLBACK_LEXICON = {
|
|
|
521
597
|
tags_placeholder: "Search tags\u2026",
|
|
522
598
|
tags_empty: "No tags yet",
|
|
523
599
|
story_picker_label: "Stories",
|
|
524
|
-
created_by: "Created by"
|
|
600
|
+
created_by: "Created by",
|
|
601
|
+
director_profile_title: "Director profile",
|
|
602
|
+
director_profile_name_label: "Name",
|
|
603
|
+
director_profile_realm_label: "Experience realm",
|
|
604
|
+
director_profile_image_label: "Image",
|
|
605
|
+
director_profile_image_hint: "Realm-themed seal \u2014 switching the realm above swaps the seal. Custom uploads land with the V1 avatar endpoints.",
|
|
606
|
+
director_profile_tab_profile: "Profile",
|
|
607
|
+
director_profile_tab_experience_mapping: "Experience Mapping",
|
|
608
|
+
director_profile_admin_only: "Admin only",
|
|
609
|
+
director_profile_cancel: "Cancel",
|
|
610
|
+
director_profile_save: "Save",
|
|
611
|
+
director_profile_saving: "Saving\u2026",
|
|
612
|
+
director_profile_name_required: "Name is required.",
|
|
613
|
+
director_profile_save_failed: "Save failed",
|
|
614
|
+
experience_mapping_loading: "Loading experience mapping\u2026",
|
|
615
|
+
experience_mapping_empty: "No template hierarchy available yet.",
|
|
616
|
+
experience_mapping_retry: "Retry",
|
|
617
|
+
experience_mapping_story_label: "Story",
|
|
618
|
+
experience_mapping_scene_label: "Scene",
|
|
619
|
+
experience_mapping_action_label: "Action",
|
|
620
|
+
experience_mapping_field_title: "Title",
|
|
621
|
+
experience_mapping_field_name: "Name",
|
|
622
|
+
experience_mapping_field_type: "Type",
|
|
623
|
+
experience_mapping_field_order: "Order",
|
|
624
|
+
experience_mapping_field_duration: "Duration",
|
|
625
|
+
experience_mapping_field_properties: "Properties",
|
|
626
|
+
experience_mapping_field_subproperties: "Subproperties",
|
|
627
|
+
experience_mapping_save_changes: "Save changes",
|
|
628
|
+
experience_mapping_saved: "Saved",
|
|
629
|
+
experience_mapping_save_error: "Could not save changes.",
|
|
630
|
+
experience_mapping_delete_story: "Delete story",
|
|
631
|
+
experience_mapping_delete_scene: "Delete scene",
|
|
632
|
+
experience_mapping_delete_action: "Delete action",
|
|
633
|
+
experience_mapping_delete_confirm: "Click again to confirm",
|
|
634
|
+
experience_mapping_delete_error: "Delete failed.",
|
|
635
|
+
experience_mapping_expand_all: "Expand all",
|
|
636
|
+
experience_mapping_collapse_all: "Collapse all",
|
|
637
|
+
experience_mapping_forbidden: "You do not have admin access for this section.",
|
|
638
|
+
experience_mapping_bad_json: "JSON must be valid before saving."
|
|
525
639
|
};
|
|
526
640
|
var FALLBACK_LOCALES = {
|
|
527
641
|
es: {
|
|
@@ -771,6 +885,18 @@ function createChuziClient(config) {
|
|
|
771
885
|
update: (id, req) => request("PATCH", `/api/v1/scenes/${encodeURIComponent(id)}`, { body: req }),
|
|
772
886
|
destroy: (id) => request("DELETE", `/api/v1/scenes/${encodeURIComponent(id)}`)
|
|
773
887
|
},
|
|
888
|
+
sceneActions: {
|
|
889
|
+
index: (opts) => request("GET", "/api/v1/scene-actions", {
|
|
890
|
+
signal: opts?.signal,
|
|
891
|
+
query: opts?.sceneId ? { scene_id: opts.sceneId } : void 0
|
|
892
|
+
}),
|
|
893
|
+
show: (id, opts) => request("GET", `/api/v1/scene-actions/${encodeURIComponent(id)}`, opts),
|
|
894
|
+
create: (req) => request("POST", "/api/v1/scene-actions", { body: req }),
|
|
895
|
+
update: (id, req) => request("PATCH", `/api/v1/scene-actions/${encodeURIComponent(id)}`, {
|
|
896
|
+
body: req
|
|
897
|
+
}),
|
|
898
|
+
destroy: (id) => request("DELETE", `/api/v1/scene-actions/${encodeURIComponent(id)}`)
|
|
899
|
+
},
|
|
774
900
|
media: {
|
|
775
901
|
uploadUrl: (req) => request("POST", "/api/v1/media/upload-url", { body: req }),
|
|
776
902
|
register: (req) => request("POST", "/api/v1/media/register", { body: req }),
|