@plitzi/sdk-authoring 0.39.0 → 0.39.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.
package/dist/index.d.ts CHANGED
@@ -775,8 +775,8 @@ export declare const AUTHORING_CODES: {
775
775
  };
776
776
  readonly 'repeated-shape': {
777
777
  readonly kind: "suggested";
778
- readonly means: "the same structure written again and again with different words — cards, rows, tiles; copies that bind different data, read their own template or render on the server are controls, not repeats";
779
- readonly fix: "a component with props (`components`, `component(id, { props })`), or one `list` when they are rows of data side by side — a few cards a person rewords on the canvas can stay cards";
778
+ readonly means: "the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own";
779
+ readonly fix: "a component with props (`components`, `component(id, { props })`) — a source a copy reads handed in as a bound `json` prop (`component(id, { bind: [{ to: 'items', source }] })`, read inside as `props.items`) — or one `list` when they are rows of data side by side; a few cards a person rewords on the canvas can stay cards";
780
780
  };
781
781
  readonly 'element-color-inherited': {
782
782
  readonly kind: "suggested";
@@ -1960,7 +1960,7 @@ export declare const AUTHORING_CODES: {
1960
1960
  };
1961
1961
  readonly 'state-key-list': {
1962
1962
  readonly kind: "refused";
1963
- readonly means: "`settings.transientState` / `paintedState` that is not a list of top-level state keys";
1963
+ readonly means: "`settings.transientState` / `paintedState` / `browserState` that is not a list of top-level state keys";
1964
1964
  readonly fix: "`transientState: ['demoStep']` — a dotted path names its top key";
1965
1965
  };
1966
1966
  readonly 'state-painted-and-transient': {
@@ -1978,6 +1978,11 @@ export declare const AUTHORING_CODES: {
1978
1978
  readonly means: "a `paintedState` key that `keptState` does not keep — the server draws with what is kept";
1979
1979
  readonly fix: "add it to `keptState`, or leave it out of `paintedState`";
1980
1980
  };
1981
+ readonly 'state-browser-not-kept': {
1982
+ readonly kind: "refused";
1983
+ readonly means: "a `browserState` key the space does not keep — transient, or not in `keptState`";
1984
+ readonly fix: "keep it, or leave it out of `browserState`";
1985
+ };
1981
1986
  readonly 'kept-state-without-keep-state': {
1982
1987
  readonly kind: "warned";
1983
1988
  readonly means: "`keptState` without `keepState` — nothing is kept in the first place";
@@ -1993,6 +1998,11 @@ export declare const AUTHORING_CODES: {
1993
1998
  readonly means: "`paintedState` without `keepState` — nothing is kept for the server to draw with";
1994
1999
  readonly fix: "`settings.keepState: true`, or remove `paintedState`";
1995
2000
  };
2001
+ readonly 'browser-state-without-keep-state': {
2002
+ readonly kind: "warned";
2003
+ readonly means: "`browserState` without `keepState` — nothing is kept in the first place";
2004
+ readonly fix: "`settings.keepState: true`, or remove `browserState`";
2005
+ };
1996
2006
  readonly 'visitor-roles': {
1997
2007
  readonly kind: "refused";
1998
2008
  readonly means: "`settings.visitorRoles` written in a shape the runtime does not read";
@@ -3572,12 +3582,14 @@ export declare interface E2eElement {
3572
3582
  y: number;
3573
3583
  };
3574
3584
  }): Promise<void>;
3585
+ /** `force`: pointed at where it is now, without Playwright's wait for it to hold still (`hoverElement`). */
3575
3586
  hover(options: {
3576
3587
  timeout: number;
3577
3588
  position?: {
3578
3589
  x: number;
3579
3590
  y: number;
3580
3591
  };
3592
+ force?: boolean;
3581
3593
  }): Promise<void>;
3582
3594
  fill(text: string, options: {
3583
3595
  timeout: number;
@@ -3890,9 +3902,10 @@ export declare const elementAttributeNames: {
3890
3902
  readonly dropdown: readonly ["backgroundDisabled", "closeOnClickBackground", "closeOnClickPopup", "containerLeftOffset", "containerTopOffset", "disabled", "openPopup", "popupPlacement", "popupWidth"];
3891
3903
  readonly dropdownPopup: readonly [];
3892
3904
  readonly embed: readonly ["allow", "loading", "referrerPolicy", "sandbox", "src", "title"];
3905
+ readonly focusGroup: readonly ["label", "subType"];
3893
3906
  readonly fontAwesome: readonly ["icon", "iconAnimation", "label", "size"];
3894
3907
  readonly form: readonly ["actionUrl", "errors", "managedByInteractions", "method", "noValidate", "values"];
3895
- readonly formControl: readonly ["autoComplete", "autoFocus", "defaultValue", "disabled", "formatMessage", "hideLabel", "label", "matches", "matchesMessage", "max", "maxLength", "maxLengthMessage", "maxMessage", "min", "minLength", "minLengthMessage", "minMessage", "name", "options", "pattern", "patternMessage", "placeholder", "previewError", "readOnly", "required", "requiredMessage", "step", "subType"];
3908
+ readonly formControl: readonly ["accept", "autoComplete", "autoFocus", "defaultValue", "disabled", "formatMessage", "hideLabel", "label", "matches", "matchesMessage", "max", "maxLength", "maxLengthMessage", "maxMessage", "min", "minLength", "minLengthMessage", "minMessage", "name", "options", "pattern", "patternMessage", "placeholder", "previewError", "readOnly", "required", "requiredMessage", "step", "subType"];
3896
3909
  readonly heading: readonly ["content", "subType"];
3897
3910
  readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "resize", "sizes", "src", "width"];
3898
3911
  readonly layoutContainer: readonly ["layout", "layoutContainer", "subType"];
@@ -5140,6 +5153,37 @@ declare const elementDeclarations: {
5140
5153
  acceptButtonLabelLoading?: string | undefined;
5141
5154
  rejectButtonLabel?: string | undefined;
5142
5155
  }>>;
5156
+ readonly FocusGroup: DeclaredElement< {
5157
+ readonly type: "focusGroup";
5158
+ readonly attributeValues: {
5159
+ readonly subType: readonly string[];
5160
+ };
5161
+ readonly content: {
5162
+ readonly attributes: {
5163
+ readonly subType: "div";
5164
+ };
5165
+ readonly definition: {
5166
+ readonly label: "Focus Group";
5167
+ readonly description: string;
5168
+ readonly items: [];
5169
+ };
5170
+ readonly market: {
5171
+ readonly category: "structure";
5172
+ readonly icon: "fa-solid fa-arrows-up-down";
5173
+ };
5174
+ readonly defaultStyle: {
5175
+ readonly style: {
5176
+ readonly base: {
5177
+ readonly default: {};
5178
+ };
5179
+ };
5180
+ readonly subTypes: {};
5181
+ };
5182
+ };
5183
+ }, Partial<{
5184
+ label?: string | undefined;
5185
+ subType?: "div" | "nav" | "section" | undefined;
5186
+ }>>;
5143
5187
  readonly Dropdown: DeclaredElement< {
5144
5188
  readonly type: "dropdown";
5145
5189
  readonly attributeValues: {
@@ -5471,7 +5515,7 @@ declare const elementDeclarations: {
5471
5515
  readonly type: "formControl";
5472
5516
  readonly contentAttributes: readonly ["label", "placeholder", "options", "requiredMessage", "minLengthMessage", "maxLengthMessage", "minMessage", "maxMessage", "formatMessage", "patternMessage", "matchesMessage"];
5473
5517
  readonly attributeValues: {
5474
- readonly subType: readonly string[];
5518
+ readonly subType: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
5475
5519
  };
5476
5520
  readonly triggers: {
5477
5521
  readonly onChange: {
@@ -5493,6 +5537,7 @@ declare const elementDeclarations: {
5493
5537
  readonly label: "Label";
5494
5538
  readonly hideLabel: false;
5495
5539
  readonly placeholder: "";
5540
+ readonly accept: "";
5496
5541
  readonly defaultValue: "";
5497
5542
  readonly autoComplete: true;
5498
5543
  readonly autoFocus: false;
@@ -6015,6 +6060,49 @@ declare const elementDeclarations: {
6015
6060
  };
6016
6061
  };
6017
6062
  };
6063
+ readonly file: {
6064
+ name: string;
6065
+ displayMode: "desktop";
6066
+ style: {
6067
+ label: {
6068
+ default: {
6069
+ 'margin-bottom': string;
6070
+ display: string;
6071
+ cursor: string;
6072
+ 'font-weight': string;
6073
+ 'font-size': string;
6074
+ 'line-height': string;
6075
+ color: string;
6076
+ 'user-select': string;
6077
+ };
6078
+ };
6079
+ requiredMark: {
6080
+ default: {
6081
+ color: string;
6082
+ 'margin-left': string;
6083
+ };
6084
+ };
6085
+ error: {
6086
+ default: {
6087
+ display: string;
6088
+ color: string;
6089
+ 'margin-top': string;
6090
+ };
6091
+ };
6092
+ icon?: {
6093
+ default: Record<string, string>;
6094
+ } | undefined;
6095
+ field?: {
6096
+ default: Record<string, string>;
6097
+ } | undefined;
6098
+ base: {
6099
+ default: {};
6100
+ };
6101
+ input: {
6102
+ default: Record<string, string>;
6103
+ };
6104
+ };
6105
+ };
6018
6106
  readonly textarea: {
6019
6107
  name: string;
6020
6108
  displayMode: "desktop";
@@ -8469,6 +8557,9 @@ export declare const emptyTemplateFiles: ({ name, dir }?: {
8469
8557
  dir?: string;
8470
8558
  }) => Record<string, string>;
8471
8559
 
8560
+ /** Run in the page: whether an animation that never ends moves the element — on it, inside it or around it. */
8561
+ export declare const endlesslyMovedInPage: (node: Element) => boolean;
8562
+
8472
8563
  declare type Environment = 'production' | 'staging' | 'development' | 'main';
8473
8564
 
8474
8565
  /**
@@ -8713,6 +8804,17 @@ export declare const FOCUS_CALLBACKS: {
8713
8804
  };
8714
8805
  };
8715
8806
 
8807
+ export declare const focusGroup: {
8808
+ (children: ElementSpec[], props?: ElementProps<Partial<{
8809
+ label?: string | undefined;
8810
+ subType?: "div" | "nav" | "section" | undefined;
8811
+ }>> | undefined): ElementSpec;
8812
+ (props?: ElementProps<Partial<{
8813
+ label?: string | undefined;
8814
+ subType?: "div" | "nav" | "section" | undefined;
8815
+ }>> | undefined): ElementSpec;
8816
+ };
8817
+
8716
8818
  export declare const fontAwesome: {
8717
8819
  (children: ElementSpec[], props?: ElementProps<Partial<{
8718
8820
  size?: string | undefined;
@@ -8783,6 +8885,12 @@ export declare const form: {
8783
8885
  }>> | undefined): ElementSpec;
8784
8886
  };
8785
8887
 
8888
+ /**
8889
+ * Every kind of field a `formControl` is, as its `subType` — the one list: the component's props, the field-value HOC,
8890
+ * the builder's settings and the declaration authoring reads all take their type from here.
8891
+ */
8892
+ declare const FORM_CONTROL_SUBTYPES: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
8893
+
8786
8894
  export declare const formControl: {
8787
8895
  (children: ElementSpec[], props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
8788
8896
  (props?: ElementProps< FormControlAttributes> | undefined): ElementSpec;
@@ -8798,13 +8906,7 @@ declare type FormControlAttributes = AuthorableAttributes<FormControlProps, 'val
8798
8906
  declare type FormControlProps = {
8799
8907
  ref: RefObject<HTMLElement>;
8800
8908
  className: string;
8801
- subType: 'text' | 'number' | 'email' | 'password'
8802
- /** A search box: the browser draws its clear button, and a phone shows its search key. */
8803
- | 'search' | 'url'
8804
- /** A phone number: a phone shows its dial pad. */
8805
- | 'tel' | 'date' | 'time' | 'checkbox' | 'switch' | 'select' | 'textarea' | 'hidden'
8806
- /** The browser's own colour picker: its value is `#rrggbb`. */
8807
- | 'color';
8909
+ subType: FormControlSubType;
8808
8910
  name: string;
8809
8911
  label: string;
8810
8912
  /**
@@ -8814,6 +8916,8 @@ declare type FormControlProps = {
8814
8916
  */
8815
8917
  hideLabel: boolean;
8816
8918
  placeholder: string;
8919
+ /** A `file` field's offer, as the browser reads `accept`: `image/png,image/jpeg`, `.pdf`. `''` for any file. */
8920
+ accept: string;
8817
8921
  autoComplete: boolean;
8818
8922
  /**
8819
8923
  * Takes the focus as it appears — a search box opened by a shortcut is typed into at once. With the control's
@@ -8853,7 +8957,8 @@ declare type FormControlProps = {
8853
8957
  matches: string;
8854
8958
  matchesMessage: string;
8855
8959
  readOnly: boolean;
8856
- value: string;
8960
+ /** Text for every type but `file`, whose value is the `File` picked. */
8961
+ value: string | File;
8857
8962
  error: string;
8858
8963
  /**
8859
8964
  * Supplied by `withFieldValue`, with or without a form around the control.
@@ -8865,6 +8970,8 @@ declare type FormControlProps = {
8865
8970
  handleValidate?: () => void;
8866
8971
  };
8867
8972
 
8973
+ declare type FormControlSubType = (typeof FORM_CONTROL_SUBTYPES)[number];
8974
+
8868
8975
  /** The built-in element callback for an action, or undefined when the action is not a known built-in (an
8869
8976
  * element-type-specific/plugin callback whose schema is not knowable here). */
8870
8977
  export declare const getElementCallback: (action: string) => BuiltinElementCallback | undefined;
@@ -8880,10 +8987,15 @@ export declare const getTransformer: (action: string) => BuiltinTransformer | un
8880
8987
  export declare const getUtility: (action: string) => BuiltinUtility | undefined;
8881
8988
 
8882
8989
  /**
8883
- * Gives `text` to a field that is not typed into — a select's option chosen, a date or a range set — and says it did;
8884
- * `false` for a field a visitor types in, left to the caller.
8990
+ * Gives `text` to a field that is not typed into — a select's option chosen, a date or a range set, a file field the
8991
+ * file `text` names (`sampleFile`) — and says it did: `given`, or why it could not; `undefined` for a field a visitor
8992
+ * types in, left to the caller.
8885
8993
  */
8886
- export declare const giveValue: (page: Pick<E2ePage, "evaluate" | "locator">, selector: string, text: string, copy?: Copy) => Promise<boolean>;
8994
+ export declare const giveValue: (page: Pick<E2ePage, "evaluate" | "locator">, selector: string, text: string, copy?: Copy) => Promise<{
8995
+ given: true;
8996
+ } | {
8997
+ problem: string;
8998
+ } | undefined>;
8887
8999
 
8888
9000
  /**
8889
9001
  * The builder of a global callback not named after its action. Apart from {@link BUILDER_NAMES} because that table is
@@ -8956,6 +9068,19 @@ export declare type HostedFont = FontBase & {
8956
9068
  })[];
8957
9069
  };
8958
9070
 
9071
+ /**
9072
+ * The pointer put over an element, as a visitor's is. Playwright first waits for it to hold still, which one an endless
9073
+ * animation moves — a pulse ring on it, a marquee it rides in — never does: a run's hover of a map's region timed out
9074
+ * "still moving" every time. Such an element is pointed at where it is now; whatever else keeps a hover off it is said.
9075
+ */
9076
+ export declare const hoverElement: (element: Pick<E2eElement, "hover" | "evaluate">, options: {
9077
+ timeout: number;
9078
+ position?: {
9079
+ x: number;
9080
+ y: number;
9081
+ };
9082
+ }) => Promise<void>;
9083
+
8959
9084
  /** How long a space's page may take to take presses after it loads: a dev server compiles a page on its first request. */
8960
9085
  export declare const HYDRATION_MS = 30000;
8961
9086
 
@@ -11722,6 +11847,13 @@ export declare type Schema = {
11722
11847
  * `keepState`; a key cannot be both painted and transient. Top-level keys, as `setState` writes them.
11723
11848
  */
11724
11849
  paintedState?: string[];
11850
+ /**
11851
+ * Kept keys of `runtime.state` that are the browser's rather than whoever is signed in — the cookie consent, a choice
11852
+ * made of the browser itself: kept in an entry of their own, and not taken away by signing in, out, or as somebody
11853
+ * else, which forgets the rest of what the previous owner kept. Needs `keepState`; a key cannot be both the browser's
11854
+ * and transient. Top-level keys, as `setState` writes them.
11855
+ */
11856
+ browserState?: string[];
11725
11857
  /**
11726
11858
  * The space's `/robots.txt`, as search engines read it: what they may crawl, and where its sitemap is. Left out, the
11727
11859
  * server answers that everything may be — `User-agent: *` then `Allow: /`. A page kept out of search says it on the
@@ -13784,11 +13916,12 @@ export declare const validateSpace: (space: SpaceDocuments, options?: SpaceValid
13784
13916
 
13785
13917
  /**
13786
13918
  * Runs in the page: the field a value is given to rather than typed in — a select, chosen; a date, a time, a colour or a
13787
- * range, set — the element itself or the one field of that kind inside it (a form control wraps its own). Serialised.
13919
+ * range, set; a file field, given a file — the element itself or the one field of that kind inside it (a form control
13920
+ * wraps its own). Serialised.
13788
13921
  */
13789
13922
  export declare const valueFieldIn: (selector: string) => {
13790
13923
  selector: string;
13791
- how: "select" | "value";
13924
+ how: "select" | "value" | "file";
13792
13925
  } | undefined;
13793
13926
 
13794
13927
  /**
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as readDevToolsInPage, $a as form, $i as onDialogReject, $n as toBlocks, $o as isSuggestionCode, $r as authLogin, $t as journeyStartWarnings, A as pressShortcut, Aa as scrollTo, Ai as applyBuiltinCallback, An as settle, Ao as GLOBAL_SOURCES, As as i$1, At as actionToSource, B as alignPictures, Ba as blockJsx, Bi as closeModal, Bn as classNames, Bo as scopedHint, Br as selectorFor, Bs as o$1, Bt as suggestClassOverrides, C as unquoted, Ca as openDialog, Ci as flowStepIds, Cn as HYDRATION_MS, Co as declaresAttribute, Cs as e, Ct as searchWords, D as readSpaceTests, Da as resetForm, Di as whenSucceeded, Dn as locateTarget, Do as element, Ds as t$2, Dt as specFromSpace, E as e2eStepProblems, Ea as reloadApi, Ei as whenFailed, En as locateField, Eo as defineElement, Es as r$1, Et as specToSource, F as compareTexts, Fa as withPluginCatalogs, Fi as carouselNext, Fn as tw, Fo as boundAttribute, Fr as slugify, Fs as r$4, Ft as transformerCatalog, G as loadImages, Ga as chart, Gi as onApiError, Gn as modifierClassName, Go as actionSource, Gr as taskAction, Gt as familyOf, H as diffPictures, Ha as carousel, Hi as declaredTrigger, Hn as isClassModifier, Ho as variantFrom, Hr as flagSpecOf, Ht as PAGE_SPEC_FIELDS, I as pageTexts, Ia as d, Ii as carouselPause, In as column, Io as groupBindings, Ir as buildHandles, Is as s$1, It as assertSnippetValid, J as inspectPage, Ja as dialogContainer, Ji as onChange, Jn as BREAKPOINTS, Jo as closest, Jr as applyUtility, Jt as withNotificationsCss, K as unrollPage, Ka as container, Ki as onApiSuccess, Kn as splitClassList, Ko as source, Kt as pageFamily, L as PAGE_DECORATION_LIMIT, La as i, Li as carouselPlay, Ln as grid, Lo as hasVisibilityBinding, Lr as instanceSelectorFor, Ls as t, Lt as assertSpaceValid, M as inspectRenders, Ma as toggleElement, Mi as announceOn, Mn as targetOf, Mo as activeWhen, Ms as s, Mt as BUILTIN_TRANSFORMERS, N as summariseRenders, Na as updateElement, Ni as cancelApi, Nn as tokens, No as authorBinding, Ns as c$1, Nt as getTransformer, O as singlePageSpace, Oa as scrollBy, Oi as whileRunning, On as pressFailure, Oo as inferredLinkMode, Os as a, Ot as compareSpaces, P as PAGE_TEXT_LIMIT, Pa as elementsFromManifest, Pi as carouselGoTo, Pn as createTw, Po as bindTemplate, Pr as digest, Ps as n$2, Pt as suggestTransformer, Q as readDevTools, Qa as fontAwesome, Qi as onDialogOpen, Qn as sameBlocks, Qo as authoringCodeEntry, Qr as appendState, Qt as e2eTestProblems, R as compareDecorations, Ra as apiContainer, Ri as carouselPrevious, Rn as row, Ro as hiddenWhen, Rr as locate, Rs as a$2, Rt as suggestSpace, S as stepLines, Sa as onView, Si as authorFlows, Sn as FIELD, So as component, Ss as elementAttributeNames, St as searchScore, T as unit, Ta as publishOn, Ti as when, Tn as fieldsOf, To as defaultLabel, Ts as n$3, Tt as SPACE_FIELDS, U as pageRegions, Ua as carouselTrack, Ui as focus, Un as isClassRef, Uo as visibleWhen, Ur as authoringCodesTable, Ut as SpaceRefusedError, V as comparePictures, Va as button, Vi as declaredCallback, Vn as classRefs, Vo as toBindingSpecs, Vr as flagGateOf, Vt as unusedDeclarations, W as profilePictures, Wa as channel, Wi as on, Wn as isStyleDeclaration, Wo as withVisibility, Wr as defineAction, Wt as refusalOf, X as onScreenIfChosen, Xa as dropdownPopup, Xi as onDialogAccept, Xn as css, Xo as AUTHORING_CODES, Xr as SET_STATE_TYPES, Xt as FIXABLE_CODES, Y as onScreen, Ya as dropdown, Yi as onClick, Yn as STYLE_STATES, Yo as scope, Yr as getUtility, Yt as navOf, Z as failedFlowText, Za as embed, Zi as onDialogClose, Zn as isRuleSetSpec, Zo as AuthoringError, Zr as addNotification, Zt as unitTestProblems, _ as e2eStepText, _a as onPageLoad, _i as toggleInState, _n as dragElement, _o as tabContainerHeader, _s as r$3, _t as explain, a as locateClasses, aa as onInterval, ai as copyToClipboard, an as playE2eStep, ao as listItem, ar as shorthandLonghands, as as elementLeafTypes, at as catalogTemplateFiles, b as parseE2eStep, ba as onSubmit, bi as webHook, bn as shownCopy, bo as themeToggle, bs as t$1, bt as explainSearch, c as validateSnippet, ca as onKey, ci as hostAction, cn as unitReportText, co as nodeHtml, cr as cssNumberValue, cs as elementPublishes, ct as space$1, d as e2eResultText, da as onMessage, di as navigate, dn as EDGES, do as plitziSdk, dr as isCssProperty, ds as elementTriggers, dt as importSlug, ea as onFlowEnd, ei as authLogout, en as testAccountWarnings, eo as formControl, er as toResponsive, es as elementAncestorTypes, et as dataIssues, f as journeyAccount, fa as onModalClose, fi as removeState, fn as parseRelation, fo as reference, fr as isCustomProperty, fs as elementTypeNames, ft as importedFiles, g as durationMs, ga as onPageChange, gi as stepState, gn as answered, go as tabContainerBody, gs as n, gt as GLOBAL_CALLBACK_BUILDERS, h as MAX_WAIT_FOR_MS, ha as onMouseLeave, hi as setState, hn as sidePx, ho as tabContainer, ht as EXPLAIN_KINDS, i as lintSpace, ia as onHover, ii as clearState, in as isExpectation, io as list, ir as expandShorthandTraced, is as elementDefaultAttributes, it as blankTemplateFiles, j as shortcutKey, ja as setFieldValue, ji as getGlobalCallback, jn as targetId, jo as activeOn, js as o, jt as withNamedIds, k as withElement, ka as scrollIntoView, ki as BUILTIN_GLOBAL_CALLBACKS, kn as pressOnce, ko as COMPONENT_SOURCES, ks as c, kt as actionSpecFromEntry, l as validateSpace, la as onLeave, li as invalidateQueries, ln as resolveElement, lo as pagination, lr as cssProperties, ls as elementSlots, lt as space, m as E2E_STEP_USAGE, ma as onMouseEnter, mi as runServerActionOrNotify, mn as relationHolds, mo as svg, mr as suggestCssProperty, ms as typeTriggerDefinitions, mt as BUILDER_NAMES, n as authorSpace, na as onFlowProgress, ni as authRefreshDetails, nn as pageAt, no as image, nr as expandShorthand, ns as elementCallbacks, nt as CATALOG_TEMPLATE_IDENTITY, o as locateElements, oa as onInvalid, oi as cycleState, on as runUnitTest, oo as markdown, or as ambiguousShorthands, os as elementMarks, ot as emptyTemplateFiles, p as runE2eTest, pa as onModalOpen, pi as runServerAction, pn as relationElements, po as richText, pr as replacedCssProperty, ps as typeCallbackDefinitions, pt as importProbe, q as inspectDocument, qa as custom, qi as onBlur, qn as styles, qo as twig, qr as BUILTIN_UTILITIES, qt as notificationsCss, r as fixSpace, ra as onFocus, ri as cancelServerAction, rn as bridge, ro as link, rr as expandShorthandPatch, rs as elementCatalog, rt as blankSpace, s as planFixes, sa as onJoin, si as delay, sn as runUnitTests, so as modalContainer, sr as fontUnread, ss as elementPartTypes, st as toPortableSource, t as authorSnippet, ta as onFlowError, ti as authLogoutEverywhere, tn as audienceAt, to as heading, tr as cssShorthands, ts as elementAttributeValues, tt as answerAction, u as compactSvg, ua as onLoad, ui as moveState, un as openPage, uo as paragraph, ur as cssPropertyName, us as elementSourceTypes, ut as darkScheme, v as isE2eStepWord, va as onPointerDown, vi as toggleState, vn as giveValue, vo as tabContainerItem, vs as n$1, vt as explainKindOf, w as e2e, wa as openModal, wi as named, wn as awaitHydration, wo as defaultAttributes, ws as i$2, wt as ELEMENT_FIELDS, x as parseE2eSteps, xa as onThemeChange, xi as authorFlow, xn as valueFieldIn, xo as video, xt as explanationText, y as leadingTarget, ya as onScroll, yi as twigTemplate, yn as hiddenAtWidth, yo as text, ys as r, yt as explainList, z as pageDecorations, za as blockHtml, zi as closeDialog, zn as className, zo as resolveSource, zr as pathForSlug, zs as i$3, zt as withoutQuieted } from "./index-src.js";
1
+ import { $ as readDevToolsInPage, $a as embed, $i as onDialogClose, $n as isRuleSetSpec, $o as AUTHORING_CODES, $r as addNotification, $t as journeyStartWarnings, A as pressShortcut, Aa as scrollBy, Ai as whileRunning, An as pressFailure, Ao as element, As as t$2, At as actionToSource, B as alignPictures, Ba as apiContainer, Bi as carouselPrevious, Bn as row, Bo as hasVisibilityBinding, Br as locate, Bs as t, Bt as suggestClassOverrides, C as unquoted, Ca as onThemeChange, Ci as authorFlow, Cn as HYDRATION_MS, Co as themeToggle, Cs as t$1, Ct as searchWords, D as readSpaceTests, Da as publishOn, Di as when, Dn as hoverElement, Do as defaultAttributes, Ds as i$2, Dt as specFromSpace, E as e2eStepProblems, Ea as openModal, Ei as named, En as fieldsOf, Eo as declaresAttribute, Es as e, Et as specToSource, F as compareTexts, Fa as updateElement, Fi as cancelApi, Fn as tokens, Fo as activeWhen, Fs as s, Ft as transformerCatalog, G as loadImages, Ga as carouselTrack, Gi as focus, Gn as isClassRef, Go as variantFrom, Gr as authoringCodesTable, Gt as familyOf, H as diffPictures, Ha as blockJsx, Hi as closeModal, Hn as classNames, Ho as resolveSource, Hr as selectorFor, Hs as i$3, Ht as PAGE_SPEC_FIELDS, I as pageTexts, Ia as elementsFromManifest, Ii as carouselGoTo, In as createTw, Io as authorBinding, Ir as digest, Is as c$1, It as assertSnippetValid, J as inspectPage, Ja as container, Ji as onApiSuccess, Jn as splitClassList, Jo as actionSource, Jt as withNotificationsCss, K as unrollPage, Ka as channel, Ki as on, Kn as isStyleDeclaration, Ko as visibleWhen, Kr as defineAction, Kt as pageFamily, L as PAGE_DECORATION_LIMIT, La as withPluginCatalogs, Li as carouselNext, Ln as tw, Lo as bindTemplate, Lr as slugify, Ls as n$2, Lt as assertSpaceValid, M as inspectRenders, Ma as scrollTo, Mi as applyBuiltinCallback, Mn as settle, Mo as COMPONENT_SOURCES, Ms as c, Mt as BUILTIN_TRANSFORMERS, N as summariseRenders, Na as setFieldValue, Ni as getGlobalCallback, Nn as targetId, No as GLOBAL_SOURCES, Ns as i$1, Nt as getTransformer, O as singlePageSpace, Oa as reloadApi, Oi as whenFailed, On as locateField, Oo as defaultLabel, Os as n$3, Ot as compareSpaces, P as PAGE_TEXT_LIMIT, Pa as toggleElement, Pi as announceOn, Pn as targetOf, Po as activeOn, Ps as o, Pt as suggestTransformer, Q as readDevTools, Qa as dropdownPopup, Qi as onDialogAccept, Qn as css, Qo as scope, Qr as SET_STATE_TYPES, Qt as e2eTestProblems, R as compareDecorations, Ra as d, Ri as carouselPause, Rn as column, Ro as boundAttribute, Rr as buildHandles, Rs as r$4, Rt as suggestSpace, S as stepLines, Sa as onSubmit, Si as webHook, Sn as FIELD, So as text, Ss as r, St as searchScore, T as unit, Ta as openDialog, Ti as flowStepIds, Tn as endlesslyMovedInPage, To as component, Ts as elementAttributeNames, Tt as SPACE_FIELDS, U as pageRegions, Ua as button, Ui as declaredCallback, Un as classRefs, Uo as scopedHint, Ur as flagGateOf, Us as o$1, Ut as SpaceRefusedError, V as comparePictures, Va as blockHtml, Vi as closeDialog, Vn as className, Vo as hiddenWhen, Vr as pathForSlug, Vs as a$2, Vt as unusedDeclarations, W as profilePictures, Wa as carousel, Wi as declaredTrigger, Wn as isClassModifier, Wo as toBindingSpecs, Wr as flagSpecOf, Wt as refusalOf, X as onScreenIfChosen, Xa as dialogContainer, Xi as onChange, Xn as BREAKPOINTS, Xo as twig, Xr as applyUtility, Xt as FIXABLE_CODES, Y as onScreen, Ya as custom, Yi as onBlur, Yn as styles, Yo as source, Yr as BUILTIN_UTILITIES, Yt as navOf, Z as failedFlowText, Za as dropdown, Zi as onClick, Zn as STYLE_STATES, Zo as closest, Zr as getUtility, Zt as unitTestProblems, _ as e2eStepText, _a as onMouseLeave, _i as setState, _n as dragElement, _o as svg, _s as typeTriggerDefinitions, _t as explain, a as locateClasses, aa as onFocus, ai as cancelServerAction, an as playE2eStep, ao as image, ar as expandShorthandPatch, as as elementCallbacks, at as catalogTemplateFiles, b as parseE2eStep, ba as onPointerDown, bi as toggleState, bn as shownCopy, bo as tabContainerHeader, bs as r$3, bt as explainSearch, c as validateSnippet, ca as onInvalid, ci as cycleState, cn as unitReportText, co as listItem, cr as ambiguousShorthands, cs as elementLeafTypes, ct as space$1, d as e2eResultText, da as onLeave, di as invalidateQueries, dn as EDGES, do as nodeHtml, dr as cssProperties, ds as elementPublishes, dt as importSlug, ea as onDialogOpen, ei as appendState, en as testAccountWarnings, eo as focusGroup, er as sameBlocks, es as AuthoringError, et as dataIssues, f as journeyAccount, fa as onLoad, fi as moveState, fn as parseRelation, fo as pagination, fr as cssPropertyName, fs as elementSlots, ft as importedFiles, g as durationMs, ga as onMouseEnter, gi as runServerActionOrNotify, gn as answered, go as richText, gr as suggestCssProperty, gs as typeCallbackDefinitions, gt as GLOBAL_CALLBACK_BUILDERS, h as MAX_WAIT_FOR_MS, ha as onModalOpen, hi as runServerAction, hn as sidePx, ho as reference, hr as replacedCssProperty, hs as elementTypeNames, ht as EXPLAIN_KINDS, i as lintSpace, ia as onFlowProgress, ii as authRefreshDetails, in as isExpectation, io as heading, ir as expandShorthand, is as elementAttributeValues, it as blankTemplateFiles, j as shortcutKey, ja as scrollIntoView, ji as BUILTIN_GLOBAL_CALLBACKS, jn as pressOnce, jo as inferredLinkMode, js as a, jt as withNamedIds, k as withElement, ka as resetForm, ki as whenSucceeded, kn as locateTarget, ko as defineElement, ks as r$1, kt as actionSpecFromEntry, l as validateSpace, la as onJoin, li as delay, ln as resolveElement, lo as markdown, lr as fontUnread, ls as elementMarks, lt as space, m as E2E_STEP_USAGE, ma as onModalClose, mi as removeState, mn as relationHolds, mo as plitziSdk, mr as isCustomProperty, ms as elementTriggers, mt as BUILDER_NAMES, n as authorSpace, na as onFlowEnd, ni as authLogout, nn as pageAt, no as form, nr as toResponsive, ns as isSuggestionCode, nt as CATALOG_TEMPLATE_IDENTITY, o as locateElements, oa as onHover, oi as clearState, on as runUnitTest, oo as link, or as expandShorthandTraced, os as elementCatalog, ot as emptyTemplateFiles, p as runE2eTest, pa as onMessage, pi as navigate, pn as relationElements, po as paragraph, pr as isCssProperty, ps as elementSourceTypes, pt as importProbe, q as inspectDocument, qa as chart, qi as onApiError, qn as modifierClassName, qo as withVisibility, qr as taskAction, qt as notificationsCss, r as fixSpace, ra as onFlowError, ri as authLogoutEverywhere, rn as bridge, ro as formControl, rr as cssShorthands, rs as elementAncestorTypes, rt as blankSpace, s as planFixes, sa as onInterval, si as copyToClipboard, sn as runUnitTests, so as list, sr as shorthandLonghands, ss as elementDefaultAttributes, st as toPortableSource, t as authorSnippet, ta as onDialogReject, ti as authLogin, tn as audienceAt, to as fontAwesome, tr as toBlocks, ts as authoringCodeEntry, tt as answerAction, u as compactSvg, ua as onKey, ui as hostAction, un as openPage, uo as modalContainer, ur as cssNumberValue, us as elementPartTypes, ut as darkScheme, v as isE2eStepWord, va as onPageChange, vi as stepState, vn as giveValue, vo as tabContainer, vt as explainKindOf, w as e2e, wa as onView, wi as authorFlows, wn as awaitHydration, wo as video, wt as ELEMENT_FIELDS, x as parseE2eSteps, xa as onScroll, xi as twigTemplate, xn as valueFieldIn, xo as tabContainerItem, xs as n$1, xt as explanationText, y as leadingTarget, ya as onPageLoad, yi as toggleInState, yn as hiddenAtWidth, yo as tabContainerBody, ys as n, yt as explainList, z as pageDecorations, za as i, zi as carouselPlay, zn as grid, zo as groupBindings, zr as instanceSelectorFor, zs as s$1, zt as withoutQuieted } from "./index-src.js";
2
2
  import { n as e$1, r as r$2, t as a$1 } from "./index-declare.js";
3
- export { AUTHORING_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
3
+ export { AUTHORING_CODES, AuthoringError, BREAKPOINTS, BUILDER_NAMES, o as BUILTIN_ELEMENT_CALLBACKS, BUILTIN_GLOBAL_CALLBACKS, t as BUILTIN_PARAM_TYPES, BUILTIN_TRANSFORMERS, BUILTIN_UTILITIES, CATALOG_TEMPLATE_IDENTITY, COMPONENT_SOURCES, n as DOCUMENT_SCROLLS, E2E_STEP_USAGE, EDGES, ELEMENT_FIELDS, EXPLAIN_KINDS, FIELD, FIXABLE_CODES, a as FOCUS_CALLBACKS, GLOBAL_CALLBACK_BUILDERS, GLOBAL_SOURCES, HYDRATION_MS, MAX_WAIT_FOR_MS, t$1 as MOTION_ENTERS, r as MOTION_LOOPS, n$1 as MOTION_TRIGGERS, i as NOTIFICATIONS_FIELDS, t$2 as NOTIFICATION_APPEARANCES, r$1 as NOTIFICATION_DEFAULTS, e as NOTIFICATION_PLACEMENTS, PAGE_DECORATION_LIMIT, PAGE_SPEC_FIELDS, PAGE_TEXT_LIMIT, i$1 as SCROLL_CALLBACKS, SET_STATE_TYPES, SPACE_FIELDS, STYLE_STATES, SpaceRefusedError, actionSource, actionSpecFromEntry, actionToSource, activeOn, activeWhen, addNotification, alignPictures, ambiguousShorthands, announceOn, answerAction, answered, apiContainer, appendState, applyBuiltinCallback, c as applyElementCallback, applyUtility, assertSnippetValid, assertSpaceValid, audienceAt, authLogin, authLogout, authLogoutEverywhere, authRefreshDetails, authorBinding, authorFlow, authorFlows, authorSnippet, authorSpace, authoringCodeEntry, authoringCodesTable, awaitHydration, bindTemplate, blankSpace, space as blankSpaceSpec, blankTemplateFiles, blockHtml, blockJsx, boundAttribute, bridge, buildHandles, button, cancelApi, cancelServerAction, carousel, carouselGoTo, carouselNext, carouselPause, carouselPlay, carouselPrevious, carouselTrack, catalogTemplateFiles, channel, chart, className, classNames, classRefs, clearState, closeDialog, closeModal, closest, column, compactSvg, compareDecorations, comparePictures, compareSpaces, compareTexts, component, container, copyToClipboard, createTw, css, cssNumberValue, cssProperties, cssPropertyName, cssShorthands, custom, cycleState, darkScheme, dataIssues, declaredCallback, declaredTrigger, declaresAttribute, defaultAttributes, defaultLabel, defineAction, defineElement, a$1 as definePlugin, delay, dialogContainer, diffPictures, digest, dragElement, dropdown, dropdownPopup, durationMs, e2e, e2eResultText, e2eStepProblems, e2eStepText, e2eTestProblems, element, elementAncestorTypes, elementAttributeNames, elementAttributeValues, elementCallbacks, elementCatalog, r$2 as elementDeclaration, elementDefaultAttributes, elementLeafTypes, elementMarks, elementPartTypes, elementPublishes, elementSlots, elementSourceTypes, elementTriggers, elementTypeNames, elementsFromManifest, embed, space$1 as emptySpaceSpec, emptyTemplateFiles, endlesslyMovedInPage, expandShorthand, expandShorthandPatch, expandShorthandTraced, explain, explainKindOf, explainList, explainSearch, explanationText, failedFlowText, familyOf, fieldsOf, fixSpace, flagGateOf, flagSpecOf, flowStepIds, focus, focusGroup, fontAwesome, fontUnread, form, formControl, s as getElementCallback, getGlobalCallback, getTransformer, getUtility, giveValue, grid, groupBindings, hasVisibilityBinding, heading, hiddenAtWidth, n$2 as hiddenParams, hiddenWhen, hostAction, hoverElement, image, importProbe, importSlug, importedFiles, inferredLinkMode, inspectDocument, inspectPage, inspectRenders, instanceSelectorFor, s$1 as invalidParams, invalidateQueries, isClassModifier, isClassRef, isCssProperty, isCustomProperty, r$3 as isDocumentScroll, isE2eStepWord, isExpectation, isRuleSetSpec, isStyleDeclaration, isSuggestionCode, journeyAccount, journeyStartWarnings, leadingTarget, link, lintSpace, list, listItem, loadImages, locate, locateClasses, locateElements, locateField, locateTarget, markdown, r$4 as missingRequiredParams, modalContainer, modifierClassName, moveState, named, navOf, navigate, nodeHtml, notificationsCss, on, onApiError, onApiSuccess, onBlur, onChange, onClick, onDialogAccept, onDialogClose, onDialogOpen, onDialogReject, onFlowEnd, onFlowError, onFlowProgress, onFocus, onHover, onInterval, onInvalid, onJoin, onKey, onLeave, onLoad, onMessage, onModalClose, onModalOpen, onMouseEnter, onMouseLeave, onPageChange, onPageLoad, onPointerDown, onScreen, onScreenIfChosen, onScroll, onSubmit, onThemeChange, onView, openDialog, openModal, openPage, pageAt, pageDecorations, pageFamily, pageRegions, pageTexts, pagination, paragraph, parseE2eStep, parseE2eSteps, parseRelation, pathForSlug, planFixes, playE2eStep, plitziSdk, pressFailure, pressOnce, pressShortcut, profilePictures, publishOn, readDevTools, readDevToolsInPage, n$3 as readNotificationOptions, readSpaceTests, c$1 as reconcileParams, reference, refusalOf, relationElements, relationHolds, reloadApi, removeState, replacedCssProperty, resetForm, resolveElement, resolveSource, richText, row, runE2eTest, runServerAction, runServerActionOrNotify, runUnitTest, runUnitTests, sameBlocks, scope, scopedHint, scrollBy, scrollIntoView, scrollTo, searchScore, searchWords, selectorFor, setFieldValue, setState, settle, shortcutKey, shorthandLonghands, shownCopy, sidePx, singlePageSpace, slugify, source, i$2 as spaceCallbacks, specFromSpace, specToSource, splitClassList, d as splitNotificationsCss, stepLines, stepState, styles, suggestClassOverrides, suggestCssProperty, suggestSpace, suggestTransformer, summariseRenders, svg, tabContainer, tabContainerBody, tabContainerHeader, tabContainerItem, targetId, targetOf, taskAction, testAccountWarnings, text, themeToggle, toBindingSpecs, toBlocks, i$3 as toBuilderParams, a$2 as toInteractionCallback, o$1 as toInteractionCallbacks, toPortableSource, toResponsive, toggleElement, toggleInState, toggleState, tokens, transformerCatalog, tw, twig, twigTemplate, typeCallbackDefinitions, typeTriggerDefinitions, unit, unitReportText, unitTestProblems, unquoted, unrollPage, unusedDeclarations, updateElement, validateSnippet, validateSpace, valueFieldIn, e$1 as valuesOf, variantFrom, video, visibleWhen, webHook, when, whenFailed, whenSucceeded, whileRunning, withElement, withNamedIds, withNotificationsCss, withPluginCatalogs, withVisibility, withoutQuieted };
package/dist/node.d.ts CHANGED
@@ -172,8 +172,8 @@ declare const AUTHORING_CODES: {
172
172
  };
173
173
  readonly 'repeated-shape': {
174
174
  readonly kind: "suggested";
175
- readonly means: "the same structure written again and again with different words — cards, rows, tiles; copies that bind different data, read their own template or render on the server are controls, not repeats";
176
- readonly fix: "a component with props (`components`, `component(id, { props })`), or one `list` when they are rows of data side by side — a few cards a person rewords on the canvas can stay cards";
175
+ readonly means: "the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own";
176
+ readonly fix: "a component with props (`components`, `component(id, { props })`) — a source a copy reads handed in as a bound `json` prop (`component(id, { bind: [{ to: 'items', source }] })`, read inside as `props.items`) — or one `list` when they are rows of data side by side; a few cards a person rewords on the canvas can stay cards";
177
177
  };
178
178
  readonly 'element-color-inherited': {
179
179
  readonly kind: "suggested";
@@ -1357,7 +1357,7 @@ declare const AUTHORING_CODES: {
1357
1357
  };
1358
1358
  readonly 'state-key-list': {
1359
1359
  readonly kind: "refused";
1360
- readonly means: "`settings.transientState` / `paintedState` that is not a list of top-level state keys";
1360
+ readonly means: "`settings.transientState` / `paintedState` / `browserState` that is not a list of top-level state keys";
1361
1361
  readonly fix: "`transientState: ['demoStep']` — a dotted path names its top key";
1362
1362
  };
1363
1363
  readonly 'state-painted-and-transient': {
@@ -1375,6 +1375,11 @@ declare const AUTHORING_CODES: {
1375
1375
  readonly means: "a `paintedState` key that `keptState` does not keep — the server draws with what is kept";
1376
1376
  readonly fix: "add it to `keptState`, or leave it out of `paintedState`";
1377
1377
  };
1378
+ readonly 'state-browser-not-kept': {
1379
+ readonly kind: "refused";
1380
+ readonly means: "a `browserState` key the space does not keep — transient, or not in `keptState`";
1381
+ readonly fix: "keep it, or leave it out of `browserState`";
1382
+ };
1378
1383
  readonly 'kept-state-without-keep-state': {
1379
1384
  readonly kind: "warned";
1380
1385
  readonly means: "`keptState` without `keepState` — nothing is kept in the first place";
@@ -1390,6 +1395,11 @@ declare const AUTHORING_CODES: {
1390
1395
  readonly means: "`paintedState` without `keepState` — nothing is kept for the server to draw with";
1391
1396
  readonly fix: "`settings.keepState: true`, or remove `paintedState`";
1392
1397
  };
1398
+ readonly 'browser-state-without-keep-state': {
1399
+ readonly kind: "warned";
1400
+ readonly means: "`browserState` without `keepState` — nothing is kept in the first place";
1401
+ readonly fix: "`settings.keepState: true`, or remove `browserState`";
1402
+ };
1393
1403
  readonly 'visitor-roles': {
1394
1404
  readonly kind: "refused";
1395
1405
  readonly means: "`settings.visitorRoles` written in a shape the runtime does not read";
@@ -2903,6 +2913,13 @@ declare type Schema = {
2903
2913
  * `keepState`; a key cannot be both painted and transient. Top-level keys, as `setState` writes them.
2904
2914
  */
2905
2915
  paintedState?: string[];
2916
+ /**
2917
+ * Kept keys of `runtime.state` that are the browser's rather than whoever is signed in — the cookie consent, a choice
2918
+ * made of the browser itself: kept in an entry of their own, and not taken away by signing in, out, or as somebody
2919
+ * else, which forgets the rest of what the previous owner kept. Needs `keepState`; a key cannot be both the browser's
2920
+ * and transient. Top-level keys, as `setState` writes them.
2921
+ */
2922
+ browserState?: string[];
2906
2923
  /**
2907
2924
  * The space's `/robots.txt`, as search engines read it: what they may crawl, and where its sitemap is. Left out, the
2908
2925
  * server answers that everything may be — `User-agent: *` then `Allow: /`. A page kept out of search says it on the
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Ar as t$1, Cr as g$1, Do as element, Dr as o$3, Er as m$2, Ir as buildHandles, Ka as container, Kr as s$3, Mr as v$1, Nr as y$1, Or as p$2, So as component, Sr as f$2, Tr as l$3, _r as S$1, br as c$3, gr as N$1, hr as M$1, hs as J, jr as u$3, kr as s$4, l as validateSpace, n as authorSpace, u as compactSvg, vr as _, wr as j$1, xr as d$2, xs as e$2, yr as b$1 } from "./index-src.js";
1
+ import { Ao as element, Ar as p$2, Cr as d$2, Dr as l$3, Er as j$1, Fr as y$1, Ja as container, Jr as s$3, Mr as t$1, Nr as u$3, Or as m$2, Pr as v$1, Rr as buildHandles, Sr as c$3, To as component, Tr as g$1, _r as M$1, br as _, jr as s$4, kr as o$3, l as validateSpace, n as authorSpace, u as compactSvg, vr as N$1, vs as Y, wr as f$2, ws as e$2, xr as b$1, yr as S$1 } from "./index-src.js";
2
2
  import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
3
3
  import { createRequire } from "node:module";
4
4
  import e from "node:path";
@@ -503,7 +503,7 @@ var SpacePreviewError = class extends Error {
503
503
  };
504
504
  Object.defineProperty(SpacePreviewError, "name", { value: "SpacePreviewError" });
505
505
  var PREVIEW_ID = M$1;
506
- var BUILT_IN = new Set(Object.values(J).map((declaration) => declaration.type));
506
+ var BUILT_IN = new Set(Object.values(Y).map((declaration) => declaration.type));
507
507
  /** A preview file read as one, or why it is not, said whole. */
508
508
  var parsePreview = (value) => {
509
509
  if (!e$2(value) || typeof value.element !== "string" || value.element === "") return { problem: "it names no element: write { \"element\": \"<a component or an element type>\", \"copies\": [{ … }] }" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-authoring",
3
- "version": "0.39.0",
3
+ "version": "0.39.1",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist/index.js",
@@ -67,11 +67,11 @@
67
67
  "devDependencies": {
68
68
  "@microsoft/api-extractor": "^7.59.4",
69
69
  "@plitzi/plitzi-ui": "^1.6.36",
70
- "@plitzi/sdk-elements": "0.39.0",
71
- "@plitzi/sdk-interactions": "0.39.0",
72
- "@plitzi/sdk-schema": "0.39.0",
73
- "@plitzi/sdk-shared": "0.39.0",
74
- "@plitzi/sdk-style": "0.39.0",
70
+ "@plitzi/sdk-elements": "0.39.1",
71
+ "@plitzi/sdk-interactions": "0.39.1",
72
+ "@plitzi/sdk-schema": "0.39.1",
73
+ "@plitzi/sdk-shared": "0.39.1",
74
+ "@plitzi/sdk-style": "0.39.1",
75
75
  "@types/react": "^19.3.0",
76
76
  "eslint": "^9.39.5",
77
77
  "prettier": "^3.9.10",
@@ -88,6 +88,9 @@ row's panel is drawn as `<id>-<row>`, and the row's button points at its own. Wo
88
88
  A part that opens and closes on its own — a question and its answer, many open at once — needs no state at all:
89
89
  `container({ subType: 'details', children: [container({ subType: 'summary', children: [text('Question')] }), …] })`
90
90
  (`open: true` to start open), the browser's own disclosure, announced as one. The accordion recipe is for one-at-a-time.
91
+ Results, a menu or a set of options someone goes through with the keyboard sit in `focusGroup({ label, children })`:
92
+ ↑/↓ move between the controls inside, ←/→ to the first of the next or previous list, and ↓ from a search field inside
93
+ goes down into them — Tab alone took a stop per result.
91
94
 
92
95
  ## The page has an outline
93
96
 
@@ -154,8 +154,9 @@ The space is not written until these are fixed.
154
154
  | `source-field-unknown` | a path into a typed source that its sample does not have | read a field the sample has, or add the field to the sample |
155
155
  | `source-name-missing` | a source named by nothing — most often a field read off a list row that has no types | write the row's field as text (`${r.item}.field`), or give the list `items` a typed source's path |
156
156
  | `space-identity-invalid` | the space's `siteName`, `language`, `favicon`, `shareImage` or `themeColor` written as nothing a head reads | `siteName: 'My site'`, `language: 'en'`, `favicon: '/favicon.svg'`, `shareImage: '/og.png'`, `themeColor: { light: '#fbf7f0', dark: '#0b0a10' }` |
157
+ | `state-browser-not-kept` | a `browserState` key the space does not keep — transient, or not in `keptState` | keep it, or leave it out of `browserState` |
157
158
  | `state-kept-and-transient` | `keptState` (the only keys kept) and `transientState` (the keys left out) both said | one of the two: `keptState` when few keys are kept, `transientState` when few are not |
158
- | `state-key-list` | `settings.transientState` / `paintedState` that is not a list of top-level state keys | `transientState: ['demoStep']` — a dotted path names its top key |
159
+ | `state-key-list` | `settings.transientState` / `paintedState` / `browserState` that is not a list of top-level state keys | `transientState: ['demoStep']` — a dotted path names its top key |
159
160
  | `state-painted-and-transient` | a state key both painted (kept for the server) and transient (never kept) | remove it from one of the two |
160
161
  | `state-painted-not-kept` | a `paintedState` key that `keptState` does not keep — the server draws with what is kept | add it to `keptState`, or leave it out of `paintedState` |
161
162
  | `state-shape` | a state given a rule set's keys (`pseudos`, `variants`, `ancestors`…): a state holds plain CSS | a pseudo-element's state goes under the pseudo-element — `pseudos: { before: { states: { hover: { opacity: '1' } } } }`; an ancestor's, under `ancestors` |
@@ -205,6 +206,7 @@ The space renders, and renders something you probably did not mean. Fix every on
205
206
  | --- | --- | --- |
206
207
  | `action-output-path` | a read of `.data` on a provider fed by a server action — it publishes the action’s output at its root, and `.data` is a `query` provider’s answer | the output’s own field — `apiContainer_feed.stories`, not `apiContainer_feed.data.stories` |
207
208
  | `animation-name-unknown` | `animation-name` naming keyframes the space does not declare — nothing plays | declare them in the space's `keyframes`, or name one it has |
209
+ | `browser-state-without-keep-state` | `browserState` without `keepState` — nothing is kept in the first place | `settings.keepState: true`, or remove `browserState` |
208
210
  | `click-on-static-element` | a click flow on a container, text, heading, image or list item — no keyboard reaches it | the flow on a `button` (it holds children) or a `link` |
209
211
  | `colour-without-dark` | a colour token with no dark value | `{ light, dark, default }` |
210
212
  | `condition-starts-visible` | a computed visibility that shows until its data answers | `visible: { source, template }` |
@@ -281,7 +283,7 @@ Nothing is wrong: the page renders as written. Each is a shorter way to the same
281
283
  | `not-found-page` | a space with no page of its own for an address no other page answers — a plain one was added, in the home page’s layout, sent with status 404 | a page whose slug is `'*'`: `{ id: 'not-found', name: 'Not found', slug: '*', layout: …, body: [...] }` |
282
284
  | `plugin-custom-host` | a `custom` element naming, by `renderType`, a plugin whose declaration the space was handed | place it from its declaration — `const seatPicker = defineElement(declaration)`, then `seatPicker({ id, … })`: typed by what it declares (a `definePlugin` declaration carries its attributes), the element the builder adds too |
283
285
  | `repeated-on-pages` | the same block — a header, a footer, a side panel — written into several pages | a layout holding it once (`layouts`, and `layout: { id, slot }` on each page) — a component when only some pages of a layout carry it, written in its area’s folder and listed in the space’s `components`; a link marks its own page with the `current` state |
284
- | `repeated-shape` | the same structure written again and again with different words — cards, rows, tiles; copies that bind different data, read their own template or render on the server are controls, not repeats | a component with props (`components`, `component(id, { props })`), or one `list` when they are rows of data side by side — a few cards a person rewords on the canvas can stay cards |
286
+ | `repeated-shape` | the same structure written again and again with different words — cards, rows, tiles. Copies that read their data in a form of their own (their template) or render on the server are no repeats, and neither are copies side by side wired to different sources or state keys — controls written alike; copies apart that read different sources are one component, each instance handed its own | a component with props (`components`, `component(id, { props })`) — a source a copy reads handed in as a bound `json` prop (`component(id, { bind: [{ to: 'items', source }] })`, read inside as `props.items`) — or one `list` when they are rows of data side by side; a few cards a person rewords on the canvas can stay cards |
285
287
  | `unused-class` | a class declared in `classes` that no element, binding, flow or other class names | remove it from `classes` — or wear it where it was meant to go |
286
288
  | `unused-component` | a component no page, layout or other component places | remove it from `components`, or place it where it was meant to go |
287
289
  | `unused-plugin` | a plugin the project declares that no page, layout or component places — built and shipped, drawn nowhere | place it where it was meant to go, or remove its folder from `src/plugins/` |
@@ -48,15 +48,15 @@ same flags, decided on the server. Use the step builders — they fill in where
48
48
 
49
49
  Name the trigger (`named('changed', on('onChange'))`) and read its payload as `{{ changed.<field> }}`:
50
50
 
51
- | Trigger | Payload |
52
- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
53
- | `onChange` (formControl) | `value` (a boolean for a checkbox or switch), `name` |
54
- | `onSubmit` (form) | `values` (by control `name`), `actionUrl`, `method` |
55
- | `onPageLoad` (page) | `pageId`, `routeParams`, `queryParams` |
56
- | `onApiSuccess` / `onApiError` (apiContainer) | `url`, `method`, `status`, `data` |
57
- | `onModalOpen` / `onModalClose`, `onDialogOpen` / `onDialogClose` / `onDialogAccept` / `onDialogReject` | `metadata` — what `openModal` / `openDialog` was handed |
58
- | `onPageChange` (pagination) | `page` |
59
- | `onThemeChange` (themeToggle) | `theme` |
51
+ | Trigger | Payload |
52
+ | ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
53
+ | `onChange` (formControl) | `value` (a boolean for a checkbox or switch, the `File` for a file), `name` |
54
+ | `onSubmit` (form) | `values` (by control `name`), `actionUrl`, `method` |
55
+ | `onPageLoad` (page) | `pageId`, `routeParams`, `queryParams` |
56
+ | `onApiSuccess` / `onApiError` (apiContainer) | `url`, `method`, `status`, `data` |
57
+ | `onModalOpen` / `onModalClose`, `onDialogOpen` / `onDialogClose` / `onDialogAccept` / `onDialogReject` | `metadata` — what `openModal` / `openDialog` was handed |
58
+ | `onPageChange` (pagination) | `page` |
59
+ | `onThemeChange` (themeToggle) | `theme` |
60
60
 
61
61
  ## Reading what came before
62
62
 
@@ -34,3 +34,15 @@ settings: { keepState: true, paintedState: ['shapesPick', 'name', 'color'], tran
34
34
  Only what the first paint shows, and small values: the cookie travels with every request and holds a few kilobytes
35
35
  (over that, the page falls back to the defaults and the dev tools say so). Never a secret — a key, a token — and never
36
36
  a key that is also in `transientState` (`authorSpace` refuses it).
37
+
38
+ Filed under whoever is signed in, what was kept goes when somebody else signs in — the guest's, too, when they sign
39
+ in. A choice made of the BROWSER rather than of the person — the cookie consent — is then asked again on every change
40
+ of account. List those keys in `browserState`: kept in an entry of their own that signing in, out or as somebody else
41
+ does not take away, and restored without waiting for auth. A key of the browser's is a kept one (`authorSpace` refuses
42
+ one that is transient or not in `keptState`), and may be painted too:
43
+
44
+ ```ts
45
+ settings: { keepState: true, paintedState: ['consent'], browserState: ['consent'] }
46
+ ```
47
+
48
+ Never something that belongs to an account — a workspace, a name: the next person on the browser would be handed it.
@@ -58,7 +58,8 @@ const NebulaRun = ({ shipColor = 'amber', best = 0, className }: NebulaRunProps)
58
58
  ```
59
59
 
60
60
  - **Render `RootElement`**, not a `div`: it carries the element's id, classes and `data-plitzi-el`, so the CSS
61
- authored on the element applies, the builder can select it and a test can find it.
61
+ authored on the element applies, the builder can select it and a test can find it. It is a `div` unless `tag` says
62
+ otherwise — `tag="span"` for an effect inside a line of text, `tag="section"`, `tag="button"`.
62
63
  - **Render the same thing on the server and on the first client pass** — a plugin is drawn on the server first. A
63
64
  clock, a random number or anything read from `window` belongs in an effect; a hydration mismatch discards the whole
64
65
  tree, not the plugin. A preference per device (a tab, muted) is never read from `localStorage` while rendering: write
@@ -196,7 +197,9 @@ belongs to the editor.
196
197
 
197
198
  A plugin's stylesheet ships in a layer below the space's (`plitzi-sdk-plugin`): the space's classes and `customCss`
198
199
  win over it whatever their specificity. Write it as
199
- `.css` files the plugin imports (in the server's head, its tokens seen) — never a CSS string in TypeScript.
200
+ `.css` files the plugin imports (in the server's head, its tokens seen) — never a CSS string in TypeScript. It comes
201
+ with the plugin: linked on the pages that draw it, on no other. A stylesheet several plugins need — a design system's —
202
+ is imported by each that uses it, never by one for the rest: those go unstyled on every page without that one.
200
203
 
201
204
  A file a library needs whole is imported as Vite imports it, and travels inside the bundle: `worker.js?raw` is its
202
205
  text (a worker, started from `URL.createObjectURL(new Blob([source]))`), `engine.wasm?inline` a data URI. Images and