@textadventures/squiffy-packager 6.0.1 → 7.0.0-beta.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.
@@ -6,5 +6,14 @@ export interface Package {
6
6
  export interface PackageOptions {
7
7
  createZip?: boolean;
8
8
  inlineHtml?: boolean;
9
+ /**
10
+ * Asset files used by the story (images, audio etc.), keyed by their path relative to the story,
11
+ * e.g. "cat.png" or "images/cat.png". They're added to the zip at those paths. With inlineHtml,
12
+ * they're embedded in index.html as data: URIs, which the runtime uses via its resolveAssetUrl option.
13
+ * They're not added to Package.files, as those are text files, and the caller already has the assets.
14
+ */
15
+ assets?: Record<string, Uint8Array>;
9
16
  }
17
+ export declare const getMimeType: (path: string) => string;
18
+ export declare const normaliseAssetPath: (path: string) => string;
10
19
  export declare const createPackage: (input: CompileSuccess, createZipOrOptions?: boolean | PackageOptions) => Promise<Package>;