@textadventures/squiffy-packager 7.0.0-beta.5 → 7.0.0-beta.7
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/packager.d.ts +12 -1
- package/dist/packager.js +1486 -381
- package/dist/packager.js.map +1 -1
- package/package.json +4 -4
package/dist/packager.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompileSuccess } from 'squiffy-compiler';
|
|
1
|
+
import { CompileSuccess, PageStrings } from 'squiffy-compiler';
|
|
2
2
|
export interface Package {
|
|
3
3
|
files: Record<string, string>;
|
|
4
4
|
zip?: Uint8Array;
|
|
@@ -20,6 +20,17 @@ export interface PackageOptions {
|
|
|
20
20
|
* On unless this is false: the story's squiffy.json can turn it off with "backButton": false.
|
|
21
21
|
*/
|
|
22
22
|
backButton?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the page has a Save button, which opens the Saved games dialog, where the player can
|
|
25
|
+
* keep saved games and save them to files. On unless this is false: the story's squiffy.json
|
|
26
|
+
* can turn it off with "saveButton": false.
|
|
27
|
+
*/
|
|
28
|
+
saveButton?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The page's own text, such as the Restart button's tooltip, from the story's squiffy.json's
|
|
31
|
+
* "strings". Anything left out is in English.
|
|
32
|
+
*/
|
|
33
|
+
strings?: PageStrings;
|
|
23
34
|
}
|
|
24
35
|
export declare const getMimeType: (path: string) => string;
|
|
25
36
|
export declare const normaliseAssetPath: (path: string) => string;
|