@inkweave/core 1.0.0 → 1.1.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.
- package/dist/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +390 -382
- package/dist/index.js.map +1 -1
- package/dist/state/contents.d.ts +4 -0
- package/dist/types.d.ts +3 -0
- package/package.json +3 -2
package/dist/state/contents.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
type StoryContent = {
|
|
2
2
|
contents: string[];
|
|
3
|
+
refreshKey: number;
|
|
3
4
|
setContents: (contents: string[]) => void;
|
|
4
5
|
add: (content: string[]) => void;
|
|
5
6
|
clear: () => void;
|
|
7
|
+
refresh: () => void;
|
|
6
8
|
};
|
|
7
9
|
declare const _default: {
|
|
8
10
|
(): StoryContent;
|
|
@@ -10,9 +12,11 @@ declare const _default: {
|
|
|
10
12
|
} & import('zustand').StoreApi<StoryContent> & {
|
|
11
13
|
use: {
|
|
12
14
|
contents: () => string[];
|
|
15
|
+
refreshKey: () => number;
|
|
13
16
|
setContents: () => (contents: string[]) => void;
|
|
14
17
|
add: () => (content: string[]) => void;
|
|
15
18
|
clear: () => () => void;
|
|
19
|
+
refresh: () => () => void;
|
|
16
20
|
};
|
|
17
21
|
};
|
|
18
22
|
export default _default;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ErrorHandler as InkErrorHandler } from 'inkjs/engine/Error';
|
|
2
|
+
export type ErrorHandler = InkErrorHandler;
|
|
1
3
|
export declare const CHOICE_SEPARATOR = "\0ink-divider\0";
|
|
2
4
|
export declare const DEFAULT_STORY_OPTIONS: InkStoryOptions;
|
|
3
5
|
export interface FileHandler {
|
|
@@ -15,6 +17,7 @@ export interface InkStoryOptions {
|
|
|
15
17
|
title?: string;
|
|
16
18
|
debug?: boolean;
|
|
17
19
|
linedelay?: number;
|
|
20
|
+
errorHandler?: ErrorHandler;
|
|
18
21
|
fileHandler?: FileHandler;
|
|
19
22
|
[key: string]: unknown;
|
|
20
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkweave/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Core engine for InkWeave - ink story runtime with extension system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"build": "tsc --noEmit && vite build",
|
|
21
21
|
"typecheck": "tsc --noEmit",
|
|
22
22
|
"test": "bun test",
|
|
23
|
-
"test:watch": "bun test --watch"
|
|
23
|
+
"test:watch": "bun test --watch",
|
|
24
|
+
"publish:pkg": "NPM_CONFIG_TOKEN=$(pass show npm/token) bun publish --access public"
|
|
24
25
|
},
|
|
25
26
|
"keywords": [
|
|
26
27
|
"ink",
|