@engenty/wizards 0.9.1 → 0.9.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.
@@ -196,6 +196,13 @@ declare type ListShape = Named & {
196
196
  of: LeafShape | ObjectShape;
197
197
  };
198
198
 
199
+ /**
200
+ * Loads the fonts a theme names, as the wizard's own page does: the brand's from their source,
201
+ * the shipped ones from the runtime at `runtime`, and the shipped font of its kind where a brand
202
+ * font fails.
203
+ */
204
+ export declare function loadLookFonts(look: RunTheme, runtime: string): void;
205
+
199
206
  /** Reads the published wizards behind these tokens from a runtime; ones it cannot read are left out. */
200
207
  export declare function loadWizards(runtimeUrl: string, tokens: string[]): Promise<WizardInfo[]>;
201
208
 
@@ -333,6 +340,10 @@ declare const NOTES_EN: {
333
340
  readonly tryLater: "Try again later.";
334
341
  readonly recordingTooLarge: "The recording can be 10 MB at most.";
335
342
  readonly fileTooLarge: "Choose a file of {mb} MB or less.";
343
+ readonly uploadNotPicture: "This file isn’t a picture that can be read. Choose a PNG, JPEG, WebP or GIF.";
344
+ readonly uploadPictureTooLarge: "This picture is too large. Choose one of {mp} megapixels or less.";
345
+ readonly uploadNotItsType: "This file holds something other than its type says. Choose the file again.";
346
+ readonly uploadSvgNotUsable: "This SVG can’t be used. Save it again as a plain SVG, or choose a PNG.";
336
347
  readonly askClosed: "This question is no longer open.";
337
348
  readonly noBrowser: "The wizard has no browser open right now.";
338
349
  readonly notWaiting: "The wizard isn’t waiting for you right now.";
@@ -1725,8 +1736,8 @@ export declare interface WizardInfo {
1725
1736
  /**
1726
1737
  * A theme's values as props for the runner's element: colours, fonts by family and the corner
1727
1738
  * radius as `--wizard-*` variables, how cards and headings look as data attributes, and of the
1728
- * effects only those the host turns on and the card can draw. A brand font is named by its
1729
- * family; the host loads it.
1739
+ * effects only those the host turns on and the card can draw. A brand font with a source names
1740
+ * the shipped font of its kind next, which shows where it does not load (`loadLookFonts`).
1730
1741
  */
1731
1742
  export declare function wizardLook(look: RunTheme, options?: WizardLookOptions): WizardLookProps;
1732
1743