@plitzi/sdk-authoring 0.39.11 → 0.39.13
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/CHANGELOG.md +14 -0
- package/dist/index-src.js +5187 -4039
- package/dist/index.d.ts +1007 -55
- package/dist/index.js +2 -2
- package/dist/node.d.ts +117 -1
- package/dist/node.js +2 -2
- package/dist/plugin.d.ts +5 -0
- package/package.json +7 -7
- package/skills/plitzi-authoring/recipes/accordion.ts +39 -42
- package/skills/plitzi-authoring/reference/accessibility.md +7 -4
- package/skills/plitzi-authoring/reference/auth.md +15 -0
- package/skills/plitzi-authoring/reference/authoring-errors.md +21 -0
- package/skills/plitzi-authoring/reference/feature-flags.md +67 -0
- package/skills/plitzi-authoring/reference/flows.md +4 -1
- package/skills/plitzi-authoring/reference/index.md +1 -1
- package/skills/plitzi-authoring/reference/templates.md +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,25 @@ import { WheelEventHandler } from 'react';
|
|
|
29
29
|
*/
|
|
30
30
|
export declare type AccessSpec = ActionAccess | 'public' | 'session';
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Who is signed in, in a top bar: `account({ signInHref: '/sign-in', children: [link({ href: '/profile', content:
|
|
34
|
+
* 'Profile' })] })` — "Sign in" for a guest, a menu for somebody signed in.
|
|
35
|
+
*/
|
|
36
|
+
export declare const account: {
|
|
37
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
38
|
+
signInHref?: string | undefined;
|
|
39
|
+
signInLabel?: string | undefined;
|
|
40
|
+
signOutLabel?: string | undefined;
|
|
41
|
+
signOutHref?: string | undefined;
|
|
42
|
+
}>> | undefined): ElementSpec;
|
|
43
|
+
(props?: ElementProps<Partial<{
|
|
44
|
+
signInHref?: string | undefined;
|
|
45
|
+
signInLabel?: string | undefined;
|
|
46
|
+
signOutLabel?: string | undefined;
|
|
47
|
+
signOutHref?: string | undefined;
|
|
48
|
+
}>> | undefined): ElementSpec;
|
|
49
|
+
};
|
|
50
|
+
|
|
32
51
|
/**
|
|
33
52
|
* Who may start a run through ONE way in. Resolved against the auth kernel — never re-implemented here.
|
|
34
53
|
*
|
|
@@ -1113,6 +1132,106 @@ export declare const AUTHORING_CODES: {
|
|
|
1113
1132
|
readonly means: "a `when` asking a step of its flow for a key it never publishes — `whenSucceeded` / `whenFailed` on anything but `runServerAction`";
|
|
1114
1133
|
readonly fix: "a key the step publishes (`explain <step>`): after `authLogin`, `when({ field: 'signedIn.ok', operator: '=', value: true }, …)`";
|
|
1115
1134
|
};
|
|
1135
|
+
readonly 'account-sign-in-unreachable': {
|
|
1136
|
+
readonly kind: "warned";
|
|
1137
|
+
readonly means: "an `account` with no `signInHref` in a space that signs in with its own provider (`userProvider: \"basic\"`) — a sign-in there needs a form, so its \"Sign in\" leads nowhere";
|
|
1138
|
+
readonly fix: "`signInHref: '/sign-in'`, the page with the space's `signInForm`";
|
|
1139
|
+
};
|
|
1140
|
+
readonly 'countdown-to': {
|
|
1141
|
+
readonly kind: "refused";
|
|
1142
|
+
readonly means: "a `countdown`'s `to` that is not an instant with its offset — never read, so it counts to nothing";
|
|
1143
|
+
readonly fix: "`to: '2026-12-01T09:00:00Z'` (or `+01:00`); empty inside a `timeWindow` to count to its `endsAt`";
|
|
1144
|
+
};
|
|
1145
|
+
readonly 'countdown-without-end': {
|
|
1146
|
+
readonly kind: "warned";
|
|
1147
|
+
readonly means: "a `countdown` with no `to` and no `timeWindow` around it with an `endsAt` — it shows zeros";
|
|
1148
|
+
readonly fix: "`to: '2026-12-01T09:00:00Z'`, or the countdown inside the `timeWindow` whose end it counts to";
|
|
1149
|
+
};
|
|
1150
|
+
readonly 'countdown-units': {
|
|
1151
|
+
readonly kind: "warned";
|
|
1152
|
+
readonly means: "a `countdown` whose `smallest` unit is larger than its `largest` — it says the `largest` alone";
|
|
1153
|
+
readonly fix: "`largest` the larger: `largest: 'days', smallest: 'minutes'`";
|
|
1154
|
+
};
|
|
1155
|
+
readonly 'disclosure-summary-first': {
|
|
1156
|
+
readonly kind: "refused";
|
|
1157
|
+
readonly means: "a `disclosure` whose first child is not its `disclosureSummary` — the browser opens it by its first `<summary>` alone, and draws \"Details\" of its own otherwise";
|
|
1158
|
+
readonly fix: "`disclosure({ children: [disclosureSummary([…]), …what it shows] })`: one summary, first";
|
|
1159
|
+
};
|
|
1160
|
+
readonly 'disclosure-summary-control': {
|
|
1161
|
+
readonly kind: "refused";
|
|
1162
|
+
readonly means: "a button, a link or a field inside a `disclosureSummary` — the summary is the control: one inside it is a control within a control, which a keyboard and a screen reader cannot tell apart, and pressing it opens the disclosure too";
|
|
1163
|
+
readonly fix: "words in the summary (a text, a heading); the button or the link in what the disclosure shows, or beside it";
|
|
1164
|
+
};
|
|
1165
|
+
readonly 'disclosure-summary-unnamed': {
|
|
1166
|
+
readonly kind: "warned";
|
|
1167
|
+
readonly means: "a `disclosureSummary` with nothing in it — a screen reader announces a control with no name";
|
|
1168
|
+
readonly fix: "a text or a heading inside it: what opening it shows";
|
|
1169
|
+
};
|
|
1170
|
+
readonly 'time-window-bound': {
|
|
1171
|
+
readonly kind: "refused";
|
|
1172
|
+
readonly means: "a `timeWindow`'s `startsAt` or `endsAt` that is not an instant with its offset — never read, so no bound";
|
|
1173
|
+
readonly fix: "`startsAt: '2026-12-01T09:00:00Z'` (or `+01:00`); empty for no bound";
|
|
1174
|
+
};
|
|
1175
|
+
readonly 'time-window-empty': {
|
|
1176
|
+
readonly kind: "warned";
|
|
1177
|
+
readonly means: "a `timeWindow` that ends before it starts — it never shows what it holds";
|
|
1178
|
+
readonly fix: "`endsAt` after `startsAt`";
|
|
1179
|
+
};
|
|
1180
|
+
readonly 'variants-choose-by': {
|
|
1181
|
+
readonly kind: "refused";
|
|
1182
|
+
readonly means: "a `variants`' `chooseBy` that is neither `'chance'` nor `'rules'` — it chooses by chance";
|
|
1183
|
+
readonly fix: "`chooseBy: 'chance'` or `chooseBy: 'rules'`";
|
|
1184
|
+
};
|
|
1185
|
+
readonly 'variants-items': {
|
|
1186
|
+
readonly kind: "refused";
|
|
1187
|
+
readonly means: "a `variants` holding something beside its `variantItem`s, or too few — two to five by chance, one by rules";
|
|
1188
|
+
readonly fix: "`variants({ children: [variantItem([…]), variantItem([…])] })`";
|
|
1189
|
+
};
|
|
1190
|
+
readonly 'variants-builder-variant': {
|
|
1191
|
+
readonly kind: "warned";
|
|
1192
|
+
readonly means: "a `variants`' `builderVariant` that is not the place of one of its variants — the builder shows the first";
|
|
1193
|
+
readonly fix: "the place of a variant it has, from 0";
|
|
1194
|
+
};
|
|
1195
|
+
readonly 'variants-rule': {
|
|
1196
|
+
readonly kind: "refused";
|
|
1197
|
+
readonly means: "a `variantItem`'s `when` that is not a rule group";
|
|
1198
|
+
readonly fix: "`when: { combinator: 'and', rules: [{ field: 'visitor.device', operator: '=', value: 'mobile' }] }`";
|
|
1199
|
+
};
|
|
1200
|
+
readonly 'variants-unreachable': {
|
|
1201
|
+
readonly kind: "warned";
|
|
1202
|
+
readonly means: "by rules, a `variantItem` after one with no rule, which takes everybody left — it is never shown";
|
|
1203
|
+
readonly fix: "move the variant with no rule last, or give it one";
|
|
1204
|
+
};
|
|
1205
|
+
readonly 'variants-no-fallback': {
|
|
1206
|
+
readonly kind: "warned";
|
|
1207
|
+
readonly means: "by rules, a `variants` whose every variant has a rule: a visitor matching none is shown nothing";
|
|
1208
|
+
readonly fix: "end it with a `variantItem` with no `when`, for everybody else";
|
|
1209
|
+
};
|
|
1210
|
+
readonly 'experiment-name': {
|
|
1211
|
+
readonly kind: "refused";
|
|
1212
|
+
readonly means: "by chance, a `variants`' `experiment` that a template cannot read as `experiments.x`";
|
|
1213
|
+
readonly fix: "letters, digits and `_`, starting with a letter or `_` — or empty, for the element's own name";
|
|
1214
|
+
};
|
|
1215
|
+
readonly 'experiment-weight': {
|
|
1216
|
+
readonly kind: "refused";
|
|
1217
|
+
readonly means: "by chance, a `variantItem`'s `weight` that is not a whole number from 0 to 100, or variants that all weigh 0";
|
|
1218
|
+
readonly fix: "`weight: 50`; 0 shows a variant to nobody, and at least one has to show";
|
|
1219
|
+
};
|
|
1220
|
+
readonly 'experiment-weights-total': {
|
|
1221
|
+
readonly kind: "warned";
|
|
1222
|
+
readonly means: "by chance, `variant`s whose `weight`s do not add up to 100 — each is read as its part of their total";
|
|
1223
|
+
readonly fix: "percents adding up to 100: 50/25/20/5, or the proportions the warning gives";
|
|
1224
|
+
};
|
|
1225
|
+
readonly 'experiment-weights-differ': {
|
|
1226
|
+
readonly kind: "warned";
|
|
1227
|
+
readonly means: "two `variants` running the same test with different weights — they share it, so one set is ignored";
|
|
1228
|
+
readonly fix: "the same weights on both, or a test name of its own for each";
|
|
1229
|
+
};
|
|
1230
|
+
readonly 'experiment-unknown': {
|
|
1231
|
+
readonly kind: "refused";
|
|
1232
|
+
readonly means: "a template, a binding or a `when` reading an experiment no `variants` chosen by chance runs";
|
|
1233
|
+
readonly fix: "the name it suggests, or a `variants` with that `experiment`";
|
|
1234
|
+
};
|
|
1116
1235
|
readonly 'flag-gate': {
|
|
1117
1236
|
readonly kind: "refused";
|
|
1118
1237
|
readonly means: "an element's or a page's `flag` that is not a flag name";
|
|
@@ -1143,6 +1262,11 @@ export declare const AUTHORING_CODES: {
|
|
|
1143
1262
|
readonly means: "a flag rule that is not `{ when, value }`, or whose `value` is not `true` or `false`";
|
|
1144
1263
|
readonly fix: "`{ when: { … }, value: true }`";
|
|
1145
1264
|
};
|
|
1265
|
+
readonly 'flag-rollout': {
|
|
1266
|
+
readonly kind: "refused";
|
|
1267
|
+
readonly means: "a flag's `rollout` that is not `{ percent, value }` — a whole share from 0 to 100 and the answer it gives";
|
|
1268
|
+
readonly fix: "`rollout: { percent: 10, value: true }`";
|
|
1269
|
+
};
|
|
1146
1270
|
readonly 'flag-rule-empty': {
|
|
1147
1271
|
readonly kind: "warned";
|
|
1148
1272
|
readonly means: "a flag rule with no conditions — skipped, never read as \"always\"";
|
|
@@ -2334,6 +2458,20 @@ declare const AUTOFILL_FIELDS: readonly ["username", "current-password", "new-pa
|
|
|
2334
2458
|
|
|
2335
2459
|
declare type AutofillField = (typeof AUTOFILL_FIELDS)[number];
|
|
2336
2460
|
|
|
2461
|
+
/** A person: `avatar({ name: '{{ auth.details.username }}' })` — their picture, or their initials on a colour of their own. */
|
|
2462
|
+
export declare const avatar: {
|
|
2463
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
2464
|
+
name?: string | undefined;
|
|
2465
|
+
src?: string | undefined;
|
|
2466
|
+
decorative?: boolean | undefined;
|
|
2467
|
+
}>> | undefined): ElementSpec;
|
|
2468
|
+
(props?: ElementProps<Partial<{
|
|
2469
|
+
name?: string | undefined;
|
|
2470
|
+
src?: string | undefined;
|
|
2471
|
+
decorative?: boolean | undefined;
|
|
2472
|
+
}>> | undefined): ElementSpec;
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2337
2475
|
/**
|
|
2338
2476
|
* Waits for the space on the page to take its markup over (`data-hydrated`, put on its root by the SDK) — or says it did
|
|
2339
2477
|
* not: a press before then does nothing, and what is read is the server's HTML. A page with no space has nothing to
|
|
@@ -2833,6 +2971,11 @@ export declare const chart: {
|
|
|
2833
2971
|
}>> | undefined): ElementSpec;
|
|
2834
2972
|
};
|
|
2835
2973
|
|
|
2974
|
+
/** How a `variants` element chooses: at random by the variants' shares, or by the visitor's facts. */
|
|
2975
|
+
declare const CHOOSE_BY: readonly ["chance", "rules"];
|
|
2976
|
+
|
|
2977
|
+
declare type ChooseBy = (typeof CHOOSE_BY)[number];
|
|
2978
|
+
|
|
2836
2979
|
/**
|
|
2837
2980
|
* The classes a selector wears: one, or several.
|
|
2838
2981
|
*
|
|
@@ -2958,7 +3101,7 @@ export declare const component: (componentId: string, instance?: ComponentInstan
|
|
|
2958
3101
|
/** What an element inside a component can read besides its own tree: the globals, and what its instance hands in. */
|
|
2959
3102
|
export declare const COMPONENT_SOURCES: string[];
|
|
2960
3103
|
|
|
2961
|
-
declare type ComponentDefinition = Pick<PluginSchema, 'attributes' | 'builder' | 'definition' | 'defaultStyle' | 'initialItems' | 'contentAttributes'> & {
|
|
3104
|
+
declare type ComponentDefinition = Pick<PluginSchema, 'attributes' | 'builder' | 'definition' | 'defaultStyle' | 'initialItems' | 'contentAttributes' | 'ancestorType'> & {
|
|
2962
3105
|
assets: Asset[];
|
|
2963
3106
|
assetsSettings: Omit<Asset, 'isMain'>[];
|
|
2964
3107
|
manifest: PluginManifest;
|
|
@@ -3042,16 +3185,14 @@ export declare const container: {
|
|
|
3042
3185
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
3043
3186
|
title?: string | undefined;
|
|
3044
3187
|
label?: string | undefined;
|
|
3045
|
-
|
|
3046
|
-
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "details" | "summary" | undefined;
|
|
3188
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
3047
3189
|
live?: "polite" | "assertive" | "" | undefined;
|
|
3048
3190
|
decorative?: boolean | undefined;
|
|
3049
3191
|
}>> | undefined): ElementSpec;
|
|
3050
3192
|
(props?: ElementProps<Partial<{
|
|
3051
3193
|
title?: string | undefined;
|
|
3052
3194
|
label?: string | undefined;
|
|
3053
|
-
|
|
3054
|
-
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "details" | "summary" | undefined;
|
|
3195
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
3055
3196
|
live?: "polite" | "assertive" | "" | undefined;
|
|
3056
3197
|
decorative?: boolean | undefined;
|
|
3057
3198
|
}>> | undefined): ElementSpec;
|
|
@@ -3076,6 +3217,37 @@ export declare type Copy = number | 'last' | undefined;
|
|
|
3076
3217
|
*/
|
|
3077
3218
|
export declare const copyToClipboard: (text: string) => StepSpec;
|
|
3078
3219
|
|
|
3220
|
+
/**
|
|
3221
|
+
* How long is left until an instant: `countdown({ to: '2026-12-01T09:00:00Z' })`, or `countdown()` inside a `timeWindow`
|
|
3222
|
+
* to count to its end. `onCountdownEnd` runs a flow at zero.
|
|
3223
|
+
*/
|
|
3224
|
+
export declare const countdown: {
|
|
3225
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
3226
|
+
to?: string | undefined;
|
|
3227
|
+
largest?: CountdownUnit | undefined;
|
|
3228
|
+
smallest?: CountdownUnit | undefined;
|
|
3229
|
+
labels?: CountdownLabels | undefined;
|
|
3230
|
+
locale?: string | undefined;
|
|
3231
|
+
}>> | undefined): ElementSpec;
|
|
3232
|
+
(props?: ElementProps<Partial<{
|
|
3233
|
+
to?: string | undefined;
|
|
3234
|
+
largest?: CountdownUnit | undefined;
|
|
3235
|
+
smallest?: CountdownUnit | undefined;
|
|
3236
|
+
labels?: CountdownLabels | undefined;
|
|
3237
|
+
locale?: string | undefined;
|
|
3238
|
+
}>> | undefined): ElementSpec;
|
|
3239
|
+
};
|
|
3240
|
+
|
|
3241
|
+
/** How a countdown names its units: in words (`days`), short (`d`, `hr`), or not at all. */
|
|
3242
|
+
declare const COUNTDOWN_LABELS: readonly ["long", "short", "none"];
|
|
3243
|
+
|
|
3244
|
+
/** The units a countdown says what is left in, largest first. */
|
|
3245
|
+
declare const COUNTDOWN_UNITS: readonly ["days", "hours", "minutes", "seconds"];
|
|
3246
|
+
|
|
3247
|
+
declare type CountdownLabels = (typeof COUNTDOWN_LABELS)[number];
|
|
3248
|
+
|
|
3249
|
+
declare type CountdownUnit = (typeof COUNTDOWN_UNITS)[number];
|
|
3250
|
+
|
|
3079
3251
|
/**
|
|
3080
3252
|
* A `tw()` with colours of its own: `createTw({ colors: tokens(variables) })` makes `bg-surface` the space's token.
|
|
3081
3253
|
*
|
|
@@ -3450,6 +3622,34 @@ export declare const diffPictures: ({ a, b, regions, tolerance, rowShift }: Pict
|
|
|
3450
3622
|
*/
|
|
3451
3623
|
export declare const digest: (value: string, length: number) => string;
|
|
3452
3624
|
|
|
3625
|
+
/**
|
|
3626
|
+
* What a summary shows or hides — a question and its answer, a menu, "show more": `disclosure({ name: 'faq', children:
|
|
3627
|
+
* [disclosureSummary([text({ content: 'Question?' })]), paragraph({ content: 'Answer.' })] })`. The summary comes first.
|
|
3628
|
+
*/
|
|
3629
|
+
export declare const disclosure: {
|
|
3630
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
3631
|
+
name?: string | undefined;
|
|
3632
|
+
open?: boolean | undefined;
|
|
3633
|
+
closeOnClickOutside?: boolean | undefined;
|
|
3634
|
+
closeOnNavigate?: boolean | undefined;
|
|
3635
|
+
}>> | undefined): ElementSpec;
|
|
3636
|
+
(props?: ElementProps<Partial<{
|
|
3637
|
+
name?: string | undefined;
|
|
3638
|
+
open?: boolean | undefined;
|
|
3639
|
+
closeOnClickOutside?: boolean | undefined;
|
|
3640
|
+
closeOnNavigate?: boolean | undefined;
|
|
3641
|
+
}>> | undefined): ElementSpec;
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3644
|
+
export declare const disclosureSummary: {
|
|
3645
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
3646
|
+
marker?: boolean | undefined;
|
|
3647
|
+
}>> | undefined): ElementSpec;
|
|
3648
|
+
(props?: ElementProps<Partial<{
|
|
3649
|
+
marker?: boolean | undefined;
|
|
3650
|
+
}>> | undefined): ElementSpec;
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3453
3653
|
export declare type DisplayMode = 'desktop' | 'tablet' | 'mobile';
|
|
3454
3654
|
|
|
3455
3655
|
/**
|
|
@@ -3973,7 +4173,9 @@ export declare const elementAncestorTypes: Record<string, string>;
|
|
|
3973
4173
|
* a builder that has since moved on, and nothing renders it.
|
|
3974
4174
|
*/
|
|
3975
4175
|
export declare const elementAttributeNames: {
|
|
4176
|
+
readonly account: readonly ["signInHref", "signInLabel", "signOutHref", "signOutLabel"];
|
|
3976
4177
|
readonly apiContainer: readonly ["accessToken", "action", "cache", "connector", "credentials", "endpoint", "filters", "gcTime", "headers", "input", "limit", "loadingSlot", "method", "mockData", "notFound", "pageParam", "pagination", "query", "refreshSeconds", "renderWhileLoading", "resource", "singleRecord", "staleTime", "subType", "when"];
|
|
4178
|
+
readonly avatar: readonly ["decorative", "name", "src"];
|
|
3977
4179
|
readonly blockHtml: readonly ["content"];
|
|
3978
4180
|
readonly blockJsx: readonly ["allowEmptyRender", "content", "contentCache", "props"];
|
|
3979
4181
|
readonly button: readonly ["ariaExpanded", "ariaPressed", "content", "contentPlacement", "controls", "controlsInRow", "disabled", "icon", "iconPlacement", "label", "subType", "title"];
|
|
@@ -3981,9 +4183,12 @@ export declare const elementAttributeNames: {
|
|
|
3981
4183
|
readonly carouselTrack: readonly [];
|
|
3982
4184
|
readonly channel: readonly ["grant", "keep", "presence", "subType", "topic"];
|
|
3983
4185
|
readonly chart: readonly ["emptyText", "format", "height", "items", "kind", "label", "labelField", "max", "series", "showValues", "sync", "titleField", "valueField"];
|
|
3984
|
-
readonly container: readonly ["decorative", "label", "live", "
|
|
4186
|
+
readonly container: readonly ["decorative", "label", "live", "subType", "title"];
|
|
4187
|
+
readonly countdown: readonly ["labels", "largest", "locale", "smallest", "to"];
|
|
3985
4188
|
readonly custom: null;
|
|
3986
4189
|
readonly dialogContainer: readonly ["acceptButtonLabel", "acceptButtonLabelLoading", "autoHideAfterClick", "headerLabel", "rejectButtonLabel"];
|
|
4190
|
+
readonly disclosure: readonly ["closeOnClickOutside", "closeOnNavigate", "name", "open"];
|
|
4191
|
+
readonly disclosureSummary: readonly ["marker"];
|
|
3987
4192
|
readonly dropdown: readonly ["backgroundDisabled", "closeOnClickBackground", "closeOnClickPopup", "containerLeftOffset", "containerTopOffset", "disabled", "openPopup", "popupPlacement", "popupWidth"];
|
|
3988
4193
|
readonly dropdownPopup: readonly [];
|
|
3989
4194
|
readonly embed: readonly ["allow", "loading", "referrerPolicy", "sandbox", "src", "title"];
|
|
@@ -3992,7 +4197,7 @@ export declare const elementAttributeNames: {
|
|
|
3992
4197
|
readonly form: readonly ["actionUrl", "errors", "managedByInteractions", "method", "noValidate", "values"];
|
|
3993
4198
|
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"];
|
|
3994
4199
|
readonly heading: readonly ["content", "subType"];
|
|
3995
|
-
readonly image: readonly ["alt", "decorative", "fetchPriority", "height", "loadMode", "resize", "sizes", "src", "width"];
|
|
4200
|
+
readonly image: readonly ["alt", "decorative", "fallbackSrc", "fetchPriority", "height", "loadMode", "resize", "sizes", "src", "width"];
|
|
3996
4201
|
readonly layoutContainer: readonly ["layout", "layoutContainer", "subType"];
|
|
3997
4202
|
readonly link: readonly ["content", "contentPlacement", "current", "hash", "href", "icon", "iconPlacement", "label", "mode", "target"];
|
|
3998
4203
|
readonly list: readonly ["itemKey", "items", "label", "source", "subType"];
|
|
@@ -4008,6 +4213,7 @@ export declare const elementAttributeNames: {
|
|
|
4008
4213
|
readonly plitziSdk: readonly ["environment", "offlineData", "spaceKey"];
|
|
4009
4214
|
readonly reference: readonly ["referenceId", "referenceType"];
|
|
4010
4215
|
readonly richText: readonly ["content", "format", "mediaBaseUrl"];
|
|
4216
|
+
readonly signInForm: readonly ["blockedMessage", "codeLabel", "networkMessage", "passwordLabel", "redirectTo", "ssoMessage", "submitLabel", "unverifiedMessage", "usernameLabel", "wrongMessage"];
|
|
4011
4217
|
readonly svg: readonly ["content", "label"];
|
|
4012
4218
|
readonly tabContainer: readonly [];
|
|
4013
4219
|
readonly tabContainerBody: readonly [];
|
|
@@ -4015,6 +4221,9 @@ export declare const elementAttributeNames: {
|
|
|
4015
4221
|
readonly tabContainerItem: readonly ["hash"];
|
|
4016
4222
|
readonly text: readonly ["content", "decorative", "title"];
|
|
4017
4223
|
readonly themeToggle: readonly ["darkLabel", "lightLabel", "showSystem", "subType", "systemLabel"];
|
|
4224
|
+
readonly timeWindow: readonly ["endsAt", "startsAt"];
|
|
4225
|
+
readonly variantItem: readonly ["weight", "when"];
|
|
4226
|
+
readonly variants: readonly ["builderVariant", "chooseBy", "experiment"];
|
|
4018
4227
|
readonly video: readonly ["autoPlay", "loop", "muted", "playsInline", "src"];
|
|
4019
4228
|
};
|
|
4020
4229
|
|
|
@@ -4602,6 +4811,72 @@ declare const elementDeclarations: {
|
|
|
4602
4811
|
ariaPressed?: boolean | undefined;
|
|
4603
4812
|
controlsInRow?: boolean | undefined;
|
|
4604
4813
|
}>>;
|
|
4814
|
+
readonly Countdown: DeclaredElement< {
|
|
4815
|
+
readonly type: "countdown";
|
|
4816
|
+
readonly attributeValues: {
|
|
4817
|
+
readonly largest: readonly string[];
|
|
4818
|
+
readonly smallest: readonly string[];
|
|
4819
|
+
readonly labels: readonly string[];
|
|
4820
|
+
};
|
|
4821
|
+
readonly triggers: {
|
|
4822
|
+
readonly onCountdownEnd: {
|
|
4823
|
+
readonly action: "onCountdownEnd";
|
|
4824
|
+
readonly title: "On Countdown End";
|
|
4825
|
+
readonly type: "trigger";
|
|
4826
|
+
readonly params: {};
|
|
4827
|
+
readonly preview: {};
|
|
4828
|
+
};
|
|
4829
|
+
};
|
|
4830
|
+
readonly content: {
|
|
4831
|
+
readonly attributes: {
|
|
4832
|
+
readonly to: "";
|
|
4833
|
+
readonly largest: "days";
|
|
4834
|
+
readonly smallest: "seconds";
|
|
4835
|
+
readonly labels: "long";
|
|
4836
|
+
readonly locale: "";
|
|
4837
|
+
};
|
|
4838
|
+
readonly definition: {
|
|
4839
|
+
readonly label: "Countdown";
|
|
4840
|
+
readonly description: string;
|
|
4841
|
+
readonly items: [];
|
|
4842
|
+
readonly styleSelectors: {
|
|
4843
|
+
readonly unit: "";
|
|
4844
|
+
readonly value: "";
|
|
4845
|
+
readonly label: "";
|
|
4846
|
+
};
|
|
4847
|
+
};
|
|
4848
|
+
readonly market: {
|
|
4849
|
+
readonly category: "basic";
|
|
4850
|
+
readonly icon: "fa-solid fa-hourglass-half";
|
|
4851
|
+
};
|
|
4852
|
+
readonly defaultStyle: {
|
|
4853
|
+
readonly style: {
|
|
4854
|
+
readonly base: {
|
|
4855
|
+
readonly default: {
|
|
4856
|
+
readonly display: "inline-flex";
|
|
4857
|
+
readonly 'flex-wrap': "wrap";
|
|
4858
|
+
readonly gap: "0.5em";
|
|
4859
|
+
readonly 'font-variant-numeric': "tabular-nums";
|
|
4860
|
+
};
|
|
4861
|
+
};
|
|
4862
|
+
readonly unit: {
|
|
4863
|
+
readonly default: {
|
|
4864
|
+
readonly display: "inline-flex";
|
|
4865
|
+
readonly 'align-items': "baseline";
|
|
4866
|
+
readonly gap: "0.25em";
|
|
4867
|
+
};
|
|
4868
|
+
};
|
|
4869
|
+
};
|
|
4870
|
+
readonly subTypes: {};
|
|
4871
|
+
};
|
|
4872
|
+
};
|
|
4873
|
+
}, Partial<{
|
|
4874
|
+
to?: string | undefined;
|
|
4875
|
+
largest?: CountdownUnit | undefined;
|
|
4876
|
+
smallest?: CountdownUnit | undefined;
|
|
4877
|
+
labels?: CountdownLabels | undefined;
|
|
4878
|
+
locale?: string | undefined;
|
|
4879
|
+
}>>;
|
|
4605
4880
|
readonly Carousel: DeclaredElement< {
|
|
4606
4881
|
readonly type: "carousel";
|
|
4607
4882
|
readonly contentAttributes: readonly ["label"];
|
|
@@ -4933,8 +5208,7 @@ declare const elementDeclarations: {
|
|
|
4933
5208
|
}, Partial<{
|
|
4934
5209
|
title?: string | undefined;
|
|
4935
5210
|
label?: string | undefined;
|
|
4936
|
-
|
|
4937
|
-
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "details" | "summary" | undefined;
|
|
5211
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
4938
5212
|
live?: "polite" | "assertive" | "" | undefined;
|
|
4939
5213
|
decorative?: boolean | undefined;
|
|
4940
5214
|
}>>;
|
|
@@ -5238,6 +5512,121 @@ declare const elementDeclarations: {
|
|
|
5238
5512
|
acceptButtonLabelLoading?: string | undefined;
|
|
5239
5513
|
rejectButtonLabel?: string | undefined;
|
|
5240
5514
|
}>>;
|
|
5515
|
+
readonly Disclosure: DeclaredElement< {
|
|
5516
|
+
readonly type: "disclosure";
|
|
5517
|
+
readonly callbacks: {
|
|
5518
|
+
readonly openDisclosure: {
|
|
5519
|
+
readonly action: "openDisclosure";
|
|
5520
|
+
readonly title: "Open Disclosure";
|
|
5521
|
+
readonly type: "callback";
|
|
5522
|
+
readonly params: {};
|
|
5523
|
+
readonly preview: {};
|
|
5524
|
+
};
|
|
5525
|
+
readonly closeDisclosure: {
|
|
5526
|
+
readonly action: "closeDisclosure";
|
|
5527
|
+
readonly title: "Close Disclosure";
|
|
5528
|
+
readonly type: "callback";
|
|
5529
|
+
readonly params: {};
|
|
5530
|
+
readonly preview: {};
|
|
5531
|
+
};
|
|
5532
|
+
readonly toggleDisclosure: {
|
|
5533
|
+
readonly action: "toggleDisclosure";
|
|
5534
|
+
readonly title: "Toggle Disclosure";
|
|
5535
|
+
readonly type: "callback";
|
|
5536
|
+
readonly params: {};
|
|
5537
|
+
readonly preview: {};
|
|
5538
|
+
};
|
|
5539
|
+
};
|
|
5540
|
+
readonly marks: {
|
|
5541
|
+
readonly '[open]': "on the disclosure while what it holds is shown";
|
|
5542
|
+
readonly 'its summary': "lights a class’s `expanded` state while the disclosure is open — a sign inside it turns with the parent’s (`ancestors: { \">\": { states: { expanded: … } } }`)";
|
|
5543
|
+
};
|
|
5544
|
+
readonly content: {
|
|
5545
|
+
readonly attributes: {
|
|
5546
|
+
readonly open: false;
|
|
5547
|
+
readonly name: "";
|
|
5548
|
+
readonly closeOnClickOutside: false;
|
|
5549
|
+
readonly closeOnNavigate: true;
|
|
5550
|
+
};
|
|
5551
|
+
readonly definition: {
|
|
5552
|
+
readonly label: "Disclosure";
|
|
5553
|
+
readonly description: string;
|
|
5554
|
+
readonly items: [];
|
|
5555
|
+
};
|
|
5556
|
+
readonly market: {
|
|
5557
|
+
readonly category: "structure";
|
|
5558
|
+
readonly icon: "fa-solid fa-caret-down";
|
|
5559
|
+
};
|
|
5560
|
+
readonly defaultStyle: {
|
|
5561
|
+
readonly style: {
|
|
5562
|
+
readonly base: {
|
|
5563
|
+
readonly default: {};
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
5566
|
+
readonly subTypes: {};
|
|
5567
|
+
};
|
|
5568
|
+
};
|
|
5569
|
+
readonly initialItems: readonly ["disclosureSummary"];
|
|
5570
|
+
}, Partial<{
|
|
5571
|
+
name?: string | undefined;
|
|
5572
|
+
open?: boolean | undefined;
|
|
5573
|
+
closeOnClickOutside?: boolean | undefined;
|
|
5574
|
+
closeOnNavigate?: boolean | undefined;
|
|
5575
|
+
}>>;
|
|
5576
|
+
readonly DisclosureSummary: DeclaredElement< {
|
|
5577
|
+
readonly type: "disclosureSummary";
|
|
5578
|
+
readonly ancestorType: "disclosure";
|
|
5579
|
+
readonly content: {
|
|
5580
|
+
readonly attributes: {
|
|
5581
|
+
readonly marker: true;
|
|
5582
|
+
};
|
|
5583
|
+
readonly definition: {
|
|
5584
|
+
readonly label: "Disclosure Summary";
|
|
5585
|
+
readonly description: string;
|
|
5586
|
+
readonly items: [];
|
|
5587
|
+
readonly styleSelectors: {
|
|
5588
|
+
readonly marker: "";
|
|
5589
|
+
};
|
|
5590
|
+
};
|
|
5591
|
+
readonly builder: {
|
|
5592
|
+
readonly canDelete: false;
|
|
5593
|
+
readonly canDragDrop: false;
|
|
5594
|
+
readonly canMove: false;
|
|
5595
|
+
readonly canSnippet: false;
|
|
5596
|
+
};
|
|
5597
|
+
readonly market: {
|
|
5598
|
+
readonly category: "structure";
|
|
5599
|
+
readonly icon: "fa-solid fa-heading";
|
|
5600
|
+
};
|
|
5601
|
+
readonly defaultStyle: {
|
|
5602
|
+
readonly style: {
|
|
5603
|
+
readonly base: {
|
|
5604
|
+
readonly default: {
|
|
5605
|
+
readonly display: "flex";
|
|
5606
|
+
readonly 'align-items': "center";
|
|
5607
|
+
readonly gap: "8px";
|
|
5608
|
+
readonly cursor: "pointer";
|
|
5609
|
+
readonly 'list-style': "none";
|
|
5610
|
+
};
|
|
5611
|
+
};
|
|
5612
|
+
readonly marker: {
|
|
5613
|
+
readonly default: {
|
|
5614
|
+
readonly 'flex-shrink': 0;
|
|
5615
|
+
readonly 'margin-left': "auto";
|
|
5616
|
+
readonly width: "0.45em";
|
|
5617
|
+
readonly height: "0.45em";
|
|
5618
|
+
readonly 'border-right': "2px solid currentColor";
|
|
5619
|
+
readonly 'border-bottom': "2px solid currentColor";
|
|
5620
|
+
readonly transform: "rotate(45deg)";
|
|
5621
|
+
};
|
|
5622
|
+
};
|
|
5623
|
+
};
|
|
5624
|
+
readonly subTypes: {};
|
|
5625
|
+
};
|
|
5626
|
+
};
|
|
5627
|
+
}, Partial<{
|
|
5628
|
+
marker?: boolean | undefined;
|
|
5629
|
+
}>>;
|
|
5241
5630
|
readonly FocusGroup: DeclaredElement< {
|
|
5242
5631
|
readonly type: "focusGroup";
|
|
5243
5632
|
readonly attributeValues: {
|
|
@@ -5446,9 +5835,9 @@ declare const elementDeclarations: {
|
|
|
5446
5835
|
}, Partial<{
|
|
5447
5836
|
title?: string | undefined;
|
|
5448
5837
|
src?: string | undefined;
|
|
5838
|
+
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
5449
5839
|
allow?: string | undefined;
|
|
5450
5840
|
loading?: "lazy" | "eager" | undefined;
|
|
5451
|
-
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
5452
5841
|
sandbox?: string | undefined;
|
|
5453
5842
|
}>>;
|
|
5454
5843
|
readonly FontAwesome: DeclaredElement< {
|
|
@@ -6524,6 +6913,7 @@ declare const elementDeclarations: {
|
|
|
6524
6913
|
readonly content: {
|
|
6525
6914
|
readonly attributes: {
|
|
6526
6915
|
readonly src: "";
|
|
6916
|
+
readonly fallbackSrc: "";
|
|
6527
6917
|
readonly alt: "";
|
|
6528
6918
|
readonly decorative: false;
|
|
6529
6919
|
readonly fetchPriority: "auto";
|
|
@@ -6559,6 +6949,7 @@ declare const elementDeclarations: {
|
|
|
6559
6949
|
alt?: string | undefined;
|
|
6560
6950
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
6561
6951
|
decorative?: boolean | undefined;
|
|
6952
|
+
fallbackSrc?: string | undefined;
|
|
6562
6953
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
6563
6954
|
}>>;
|
|
6564
6955
|
readonly LayoutContainer: DeclaredElement< {
|
|
@@ -8108,62 +8499,475 @@ declare const elementDeclarations: {
|
|
|
8108
8499
|
systemLabel?: string | undefined;
|
|
8109
8500
|
showSystem?: boolean | undefined;
|
|
8110
8501
|
}>>;
|
|
8111
|
-
readonly
|
|
8112
|
-
readonly type: "
|
|
8113
|
-
readonly contentAttributes: readonly ["src"];
|
|
8502
|
+
readonly TimeWindow: DeclaredElement< {
|
|
8503
|
+
readonly type: "timeWindow";
|
|
8114
8504
|
readonly content: {
|
|
8115
8505
|
readonly attributes: {
|
|
8116
|
-
readonly
|
|
8117
|
-
readonly
|
|
8118
|
-
readonly playsInline: false;
|
|
8119
|
-
readonly loop: false;
|
|
8120
|
-
readonly muted: true;
|
|
8506
|
+
readonly startsAt: "";
|
|
8507
|
+
readonly endsAt: "";
|
|
8121
8508
|
};
|
|
8122
8509
|
readonly definition: {
|
|
8123
|
-
readonly label: "
|
|
8124
|
-
readonly description:
|
|
8510
|
+
readonly label: "Time Window";
|
|
8511
|
+
readonly description: string;
|
|
8512
|
+
readonly items: [];
|
|
8125
8513
|
};
|
|
8126
8514
|
readonly market: {
|
|
8127
|
-
readonly category: "
|
|
8128
|
-
readonly icon: "fa-
|
|
8515
|
+
readonly category: "structure";
|
|
8516
|
+
readonly icon: "fa-regular fa-calendar";
|
|
8129
8517
|
};
|
|
8130
8518
|
readonly defaultStyle: {
|
|
8131
8519
|
readonly style: {
|
|
8132
8520
|
readonly base: {
|
|
8133
|
-
readonly default: {
|
|
8134
|
-
readonly display: "block";
|
|
8135
|
-
readonly width: "400px";
|
|
8136
|
-
readonly height: "250px";
|
|
8137
|
-
};
|
|
8521
|
+
readonly default: {};
|
|
8138
8522
|
};
|
|
8139
8523
|
};
|
|
8524
|
+
readonly subTypes: {};
|
|
8140
8525
|
};
|
|
8141
8526
|
};
|
|
8142
8527
|
}, Partial<{
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
loop?: boolean | undefined;
|
|
8146
|
-
muted?: boolean | undefined;
|
|
8147
|
-
playsInline?: boolean | undefined;
|
|
8528
|
+
startsAt?: string | undefined;
|
|
8529
|
+
endsAt?: string | undefined;
|
|
8148
8530
|
}>>;
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
label:
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8531
|
+
readonly Variants: DeclaredElement< {
|
|
8532
|
+
readonly type: "variants";
|
|
8533
|
+
readonly attributeValues: {
|
|
8534
|
+
readonly chooseBy: readonly string[];
|
|
8535
|
+
};
|
|
8536
|
+
readonly content: {
|
|
8537
|
+
readonly attributes: {
|
|
8538
|
+
readonly chooseBy: "chance";
|
|
8539
|
+
readonly experiment: "";
|
|
8540
|
+
readonly builderVariant: 0;
|
|
8541
|
+
};
|
|
8542
|
+
readonly definition: {
|
|
8543
|
+
readonly label: "Variants";
|
|
8544
|
+
readonly description: string;
|
|
8545
|
+
readonly items: [];
|
|
8546
|
+
};
|
|
8547
|
+
readonly builder: {
|
|
8548
|
+
readonly itemsAllowed: ["variantItem"];
|
|
8549
|
+
};
|
|
8550
|
+
readonly market: {
|
|
8551
|
+
readonly category: "structure";
|
|
8552
|
+
readonly icon: "fa-solid fa-shuffle";
|
|
8553
|
+
};
|
|
8554
|
+
readonly defaultStyle: {
|
|
8555
|
+
readonly style: {
|
|
8556
|
+
readonly base: {
|
|
8557
|
+
readonly default: {};
|
|
8558
|
+
};
|
|
8559
|
+
};
|
|
8560
|
+
readonly subTypes: {};
|
|
8561
|
+
};
|
|
8562
|
+
};
|
|
8563
|
+
readonly initialItems: readonly ["variantItem", "variantItem"];
|
|
8564
|
+
}, Partial<{
|
|
8565
|
+
chooseBy?: ChooseBy | undefined;
|
|
8566
|
+
experiment?: string | undefined;
|
|
8567
|
+
builderVariant?: number | undefined;
|
|
8568
|
+
}>>;
|
|
8569
|
+
readonly VariantItem: DeclaredElement< {
|
|
8570
|
+
readonly type: "variantItem";
|
|
8571
|
+
readonly ancestorType: "variants";
|
|
8572
|
+
readonly content: {
|
|
8573
|
+
readonly attributes: {
|
|
8574
|
+
readonly weight: 50;
|
|
8575
|
+
};
|
|
8576
|
+
readonly definition: {
|
|
8577
|
+
readonly label: "Variant";
|
|
8578
|
+
readonly description: string;
|
|
8579
|
+
readonly items: [];
|
|
8580
|
+
};
|
|
8581
|
+
readonly builder: {
|
|
8582
|
+
readonly canSnippet: false;
|
|
8583
|
+
readonly itemsNotAllowed: ["variantItem"];
|
|
8584
|
+
};
|
|
8585
|
+
readonly market: {
|
|
8586
|
+
readonly category: "structure";
|
|
8587
|
+
readonly icon: "fa-solid fa-code-branch";
|
|
8588
|
+
};
|
|
8589
|
+
readonly defaultStyle: {
|
|
8590
|
+
readonly style: {
|
|
8591
|
+
readonly base: {
|
|
8592
|
+
readonly default: {};
|
|
8593
|
+
};
|
|
8594
|
+
};
|
|
8595
|
+
readonly subTypes: {};
|
|
8596
|
+
};
|
|
8597
|
+
};
|
|
8598
|
+
}, Partial<{
|
|
8599
|
+
when?: RuleGroup_2 | undefined;
|
|
8600
|
+
weight?: number | undefined;
|
|
8601
|
+
}>>;
|
|
8602
|
+
readonly Account: DeclaredElement< {
|
|
8603
|
+
readonly type: "account";
|
|
8604
|
+
readonly contentAttributes: readonly ["signInLabel", "signOutLabel"];
|
|
8605
|
+
readonly content: {
|
|
8606
|
+
readonly attributes: {
|
|
8607
|
+
readonly signInHref: "";
|
|
8608
|
+
readonly signInLabel: "Sign in";
|
|
8609
|
+
readonly signOutLabel: "Sign out";
|
|
8610
|
+
readonly signOutHref: "";
|
|
8611
|
+
};
|
|
8612
|
+
readonly definition: {
|
|
8613
|
+
readonly label: "Account";
|
|
8614
|
+
readonly description: string;
|
|
8615
|
+
readonly items: [];
|
|
8616
|
+
readonly styleSelectors: {
|
|
8617
|
+
readonly signIn: "";
|
|
8618
|
+
readonly trigger: "";
|
|
8619
|
+
readonly panel: "";
|
|
8620
|
+
readonly identity: "";
|
|
8621
|
+
readonly signOut: "";
|
|
8622
|
+
};
|
|
8623
|
+
};
|
|
8624
|
+
readonly market: {
|
|
8625
|
+
readonly category: "user";
|
|
8626
|
+
readonly icon: "fa-solid fa-user-gear";
|
|
8627
|
+
};
|
|
8628
|
+
readonly defaultStyle: {
|
|
8629
|
+
readonly style: {
|
|
8630
|
+
readonly base: {
|
|
8631
|
+
readonly default: {
|
|
8632
|
+
readonly position: "relative";
|
|
8633
|
+
readonly display: "inline-flex";
|
|
8634
|
+
readonly 'align-items': "center";
|
|
8635
|
+
};
|
|
8636
|
+
};
|
|
8637
|
+
readonly signIn: {
|
|
8638
|
+
readonly default: {
|
|
8639
|
+
readonly display: "inline-flex";
|
|
8640
|
+
readonly 'align-items': "center";
|
|
8641
|
+
readonly 'padding-top': "8px";
|
|
8642
|
+
readonly 'padding-right': "14px";
|
|
8643
|
+
readonly 'padding-bottom': "8px";
|
|
8644
|
+
readonly 'padding-left': "14px";
|
|
8645
|
+
readonly 'border-top-width': "0px";
|
|
8646
|
+
readonly 'border-right-width': "0px";
|
|
8647
|
+
readonly 'border-bottom-width': "0px";
|
|
8648
|
+
readonly 'border-left-width': "0px";
|
|
8649
|
+
readonly 'border-top-left-radius': "8px";
|
|
8650
|
+
readonly 'border-top-right-radius': "8px";
|
|
8651
|
+
readonly 'border-bottom-left-radius': "8px";
|
|
8652
|
+
readonly 'border-bottom-right-radius': "8px";
|
|
8653
|
+
readonly 'background-color': "light-dark(oklch(0.21 0.006 285.885), oklch(0.985 0 0))";
|
|
8654
|
+
readonly color: "light-dark(oklch(0.985 0 0), oklch(0.21 0.006 285.885))";
|
|
8655
|
+
readonly font: "inherit";
|
|
8656
|
+
readonly 'font-weight': 600;
|
|
8657
|
+
readonly 'text-decoration': "none";
|
|
8658
|
+
readonly cursor: "pointer";
|
|
8659
|
+
};
|
|
8660
|
+
};
|
|
8661
|
+
readonly trigger: {
|
|
8662
|
+
readonly default: {
|
|
8663
|
+
readonly display: "flex";
|
|
8664
|
+
readonly 'border-top-left-radius': "50%";
|
|
8665
|
+
readonly 'border-top-right-radius': "50%";
|
|
8666
|
+
readonly 'border-bottom-left-radius': "50%";
|
|
8667
|
+
readonly 'border-bottom-right-radius': "50%";
|
|
8668
|
+
readonly cursor: "pointer";
|
|
8669
|
+
readonly 'list-style': "none";
|
|
8670
|
+
};
|
|
8671
|
+
};
|
|
8672
|
+
readonly panel: {
|
|
8673
|
+
readonly default: {
|
|
8674
|
+
readonly position: "absolute";
|
|
8675
|
+
readonly top: "calc(100% + 8px)";
|
|
8676
|
+
readonly right: "0px";
|
|
8677
|
+
readonly 'z-index': 50;
|
|
8678
|
+
readonly display: "flex";
|
|
8679
|
+
readonly 'flex-direction': "column";
|
|
8680
|
+
readonly gap: "2px";
|
|
8681
|
+
readonly 'min-width': "220px";
|
|
8682
|
+
readonly 'padding-top': "8px";
|
|
8683
|
+
readonly 'padding-right': "8px";
|
|
8684
|
+
readonly 'padding-bottom': "8px";
|
|
8685
|
+
readonly 'padding-left': "8px";
|
|
8686
|
+
readonly 'border-top-left-radius': "12px";
|
|
8687
|
+
readonly 'border-top-right-radius': "12px";
|
|
8688
|
+
readonly 'border-bottom-left-radius': "12px";
|
|
8689
|
+
readonly 'border-bottom-right-radius': "12px";
|
|
8690
|
+
readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
|
|
8691
|
+
readonly 'box-shadow': "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.12) 0px 8px 24px";
|
|
8692
|
+
};
|
|
8693
|
+
};
|
|
8694
|
+
readonly identity: {
|
|
8695
|
+
readonly default: {
|
|
8696
|
+
readonly display: "flex";
|
|
8697
|
+
readonly 'flex-direction': "column";
|
|
8698
|
+
readonly gap: "2px";
|
|
8699
|
+
readonly 'padding-top': "8px";
|
|
8700
|
+
readonly 'padding-right': "10px";
|
|
8701
|
+
readonly 'padding-bottom': "10px";
|
|
8702
|
+
readonly 'padding-left': "10px";
|
|
8703
|
+
readonly 'margin-bottom': "4px";
|
|
8704
|
+
readonly 'border-bottom': "1px solid light-dark(oklch(0.92 0.004 286.32), oklch(0.32 0.006 285.885))";
|
|
8705
|
+
};
|
|
8706
|
+
};
|
|
8707
|
+
readonly signOut: {
|
|
8708
|
+
readonly default: {
|
|
8709
|
+
readonly display: "flex";
|
|
8710
|
+
readonly width: "100%";
|
|
8711
|
+
readonly 'padding-top': "8px";
|
|
8712
|
+
readonly 'padding-right': "10px";
|
|
8713
|
+
readonly 'padding-bottom': "8px";
|
|
8714
|
+
readonly 'padding-left': "10px";
|
|
8715
|
+
readonly 'border-top-width': "0px";
|
|
8716
|
+
readonly 'border-right-width': "0px";
|
|
8717
|
+
readonly 'border-bottom-width': "0px";
|
|
8718
|
+
readonly 'border-left-width': "0px";
|
|
8719
|
+
readonly 'border-top-left-radius': "8px";
|
|
8720
|
+
readonly 'border-top-right-radius': "8px";
|
|
8721
|
+
readonly 'border-bottom-left-radius': "8px";
|
|
8722
|
+
readonly 'border-bottom-right-radius': "8px";
|
|
8723
|
+
readonly 'background-color': "transparent";
|
|
8724
|
+
readonly color: "inherit";
|
|
8725
|
+
readonly font: "inherit";
|
|
8726
|
+
readonly 'text-align': "left";
|
|
8727
|
+
readonly cursor: "pointer";
|
|
8728
|
+
};
|
|
8729
|
+
};
|
|
8730
|
+
};
|
|
8731
|
+
readonly subTypes: {};
|
|
8732
|
+
};
|
|
8733
|
+
};
|
|
8734
|
+
}, Partial<{
|
|
8735
|
+
signInHref?: string | undefined;
|
|
8736
|
+
signInLabel?: string | undefined;
|
|
8737
|
+
signOutLabel?: string | undefined;
|
|
8738
|
+
signOutHref?: string | undefined;
|
|
8739
|
+
}>>;
|
|
8740
|
+
readonly Avatar: DeclaredElement< {
|
|
8741
|
+
readonly type: "avatar";
|
|
8742
|
+
readonly contentAttributes: readonly ["src", "name"];
|
|
8743
|
+
readonly content: {
|
|
8744
|
+
readonly attributes: {
|
|
8745
|
+
readonly src: "";
|
|
8746
|
+
readonly name: "";
|
|
8747
|
+
readonly decorative: false;
|
|
8748
|
+
};
|
|
8749
|
+
readonly definition: {
|
|
8750
|
+
readonly label: "Avatar";
|
|
8751
|
+
readonly description: string;
|
|
8752
|
+
readonly items: [];
|
|
8753
|
+
readonly styleSelectors: {
|
|
8754
|
+
readonly image: "";
|
|
8755
|
+
};
|
|
8756
|
+
};
|
|
8757
|
+
readonly market: {
|
|
8758
|
+
readonly category: "user";
|
|
8759
|
+
readonly icon: "fa-solid fa-circle-user";
|
|
8760
|
+
};
|
|
8761
|
+
readonly defaultStyle: {
|
|
8762
|
+
readonly style: {
|
|
8763
|
+
readonly base: {
|
|
8764
|
+
readonly default: {
|
|
8765
|
+
readonly display: "inline-flex";
|
|
8766
|
+
readonly 'align-items': "center";
|
|
8767
|
+
readonly 'justify-content': "center";
|
|
8768
|
+
readonly 'flex-shrink': 0;
|
|
8769
|
+
readonly width: "40px";
|
|
8770
|
+
readonly height: "40px";
|
|
8771
|
+
readonly overflow: "hidden";
|
|
8772
|
+
readonly 'border-top-left-radius': "50%";
|
|
8773
|
+
readonly 'border-top-right-radius': "50%";
|
|
8774
|
+
readonly 'border-bottom-left-radius': "50%";
|
|
8775
|
+
readonly 'border-bottom-right-radius': "50%";
|
|
8776
|
+
readonly 'font-size': "15px";
|
|
8777
|
+
readonly 'font-weight': 600;
|
|
8778
|
+
readonly 'line-height': 1;
|
|
8779
|
+
readonly 'user-select': "none";
|
|
8780
|
+
readonly 'background-color': "light-dark(oklch(0.9 0.06 var(--plitzi-avatar-hue, 260)), oklch(0.38 0.07 var(--plitzi-avatar-hue, 260)))";
|
|
8781
|
+
readonly color: "light-dark(oklch(0.36 0.09 var(--plitzi-avatar-hue, 260)), oklch(0.93 0.04 var(--plitzi-avatar-hue, 260)))";
|
|
8782
|
+
};
|
|
8783
|
+
};
|
|
8784
|
+
readonly image: {
|
|
8785
|
+
readonly default: {
|
|
8786
|
+
readonly width: "100%";
|
|
8787
|
+
readonly height: "100%";
|
|
8788
|
+
readonly 'object-fit': "cover";
|
|
8789
|
+
};
|
|
8790
|
+
};
|
|
8791
|
+
};
|
|
8792
|
+
readonly subTypes: {};
|
|
8793
|
+
};
|
|
8794
|
+
};
|
|
8795
|
+
}, Partial<{
|
|
8796
|
+
name?: string | undefined;
|
|
8797
|
+
src?: string | undefined;
|
|
8798
|
+
decorative?: boolean | undefined;
|
|
8799
|
+
}>>;
|
|
8800
|
+
readonly SignInForm: DeclaredElement< {
|
|
8801
|
+
readonly type: "signInForm";
|
|
8802
|
+
readonly contentAttributes: readonly ["usernameLabel", "passwordLabel", "codeLabel", "submitLabel"];
|
|
8803
|
+
readonly content: {
|
|
8804
|
+
readonly attributes: {
|
|
8805
|
+
readonly usernameLabel: "Email";
|
|
8806
|
+
readonly passwordLabel: "Password";
|
|
8807
|
+
readonly codeLabel: "Code";
|
|
8808
|
+
readonly submitLabel: "Sign in";
|
|
8809
|
+
readonly redirectTo: "";
|
|
8810
|
+
readonly wrongMessage: "That email or password is not right.";
|
|
8811
|
+
readonly unverifiedMessage: "Confirm your email first: the link is in your inbox.";
|
|
8812
|
+
readonly blockedMessage: "This account cannot sign in.";
|
|
8813
|
+
readonly ssoMessage: "Your organization signs you in with its own single sign-on.";
|
|
8814
|
+
readonly networkMessage: "Signing in could not be reached. Try again in a moment.";
|
|
8815
|
+
};
|
|
8816
|
+
readonly definition: {
|
|
8817
|
+
readonly label: "Sign-in Form";
|
|
8818
|
+
readonly description: string;
|
|
8819
|
+
readonly items: [];
|
|
8820
|
+
readonly styleSelectors: {
|
|
8821
|
+
readonly field: "";
|
|
8822
|
+
readonly label: "";
|
|
8823
|
+
readonly input: "";
|
|
8824
|
+
readonly submit: "";
|
|
8825
|
+
readonly problem: "";
|
|
8826
|
+
};
|
|
8827
|
+
};
|
|
8828
|
+
readonly market: {
|
|
8829
|
+
readonly category: "user";
|
|
8830
|
+
readonly icon: "fa-solid fa-right-to-bracket";
|
|
8831
|
+
};
|
|
8832
|
+
readonly defaultStyle: {
|
|
8833
|
+
readonly style: {
|
|
8834
|
+
readonly base: {
|
|
8835
|
+
readonly default: {
|
|
8836
|
+
readonly display: "flex";
|
|
8837
|
+
readonly 'flex-direction': "column";
|
|
8838
|
+
readonly gap: "12px";
|
|
8839
|
+
readonly 'max-width': "360px";
|
|
8840
|
+
};
|
|
8841
|
+
};
|
|
8842
|
+
readonly field: {
|
|
8843
|
+
readonly default: {
|
|
8844
|
+
readonly display: "flex";
|
|
8845
|
+
readonly 'flex-direction': "column";
|
|
8846
|
+
readonly gap: "4px";
|
|
8847
|
+
};
|
|
8848
|
+
};
|
|
8849
|
+
readonly label: {
|
|
8850
|
+
readonly default: {
|
|
8851
|
+
readonly 'font-size': "0.875em";
|
|
8852
|
+
readonly 'font-weight': 500;
|
|
8853
|
+
};
|
|
8854
|
+
};
|
|
8855
|
+
readonly input: {
|
|
8856
|
+
readonly default: {
|
|
8857
|
+
readonly 'padding-top': "8px";
|
|
8858
|
+
readonly 'padding-right': "10px";
|
|
8859
|
+
readonly 'padding-bottom': "8px";
|
|
8860
|
+
readonly 'padding-left': "10px";
|
|
8861
|
+
readonly border: "1px solid light-dark(oklch(0.871 0.006 286.286), oklch(0.37 0.013 285.805))";
|
|
8862
|
+
readonly 'border-top-left-radius': "8px";
|
|
8863
|
+
readonly 'border-top-right-radius': "8px";
|
|
8864
|
+
readonly 'border-bottom-left-radius': "8px";
|
|
8865
|
+
readonly 'border-bottom-right-radius': "8px";
|
|
8866
|
+
readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
|
|
8867
|
+
readonly color: "inherit";
|
|
8868
|
+
readonly font: "inherit";
|
|
8869
|
+
};
|
|
8870
|
+
};
|
|
8871
|
+
readonly submit: {
|
|
8872
|
+
readonly default: {
|
|
8873
|
+
readonly 'padding-top': "10px";
|
|
8874
|
+
readonly 'padding-right': "14px";
|
|
8875
|
+
readonly 'padding-bottom': "10px";
|
|
8876
|
+
readonly 'padding-left': "14px";
|
|
8877
|
+
readonly 'border-top-width': "0px";
|
|
8878
|
+
readonly 'border-right-width': "0px";
|
|
8879
|
+
readonly 'border-bottom-width': "0px";
|
|
8880
|
+
readonly 'border-left-width': "0px";
|
|
8881
|
+
readonly 'border-top-left-radius': "8px";
|
|
8882
|
+
readonly 'border-top-right-radius': "8px";
|
|
8883
|
+
readonly 'border-bottom-left-radius': "8px";
|
|
8884
|
+
readonly 'border-bottom-right-radius': "8px";
|
|
8885
|
+
readonly 'background-color': "light-dark(oklch(0.21 0.006 285.885), oklch(0.985 0 0))";
|
|
8886
|
+
readonly color: "light-dark(oklch(0.985 0 0), oklch(0.21 0.006 285.885))";
|
|
8887
|
+
readonly font: "inherit";
|
|
8888
|
+
readonly 'font-weight': 600;
|
|
8889
|
+
readonly cursor: "pointer";
|
|
8890
|
+
};
|
|
8891
|
+
};
|
|
8892
|
+
readonly problem: {
|
|
8893
|
+
readonly default: {
|
|
8894
|
+
readonly margin: "0px";
|
|
8895
|
+
readonly color: "light-dark(oklch(0.505 0.213 27.518), oklch(0.704 0.191 22.216))";
|
|
8896
|
+
readonly 'font-size': "0.875em";
|
|
8897
|
+
};
|
|
8898
|
+
};
|
|
8899
|
+
};
|
|
8900
|
+
readonly subTypes: {};
|
|
8901
|
+
};
|
|
8902
|
+
};
|
|
8903
|
+
}, Partial<{
|
|
8904
|
+
wrongMessage?: string | undefined;
|
|
8905
|
+
unverifiedMessage?: string | undefined;
|
|
8906
|
+
blockedMessage?: string | undefined;
|
|
8907
|
+
ssoMessage?: string | undefined;
|
|
8908
|
+
networkMessage?: string | undefined;
|
|
8909
|
+
usernameLabel?: string | undefined;
|
|
8910
|
+
passwordLabel?: string | undefined;
|
|
8911
|
+
codeLabel?: string | undefined;
|
|
8912
|
+
submitLabel?: string | undefined;
|
|
8913
|
+
redirectTo?: string | undefined;
|
|
8914
|
+
}>>;
|
|
8915
|
+
readonly Video: DeclaredElement< {
|
|
8916
|
+
readonly type: "video";
|
|
8917
|
+
readonly contentAttributes: readonly ["src"];
|
|
8918
|
+
readonly content: {
|
|
8919
|
+
readonly attributes: {
|
|
8920
|
+
readonly src: "";
|
|
8921
|
+
readonly autoPlay: false;
|
|
8922
|
+
readonly playsInline: false;
|
|
8923
|
+
readonly loop: false;
|
|
8924
|
+
readonly muted: true;
|
|
8925
|
+
};
|
|
8926
|
+
readonly definition: {
|
|
8927
|
+
readonly label: "Video";
|
|
8928
|
+
readonly description: "Embeds a video from a URL.";
|
|
8929
|
+
};
|
|
8930
|
+
readonly market: {
|
|
8931
|
+
readonly category: "media";
|
|
8932
|
+
readonly icon: "fa-solid fa-video";
|
|
8933
|
+
};
|
|
8934
|
+
readonly defaultStyle: {
|
|
8935
|
+
readonly style: {
|
|
8936
|
+
readonly base: {
|
|
8937
|
+
readonly default: {
|
|
8938
|
+
readonly display: "block";
|
|
8939
|
+
readonly width: "400px";
|
|
8940
|
+
readonly height: "250px";
|
|
8941
|
+
};
|
|
8942
|
+
};
|
|
8943
|
+
};
|
|
8944
|
+
};
|
|
8945
|
+
};
|
|
8946
|
+
}, Partial<{
|
|
8947
|
+
src?: string | undefined;
|
|
8948
|
+
autoPlay?: boolean | undefined;
|
|
8949
|
+
loop?: boolean | undefined;
|
|
8950
|
+
muted?: boolean | undefined;
|
|
8951
|
+
playsInline?: boolean | undefined;
|
|
8952
|
+
}>>;
|
|
8953
|
+
};
|
|
8954
|
+
|
|
8955
|
+
/** What {@link elementDeclaration} takes: the declaration as written, `content` holding only what is the element's. */
|
|
8956
|
+
export declare interface ElementDeclarationSpec extends Omit<ElementDeclarationData, 'content'> {
|
|
8957
|
+
content: ElementContentSpec;
|
|
8958
|
+
}
|
|
8959
|
+
|
|
8960
|
+
/** The attributes each built-in type starts with — what a factory merges under the author's own. */
|
|
8961
|
+
export declare const elementDefaultAttributes: Record<string, Record<string, unknown>>;
|
|
8962
|
+
|
|
8963
|
+
export declare type ElementDefinition = {
|
|
8964
|
+
rootId: Element_2['id'];
|
|
8965
|
+
label: string;
|
|
8966
|
+
type: string;
|
|
8967
|
+
parentId?: Element_2['id'];
|
|
8968
|
+
items?: Element_2['id'][];
|
|
8969
|
+
styleSelectors: {
|
|
8970
|
+
base: string;
|
|
8167
8971
|
[selector: string]: string;
|
|
8168
8972
|
};
|
|
8169
8973
|
bindings?: Partial<Record<BindingCategory, ElementBinding[]>>;
|
|
@@ -8626,17 +9430,17 @@ export declare const embed: {
|
|
|
8626
9430
|
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
8627
9431
|
title?: string | undefined;
|
|
8628
9432
|
src?: string | undefined;
|
|
9433
|
+
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
8629
9434
|
allow?: string | undefined;
|
|
8630
9435
|
loading?: "lazy" | "eager" | undefined;
|
|
8631
|
-
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
8632
9436
|
sandbox?: string | undefined;
|
|
8633
9437
|
}>> | undefined): ElementSpec;
|
|
8634
9438
|
(props?: ElementProps<Partial<{
|
|
8635
9439
|
title?: string | undefined;
|
|
8636
9440
|
src?: string | undefined;
|
|
9441
|
+
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
8637
9442
|
allow?: string | undefined;
|
|
8638
9443
|
loading?: "lazy" | "eager" | undefined;
|
|
8639
|
-
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
8640
9444
|
sandbox?: string | undefined;
|
|
8641
9445
|
}>> | undefined): ElementSpec;
|
|
8642
9446
|
};
|
|
@@ -9075,6 +9879,37 @@ declare type FormControlProps = {
|
|
|
9075
9879
|
|
|
9076
9880
|
declare type FormControlSubType = (typeof FORM_CONTROL_SUBTYPES)[number];
|
|
9077
9881
|
|
|
9882
|
+
/**
|
|
9883
|
+
* Shows an element on the whole screen — a map, a board, a gallery — and back: `fullscreen('map')` toggles it,
|
|
9884
|
+
* `fullscreen('map', 'exit')` leaves. Where the browser cannot, the step fails and the flow's `onFailure` runs.
|
|
9885
|
+
*/
|
|
9886
|
+
export declare const fullscreen: (target: string, mode?: FullscreenMode) => StepSpec;
|
|
9887
|
+
|
|
9888
|
+
/**
|
|
9889
|
+
* An element shown on the whole screen — a map, a board, a gallery, a video — and back. Its node names the element; a
|
|
9890
|
+
* browser that cannot (an iPhone shows only a video so) fails the step, and the flow's `onFailure` says so.
|
|
9891
|
+
*/
|
|
9892
|
+
export declare const FULLSCREEN_CALLBACKS: {
|
|
9893
|
+
fullscreen: {
|
|
9894
|
+
title: string;
|
|
9895
|
+
type: "callback";
|
|
9896
|
+
strictParams: true;
|
|
9897
|
+
params: {
|
|
9898
|
+
mode: {
|
|
9899
|
+
type: "select";
|
|
9900
|
+
description: string;
|
|
9901
|
+
default: string;
|
|
9902
|
+
options: ("enter" | "toggle" | "exit")[];
|
|
9903
|
+
};
|
|
9904
|
+
};
|
|
9905
|
+
};
|
|
9906
|
+
};
|
|
9907
|
+
|
|
9908
|
+
/** How a `fullscreen` step moves: in or out as it is (`toggle`), or one way. */
|
|
9909
|
+
export declare const FULLSCREEN_MODES: readonly ["toggle", "enter", "exit"];
|
|
9910
|
+
|
|
9911
|
+
export declare type FullscreenMode = (typeof FULLSCREEN_MODES)[number];
|
|
9912
|
+
|
|
9078
9913
|
/** The built-in element callback for an action, or undefined when the action is not a known built-in (an
|
|
9079
9914
|
* element-type-specific/plugin callback whose schema is not knowable here). */
|
|
9080
9915
|
export declare const getElementCallback: (action: string) => BuiltinElementCallback | undefined;
|
|
@@ -9199,6 +10034,7 @@ export declare const image: {
|
|
|
9199
10034
|
alt?: string | undefined;
|
|
9200
10035
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
9201
10036
|
decorative?: boolean | undefined;
|
|
10037
|
+
fallbackSrc?: string | undefined;
|
|
9202
10038
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
9203
10039
|
}>> | undefined): ElementSpec;
|
|
9204
10040
|
(props?: ElementProps<Partial<{
|
|
@@ -9210,6 +10046,7 @@ export declare const image: {
|
|
|
9210
10046
|
alt?: string | undefined;
|
|
9211
10047
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
9212
10048
|
decorative?: boolean | undefined;
|
|
10049
|
+
fallbackSrc?: string | undefined;
|
|
9213
10050
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
9214
10051
|
}>> | undefined): ElementSpec;
|
|
9215
10052
|
};
|
|
@@ -10406,6 +11243,9 @@ export declare const onClick: (params?: {
|
|
|
10406
11243
|
propagateEvent?: boolean;
|
|
10407
11244
|
}) => StepSpec;
|
|
10408
11245
|
|
|
11246
|
+
/** A countdown reached zero — while somebody watched, or before the page opened: once per page. */
|
|
11247
|
+
export declare const onCountdownEnd: () => StepSpec;
|
|
11248
|
+
|
|
10409
11249
|
export declare const onDialogAccept: () => StepSpec;
|
|
10410
11250
|
|
|
10411
11251
|
export declare const onDialogClose: () => StepSpec;
|
|
@@ -11369,6 +12209,11 @@ export declare type PluginSchema = {
|
|
|
11369
12209
|
definition: Element_2['definition'];
|
|
11370
12210
|
/** The attributes a role that edits the content and not the design may change; none, it may change none. */
|
|
11371
12211
|
contentAttributes?: string[];
|
|
12212
|
+
/**
|
|
12213
|
+
* The element this one only works somewhere inside — a carousel's track, an A/B test's variant: the builder's
|
|
12214
|
+
* catalogue lists it after that one, as a part of it.
|
|
12215
|
+
*/
|
|
12216
|
+
ancestorType?: string;
|
|
11372
12217
|
defaultStyle: {
|
|
11373
12218
|
name: string;
|
|
11374
12219
|
displayMode: DisplayMode;
|
|
@@ -11599,6 +12444,12 @@ export declare const publishOn: (target: string, type: string, data?: unknown, {
|
|
|
11599
12444
|
echo?: boolean;
|
|
11600
12445
|
}) => StepSpec;
|
|
11601
12446
|
|
|
12447
|
+
/**
|
|
12448
|
+
* A goal reached — `reachGoal('signup')` — counted in the space's analytics as a conversion of each A/B variant the
|
|
12449
|
+
* visitor is shown. Letters, digits, `-` and `_`.
|
|
12450
|
+
*/
|
|
12451
|
+
export declare const reachGoal: (goal: string) => StepSpec;
|
|
12452
|
+
|
|
11602
12453
|
/** The page's dev tools, read: the flows that ran and, when asked, the state, the sources and one element. */
|
|
11603
12454
|
export declare const readDevTools: (driver: DevToolsDriver, input: DevToolsInput) => Promise<DevToolsReport>;
|
|
11604
12455
|
|
|
@@ -12171,9 +13022,20 @@ export declare type Schema = {
|
|
|
12171
13022
|
*/
|
|
12172
13023
|
export declare type SchemaFlag = {
|
|
12173
13024
|
description?: string;
|
|
12174
|
-
/** The answer when no rule matches. */
|
|
13025
|
+
/** The answer when no rule matches — and no rollout takes the visitor in. */
|
|
12175
13026
|
value: boolean;
|
|
12176
13027
|
rules: SchemaFlagRule[];
|
|
13028
|
+
/**
|
|
13029
|
+
* A gradual rollout, read when no rule matches: `percent` of the visitors (0–100) get `value`, the rest the flag's own
|
|
13030
|
+
* `value`. Each visitor is kept in their place by a cookie, so raising the percent keeps everyone who was in.
|
|
13031
|
+
*/
|
|
13032
|
+
rollout?: SchemaFlagRollout;
|
|
13033
|
+
};
|
|
13034
|
+
|
|
13035
|
+
/** A share of the visitors a flag answers `value` for, when none of its rules matched. */
|
|
13036
|
+
declare type SchemaFlagRollout = {
|
|
13037
|
+
percent: number;
|
|
13038
|
+
value: boolean;
|
|
12177
13039
|
};
|
|
12178
13040
|
|
|
12179
13041
|
/** A value a flag takes where its `when` matches. The first rule that matches decides. */
|
|
@@ -12451,6 +13313,17 @@ export declare interface SettlingRequest {
|
|
|
12451
13313
|
headers(): Record<string, string>;
|
|
12452
13314
|
}
|
|
12453
13315
|
|
|
13316
|
+
/**
|
|
13317
|
+
* Shares an address — this page's when none is given — through the device's own sheet, or copies it where the browser
|
|
13318
|
+
* has none. Named, it answers `{{ <id>.copied }}` and `{{ <id>.shared }}`: `named('sent', share({ title: '{{ page.title
|
|
13319
|
+
* }}' }))`, then a toast on `sent.copied` says "Link copied" only when it was.
|
|
13320
|
+
*/
|
|
13321
|
+
export declare const share: (what?: {
|
|
13322
|
+
url?: string;
|
|
13323
|
+
title?: string;
|
|
13324
|
+
text?: string;
|
|
13325
|
+
}) => StepSpec;
|
|
13326
|
+
|
|
12454
13327
|
/** A shortcut as `onKey` writes it, as the key a driver presses. Refuses anything `onKey` would. */
|
|
12455
13328
|
export declare const shortcutKey: (shortcut: string, isMac: boolean) => string;
|
|
12456
13329
|
|
|
@@ -12483,6 +13356,34 @@ declare interface SignedInTestAccount extends E2eAccount {
|
|
|
12483
13356
|
permissions: string[];
|
|
12484
13357
|
}
|
|
12485
13358
|
|
|
13359
|
+
/** The space's sign-in: `signInForm({ redirectTo: '/dashboard' })` — one button through Plitzi, a form for `basic`. */
|
|
13360
|
+
export declare const signInForm: {
|
|
13361
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
13362
|
+
wrongMessage?: string | undefined;
|
|
13363
|
+
unverifiedMessage?: string | undefined;
|
|
13364
|
+
blockedMessage?: string | undefined;
|
|
13365
|
+
ssoMessage?: string | undefined;
|
|
13366
|
+
networkMessage?: string | undefined;
|
|
13367
|
+
usernameLabel?: string | undefined;
|
|
13368
|
+
passwordLabel?: string | undefined;
|
|
13369
|
+
codeLabel?: string | undefined;
|
|
13370
|
+
submitLabel?: string | undefined;
|
|
13371
|
+
redirectTo?: string | undefined;
|
|
13372
|
+
}>> | undefined): ElementSpec;
|
|
13373
|
+
(props?: ElementProps<Partial<{
|
|
13374
|
+
wrongMessage?: string | undefined;
|
|
13375
|
+
unverifiedMessage?: string | undefined;
|
|
13376
|
+
blockedMessage?: string | undefined;
|
|
13377
|
+
ssoMessage?: string | undefined;
|
|
13378
|
+
networkMessage?: string | undefined;
|
|
13379
|
+
usernameLabel?: string | undefined;
|
|
13380
|
+
passwordLabel?: string | undefined;
|
|
13381
|
+
codeLabel?: string | undefined;
|
|
13382
|
+
submitLabel?: string | undefined;
|
|
13383
|
+
redirectTo?: string | undefined;
|
|
13384
|
+
}>> | undefined): ElementSpec;
|
|
13385
|
+
};
|
|
13386
|
+
|
|
12486
13387
|
/**
|
|
12487
13388
|
* A space with nothing but one page, for a test that is about what is ON it.
|
|
12488
13389
|
*
|
|
@@ -13561,6 +14462,12 @@ export declare type SuggestionCode = {
|
|
|
13561
14462
|
[Code in AuthoringCode]: Codes[Code]['kind'] extends 'suggested' ? Code : never;
|
|
13562
14463
|
}[AuthoringCode];
|
|
13563
14464
|
|
|
14465
|
+
/**
|
|
14466
|
+
* `suggestSpace`, knowing this SDK's own elements: the variants of a Variants element side by side are versions of
|
|
14467
|
+
* one place, never offered as a list — what `authorSpace` says of them too.
|
|
14468
|
+
*/
|
|
14469
|
+
export declare const suggestSpace: (documents: Parameters<typeof suggestSpace_2>[0], options?: Parameters<typeof suggestSpace_2>[1]) => Suggestion[];
|
|
14470
|
+
|
|
13564
14471
|
/**
|
|
13565
14472
|
* A shorter way to the same page: what a space's documents could say with fewer elements or less CSS — or, for its
|
|
13566
14473
|
* animations, a lighter one, and for its headings, an outline a screen reader reads whole.
|
|
@@ -13573,10 +14480,10 @@ export declare type SuggestionCode = {
|
|
|
13573
14480
|
* Each names what to write instead, and the ones about elements say how many it saves, which is what they are ranked
|
|
13574
14481
|
* by.
|
|
13575
14482
|
*/
|
|
13576
|
-
|
|
14483
|
+
declare const suggestSpace_2: ({ schema, style }: {
|
|
13577
14484
|
schema: Schema;
|
|
13578
14485
|
style: Style;
|
|
13579
|
-
}, { stylesheets, families, pluginTypes }?: {
|
|
14486
|
+
}, { stylesheets, families, pluginTypes, ancestorTypes }?: {
|
|
13580
14487
|
/** The CSS the pages load besides the space's own — its plugins' stylesheets: a token read there is read. */
|
|
13581
14488
|
stylesheets?: readonly string[];
|
|
13582
14489
|
/** The pages each `pageFamily` wrote, by id: what they share is written once, never a copy. */
|
|
@@ -13586,6 +14493,8 @@ export declare const suggestSpace: ({ schema, style }: {
|
|
|
13586
14493
|
* declaration it has — a `custom` element naming one placed it by name.
|
|
13587
14494
|
*/
|
|
13588
14495
|
pluginTypes?: readonly string[];
|
|
14496
|
+
/** The types that only work inside another, and that type (`elementAncestorTypes`): a Variants element's variants. */
|
|
14497
|
+
ancestorTypes?: Readonly<Record<string, string>>;
|
|
13589
14498
|
}) => Suggestion[];
|
|
13590
14499
|
|
|
13591
14500
|
/** The closest known transformer action to a mistyped one (substring match either way), so a wrong action like
|
|
@@ -13741,6 +14650,18 @@ export declare const themeToggle: {
|
|
|
13741
14650
|
}>> | undefined): ElementSpec;
|
|
13742
14651
|
};
|
|
13743
14652
|
|
|
14653
|
+
/** What shows only between two instants: `timeWindow({ startsAt: '2026-12-01T09:00:00Z', endsAt: '…', children })`. */
|
|
14654
|
+
export declare const timeWindow: {
|
|
14655
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
14656
|
+
startsAt?: string | undefined;
|
|
14657
|
+
endsAt?: string | undefined;
|
|
14658
|
+
}>> | undefined): ElementSpec;
|
|
14659
|
+
(props?: ElementProps<Partial<{
|
|
14660
|
+
startsAt?: string | undefined;
|
|
14661
|
+
endsAt?: string | undefined;
|
|
14662
|
+
}>> | undefined): ElementSpec;
|
|
14663
|
+
};
|
|
14664
|
+
|
|
13744
14665
|
/** Both binding forms as one list. The map form targets attributes, which is what nearly every binding does. */
|
|
13745
14666
|
export declare const toBindingSpecs: (bind: BindingsSpec) => BindingSpec[];
|
|
13746
14667
|
|
|
@@ -14154,6 +15075,37 @@ export declare interface VariantFromOptions {
|
|
|
14154
15075
|
template?: string;
|
|
14155
15076
|
}
|
|
14156
15077
|
|
|
15078
|
+
export declare const variantItem: {
|
|
15079
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
15080
|
+
when?: RuleGroup | undefined;
|
|
15081
|
+
weight?: number | undefined;
|
|
15082
|
+
}>> | undefined): ElementSpec;
|
|
15083
|
+
(props?: ElementProps<Partial<{
|
|
15084
|
+
when?: RuleGroup | undefined;
|
|
15085
|
+
weight?: number | undefined;
|
|
15086
|
+
}>> | undefined): ElementSpec;
|
|
15087
|
+
};
|
|
15088
|
+
|
|
15089
|
+
/**
|
|
15090
|
+
* Variants: each visitor sees one of its variants. By chance (an A/B test) — `variants({ children: [variantItem({ weight: 90, children: [a]
|
|
15091
|
+
* }), variantItem({ weight: 10, children: [b] })] })`, drawn by the shares and kept when they come back, named after the
|
|
15092
|
+
* element until it says `experiment`. By rules — `variants({ chooseBy: 'rules', children: [variantItem({ when: { combinator:
|
|
15093
|
+
* 'and', rules: [{ field: 'visitor.device', operator: '=', value: 'mobile' }] }, children: [phones] }),
|
|
15094
|
+
* variantItem([everyone])] })` — the first whose rule they match; one with no `when` is for everybody else.
|
|
15095
|
+
*/
|
|
15096
|
+
export declare const variants: {
|
|
15097
|
+
(children: ElementSpec[], props?: ElementProps<Partial<{
|
|
15098
|
+
chooseBy?: ChooseBy | undefined;
|
|
15099
|
+
experiment?: string | undefined;
|
|
15100
|
+
builderVariant?: number | undefined;
|
|
15101
|
+
}>> | undefined): ElementSpec;
|
|
15102
|
+
(props?: ElementProps<Partial<{
|
|
15103
|
+
chooseBy?: ChooseBy | undefined;
|
|
15104
|
+
experiment?: string | undefined;
|
|
15105
|
+
builderVariant?: number | undefined;
|
|
15106
|
+
}>> | undefined): ElementSpec;
|
|
15107
|
+
};
|
|
15108
|
+
|
|
14157
15109
|
/** One variant of a selector: what it changes, and how it reacts on its own. A variant cannot carry variants. */
|
|
14158
15110
|
export declare interface VariantSpec {
|
|
14159
15111
|
css?: CssSpec;
|