@drincs/pixi-vn 1.2.25 → 1.3.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 (35) hide show
  1. package/dist/{ContainerMemory-Bemxh6ml.d.cts → ContainerMemory-CrY9QSo2.d.cts} +16 -13
  2. package/dist/{ContainerMemory-BSDt46hh.d.ts → ContainerMemory-DrijxCcD.d.ts} +16 -13
  3. package/dist/{TickersSequence-_GvVF_1g.d.cts → TickersSequence-Cf1Vcu22.d.cts} +55 -12
  4. package/dist/{TickersSequence-_GvVF_1g.d.ts → TickersSequence-Cf1Vcu22.d.ts} +55 -12
  5. package/dist/canvas/index.cjs +144 -142
  6. package/dist/canvas/index.d.cts +5 -4
  7. package/dist/canvas/index.d.ts +5 -4
  8. package/dist/canvas/index.mjs +144 -142
  9. package/dist/canvas/tickers/index.cjs +145 -143
  10. package/dist/canvas/tickers/index.d.cts +141 -118
  11. package/dist/canvas/tickers/index.d.ts +141 -118
  12. package/dist/canvas/tickers/index.mjs +145 -143
  13. package/dist/character/index.cjs +41 -40
  14. package/dist/character/index.d.cts +1 -1
  15. package/dist/character/index.d.ts +1 -1
  16. package/dist/character/index.mjs +41 -40
  17. package/dist/{index-DiDhb7Kl.d.cts → index-Bl9hiHQR.d.cts} +4 -143
  18. package/dist/{index-DPlLfwK1.d.cts → index-Cax-mGq_.d.cts} +2 -17
  19. package/dist/{index-BWzZWl0z.d.ts → index-Cvdua0o-.d.ts} +2 -17
  20. package/dist/{index-BhqocQcj.d.cts → index-Dib5x6-D.d.ts} +138 -73
  21. package/dist/{index-B7Tn343-.d.ts → index-_rD16ks5.d.ts} +4 -143
  22. package/dist/{index-Bju40pxd.d.ts → index-jEmIURMn.d.cts} +138 -73
  23. package/dist/index.cjs +144 -143
  24. package/dist/index.d.cts +13 -37
  25. package/dist/index.d.ts +13 -37
  26. package/dist/index.mjs +144 -143
  27. package/dist/interfaces/index.d.cts +3 -3
  28. package/dist/interfaces/index.d.ts +3 -3
  29. package/dist/narration/index.cjs +55 -54
  30. package/dist/narration/index.d.cts +1 -1
  31. package/dist/narration/index.d.ts +1 -1
  32. package/dist/narration/index.mjs +55 -54
  33. package/dist/sound/index.cjs +42 -41
  34. package/dist/sound/index.mjs +42 -41
  35. package/package.json +4 -3
@@ -1,7 +1,7 @@
1
1
  import { N as NarrationGameState } from './NarrationGameState-CqDh48n_.js';
2
2
  import { StepLabelProps as StepLabelProps$1, StepLabelResult as StepLabelResult$1, ChoiceInterface as ChoiceInterface$1 } from '@drincs/pixi-vn';
3
3
  import { a as StorageObjectType, S as StorageElementType } from './StorageElementType-DTGcnkzF.js';
4
- import { e as LabelIdType, L as LabelRunModeType, a as ChoiceOptionInterface, C as CloseType, b as CloseChoiceOptionInterface, O as OpenedLabel, c as StoredIndexedChoiceInterface, D as DialogueInterface, S as StoredChoiceInterface, H as HistoryStep, d as Close } from './OpenedLabel-DxlOwJKw.js';
4
+ import { e as LabelIdType, L as LabelRunModeType, a as ChoiceOptionInterface, b as CloseChoiceOptionInterface, C as CloseType, O as OpenedLabel, c as StoredIndexedChoiceInterface, D as DialogueInterface, S as StoredChoiceInterface, H as HistoryStep, d as Close } from './OpenedLabel-DxlOwJKw.js';
5
5
  import { H as HistoryChoiceMenuOption, N as NarrationHistory } from './HistoryChoiceMenuOption-Kj_P28ke.js';
6
6
 
7
7
  type StepLabelResultType = StepLabelResult$1 | void;
@@ -134,71 +134,6 @@ interface ChoiceMenuOptionOptions extends Omit<ChoiceInterface$1, "text" | "labe
134
134
  */
135
135
  type?: LabelRunModeType;
136
136
  }
137
- /**
138
- * @deprecated Use `newChoiceOption` instead
139
- */
140
- declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends LabelAbstract<any, T> = LabelAbstract<any, T>> {
141
- /**
142
- * Text to be displayed in the menu
143
- */
144
- text: ChoiceInterface$1["text"];
145
- private _label;
146
- /**
147
- * Label to be opened when the option is selected
148
- */
149
- get label(): TLabel;
150
- /**
151
- * Type of the label to be opened
152
- */
153
- type: LabelRunModeType;
154
- /**
155
- * If this is true, the choice can only be made once.
156
- */
157
- oneTime: boolean;
158
- /**
159
- * If this is true, the choice can see only if there are no other choices. For example, all choices are one-time choices and they are already selected.
160
- */
161
- onlyHaveNoChoice: boolean;
162
- /**
163
- * If this is true and if is the only choice, it will be automatically selected, and call/jump to the label.
164
- */
165
- autoSelect: boolean;
166
- /**
167
- * Properties to be passed to the label and olther parameters that you can use when get all the choice menu options.
168
- * @example
169
- * ```tsx
170
- * narration.choiceMenuOptions = [
171
- * newChoiceOption("Hello", helloLabel, { disabled: true }),
172
- * ]
173
- * return <List>
174
- * {narration.choiceMenuOptions?.map((item, index) => {
175
- * return (
176
- * <ChoiceButton
177
- * disabled={item.props.disabled}
178
- * onClick={() => {
179
- * afterSelectChoice(item)
180
- * }}
181
- * >
182
- * {item.text}
183
- * </ChoiceButton>
184
- * )
185
- * })}
186
- * </List>
187
- * ```
188
- */
189
- props: StorageObjectType;
190
- /**
191
- * More props added by the developer
192
- */
193
- devProps: Omit<ChoiceInterface$1, "text" | "label" | "type" | "oneTime" | "onlyHaveNoChoice" | "autoSelect" | "closeCurrentLabel" | "props">;
194
- /**
195
- * @param text Text to be displayed in the menu
196
- * @param label Label to be opened when the option is selected or the id of the label
197
- * @param props Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. It be converted to a JSON string, so it cannot contain functions or classes.
198
- * @param options Options
199
- */
200
- constructor(text: ChoiceInterface$1["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
201
- }
202
137
  /**
203
138
  * Function to create a new choice menu option.
204
139
  * @example
@@ -214,68 +149,6 @@ interface ChoiceMenuOptionCloseOptions extends Omit<ChoiceInterface$1, "text" |
214
149
  */
215
150
  closeCurrentLabel?: boolean;
216
151
  }
217
- /**
218
- * @deprecated Use `newCloseChoiceOption` instead
219
- */
220
- declare class ChoiceMenuOptionClose {
221
- /**
222
- * Text to be displayed in the menu
223
- */
224
- text: ChoiceInterface$1["text"];
225
- /**
226
- * If true, the current label will be closed
227
- */
228
- closeCurrentLabel: boolean;
229
- /**
230
- * Type of the label to be opened
231
- */
232
- type: CloseType;
233
- /**
234
- * If this is true, the choice can only be made once.
235
- */
236
- oneTime: boolean;
237
- /**
238
- * If this is true, the choice can see only if there are no other choices. For example, all choices are one-time choices and they are already selected.
239
- */
240
- onlyHaveNoChoice: boolean;
241
- /**
242
- * If this is true and if is the only choice, it will be automatically selected, and call/jump to the label.
243
- */
244
- autoSelect: boolean;
245
- /**
246
- * Properties to be passed to the label and olther parameters that you can use when get all the choice menu options.
247
- * @example
248
- * ```tsx
249
- * narration.choiceMenuOptions = [
250
- * newChoiceOption("Hello", helloLabel, { disabled: true }),
251
- * ]
252
- * return <List>
253
- * {narration.choiceMenuOptions?.map((item, index) => {
254
- * return (
255
- * <ChoiceButton
256
- * disabled={item.props.disabled}
257
- * onClick={() => {
258
- * afterSelectChoice(item)
259
- * }}
260
- * >
261
- * {item.text}
262
- * </ChoiceButton>
263
- * )
264
- * })}
265
- * </List>
266
- * ```
267
- */
268
- props: StorageObjectType;
269
- /**
270
- * More props added by the developer
271
- */
272
- devProps: Omit<ChoiceInterface$1, "text" | "label" | "type" | "oneTime" | "onlyHaveNoChoice" | "autoSelect" | "closeCurrentLabel" | "props">;
273
- /**
274
- * @param text Text to be displayed in the menu
275
- * @param options Options
276
- */
277
- constructor(text: ChoiceInterface$1["text"], options?: ChoiceMenuOptionCloseOptions);
278
- }
279
152
  /**
280
153
  * Function to create a new choice menu option that will close the menu.
281
154
  * @example
@@ -543,14 +416,6 @@ interface NarrationManagerInterface {
543
416
  */
544
417
  selectChoice<T extends {}>(item: StoredIndexedChoiceInterface, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
545
418
  /** Old Step Methods */
546
- /**
547
- * @deprecated Use Game.onEnd
548
- */
549
- onGameEnd: StepLabelType | undefined;
550
- /**
551
- * @deprecated Use Game.onError
552
- */
553
- onStepError: ((error: any, props: StepLabelPropsType) => void) | undefined;
554
419
  /**
555
420
  * Dialogue to be shown in the game
556
421
  */
@@ -586,7 +451,7 @@ interface NarrationManagerInterface {
586
451
  * ]
587
452
  * ```
588
453
  */
589
- set choiceMenuOptions(data: (ChoiceMenuOption<any> | ChoiceMenuOptionClose | StoredChoiceInterface)[] | undefined);
454
+ set choiceMenuOptions(data: StoredChoiceInterface[] | undefined);
590
455
  /**
591
456
  * If true, the next dialogue text will be added to the current dialogue text.
592
457
  */
@@ -782,10 +647,6 @@ type InputInfo = {
782
647
  declare const narration: NarrationManagerInterface;
783
648
 
784
649
  type narrationUtils_ChoiceInterface = ChoiceInterface;
785
- type narrationUtils_ChoiceMenuOption<T extends StorageObjectType, TLabel extends LabelAbstract<any, T> = LabelAbstract<any, T>> = ChoiceMenuOption<T, TLabel>;
786
- declare const narrationUtils_ChoiceMenuOption: typeof ChoiceMenuOption;
787
- type narrationUtils_ChoiceMenuOptionClose = ChoiceMenuOptionClose;
788
- declare const narrationUtils_ChoiceMenuOptionClose: typeof ChoiceMenuOptionClose;
789
650
  declare const narrationUtils_ChoiceOptionInterface: typeof ChoiceOptionInterface;
790
651
  declare const narrationUtils_Close: typeof Close;
791
652
  declare const narrationUtils_CloseChoiceOptionInterface: typeof CloseChoiceOptionInterface;
@@ -820,7 +681,7 @@ declare const narrationUtils_newChoiceOption: typeof newChoiceOption;
820
681
  declare const narrationUtils_newCloseChoiceOption: typeof newCloseChoiceOption;
821
682
  declare const narrationUtils_newLabel: typeof newLabel;
822
683
  declare namespace narrationUtils {
823
- export { type narrationUtils_ChoiceInterface as ChoiceInterface, narrationUtils_ChoiceMenuOption as ChoiceMenuOption, narrationUtils_ChoiceMenuOptionClose as ChoiceMenuOptionClose, narrationUtils_ChoiceOptionInterface as ChoiceOptionInterface, narrationUtils_Close as Close, narrationUtils_CloseChoiceOptionInterface as CloseChoiceOptionInterface, narrationUtils_CloseType as CloseType, narrationUtils_DialogueInterface as DialogueInterface, narrationUtils_HistoryChoiceMenuOption as HistoryChoiceMenuOption, narrationUtils_HistoryStep as HistoryStep, type narrationUtils_InputInfo as InputInfo, narrationUtils_Label as Label, narrationUtils_LabelAbstract as LabelAbstract, type narrationUtils_LabelProps as LabelProps, narrationUtils_LabelRunModeType as LabelRunModeType, type narrationUtils_LabelSteps as LabelSteps, narrationUtils_NarrationGameState as NarrationGameState, narrationUtils_NarrationHistory as NarrationHistory, type narrationUtils_NarrationManagerInterface as NarrationManagerInterface, narrationUtils_NarrationManagerStatic as NarrationManagerStatic, narrationUtils_OpenedLabel as OpenedLabel, narrationUtils_RegisteredLabels as RegisteredLabels, type narrationUtils_StepLabelProps as StepLabelProps, type narrationUtils_StepLabelPropsType as StepLabelPropsType, type narrationUtils_StepLabelResult as StepLabelResult, type narrationUtils_StepLabelResultType as StepLabelResultType, type narrationUtils_StepLabelType as StepLabelType, narrationUtils_StoredChoiceInterface as StoredChoiceInterface, narrationUtils_StoredIndexedChoiceInterface as StoredIndexedChoiceInterface, narrationUtils_narration as narration, narrationUtils_newChoiceOption as newChoiceOption, narrationUtils_newCloseChoiceOption as newCloseChoiceOption, narrationUtils_newLabel as newLabel };
684
+ export { type narrationUtils_ChoiceInterface as ChoiceInterface, narrationUtils_ChoiceOptionInterface as ChoiceOptionInterface, narrationUtils_Close as Close, narrationUtils_CloseChoiceOptionInterface as CloseChoiceOptionInterface, narrationUtils_CloseType as CloseType, narrationUtils_DialogueInterface as DialogueInterface, narrationUtils_HistoryChoiceMenuOption as HistoryChoiceMenuOption, narrationUtils_HistoryStep as HistoryStep, type narrationUtils_InputInfo as InputInfo, narrationUtils_Label as Label, narrationUtils_LabelAbstract as LabelAbstract, type narrationUtils_LabelProps as LabelProps, narrationUtils_LabelRunModeType as LabelRunModeType, type narrationUtils_LabelSteps as LabelSteps, narrationUtils_NarrationGameState as NarrationGameState, narrationUtils_NarrationHistory as NarrationHistory, type narrationUtils_NarrationManagerInterface as NarrationManagerInterface, narrationUtils_NarrationManagerStatic as NarrationManagerStatic, narrationUtils_OpenedLabel as OpenedLabel, narrationUtils_RegisteredLabels as RegisteredLabels, type narrationUtils_StepLabelProps as StepLabelProps, type narrationUtils_StepLabelPropsType as StepLabelPropsType, type narrationUtils_StepLabelResult as StepLabelResult, type narrationUtils_StepLabelResultType as StepLabelResultType, type narrationUtils_StepLabelType as StepLabelType, narrationUtils_StoredChoiceInterface as StoredChoiceInterface, narrationUtils_StoredIndexedChoiceInterface as StoredIndexedChoiceInterface, narrationUtils_narration as narration, narrationUtils_newChoiceOption as newChoiceOption, narrationUtils_newCloseChoiceOption as newCloseChoiceOption, narrationUtils_newLabel as newLabel };
824
685
  }
825
686
 
826
- export { ChoiceMenuOption as C, type InputInfo as I, LabelAbstract as L, type NarrationManagerInterface as N, RegisteredLabels as R, type StepLabelType as S, type StepLabelPropsType as a, narration as b, newChoiceOption as c, ChoiceMenuOptionClose as d, newCloseChoiceOption as e, Label as f, newLabel as g, type ChoiceInterface as h, type LabelProps as i, type StepLabelProps as j, type StepLabelResult as k, NarrationManagerStatic as l, type LabelSteps as m, narrationUtils as n, type StepLabelResultType as o };
687
+ export { type ChoiceInterface as C, type InputInfo as I, LabelAbstract as L, type NarrationManagerInterface as N, RegisteredLabels as R, type StepLabelType as S, type StepLabelPropsType as a, narration as b, newChoiceOption as c, newCloseChoiceOption as d, Label as e, newLabel as f, type LabelProps as g, type StepLabelProps as h, type StepLabelResult as i, NarrationManagerStatic as j, type LabelSteps as k, type StepLabelResultType as l, narrationUtils as n };