@opfr/definitions 1.7.0 → 1.9.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.
Files changed (80) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.es.js +233 -92
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.umd.js +1 -1
  7. package/dist/locales/fr/item.json +671 -0
  8. package/dist/locales/fr/story.json +118 -0
  9. package/dist/story/constants.d.ts +7 -0
  10. package/dist/story/constants.d.ts.map +1 -0
  11. package/dist/story/constants.js +12 -0
  12. package/dist/story/constants.js.map +1 -0
  13. package/dist/story/index.d.ts +5 -0
  14. package/dist/story/index.d.ts.map +1 -0
  15. package/dist/story/index.js +4 -0
  16. package/dist/story/index.js.map +1 -0
  17. package/dist/story/stories/chapter-1/chapter.d.ts +3 -0
  18. package/dist/story/stories/chapter-1/chapter.d.ts.map +1 -0
  19. package/dist/story/stories/chapter-1/chapter.js +7 -0
  20. package/dist/story/stories/chapter-1/chapter.js.map +1 -0
  21. package/dist/story/stories/chapter-1/scenes.d.ts +3 -0
  22. package/dist/story/stories/chapter-1/scenes.d.ts.map +1 -0
  23. package/dist/story/stories/chapter-1/scenes.js +17 -0
  24. package/dist/story/stories/chapter-1/scenes.js.map +1 -0
  25. package/dist/story/stories/chapter-1/steps/stepsSceneOne.d.ts +3 -0
  26. package/dist/story/stories/chapter-1/steps/stepsSceneOne.d.ts.map +1 -0
  27. package/dist/story/stories/chapter-1/steps/stepsSceneOne.js +32 -0
  28. package/dist/story/stories/chapter-1/steps/stepsSceneOne.js.map +1 -0
  29. package/dist/story/stories/chapter-1/steps/stepsSceneTwo.d.ts +3 -0
  30. package/dist/story/stories/chapter-1/steps/stepsSceneTwo.d.ts.map +1 -0
  31. package/dist/story/stories/chapter-1/steps/stepsSceneTwo.js +50 -0
  32. package/dist/story/stories/chapter-1/steps/stepsSceneTwo.js.map +1 -0
  33. package/dist/story/stories/common.d.ts +3 -0
  34. package/dist/story/stories/common.d.ts.map +1 -0
  35. package/dist/story/stories/common.js +35 -0
  36. package/dist/story/stories/common.js.map +1 -0
  37. package/dist/story/types/actions.d.ts +19 -0
  38. package/dist/story/types/actions.d.ts.map +1 -0
  39. package/dist/story/types/actions.js +2 -0
  40. package/dist/story/types/actions.js.map +1 -0
  41. package/dist/story/types/chapters.d.ts +9 -0
  42. package/dist/story/types/chapters.d.ts.map +1 -0
  43. package/dist/story/types/chapters.js +2 -0
  44. package/dist/story/types/chapters.js.map +1 -0
  45. package/dist/story/types/common.d.ts +19 -0
  46. package/dist/story/types/common.d.ts.map +1 -0
  47. package/dist/story/types/common.js +2 -0
  48. package/dist/story/types/common.js.map +1 -0
  49. package/dist/story/types/index.d.ts +6 -0
  50. package/dist/story/types/index.d.ts.map +1 -0
  51. package/dist/story/types/index.js +2 -0
  52. package/dist/story/types/index.js.map +1 -0
  53. package/dist/story/types/scenes.d.ts +9 -0
  54. package/dist/story/types/scenes.d.ts.map +1 -0
  55. package/dist/story/types/scenes.js +2 -0
  56. package/dist/story/types/scenes.js.map +1 -0
  57. package/dist/story/types/steps/actionStep.d.ts +18 -0
  58. package/dist/story/types/steps/actionStep.d.ts.map +1 -0
  59. package/dist/story/types/steps/actionStep.js +2 -0
  60. package/dist/story/types/steps/actionStep.js.map +1 -0
  61. package/dist/story/types/steps/index.d.ts +8 -0
  62. package/dist/story/types/steps/index.d.ts.map +1 -0
  63. package/dist/story/types/steps/index.js +4 -0
  64. package/dist/story/types/steps/index.js.map +1 -0
  65. package/dist/story/types/steps/infoStep.d.ts +19 -0
  66. package/dist/story/types/steps/infoStep.d.ts.map +1 -0
  67. package/dist/story/types/steps/infoStep.js +2 -0
  68. package/dist/story/types/steps/infoStep.js.map +1 -0
  69. package/dist/story/types/steps/messageStep.d.ts +8 -0
  70. package/dist/story/types/steps/messageStep.d.ts.map +1 -0
  71. package/dist/story/types/steps/messageStep.js +2 -0
  72. package/dist/story/types/steps/messageStep.js.map +1 -0
  73. package/package.json +6 -10
  74. package/public/locales/fr/common.json +64 -0
  75. package/public/locales/fr/equipment.json +120 -0
  76. package/public/locales/fr/item.json +671 -0
  77. package/public/locales/fr/story.json +118 -0
  78. package/locales/items/fr.json +0 -446
  79. /package/{locales/common/fr.json → dist/locales/fr/common.json} +0 -0
  80. /package/{locales/equipments/fr.json → dist/locales/fr/equipment.json} +0 -0
@@ -0,0 +1,118 @@
1
+ {
2
+ "chapter_two": {
3
+ "name": "Chapitre 2",
4
+ "steps": {
5
+ "scene_id": {
6
+ "title": "Random title",
7
+ "steps": {
8
+ "step_id": {
9
+ "text": "$t(speakers.narrator.text, { text: narrator_1 })\n\n$t(speakers.goro.text, { text: goro_1 })",
10
+ "narrator_1": "Narrator speak...",
11
+ "goro_1": "Goro speak..."
12
+ }
13
+ }
14
+ }
15
+ }
16
+ },
17
+ "speakers": {
18
+ "narrator": {
19
+ "prefix": "> ",
20
+ "text": "$t(speakers.narrator.prefix)*{{text}}*"
21
+ },
22
+ "system": {
23
+ "text": "*{{text}}*"
24
+ },
25
+ "goro": {
26
+ "prefix": "Goro 🎣",
27
+ "text": "**$t(speakers.goro.prefix)** : *\"{{text}}\"*"
28
+ },
29
+ "lena": {
30
+ "prefix": "Lena 🧃",
31
+ "text": "**$t(speakers.lena.prefix)** : *\"{{text}}\"*"
32
+ },
33
+ "walto": {
34
+ "prefix": "Walto ⚓",
35
+ "text": "**$t(speakers.walto.prefix)** : *\"{{text}}\"*"
36
+ },
37
+ "bruto": {
38
+ "prefix": "Bruto 🔨",
39
+ "text": "**$t(speakers.bruto.prefix)** : *\"{{text}}\"*"
40
+ },
41
+ "toto": {
42
+ "prefix": "Toto 📦",
43
+ "text": "**$t(speakers.toto.prefix)** : *\"{{text}}\"*"
44
+ },
45
+ "pip": {
46
+ "prefix": "Pip 🐦",
47
+ "text": "**$t(speakers.pip.prefix)** : *\"{{text}}\"*"
48
+ }
49
+ },
50
+ "departure": {
51
+ "name": "📖 Chapitre 1 — \"Un nouveau Départ\"",
52
+ "scenes": {
53
+ "awaken": {
54
+ "title": "🎬 Scène 1 — Le Réveil\n",
55
+ "steps": {
56
+ "awaken": {
57
+ "messages": {
58
+ "narrator_1": "Le soleil se lève sur le port de Kabo. L'odeur du sel mêlé à celle du poisson frais emplit l'air. Des mouettes se disputent les restes du marché matinal. C'est un matin comme les autres... sauf que vous êtes là.",
59
+ "system_2": "Bienvenue sur l'île de Kabo, nouvel arrivant. Tu te réveilles sur un banc du quai principal, la tête un peu lourde, les poches vides, et un vieux pêcheur qui te regarde d'un air suspicieux.",
60
+ "goro_3": "Heh. T'es enfin réveillé. Ça fait deux heures que tu ronflais là. T'as un nom, au moins ?"
61
+ }
62
+ },
63
+ "profile": {
64
+ "messages": {
65
+ "system": "C'est le moment de te présenter, fais ``/profil`` pour qu'il voit ton nom."
66
+ }
67
+ },
68
+ "goroProfileResponse": {
69
+ "messages": {
70
+ "goro": "{{username}} c'est ça ? Bah... t'as pas l'air bien dangereux comme ça. Mais personne ne commence avec une prime sur la tête. Enfin, presque personne."
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "tensionPort": {
76
+ "title": "🎬 Scène 2 — Tension au Port",
77
+ "steps": {
78
+ "goroExplain": {
79
+ "messages": {
80
+ "goro": "L'île est pas très accueillante en ce moment. La semaine passée, des pirates ont attaqué le Nestor, un navire marchand qui faisait la route Orange Town–Village de Sirop. Deux marins blessés, la cargaison disparue. Les gens sont nerveux."
81
+ }
82
+ },
83
+ "answerToGoro": {
84
+ "messages": {
85
+ "goro": "T'as où aller, toi ?"
86
+ },
87
+ "actions": {
88
+ "answerA": {
89
+ "text": "Non, je découvre l'endroit."
90
+ },
91
+ "answerB": {
92
+ "text": "Je cherche du travail."
93
+ },
94
+ "answerC": {
95
+ "text": "Je passe juste par là."
96
+ }
97
+ }
98
+ },
99
+ "goroResponseA": {
100
+ "messages": {
101
+ "goro": "Commence par regarder où tu mets les pieds."
102
+ }
103
+ },
104
+ "goroResponseB": {
105
+ "messages": {
106
+ "goro": "Y'a toujours du boulot pour quelqu'un qui a pas peur de se salir les mains."
107
+ }
108
+ },
109
+ "goroResponseC": {
110
+ "messages": {
111
+ "goro": "Tout le monde 'passe juste par là'. Personne ne repart jamais vraiment."
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,7 @@
1
+ export declare const STORY_SPEAKER_TYPES: readonly ["npc", "narrator", "system"];
2
+ export declare const STORY_STEP_TYPES: readonly ["message", "action", "info"];
3
+ export declare const STORY_INFO_STEP_TYPES: readonly ["embed"];
4
+ export declare const STORY_ACTION_TYPES: readonly ["button", "command"];
5
+ export declare const STORY_BUTTON_ACTION_VARIANT: readonly ["success", "danger", "primary", "secondary"];
6
+ export declare const STORY_MESSAGE_ARGS: readonly ["username"];
7
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/story/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,wCAAyC,CAAC;AAE1E,eAAO,MAAM,gBAAgB,wCAAyC,CAAC;AAEvE,eAAO,MAAM,qBAAqB,oBAAqB,CAAC;AAExD,eAAO,MAAM,kBAAkB,gCAAiC,CAAC;AAEjE,eAAO,MAAM,2BAA2B,wDAK9B,CAAC;AAEX,eAAO,MAAM,kBAAkB,uBAAwB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const STORY_SPEAKER_TYPES = ['npc', 'narrator', 'system'];
2
+ export const STORY_STEP_TYPES = ['message', 'action', 'info'];
3
+ export const STORY_INFO_STEP_TYPES = ['embed'];
4
+ export const STORY_ACTION_TYPES = ['button', 'command'];
5
+ export const STORY_BUTTON_ACTION_VARIANT = [
6
+ 'success',
7
+ 'danger',
8
+ 'primary',
9
+ 'secondary',
10
+ ];
11
+ export const STORY_MESSAGE_ARGS = ['username'];
12
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/story/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AAE1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAEvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,OAAO,CAAU,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAU,CAAC;AAEjE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,SAAS;IACT,QAAQ;IACR,SAAS;IACT,WAAW;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAAU,CAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './constants';
2
+ export type * from './types';
3
+ export * from './stories/common';
4
+ export * from './stories/chapter-1/chapter';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/story/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,mBAAmB,SAAS,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './constants';
2
+ export * from './stories/common';
3
+ export * from './stories/chapter-1/chapter';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/story/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StoryChapter } from '../../types';
2
+ export declare const chapterOne: StoryChapter;
3
+ //# sourceMappingURL=chapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapter.d.ts","sourceRoot":"","sources":["../../../../src/story/stories/chapter-1/chapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,eAAO,MAAM,UAAU,EAAE,YAIxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { scenes } from './scenes';
2
+ export const chapterOne = {
3
+ chapterId: 'departure',
4
+ scenes,
5
+ entrySceneId: 'awaken',
6
+ };
7
+ //# sourceMappingURL=chapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapter.js","sourceRoot":"","sources":["../../../../src/story/stories/chapter-1/chapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,UAAU,GAAiB;IACtC,SAAS,EAAE,WAAW;IACtB,MAAM;IACN,YAAY,EAAE,QAAQ;CACvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SceneId, StoryScene } from '../../types';
2
+ export declare const scenes: Record<SceneId, StoryScene>;
3
+ //# sourceMappingURL=scenes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scenes.d.ts","sourceRoot":"","sources":["../../../../src/story/stories/chapter-1/scenes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIvD,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,CAa9C,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { stepsSceneOne } from './steps/stepsSceneOne';
2
+ import { stepsSceneTwo } from './steps/stepsSceneTwo';
3
+ export const scenes = {
4
+ awaken: {
5
+ sceneId: 'awaken',
6
+ steps: stepsSceneOne,
7
+ entryStepId: 'awaken',
8
+ next: 'tensionPort',
9
+ },
10
+ tensionPort: {
11
+ sceneId: 'tensionPort',
12
+ steps: stepsSceneTwo,
13
+ entryStepId: 'goroExplain',
14
+ next: '',
15
+ },
16
+ };
17
+ //# sourceMappingURL=scenes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scenes.js","sourceRoot":"","sources":["../../../../src/story/stories/chapter-1/scenes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAgC;IACjD,MAAM,EAAE;QACN,OAAO,EAAE,QAAQ;QACjB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,aAAa;KACpB;IACD,WAAW,EAAE;QACX,OAAO,EAAE,aAAa;QACtB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,EAAE;KACT;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StepId, StoryStep } from '../../../types';
2
+ export declare const stepsSceneOne: Record<StepId, StoryStep>;
3
+ //# sourceMappingURL=stepsSceneOne.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepsSceneOne.d.ts","sourceRoot":"","sources":["../../../../../src/story/stories/chapter-1/steps/stepsSceneOne.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CA8BnD,CAAC"}
@@ -0,0 +1,32 @@
1
+ export const stepsSceneOne = {
2
+ awaken: {
3
+ stepId: 'awaken',
4
+ type: 'message',
5
+ messages: [
6
+ { speakerId: 'narrator', order: 1 },
7
+ { speakerId: 'system', order: 2 },
8
+ { speakerId: 'goro', order: 3 },
9
+ ],
10
+ next: 'profile',
11
+ },
12
+ profile: {
13
+ stepId: 'profile',
14
+ type: 'action',
15
+ actionType: 'command',
16
+ messages: [{ speakerId: 'system' }],
17
+ payload: [
18
+ {
19
+ actionId: 'doProfile',
20
+ type: 'command',
21
+ commandId: 'profile',
22
+ next: 'goroProfileResponse',
23
+ },
24
+ ],
25
+ },
26
+ goroProfileResponse: {
27
+ stepId: 'goroProfileResponse',
28
+ type: 'message',
29
+ messages: [{ speakerId: 'goro', args: ['username'] }],
30
+ },
31
+ };
32
+ //# sourceMappingURL=stepsSceneOne.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepsSceneOne.js","sourceRoot":"","sources":["../../../../../src/story/stories/chapter-1/steps/stepsSceneOne.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAA8B;IACtD,MAAM,EAAE;QACN,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACR,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE;YACnC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE;YACjC,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE;SAChC;QACD,IAAI,EAAE,SAAS;KAChB;IACD,OAAO,EAAE;QACP,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;QACnC,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,WAAW;gBACrB,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,SAAS;gBACpB,IAAI,EAAE,qBAAqB;aAC5B;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,MAAM,EAAE,qBAAqB;QAC7B,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KACtD;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StepId, StoryStep } from '../../../types';
2
+ export declare const stepsSceneTwo: Record<StepId, StoryStep>;
3
+ //# sourceMappingURL=stepsSceneTwo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepsSceneTwo.d.ts","sourceRoot":"","sources":["../../../../../src/story/stories/chapter-1/steps/stepsSceneTwo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAgDnD,CAAC"}
@@ -0,0 +1,50 @@
1
+ export const stepsSceneTwo = {
2
+ goroExplain: {
3
+ stepId: 'goroExplain',
4
+ type: 'message',
5
+ messages: [{ speakerId: 'goro' }],
6
+ next: 'answerToGoro',
7
+ },
8
+ answerToGoro: {
9
+ stepId: 'answerToGoro',
10
+ type: 'action',
11
+ actionType: 'button',
12
+ messages: [{ speakerId: 'goro' }],
13
+ payload: [
14
+ {
15
+ actionId: 'answerA',
16
+ type: 'button',
17
+ variant: 'primary',
18
+ next: 'goroResponseA',
19
+ },
20
+ {
21
+ actionId: 'answerB',
22
+ type: 'button',
23
+ variant: 'primary',
24
+ next: 'goroResponseB',
25
+ },
26
+ {
27
+ actionId: 'answerC',
28
+ type: 'button',
29
+ variant: 'primary',
30
+ next: 'goroResponseC',
31
+ },
32
+ ],
33
+ },
34
+ goroResponseA: {
35
+ stepId: 'goroResponseA',
36
+ type: 'message',
37
+ messages: [{ speakerId: 'goro' }],
38
+ },
39
+ goroResponseB: {
40
+ stepId: 'goroResponseB',
41
+ type: 'message',
42
+ messages: [{ speakerId: 'goro' }],
43
+ },
44
+ goroResponseC: {
45
+ stepId: 'goroResponseC',
46
+ type: 'message',
47
+ messages: [{ speakerId: 'goro' }],
48
+ },
49
+ };
50
+ //# sourceMappingURL=stepsSceneTwo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepsSceneTwo.js","sourceRoot":"","sources":["../../../../../src/story/stories/chapter-1/steps/stepsSceneTwo.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAA8B;IACtD,WAAW,EAAE;QACX,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QACjC,IAAI,EAAE,cAAc;KACrB;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,cAAc;QACtB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QACjC,OAAO,EAAE;YACP;gBACE,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,IAAI,EAAE,eAAe;aACtB;YACD;gBACE,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,IAAI,EAAE,eAAe;aACtB;YACD;gBACE,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,IAAI,EAAE,eAAe;aACtB;SACF;KACF;IACD,aAAa,EAAE;QACb,MAAM,EAAE,eAAe;QACvB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;KAClC;IACD,aAAa,EAAE;QACb,MAAM,EAAE,eAAe;QACvB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;KAClC;IACD,aAAa,EAAE;QACb,MAAM,EAAE,eAAe;QACvB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;KAClC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StorySpeaker } from '../types';
2
+ export declare const speakers: StorySpeaker[];
3
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/story/stories/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,QAAQ,EAAE,YAAY,EAiClC,CAAC"}
@@ -0,0 +1,35 @@
1
+ export const speakers = [
2
+ {
3
+ speakerId: 'narrator',
4
+ type: 'narrator',
5
+ },
6
+ {
7
+ speakerId: 'system',
8
+ type: 'system',
9
+ },
10
+ {
11
+ speakerId: 'goro',
12
+ type: 'npc',
13
+ },
14
+ {
15
+ speakerId: 'lena',
16
+ type: 'npc',
17
+ },
18
+ {
19
+ speakerId: 'walto',
20
+ type: 'npc',
21
+ },
22
+ {
23
+ speakerId: 'bruto',
24
+ type: 'npc',
25
+ },
26
+ {
27
+ speakerId: 'toto',
28
+ type: 'npc',
29
+ },
30
+ {
31
+ speakerId: 'pip',
32
+ type: 'npc',
33
+ },
34
+ ];
35
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/story/stories/common.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAmB;IACtC;QACE,SAAS,EAAE,UAAU;QACrB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,SAAS,EAAE,MAAM;QACjB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,SAAS,EAAE,MAAM;QACjB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,SAAS,EAAE,OAAO;QAClB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,SAAS,EAAE,OAAO;QAClB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,SAAS,EAAE,MAAM;QACjB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,KAAK;KACZ;CACF,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { STORY_ACTION_TYPES, STORY_BUTTON_ACTION_VARIANT } from '../constants';
2
+ import type { StepId } from './common';
3
+ export type StoryActionType = (typeof STORY_ACTION_TYPES)[number];
4
+ export type StoryButtonActionVariant = (typeof STORY_BUTTON_ACTION_VARIANT)[number];
5
+ export type StoryActionId = string;
6
+ export type StoryButtonAction = {
7
+ actionId: StoryActionId;
8
+ type: Extract<StoryActionType, 'button'>;
9
+ variant: StoryButtonActionVariant;
10
+ next: StepId;
11
+ };
12
+ export type StoryCommandAction = {
13
+ actionId: StoryActionId;
14
+ type: Extract<StoryActionType, 'command'>;
15
+ commandId: string;
16
+ next: StepId;
17
+ };
18
+ export type StoryAction = StoryButtonAction | StoryCommandAction;
19
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/story/types/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAClC,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IACzC,OAAO,EAAE,wBAAwB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/story/types/actions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { ChapterId, SceneId } from './common';
2
+ import type { StoryScene } from './scenes';
3
+ export type StoryChapter = {
4
+ chapterId: ChapterId;
5
+ scenes: Record<SceneId, StoryScene>;
6
+ entrySceneId: SceneId;
7
+ next?: ChapterId;
8
+ };
9
+ //# sourceMappingURL=chapters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../src/story/types/chapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chapters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapters.js","sourceRoot":"","sources":["../../../src/story/types/chapters.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { STORY_MESSAGE_ARGS } from '../constants';
2
+ import { type STORY_SPEAKER_TYPES, type STORY_STEP_TYPES } from '../constants';
3
+ export type ChapterId = string;
4
+ export type SceneId = string;
5
+ export type StepId = string;
6
+ export type StorySpeakerType = (typeof STORY_SPEAKER_TYPES)[number];
7
+ export type StorySpeakerId = string;
8
+ export type StorySpeaker = {
9
+ type: StorySpeakerType;
10
+ speakerId: StorySpeakerId;
11
+ };
12
+ export type StoryMessageArgs = (typeof STORY_MESSAGE_ARGS)[number];
13
+ export type StoryMessage = {
14
+ speakerId: StorySpeakerId;
15
+ order?: number;
16
+ args?: StoryMessageArgs[];
17
+ };
18
+ export type StoryStepType = (typeof STORY_STEP_TYPES)[number];
19
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/story/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE/E,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAC7B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import {} from '../constants';
2
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/story/types/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAmD,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type * from './chapters';
2
+ export type * from './scenes';
3
+ export type * from './steps';
4
+ export type * from './actions';
5
+ export type * from './common';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/story/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/story/types/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { SceneId, StepId } from './common';
2
+ import type { StoryStep } from './steps';
3
+ export type StoryScene = {
4
+ sceneId: SceneId;
5
+ steps: Record<StepId, StoryStep>;
6
+ entryStepId: StepId;
7
+ next?: SceneId;
8
+ };
9
+ //# sourceMappingURL=scenes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scenes.d.ts","sourceRoot":"","sources":["../../../src/story/types/scenes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=scenes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scenes.js","sourceRoot":"","sources":["../../../src/story/types/scenes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import type { StoryActionType, StoryButtonAction, StoryCommandAction } from '../actions';
2
+ import type { StepId, StoryMessage, StoryStepType } from '../common';
3
+ export type StoryButtonChoiceActionStep = {
4
+ stepId: StepId;
5
+ type: Extract<StoryStepType, 'action'>;
6
+ actionType: Extract<StoryActionType, 'button'>;
7
+ messages: StoryMessage[];
8
+ payload: StoryButtonAction[];
9
+ };
10
+ export type StoryCommandRequiredActionStep = {
11
+ stepId: StepId;
12
+ type: Extract<StoryStepType, 'action'>;
13
+ actionType: Extract<StoryActionType, 'command'>;
14
+ messages: StoryMessage[];
15
+ payload: StoryCommandAction[];
16
+ };
17
+ export type StoryActionStep = StoryButtonChoiceActionStep | StoryCommandRequiredActionStep;
18
+ //# sourceMappingURL=actionStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionStep.d.ts","sourceRoot":"","sources":["../../../../src/story/types/steps/actionStep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAErE,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACvC,UAAU,EAAE,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC/C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACvC,UAAU,EAAE,OAAO,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;IAChD,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,eAAe,GACvB,2BAA2B,GAC3B,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=actionStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionStep.js","sourceRoot":"","sources":["../../../../src/story/types/steps/actionStep.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { StoryActionStep } from './actionStep';
2
+ import type { StoryInfoStep } from './infoStep';
3
+ import type { StoryMessageStep } from './messageStep';
4
+ export type StoryStep = StoryInfoStep | StoryMessageStep | StoryActionStep;
5
+ export * from './actionStep';
6
+ export * from './infoStep';
7
+ export * from './messageStep';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/story/types/steps/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,gBAAgB,GAAG,eAAe,CAAC;AAE3E,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './actionStep';
2
+ export * from './infoStep';
3
+ export * from './messageStep';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/story/types/steps/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { STORY_INFO_STEP_TYPES } from '../../constants';
2
+ import type { StoryButtonAction } from '../actions';
3
+ import type { StepId, StoryMessage, StoryStepType } from '../common';
4
+ export type InfoStepType = (typeof STORY_INFO_STEP_TYPES)[number];
5
+ export type EmbedInfoStepPayload = {
6
+ type: Extract<InfoStepType, 'embed'>;
7
+ data: {
8
+ messages?: StoryMessage[];
9
+ actions?: StoryButtonAction[];
10
+ };
11
+ };
12
+ export type InfoStepPayload = EmbedInfoStepPayload;
13
+ export type StoryInfoStep = {
14
+ stepId: StepId;
15
+ type: Extract<StoryStepType, 'info'>;
16
+ payload: InfoStepPayload;
17
+ next?: StepId;
18
+ };
19
+ //# sourceMappingURL=infoStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infoStep.d.ts","sourceRoot":"","sources":["../../../../src/story/types/steps/infoStep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACrC,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;QAC1B,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;KAC/B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=infoStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infoStep.js","sourceRoot":"","sources":["../../../../src/story/types/steps/infoStep.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { StepId, StoryMessage, StoryStepType } from '../common';
2
+ export type StoryMessageStep = {
3
+ stepId: StepId;
4
+ type: Extract<StoryStepType, 'message'>;
5
+ messages: StoryMessage[];
6
+ next?: StepId;
7
+ };
8
+ //# sourceMappingURL=messageStep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageStep.d.ts","sourceRoot":"","sources":["../../../../src/story/types/steps/messageStep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IACxC,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=messageStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageStep.js","sourceRoot":"","sources":["../../../../src/story/types/steps/messageStep.ts"],"names":[],"mappings":""}