@engenty/wizards 0.9.2 → 0.9.5

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
 
@@ -317,6 +324,7 @@ declare const NOTES_EN: {
317
324
  readonly translationOff: "This wizard is only offered as it was written.";
318
325
  readonly translationPlaceholder: "The translation of “{text}” needs every placeholder in curly brackets the original has.";
319
326
  readonly wizardLimit: "This wizard has reached its limit for today. Try again tomorrow.";
327
+ readonly guestBudget: "This page has reached its limit for today. Try again tomorrow.";
320
328
  readonly confirmHuman: "Confirm that you’re a person.";
321
329
  readonly tooManyRuns: "You’ve started a lot of runs just now. Try again in an hour.";
322
330
  readonly clientRefused: "This app may not start runs here.";
@@ -427,6 +435,9 @@ declare const NOTES_EN: {
427
435
  readonly other: "You can have at most {count} spaces here.";
428
436
  };
429
437
  readonly twoEntriesSameKey: "Two entries have the same key.";
438
+ readonly pageSlugInvalid: "A page address holds lower-case letters a–z, digits and hyphens.";
439
+ readonly pageSlugTaken: "Another space of your team has this address.";
440
+ readonly pageTaken: "The page is already at “{space}”.";
430
441
  readonly notDeleteLastSpace: "You can’t delete the last space.";
431
442
  readonly notFound: "This doesn’t exist or was deleted.";
432
443
  readonly categoryNeedsName: "A category needs a name.";
@@ -1729,8 +1740,8 @@ export declare interface WizardInfo {
1729
1740
  /**
1730
1741
  * A theme's values as props for the runner's element: colours, fonts by family and the corner
1731
1742
  * radius as `--wizard-*` variables, how cards and headings look as data attributes, and of the
1732
- * effects only those the host turns on and the card can draw. A brand font is named by its
1733
- * family; the host loads it.
1743
+ * effects only those the host turns on and the card can draw. A brand font with a source names
1744
+ * the shipped font of its kind next, which shows where it does not load (`loadLookFonts`).
1734
1745
  */
1735
1746
  export declare function wizardLook(look: RunTheme, options?: WizardLookOptions): WizardLookProps;
1736
1747