@cratis/event-models 0.195.0 → 0.196.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.
@@ -7,8 +7,8 @@ export interface TemplatePickerHandlers {
7
7
  onCopyToMine?: (template: ApplicableTemplate) => void;
8
8
  /** The user asked to look at a template before choosing it. Absent when the host cannot show one. */
9
9
  onPreview?: (template: ApplicableTemplate) => void;
10
- /** The user asked to browse the blueprint gallery, where a blueprint is added to the UI profile. Absent when the host has no gallery. */
11
- onBrowseGallery?: () => void;
10
+ /** The user asked to browse every template in the template browser, where a blueprint can also be added to the UI profile. Absent when the host has no browser. */
11
+ onBrowseAll?: () => void;
12
12
  /** The user asked for a new template made from what is there now. Absent when that is not offered. */
13
13
  onNewFromCurrent?: () => void;
14
14
  /** The user gave up the choice, so the level inherits again (or has no template). Absent when there is nothing to give up. */
@@ -18,8 +18,8 @@ export interface TemplatePickerLabels {
18
18
  preview: string;
19
19
  /** Shown when nothing applies at the target, or nothing matches the filter. */
20
20
  nothingApplies: string;
21
- /** The row at the end of the blueprints panel that opens the blueprint gallery. */
22
- browseGallery: string;
21
+ /** The footer row that opens the template browser. */
22
+ browseAll: string;
23
23
  /** What the control shows when no template is chosen. */
24
24
  noTemplate: string;
25
25
  /** The accessible name of the menu. */
@@ -13,7 +13,7 @@ export declare function isCurrentTemplate(template: ApplicableTemplate, current:
13
13
  * The user's own templates come first, directly, grouped by category with a check on the one in effect; the blueprints
14
14
  * are always one level deeper (`Blueprints ▸`, then the blueprint, then its templates grouped as
15
15
  * `Blueprint · Category`), and a blueprint with nothing applicable is not in the set at all, so it is never listed
16
- * (spec TPL2). The footer holds "New template from current…" and "Clear template". Nothing here decides what applies:
16
+ * (spec TPL2). The footer holds "Browse all…", "New template from current…" and "Clear template". Nothing here decides what applies:
17
17
  * a template that is not in the set is not shown, and one that is, is.
18
18
  *
19
19
  * @param set What applies at the target - Scene's `applicableTemplates`.
@@ -1,4 +1,4 @@
1
- import { i as b, n as v, r as k, t as g } from "./toTemplateSources-CgAMAN8N.js";
1
+ import { i as b, n as v, r as k, t as g } from "./toTemplateSources-B9ALGe3x.js";
2
2
  import { useMemo as y } from "react";
3
3
  import { applicableTemplates as S } from "@cratis/scene.engine";
4
4
  import { jsx as m } from "react/jsx-runtime";