@novely/core 0.39.0 → 0.40.0-next.1
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/README.md +9 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.global.js +206 -443
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +143 -161
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as micro_memoize from 'micro-memoize';
|
|
2
|
-
|
|
3
1
|
interface LocalStorageStorageSettings {
|
|
4
2
|
key: string;
|
|
5
3
|
}
|
|
@@ -329,6 +327,7 @@ type CharactersData<$Characters extends Record<string, Character<Lang>>> = {
|
|
|
329
327
|
emotions: Array<keyof $Characters[Character]['emotions']>;
|
|
330
328
|
};
|
|
331
329
|
};
|
|
330
|
+
type AssetsPreloading = 'lazy' | 'blocking' | 'automatic';
|
|
332
331
|
interface NovelyInit<$Language extends Lang, $Characters extends Record<string, Character<NoInfer<$Language>>>, $State extends State, $Data extends Data, $Actions extends Record<string, (...args: any[]) => ValidAction>> {
|
|
333
332
|
/**
|
|
334
333
|
* An object containing the characters in the game.
|
|
@@ -505,7 +504,7 @@ interface NovelyInit<$Language extends Lang, $Characters extends Record<string,
|
|
|
505
504
|
/**
|
|
506
505
|
* @default "lazy"
|
|
507
506
|
*/
|
|
508
|
-
preloadAssets?:
|
|
507
|
+
preloadAssets?: AssetsPreloading;
|
|
509
508
|
/**
|
|
510
509
|
* Fetching function
|
|
511
510
|
*/
|
|
@@ -937,6 +936,6 @@ declare const extendAction: <Part0 extends Record<string, (...args: any[]) => Va
|
|
|
937
936
|
* }, 100);
|
|
938
937
|
* ```
|
|
939
938
|
*/
|
|
940
|
-
declare const asset:
|
|
939
|
+
declare const asset: (...variants: string[]) => NovelyAsset;
|
|
941
940
|
|
|
942
941
|
export { 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 ChoiceParams, type ConditionParams, type Context, type CoreData, type CustomActionHandle, type CustomHandler, type CustomHandlerFunctionGetFn, type CustomHandlerFunctionParameters, type CustomHandlerGetResult, type CustomHandlerGetResultDataFunction, type Data, type DeepPartial, type DefaultActionProxy, EN, type Emotions, type FunctionParams, type FunctionableValue, type GetActionParameters, type InputHandler, JP, KK, type Lang, type NovelyInit, type NovelyScreen, type Path, type PluralType, type Pluralization, RU, type Renderer, type RendererInit, type RendererInitPreviewReturn, type Save, type Stack, type StackHolder, type State, type StateFunction, type Storage, type StorageData, type StorageMeta, type Stored, type Story, type TextContent, type Thenable, type TranslationActions, type TypeEssentials, type TypewriterSpeed, type ValidAction, asset, extendAction, localStorageStorage, novely };
|