@novely/core 0.46.1 → 0.46.3
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/index.d.ts +5 -1
- package/dist/index.global.js +14 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -999,6 +999,10 @@ declare const extendAction: <Part0 extends Record<string, (...args: any[]) => Va
|
|
|
999
999
|
* }, 100);
|
|
1000
1000
|
* ```
|
|
1001
1001
|
*/
|
|
1002
|
-
declare const asset:
|
|
1002
|
+
declare const asset: {
|
|
1003
|
+
(...variants: string[]): NovelyAsset;
|
|
1004
|
+
image(source: string): NovelyAsset;
|
|
1005
|
+
audio(source: string): NovelyAsset;
|
|
1006
|
+
};
|
|
1003
1007
|
|
|
1004
1008
|
export { type ActionChoiceChoice, type ActionChoiceChoiceObject, type ActionInputOnInputMeta, type ActionInputSetup, type ActionInputSetupCleanup, type ActionProxy, type AllowedContent, type AudioHandle, type BackgroundImage, type BaseTranslationStrings, type Character, type CharacterAssetSizes, type CharacterHandle, type CharactersData, type ChoiceCheckFunction, type ChoiceCheckFunctionProps, type ChoiceOnSelectFunction, type ChoiceOnSelectFunctionProps, type ChoiceParams, type ConditionCheckFunction, type ConditionParams, type Context, type CoreData, type CustomActionHandle, type CustomHandler, type CustomHandlerFunction, type CustomHandlerFunctionGetFn, type CustomHandlerFunctionParameters, type CustomHandlerGetResult, type CustomHandlerGetResultDataFunction, type CustomHandlerInfo, type Data, type DeepPartial, type DefaultActionProxy, EN, type Emotions, type FunctionParams, type FunctionableValue, type GetActionParameters, type InputHandler, JP, KK, type Lang, type NovelyAsset, type NovelyInit, type NovelyScreen, type NovelyStorage, type Path, type PluralType, type Pluralization, RU, type Renderer, type RendererInit, type RendererInitPreviewReturn, type Save, type Stack, type StackHolder, type State, type StateFunction, type StorageData, type StorageMeta, type Stored, type Story, type TextContent, type Thenable, type TranslationActions, type TypeEssentials, type TypewriterSpeed, type ValidAction, asset, extendAction, localStorageStorage, novely };
|
package/dist/index.global.js
CHANGED
|
@@ -1027,10 +1027,8 @@ var Novely = (() => {
|
|
|
1027
1027
|
stack[stack.length - 1] = value;
|
|
1028
1028
|
},
|
|
1029
1029
|
back() {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
ctx.meta.goingBack = true;
|
|
1033
|
-
}
|
|
1030
|
+
stack.previous = stack.length > 1 ? stack.pop() : this.value;
|
|
1031
|
+
ctx.meta.goingBack = true;
|
|
1034
1032
|
},
|
|
1035
1033
|
push(value) {
|
|
1036
1034
|
stack.push(value);
|
|
@@ -2716,6 +2714,18 @@ var Novely = (() => {
|
|
|
2716
2714
|
var asset = (...variants) => {
|
|
2717
2715
|
return assetPrivate(variants);
|
|
2718
2716
|
};
|
|
2717
|
+
asset.image = (source) => {
|
|
2718
|
+
return {
|
|
2719
|
+
type: "image",
|
|
2720
|
+
source
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
asset.audio = (source) => {
|
|
2724
|
+
return {
|
|
2725
|
+
type: "audio",
|
|
2726
|
+
source
|
|
2727
|
+
};
|
|
2728
|
+
};
|
|
2719
2729
|
return __toCommonJS(src_exports);
|
|
2720
2730
|
})();
|
|
2721
2731
|
//# sourceMappingURL=index.global.js.map
|