@vectoriox/iox-ui 5.128.1 → 5.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commerce-core/index.d.ts +29 -2
- package/composite-core/index.d.ts +130 -2
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +39 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +328 -141
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +21 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +680 -61
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +20 -0
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +16 -1
- package/generation-core/index.d.ts +251 -13
- package/package.json +1 -1
- package/src/commerce-core/site-checkout.ts +49 -0
- package/src/composite-core/consent.ts +235 -0
- package/src/composite-core/public-api.ts +1 -0
- package/src/forms-core/form-presets.ts +28 -0
- package/src/generation-core/audit-site.ts +167 -17
- package/src/generation-core/compose-site.ts +208 -11
- package/src/generation-core/legal.ts +213 -0
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/section-stamp.ts +145 -0
- package/src/generation-core/serialized-node.ts +15 -0
- package/src/generation-core/site-spec.generated.ts +41 -8
- package/src/generation-core/site-tree.ts +5 -1
package/forms-core/index.d.ts
CHANGED
|
@@ -669,6 +669,10 @@ interface FormPresetDef {
|
|
|
669
669
|
successText: string;
|
|
670
670
|
errorText: string;
|
|
671
671
|
channel?: FormPresetChannel;
|
|
672
|
+
/** What happens after the answers are stored (iox-cms#84): the steps beside `store`, which is always first. A preset
|
|
673
|
+
* that says it emails the owner carries `{ type: 'email', config: { toOwner: true } }` — the address is the studio
|
|
674
|
+
* owner's account, read by the server at delivery, never written into a page. */
|
|
675
|
+
actions?: readonly SubmitAction[];
|
|
672
676
|
/** `false`: the AI plan wire does not offer it yet (the lead preset ships in the builder in M3; generation takes it
|
|
673
677
|
* up in premium M8 — the wire's enum is model-facing and does not change before then). */
|
|
674
678
|
inPlan?: false;
|
|
@@ -678,6 +682,17 @@ declare function planFormPresetIds(): string[];
|
|
|
678
682
|
declare const FORM_PRESETS: readonly FormPresetDef[];
|
|
679
683
|
/** The preset with this id, or undefined. */
|
|
680
684
|
declare function formPresetById(id: string | null | undefined): FormPresetDef | undefined;
|
|
685
|
+
/** The config key of an email step that goes to the studio owner's account address (iox-cms#84). */
|
|
686
|
+
declare const EMAIL_TO_OWNER = "toOwner";
|
|
687
|
+
/** True for an email step that goes to the studio owner — ONE reading for the server's delivery and the builder's panel. */
|
|
688
|
+
declare function emailsOwner(action: Pick<SubmitAction, 'type' | 'config'> | null | undefined): boolean;
|
|
689
|
+
/**
|
|
690
|
+
* A preset's `actions` trait, as a Form stamped from it holds it: `store` first, then the preset's own steps — fresh
|
|
691
|
+
* objects every call (a stamped node is edited in place). Null when the preset has no step of its own, so the Form keeps
|
|
692
|
+
* its type's default (`[store]`). The builder's tray (`buildFormPreset`) and the composer (`stampPresetForm`) both
|
|
693
|
+
* write this — ONE recipe (R-H9).
|
|
694
|
+
*/
|
|
695
|
+
declare function presetFormActions(def: Pick<FormPresetDef, 'actions'> | null | undefined): SubmitAction[] | null;
|
|
681
696
|
|
|
682
697
|
declare enum InteractiveTag {
|
|
683
698
|
Anchor = "a",
|
|
@@ -890,5 +905,5 @@ interface FieldMarkupOptions {
|
|
|
890
905
|
/** A Field's whole element, as the string renderer writes it. */
|
|
891
906
|
declare function fieldHtml(props: Record<string, any> | null | undefined, options: FieldMarkupOptions): string;
|
|
892
907
|
|
|
893
|
-
export { CALENDAR_ROWS, CHANNEL_KINDS, CHOICE_MESSAGE_KEYS, CalendarKey, ChannelKind, ChoiceAppearance, ControlType, DATE_EMPTY_ATTRIBUTE, DATE_ICON_SVG, DATE_MAX_ATTRIBUTE, DATE_MESSAGE_KEYS, DATE_MIN_ATTRIBUTE, DATE_PICKER_WORDS, DEFAULT_EN_MESSAGES, FIELD_GROUP_NODE_TYPE, FIELD_NODE_TYPE, FORM_ACTIONS_ROLE, FORM_AFTER_SEND_ATTRIBUTE, FORM_AFTER_SEND_TRAIT, FORM_ANNOUNCER_ATTRIBUTE, FORM_CHANNEL_ROLE, FORM_CONTENT_TYPES, FORM_ERROR_KEYS, FORM_FIELDS_ATTRIBUTE, FORM_HONEYPOT_CLASS, FORM_NODE_TYPE, FORM_PRESETS, FORM_STATE_ATTRIBUTE, FeedbackTiming, FormAfterSend, FormPresetId, FormRenderState, HONEYPOT_FIELD, IMPLIED_PATTERN, INITIAL_FORM_STATE, INTERACTIVE_HOST_TAGS, InteractiveTag, MESSAGE_NAMESPACE, OPTION_CONTROLS, PATTERN_MESSAGE_KEYS, PATTERN_PRESETS, PATTERN_PRESET_OPTIONS, PatternPreset, RENDERED_AT_FIELD, RULE_DESCRIPTORS, RULE_MESSAGE_KEYS, RuleName, RuleParamKind, STORE_ACTION, SUBMIT_BUTTON_NODE_TYPE, SUBMIT_CHECK_SVG, SUBMIT_KEEP_ENABLED_ATTRIBUTE, SUBMIT_MESSAGE_KEYS, SubmitLabelClass, addDaysIso, addMonthsIso, addableRules, applyServerErrors, baseFieldName, calendarKeyTarget, calendarMonth, channelHref, channelOpensNewTab, choiceAppearanceOf, clampIso, clientFormSpec, collectFieldNodes, collectFormSpec, dateBoundRules, dateOfIso, datePickerWords, deriveFieldName, failureAnnouncement, fieldDateRange, fieldHtml, fieldOptionsOf, fieldSpecOf, findFormContentInHosts, firstInvalidField, formAfterSend, formChromeHtml, formContentInHost, formFieldNameMap, formFieldNames, formPresetById, formatDateInWords, inputTypeOf, interpretSubmitResponse, isChannelFilled, isDateBoundParams, isDateField, isFormContent, isInteractiveHost, isIsoDate, isMultiValueField, isoOfDate, normaliseAnswers, onFieldBlur, onFieldChange, onSubmitAttempt, parseChannelHref, parseClientFormSpec, parseDateBound, parseFieldOptions, planFormPresetIds, resetFormState, resolveDateBound, rulesFor, sentWord, shouldShowError, submitButtonLabelsHtml, submitButtonView, submitEndpointPath, submitOutcome, todayIso, uniqueFieldName, uniqueFieldNames, validateField, validateForm, weekStartFor, withAntiSpamFields };
|
|
908
|
+
export { CALENDAR_ROWS, CHANNEL_KINDS, CHOICE_MESSAGE_KEYS, CalendarKey, ChannelKind, ChoiceAppearance, ControlType, DATE_EMPTY_ATTRIBUTE, DATE_ICON_SVG, DATE_MAX_ATTRIBUTE, DATE_MESSAGE_KEYS, DATE_MIN_ATTRIBUTE, DATE_PICKER_WORDS, DEFAULT_EN_MESSAGES, EMAIL_TO_OWNER, FIELD_GROUP_NODE_TYPE, FIELD_NODE_TYPE, FORM_ACTIONS_ROLE, FORM_AFTER_SEND_ATTRIBUTE, FORM_AFTER_SEND_TRAIT, FORM_ANNOUNCER_ATTRIBUTE, FORM_CHANNEL_ROLE, FORM_CONTENT_TYPES, FORM_ERROR_KEYS, FORM_FIELDS_ATTRIBUTE, FORM_HONEYPOT_CLASS, FORM_NODE_TYPE, FORM_PRESETS, FORM_STATE_ATTRIBUTE, FeedbackTiming, FormAfterSend, FormPresetId, FormRenderState, HONEYPOT_FIELD, IMPLIED_PATTERN, INITIAL_FORM_STATE, INTERACTIVE_HOST_TAGS, InteractiveTag, MESSAGE_NAMESPACE, OPTION_CONTROLS, PATTERN_MESSAGE_KEYS, PATTERN_PRESETS, PATTERN_PRESET_OPTIONS, PatternPreset, RENDERED_AT_FIELD, RULE_DESCRIPTORS, RULE_MESSAGE_KEYS, RuleName, RuleParamKind, STORE_ACTION, SUBMIT_BUTTON_NODE_TYPE, SUBMIT_CHECK_SVG, SUBMIT_KEEP_ENABLED_ATTRIBUTE, SUBMIT_MESSAGE_KEYS, SubmitLabelClass, addDaysIso, addMonthsIso, addableRules, applyServerErrors, baseFieldName, calendarKeyTarget, calendarMonth, channelHref, channelOpensNewTab, choiceAppearanceOf, clampIso, clientFormSpec, collectFieldNodes, collectFormSpec, dateBoundRules, dateOfIso, datePickerWords, deriveFieldName, emailsOwner, failureAnnouncement, fieldDateRange, fieldHtml, fieldOptionsOf, fieldSpecOf, findFormContentInHosts, firstInvalidField, formAfterSend, formChromeHtml, formContentInHost, formFieldNameMap, formFieldNames, formPresetById, formatDateInWords, inputTypeOf, interpretSubmitResponse, isChannelFilled, isDateBoundParams, isDateField, isFormContent, isInteractiveHost, isIsoDate, isMultiValueField, isoOfDate, normaliseAnswers, onFieldBlur, onFieldChange, onSubmitAttempt, parseChannelHref, parseClientFormSpec, parseDateBound, parseFieldOptions, planFormPresetIds, presetFormActions, resetFormState, resolveDateBound, rulesFor, sentWord, shouldShowError, submitButtonLabelsHtml, submitButtonView, submitEndpointPath, submitOutcome, todayIso, uniqueFieldName, uniqueFieldNames, validateField, validateForm, weekStartFor, withAntiSpamFields };
|
|
894
909
|
export type { CalendarDay, CalendarMonth, CalendarOptions, ClientFormSpec, DateBoundParams, DatePickerWords, FieldError, FieldMarkupOptions, FieldOption, FieldOptionSource, FieldResult, FieldSpec, FormNodeLike, FormPresetChannel, FormPresetDef, FormPresetField, FormResult, FormRuntimeState, FormSpec, FormTransport, MisplacedFormContent, NestingNode, RuleDescriptor, SubmitAction, SubmitButtonView, SubmitLabels, SubmitOutcome, SubmitRequest, SubmitResponse, ValidateOptions, ValidationRule };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
2
2
|
import { DesignChoices, AnimateId, MenuLook, ColorScheme, DesignTokenLike, StylePreset } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
4
|
+
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
4
5
|
import { CardPart, ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
|
|
5
6
|
import { CheckoutGateRefusal } from '@vectoriox/iox-ui/commerce-core';
|
|
6
7
|
import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
|
|
@@ -7236,10 +7237,6 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
7236
7237
|
readonly phase: "AW2";
|
|
7237
7238
|
readonly drawnAs: "none";
|
|
7238
7239
|
};
|
|
7239
|
-
readonly "reopen.footer": {
|
|
7240
|
-
readonly phase: "AW1";
|
|
7241
|
-
readonly drawnAs: "settings";
|
|
7242
|
-
};
|
|
7243
7240
|
readonly "reopen.pill": {
|
|
7244
7241
|
readonly phase: "AW2";
|
|
7245
7242
|
readonly drawnAs: "settings";
|
|
@@ -7410,12 +7407,12 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
7410
7407
|
readonly how: "the site is in Hebrew";
|
|
7411
7408
|
};
|
|
7412
7409
|
readonly israel: {
|
|
7413
|
-
readonly read: "
|
|
7414
|
-
readonly how: "the studio's country is Israel (a
|
|
7410
|
+
readonly read: "built";
|
|
7411
|
+
readonly how: "the studio's country is Israel (Shop ▸ Settings ▸ country; a shekel studio starts in Israel)";
|
|
7415
7412
|
};
|
|
7416
7413
|
readonly "eu-business": {
|
|
7417
|
-
readonly read: "
|
|
7418
|
-
readonly how: "the
|
|
7414
|
+
readonly read: "built";
|
|
7415
|
+
readonly how: "the studio's country asks for an imprint (`imprintCountries`: the EU, the EEA and Switzerland)";
|
|
7419
7416
|
};
|
|
7420
7417
|
readonly "us-business": {
|
|
7421
7418
|
readonly read: "deferred";
|
|
@@ -7554,6 +7551,11 @@ declare const SPEC_SITE_LAYOUT: {
|
|
|
7554
7551
|
readonly en: "By sending, you agree to the {terms} and {privacy}.";
|
|
7555
7552
|
readonly he: "בשליחה, את/ה מסכים/ה ל{terms} ול{privacy}.";
|
|
7556
7553
|
};
|
|
7554
|
+
readonly formLinePrivacy: {
|
|
7555
|
+
readonly en: "By sending, you agree to the {privacy}.";
|
|
7556
|
+
readonly he: "בשליחה, את/ה מסכים/ה ל{privacy}.";
|
|
7557
|
+
};
|
|
7558
|
+
readonly imprintCountries: readonly ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "ES", "SE", "IS", "LI", "NO", "CH"];
|
|
7557
7559
|
readonly rules: {
|
|
7558
7560
|
readonly neverWritesPolicy: true;
|
|
7559
7561
|
readonly editedPageKept: true;
|
|
@@ -10121,8 +10123,22 @@ interface SerializedNode {
|
|
|
10121
10123
|
interactions: unknown[];
|
|
10122
10124
|
isGlobal?: boolean;
|
|
10123
10125
|
globalPosition?: `${PatternGlobalPosition}`;
|
|
10126
|
+
/** A section root the build composed (site-redesign RD1 / M2-1): where it came from and how it was left, so a
|
|
10127
|
+
* redesign knows what is the owner's (`section-stamp.ts`). Additive; no renderer reads it; a copy drops it. */
|
|
10128
|
+
composed?: SectionStamp;
|
|
10124
10129
|
children?: SerializedNode[];
|
|
10125
10130
|
}
|
|
10131
|
+
/**
|
|
10132
|
+
* A composed section's stamp (M2-1, site-redesign RD1): EXACTLY ONE of `pattern` (a library pattern — `composeSite`,
|
|
10133
|
+
* or a section a layout fell back to) and `layout` (the id of a section a model laid out, M8); the section's build key
|
|
10134
|
+
* (`section:<root id>`); and its fingerprint as the build left it (`sectionFingerprint`).
|
|
10135
|
+
*/
|
|
10136
|
+
interface SectionStamp {
|
|
10137
|
+
pattern?: string;
|
|
10138
|
+
layout?: string;
|
|
10139
|
+
buildKey: string;
|
|
10140
|
+
fingerprint: string;
|
|
10141
|
+
}
|
|
10126
10142
|
/** A pattern the composer cannot stamp as the builder would (an unregistered type, a trait the type has
|
|
10127
10143
|
* no slot for, a style that does not apply). The plan is validated first, so this means the CONTRACT is
|
|
10128
10144
|
* wrong — never something to work around. */
|
|
@@ -10148,6 +10164,70 @@ declare function setStyleProps(node: SerializedNode, values: Readonly<Record<str
|
|
|
10148
10164
|
/** Every node of a tree, depth first. */
|
|
10149
10165
|
declare function walkSerialized(nodes: ReadonlyArray<SerializedNode>, visit: (node: SerializedNode, ancestors: SerializedNode[]) => void, ancestors?: SerializedNode[]): void;
|
|
10150
10166
|
|
|
10167
|
+
/**
|
|
10168
|
+
* SECTION STAMPS (M2-1, site-redesign RD1): every section root a build composes says where it came from and how the
|
|
10169
|
+
* build left it, so a redesign (and Ask) can tell the owner's sections from the build's, section by section — before
|
|
10170
|
+
* this, "edited" was judged per page only.
|
|
10171
|
+
*
|
|
10172
|
+
* - `stampSection` writes `composed: { pattern | layout, buildKey, fingerprint }` on a root;
|
|
10173
|
+
* - `sectionFingerprint` is the root's content (its stamp aside) as a sync, framework-free 53-bit hash — the same in
|
|
10174
|
+
* the browser, the server and a spec, and unchanged by a builder save that changes nothing;
|
|
10175
|
+
* - `refreshSectionStamps` re-takes the fingerprints after a later step dresses the layout (the build's stock photos);
|
|
10176
|
+
* - `sectionOrigin` answers "composed or the owner's?" for any root, stamped or not (RD1 Q2: a stamp wins; else a
|
|
10177
|
+
* library pattern's label, or a section id of the layout the page was composed from, means composed).
|
|
10178
|
+
*/
|
|
10179
|
+
/** Where a composed section came from: a library pattern, or a section a model laid out. */
|
|
10180
|
+
type SectionStampOrigin = {
|
|
10181
|
+
pattern: string;
|
|
10182
|
+
layout?: never;
|
|
10183
|
+
} | {
|
|
10184
|
+
layout: string;
|
|
10185
|
+
pattern?: never;
|
|
10186
|
+
};
|
|
10187
|
+
/** The key a section's stamp carries (beside `buildKeys` in `site-build-run.ts`): the root's own id. */
|
|
10188
|
+
declare const sectionBuildKey: (rootId: string) => string;
|
|
10189
|
+
/** A node's canonical JSON, its stamp aside. */
|
|
10190
|
+
declare function canonicalNodeJson(node: SerializedNode): string;
|
|
10191
|
+
/**
|
|
10192
|
+
* cyrb53: a sync 53-bit string hash, 14 base-36 characters. Not a security hash — it tells "as the build left it" from
|
|
10193
|
+
* "changed" for one section, where a collision costs one section judged unchanged.
|
|
10194
|
+
*/
|
|
10195
|
+
declare function hash53(text: string): string;
|
|
10196
|
+
/** A section's fingerprint: its canonical content (stamp aside), hashed. */
|
|
10197
|
+
declare function sectionFingerprint(root: SerializedNode): string;
|
|
10198
|
+
/** Stamp a composed section root (in place) and return it. */
|
|
10199
|
+
declare function stampSection(root: SerializedNode, origin: SectionStampOrigin): SerializedNode;
|
|
10200
|
+
/** Re-take every stamped root's fingerprint (in place) — after a step that dresses a composed layout (stock photos). */
|
|
10201
|
+
declare function refreshSectionStamps(layout: ReadonlyArray<SerializedNode>): void;
|
|
10202
|
+
/** A stamp's shape is whole: exactly one origin, a build key and a fingerprint. */
|
|
10203
|
+
declare function isSectionStamp(value: unknown): value is SectionStamp;
|
|
10204
|
+
/** Whether a stamped section is still as the build left it. Null when the root carries no (whole) stamp. */
|
|
10205
|
+
declare function sectionUnchanged(root: SerializedNode): boolean | null;
|
|
10206
|
+
/** Who a page's section is: the build's (and whether the owner changed it since, when the stamp can tell) or the owner's. */
|
|
10207
|
+
declare enum SectionMaker {
|
|
10208
|
+
Composed = "composed",
|
|
10209
|
+
Owner = "owner"
|
|
10210
|
+
}
|
|
10211
|
+
interface SectionOrigin {
|
|
10212
|
+
maker: SectionMaker;
|
|
10213
|
+
/** The library pattern or the layout section it came from, when composed. */
|
|
10214
|
+
pattern?: string;
|
|
10215
|
+
layout?: string;
|
|
10216
|
+
/** A stamped section: false once the owner changed it. Absent when no stamp tells. */
|
|
10217
|
+
unchanged?: boolean;
|
|
10218
|
+
}
|
|
10219
|
+
interface SectionOriginContext {
|
|
10220
|
+
/** The library pattern ids a root's label may name (default: the whole library). */
|
|
10221
|
+
patternIds?: ReadonlyArray<string>;
|
|
10222
|
+
/** The section ids of the layout the page was composed from (its run plan's `page.layout`), when it was. */
|
|
10223
|
+
layoutSectionIds?: ReadonlyArray<string>;
|
|
10224
|
+
}
|
|
10225
|
+
/**
|
|
10226
|
+
* Who made a page's section (RD1 Q2): a stamp wins; else a root labelled with a library pattern's name, or with a section
|
|
10227
|
+
* id of the layout the page was composed from, is the build's; anything else is the owner's.
|
|
10228
|
+
*/
|
|
10229
|
+
declare function sectionOrigin(root: SerializedNode, ctx?: SectionOriginContext): SectionOrigin;
|
|
10230
|
+
|
|
10151
10231
|
/**
|
|
10152
10232
|
* The ONE way a framework-free gate refuses a document "with a path, never repairs" (W1's site-plan gate, the
|
|
10153
10233
|
* harness's analysis gate): a documented shape table (key → type text; `key?` optional, `[name]` the object's
|
|
@@ -10365,6 +10445,121 @@ declare function assertValidSitePlan(plan: unknown, ctx?: SitePlanContext): void
|
|
|
10365
10445
|
*/
|
|
10366
10446
|
declare function archetypeIssues(plan: SitePlan): SitePlanIssue[];
|
|
10367
10447
|
|
|
10448
|
+
/** The kinds, by the table's ids (held equal to it by legal.spec). */
|
|
10449
|
+
declare enum LegalKind {
|
|
10450
|
+
Privacy = "privacy",
|
|
10451
|
+
Cookies = "cookies",
|
|
10452
|
+
Accessibility = "accessibility",
|
|
10453
|
+
Terms = "terms",
|
|
10454
|
+
TermsOfSale = "terms-of-sale",
|
|
10455
|
+
Returns = "returns",
|
|
10456
|
+
Shipping = "shipping",
|
|
10457
|
+
Imprint = "imprint",
|
|
10458
|
+
DoNotSell = "do-not-sell"
|
|
10459
|
+
}
|
|
10460
|
+
/** The facts that decide a kind, by the table's ids. */
|
|
10461
|
+
declare enum LegalFact {
|
|
10462
|
+
PersonalDataForm = "personal-data-form",
|
|
10463
|
+
Tracker = "tracker",
|
|
10464
|
+
Sells = "sells",
|
|
10465
|
+
PhysicalGoods = "physical-goods",
|
|
10466
|
+
Books = "books",
|
|
10467
|
+
Signups = "signups",
|
|
10468
|
+
Hebrew = "hebrew",
|
|
10469
|
+
Israel = "israel",
|
|
10470
|
+
EuBusiness = "eu-business",
|
|
10471
|
+
UsBusiness = "us-business"
|
|
10472
|
+
}
|
|
10473
|
+
/** Whether a kind holds Publish while it is the placeholder: yes · through the checkout gate · never. */
|
|
10474
|
+
declare enum LegalBlocks {
|
|
10475
|
+
Yes = "yes",
|
|
10476
|
+
Commerce = "commerce",
|
|
10477
|
+
No = "no"
|
|
10478
|
+
}
|
|
10479
|
+
interface LegalWords {
|
|
10480
|
+
readonly en: string;
|
|
10481
|
+
readonly he: string;
|
|
10482
|
+
}
|
|
10483
|
+
interface LegalKindRow {
|
|
10484
|
+
readonly id: `${LegalKind}`;
|
|
10485
|
+
readonly when: ReadonlyArray<`${LegalFact}`>;
|
|
10486
|
+
readonly blocks: `${LegalBlocks}`;
|
|
10487
|
+
readonly phase: string;
|
|
10488
|
+
readonly tier: string;
|
|
10489
|
+
readonly title: LegalWords;
|
|
10490
|
+
readonly label: LegalWords;
|
|
10491
|
+
}
|
|
10492
|
+
/** Every kind, in the table's order. */
|
|
10493
|
+
declare const LEGAL_KINDS: ReadonlyArray<LegalKindRow>;
|
|
10494
|
+
/** Where a page says which legal kind it is: `pageSettings.legal` (free-form, saved with the page). */
|
|
10495
|
+
declare const LEGAL_PAGE_SETTING = "legal";
|
|
10496
|
+
/** The role of the legal line beside a form and of a footer's legal row. */
|
|
10497
|
+
declare const FORM_LEGAL_ROLE = "form.legal";
|
|
10498
|
+
declare const FOOTER_LEGAL_ROLE = "footer.legal";
|
|
10499
|
+
/** ISO 3166-1 alpha-2 for Israel — the accessibility statement's country (Israel's equal-rights regulations, 2013). */
|
|
10500
|
+
declare const ISRAEL = "IL";
|
|
10501
|
+
/** The countries whose businesses publish an imprint (the table's `imprintCountries`). */
|
|
10502
|
+
declare const IMPRINT_COUNTRIES: ReadonlySet<string>;
|
|
10503
|
+
declare function isLegalKind(value: unknown): value is LegalKind;
|
|
10504
|
+
declare function legalKindRow(kind: `${LegalKind}`): LegalKindRow;
|
|
10505
|
+
/** A kind's page title in the site's language. */
|
|
10506
|
+
declare function legalTitle(kind: `${LegalKind}`, lang: string | null | undefined): string;
|
|
10507
|
+
/** What belongs on the page, in the site's language — the placeholder it shows until the owner writes it. */
|
|
10508
|
+
declare function legalLabel(kind: `${LegalKind}`, lang: string | null | undefined): string;
|
|
10509
|
+
/** True when a kind holds Publish while it is the placeholder (yes, or with the checkout's own). */
|
|
10510
|
+
declare function legalKindBlocks(kind: `${LegalKind}`): boolean;
|
|
10511
|
+
/** The kind a page says it is (`pageSettings.legal`), or null. */
|
|
10512
|
+
declare function legalKindOfPage(page: {
|
|
10513
|
+
pageSettings?: Readonly<Record<string, unknown>> | null;
|
|
10514
|
+
} | null | undefined): LegalKind | null;
|
|
10515
|
+
type LegalFacts = Readonly<Partial<Record<`${LegalFact}`, boolean>>>;
|
|
10516
|
+
/** The kinds a site with these facts needs, in the table's order (deferred kinds never). */
|
|
10517
|
+
declare function legalKindsFor(facts: LegalFacts): LegalKind[];
|
|
10518
|
+
/** The form controls that ask for a personal detail (a name, an email, a phone, words about the person). */
|
|
10519
|
+
declare const PERSONAL_CONTROLS: ReadonlySet<string>;
|
|
10520
|
+
/** True when a Form node asks for a personal detail. */
|
|
10521
|
+
declare function formAsksPersonalData(form: SerializedNode): boolean;
|
|
10522
|
+
/** The facts the site's own nodes answer: a personal-data form, a booking form, a sign-up form. */
|
|
10523
|
+
declare function formLegalFacts(nodes: ReadonlyArray<SerializedNode>): LegalFacts;
|
|
10524
|
+
/** The studio's country as facts: Israel, or a country that asks for an imprint. Unknown = neither. */
|
|
10525
|
+
declare function countryLegalFacts(country: string | null | undefined): LegalFacts;
|
|
10526
|
+
/** A tracker the studio has connected: its connector type and the consent category it needs a yes for. */
|
|
10527
|
+
interface LegalTracker {
|
|
10528
|
+
type: string;
|
|
10529
|
+
category: `${ConsentCategory}`;
|
|
10530
|
+
}
|
|
10531
|
+
/**
|
|
10532
|
+
* What the composer may not know for itself about the law (AW1): the studio's country, the trackers it connected, the
|
|
10533
|
+
* legal pages it already has, every route it already holds and the cookie banner it already keeps. Read by the caller
|
|
10534
|
+
* (iox-cms reads them at preflight and keeps them on the run, so every step composes the same site).
|
|
10535
|
+
*/
|
|
10536
|
+
interface LegalContext {
|
|
10537
|
+
/** ISO 3166-1 alpha-2 — the studio's country (Shop ▸ Settings; a shekel studio starts in Israel). Absent = unknown. */
|
|
10538
|
+
country?: string | null;
|
|
10539
|
+
trackers?: ReadonlyArray<LegalTracker>;
|
|
10540
|
+
/** The studio's own legal pages, by kind: their route. The build links them and never stamps that kind again. */
|
|
10541
|
+
existing?: Readonly<Partial<Record<`${LegalKind}`, string>>>;
|
|
10542
|
+
/** Every route the studio already has — a stamped legal page never takes one. */
|
|
10543
|
+
takenRoutes?: ReadonlyArray<string>;
|
|
10544
|
+
/** The studio keeps its own cookie banner: its preferences dialog's id, which the footer's Cookie settings opens.
|
|
10545
|
+
* The build stamps no second banner. */
|
|
10546
|
+
keptPreferences?: string | null;
|
|
10547
|
+
}
|
|
10548
|
+
/** The route a stamped kind takes: `/<kind>`, else `/legal/<kind>`, else numbered — never one already taken. */
|
|
10549
|
+
declare function legalRoute(kind: `${LegalKind}`, taken: ReadonlySet<string>): string;
|
|
10550
|
+
/** One piece of the legal line: words, or a link to a kind's page. */
|
|
10551
|
+
type LegalLinePart = {
|
|
10552
|
+
text: string;
|
|
10553
|
+
} | {
|
|
10554
|
+
kind: LegalKind.Terms | LegalKind.Privacy;
|
|
10555
|
+
};
|
|
10556
|
+
/**
|
|
10557
|
+
* The legal line beside a form (AW-D15) in the site's language, as words and links: "By sending, you agree to the
|
|
10558
|
+
* {terms} and {privacy}." — the privacy-only line when the site has no terms page. Spaces stay with the words, so the
|
|
10559
|
+
* pieces read as one sentence when drawn inline.
|
|
10560
|
+
*/
|
|
10561
|
+
declare function legalFormLine(lang: string | null | undefined, withTerms: boolean): LegalLinePart[];
|
|
10562
|
+
|
|
10368
10563
|
/**
|
|
10369
10564
|
* The phone shapes of a navigation bar (complex-components plan CC1, §7a + R1; boards 1–3). ONE pure tree
|
|
10370
10565
|
* edit, `planNavShape`, turns a site's header into the shape the author (the Navigation bar's "Phone
|
|
@@ -10923,7 +11118,10 @@ declare enum PlaceholderKind {
|
|
|
10923
11118
|
Price = "price",
|
|
10924
11119
|
/** L2 (`proof.stat-row`): a number the studio stands behind ("12 years", "300 clients") — a fact, its label shown
|
|
10925
11120
|
* meanwhile ("Number"), never a number written for it. */
|
|
10926
|
-
Stat = "stat"
|
|
11121
|
+
Stat = "stat",
|
|
11122
|
+
/** AW1: a stamped legal page's text — what belongs there ("Your privacy policy: …"), never a word of policy. Its page
|
|
11123
|
+
* holds Publish while it shows the label (`auditSite`, `legal-page-placeholder`, by the page's kind). */
|
|
11124
|
+
Policy = "policy"
|
|
10927
11125
|
}
|
|
10928
11126
|
/** The placeholders a page cannot be published with unfilled (W4's gate): a fact, a price, a number, the studio's own
|
|
10929
11127
|
* video. Copy and an empty image are the author's to rewrite, never blocking. */
|
|
@@ -10981,6 +11179,9 @@ interface ComposeContext {
|
|
|
10981
11179
|
photoShape?: (photoId: string) => `${LayoutPhotoShape}` | undefined;
|
|
10982
11180
|
/** The tier the plan was made at (its generation's stored tier, AW-D23) — absent = Basic: at most two composed pages. */
|
|
10983
11181
|
tier?: `${GenerationTier}`;
|
|
11182
|
+
/** AW1: what the studio holds that decides its legal pages and banner (country, trackers, its own legal pages, its
|
|
11183
|
+
* routes, a banner it keeps). Absent = only what the plan and the composed pages say (no tracker, no country). */
|
|
11184
|
+
legal?: LegalContext;
|
|
10984
11185
|
}
|
|
10985
11186
|
/** Where a composed layout's photos are, as the server keeps them and the screens read them (M8 gate 2): id → address. */
|
|
10986
11187
|
interface LayoutPhotoAddress {
|
|
@@ -10989,7 +11190,7 @@ interface LayoutPhotoAddress {
|
|
|
10989
11190
|
shape?: string;
|
|
10990
11191
|
}
|
|
10991
11192
|
/** The composer's context for a site whose layouts name photos: the year, and each photo's address, words and shape. */
|
|
10992
|
-
declare function composeContextOf(year: number, photos?: Readonly<Record<string, LayoutPhotoAddress>>, tier?: `${GenerationTier}
|
|
11193
|
+
declare function composeContextOf(year: number, photos?: Readonly<Record<string, LayoutPhotoAddress>>, tier?: `${GenerationTier}`, legal?: LegalContext | null): ComposeContext;
|
|
10993
11194
|
interface ComposedPage {
|
|
10994
11195
|
key: string;
|
|
10995
11196
|
name: string;
|
|
@@ -11009,6 +11210,7 @@ interface ComposedPage {
|
|
|
11009
11210
|
runId?: string;
|
|
11010
11211
|
};
|
|
11011
11212
|
opening?: `${ColorScheme}`;
|
|
11213
|
+
legal?: `${LegalKind}`;
|
|
11012
11214
|
};
|
|
11013
11215
|
/** M1-6c: the page's search-result words — written (a static page) or bound to the route item (a template page),
|
|
11014
11216
|
* in the seo-core document shape the shared `resolveSeo` reads. */
|
|
@@ -11123,6 +11325,8 @@ declare const SIGN_IN_DIALOG_ID = "sign-in";
|
|
|
11123
11325
|
* composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
|
|
11124
11326
|
*/
|
|
11125
11327
|
declare function composeSite(plan: SitePlan, context: ComposeContext): ComposedSite;
|
|
11328
|
+
/** The facts the law is decided by: the composed site's forms, what it sells, its language and the studio's country and trackers. */
|
|
11329
|
+
declare function legalFactsOf(plan: SitePlan, context: LegalContext, nodes: ReadonlyArray<SerializedNode>): LegalFacts;
|
|
11126
11330
|
/** A plan's header (HI1): its mix as the product draws it, checked against the site, and the recipe to stamp — with what
|
|
11127
11331
|
* was mended or drawn as something else, in words. */
|
|
11128
11332
|
declare function planHeader(plan: SitePlan): {
|
|
@@ -12386,7 +12590,20 @@ declare enum SiteFindingCode {
|
|
|
12386
12590
|
/** M7: a picture the build could not make (its review said no twice) and nothing stood in for: an empty box. */
|
|
12387
12591
|
PictureMissing = "picture-missing",
|
|
12388
12592
|
NoPrivacyPage = "no-privacy-page",
|
|
12389
|
-
|
|
12593
|
+
/** AW1: a legal page (privacy, cookies, terms, the accessibility statement…) still shows what belongs there — only the
|
|
12594
|
+
* owner can write it. The finding names its kind (`legal`). Generalises the privacy page's own finding. */
|
|
12595
|
+
LegalPagePlaceholder = "legal-page-placeholder",
|
|
12596
|
+
/** AW1 (AW-D14): a site built with the law (`siteBuiltWithLaw`) in Israel or in Hebrew has no accessibility
|
|
12597
|
+
* statement — it blocks until one is written (Doron 2026-11-20: "block new, warn old"). */
|
|
12598
|
+
NoAccessibilityStatement = "no-accessibility-statement",
|
|
12599
|
+
/** AW1: a site that existed before the law was stamped (an Israeli or Hebrew one) has no accessibility statement —
|
|
12600
|
+
* a warning only; no existing studio's publish is stopped by this rule. */
|
|
12601
|
+
AccessibilityStatementAdvised = "accessibility-statement-advised",
|
|
12602
|
+
/** AW1 (R-H4): the cookie banner's Reject is weaker than its Accept — a link, another kind of element, on another row,
|
|
12603
|
+
* or only inside Preferences. Refusing must be as easy as accepting. */
|
|
12604
|
+
ConsentRejectWeaker = "consent-reject-weaker",
|
|
12605
|
+
/** AW1 (R-H4): the site has a cookie banner and nothing outside it reopens the choice (Cookie settings). */
|
|
12606
|
+
NoCookieSettings = "no-cookie-settings",
|
|
12390
12607
|
LowContrast = "low-contrast",
|
|
12391
12608
|
HeadingOrder = "heading-order",
|
|
12392
12609
|
ImageWithoutAlt = "image-without-alt",
|
|
@@ -12409,6 +12626,8 @@ interface SiteFinding {
|
|
|
12409
12626
|
owner?: string;
|
|
12410
12627
|
/** `store-fact` / `store-contact`: the checkout gate's code (commerce-core `CheckoutGateCode`) — which fact, so a screen can open where it is answered. */
|
|
12411
12628
|
fact?: string;
|
|
12629
|
+
/** `legal-page-placeholder`: the legal page's kind (generation-core `LegalKind`). */
|
|
12630
|
+
legal?: string;
|
|
12412
12631
|
}
|
|
12413
12632
|
interface SiteCheck {
|
|
12414
12633
|
id: SiteCheckId;
|
|
@@ -12427,6 +12646,9 @@ interface AuditPage {
|
|
|
12427
12646
|
route: string;
|
|
12428
12647
|
layout: ReadonlyArray<SerializedNode>;
|
|
12429
12648
|
seo?: unknown;
|
|
12649
|
+
/** AW1: the legal kind the page says it is (`pageSettings.legal`) — how the gate finds the privacy page and the
|
|
12650
|
+
* accessibility statement. A hand-built page has none (found by a word in its name or route). */
|
|
12651
|
+
legal?: string | null;
|
|
12430
12652
|
}
|
|
12431
12653
|
/** A placeholder a build left, and whether the node still shows it (the caller compares the node's text). */
|
|
12432
12654
|
interface AuditPlaceholder extends ComposedPlaceholder {
|
|
@@ -12488,6 +12710,13 @@ interface SiteAuditSnapshot {
|
|
|
12488
12710
|
pageId?: string;
|
|
12489
12711
|
owner?: string;
|
|
12490
12712
|
}>;
|
|
12713
|
+
/** AW1: the site's language (its pages' locale). */
|
|
12714
|
+
locale?: string | null;
|
|
12715
|
+
/** AW1: the studio's country, ISO 3166-1 alpha-2 (Shop ▸ Settings; a shekel studio is in Israel) — null unknown. */
|
|
12716
|
+
country?: string | null;
|
|
12717
|
+
/** AW1: the site was built with the law — a site-build run carried the AW1 legal context (iox-cms stores it on the
|
|
12718
|
+
* run as `decisions.legal`). With a page that says its legal kind, the signal `siteBuiltWithLaw` reads. */
|
|
12719
|
+
legalBuilt?: boolean | null;
|
|
12491
12720
|
}
|
|
12492
12721
|
interface SiteAuditOptions {
|
|
12493
12722
|
/** Audit as if only this page were being published (its own page checks + every site-wide one). */
|
|
@@ -12499,6 +12728,15 @@ declare const STORE_CONTACT_CODES: ReadonlySet<string>;
|
|
|
12499
12728
|
declare function siteSells(snapshot: Pick<SiteAuditSnapshot, 'pages' | 'globals'>): boolean;
|
|
12500
12729
|
/** A route pattern (`/work/:slug`) matches a concrete path (`/work/blue-bowl`). */
|
|
12501
12730
|
declare function routeMatches(pattern: string, path: string): boolean;
|
|
12731
|
+
/**
|
|
12732
|
+
* "Block new, warn old" (Doron, 2026-11-20): is this a site the generator built WITH the law? Read from what is STORED,
|
|
12733
|
+
* never a date: a site-build run that carried the AW1 legal context (`legalBuilt`), or a page that says its legal kind
|
|
12734
|
+
* (`pageSettings.legal` — only AW1's composer writes it). Such a site is held until its accessibility statement is
|
|
12735
|
+
* written; a site that existed before is warned only.
|
|
12736
|
+
*/
|
|
12737
|
+
declare function siteBuiltWithLaw(snapshot: Pick<SiteAuditSnapshot, 'legalBuilt' | 'pages'>): boolean;
|
|
12738
|
+
/** The site's page of a legal kind: the one that says so, else (a hand-built site) one whose name or route says it. */
|
|
12739
|
+
declare function legalPageOf(pages: ReadonlyArray<AuditPage>, kind: LegalKind): AuditPage | undefined;
|
|
12502
12740
|
/** Run the eight checks. `pageId` narrows the page checks to the page being published; site-wide ones always run. */
|
|
12503
12741
|
declare function auditSite(snapshot: SiteAuditSnapshot, options?: SiteAuditOptions): SiteAudit;
|
|
12504
12742
|
/** Why the server refused a publish (409) — the dialog the client opens from the findings it carries. */
|
|
@@ -14620,5 +14858,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
|
|
|
14620
14858
|
* its phone menu, the footer's copyright line. */
|
|
14621
14859
|
declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
|
|
14622
14860
|
|
|
14623
|
-
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
14624
|
-
export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
|
14861
|
+
export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnFooterMix, drawnHeaderMix, driftAt, driftOverlap, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, hash53, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteGlobalsOf, siteNavPages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampSection, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
|
|
14862
|
+
export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
package/package.json
CHANGED
|
@@ -63,6 +63,37 @@ export function orderHref(orgLabel: string | null | undefined, token: string): s
|
|
|
63
63
|
return label ? `/${encodeURIComponent(label)}/${tail}` : `/${tail}`;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* E2.1 — the card form sits in a frame on the order page; the provider sends THE FRAME back to the order page with
|
|
68
|
+
* `?in=frame`. That address only says "the buyer is back": it is never read as a result (T2) — the page asks iox-cms.
|
|
69
|
+
*/
|
|
70
|
+
export const ORDER_FRAME_PARAM = 'in';
|
|
71
|
+
export const ORDER_FRAME_VALUE = 'frame';
|
|
72
|
+
|
|
73
|
+
export function orderFrameReturnHref(orgLabel: string | null | undefined, token: string): string {
|
|
74
|
+
return `${orderHref(orgLabel, token)}?${ORDER_FRAME_PARAM}=${ORDER_FRAME_VALUE}`;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Whether a query (a search string, `URLSearchParams` or a parsed map) is the frame's return. */
|
|
78
|
+
export function isOrderFrameReturn(query: string | URLSearchParams | Readonly<Record<string, unknown>> | null | undefined): boolean {
|
|
79
|
+
if (!query) return false;
|
|
80
|
+
const value = typeof query === 'string' ? new URLSearchParams(query).get(ORDER_FRAME_PARAM)
|
|
81
|
+
: query instanceof URLSearchParams ? query.get(ORDER_FRAME_PARAM)
|
|
82
|
+
: query[ORDER_FRAME_PARAM];
|
|
83
|
+
return (Array.isArray(value) ? value[0] : value) === ORDER_FRAME_VALUE;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** What the frame's return page posts to its parent (same origin only). It carries NO status — only "the buyer is back". */
|
|
87
|
+
export const PAYMENT_RETURNED = 'payment-returned';
|
|
88
|
+
|
|
89
|
+
export function paymentReturnedMessage(): { iox: string } {
|
|
90
|
+
return { iox: PAYMENT_RETURNED };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function isPaymentReturnedMessage(data: unknown): boolean {
|
|
94
|
+
return !!data && typeof data === 'object' && (data as { iox?: unknown }).iox === PAYMENT_RETURNED;
|
|
95
|
+
}
|
|
96
|
+
|
|
66
97
|
// ── the answers ────────────────────────────────────────────────────────────────────────────────
|
|
67
98
|
|
|
68
99
|
export enum CheckoutFieldMode {
|
|
@@ -169,6 +200,12 @@ export interface SiteOrderPayment {
|
|
|
169
200
|
stage: BuyerPaymentStage;
|
|
170
201
|
canPay: boolean;
|
|
171
202
|
declined: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* E2.1 — the studio's owner switch "Apple Pay is on for my Cardcom terminal" (Settings ▸ Payments, off by default).
|
|
205
|
+
* Only the on/off is public. The order page draws "Pay with Apple Pay" only when this is true AND the device says
|
|
206
|
+
* `ApplePaySession.canMakePayments()`. Absent = off.
|
|
207
|
+
*/
|
|
208
|
+
applePay?: boolean;
|
|
172
209
|
}
|
|
173
210
|
|
|
174
211
|
/** Where to send the buyer to pay — a card order only (E2); `null` when the page could not be made (they try again from the order page). */
|
|
@@ -278,6 +315,12 @@ export enum CheckoutWord {
|
|
|
278
315
|
TryAgain = 'tryAgain',
|
|
279
316
|
PayNow = 'payNow',
|
|
280
317
|
OrderClosed = 'orderClosed',
|
|
318
|
+
PayFrameTitle = 'payFrameTitle',
|
|
319
|
+
OpenPaymentHere = 'openPaymentHere',
|
|
320
|
+
PayFrameSlow = 'payFrameSlow',
|
|
321
|
+
PayWithApplePay = 'payWithApplePay',
|
|
322
|
+
OrderAwaitsPayment = 'orderAwaitsPayment',
|
|
323
|
+
OrderAwaitsNote = 'orderAwaitsNote',
|
|
281
324
|
}
|
|
282
325
|
|
|
283
326
|
/** `{name}`, `{n}`, `{of}`, `{amount}`, `{percent}`, `{number}`, `{email}`, `{total}`, `{place}` are filled by `checkoutWord`. */
|
|
@@ -338,6 +381,12 @@ export const CHECKOUT_WORDS: Readonly<Record<CheckoutWord, CommerceLabel>> = Obj
|
|
|
338
381
|
[CheckoutWord.TryAgain]: { en: 'Try again', he: 'נסו שוב' },
|
|
339
382
|
[CheckoutWord.PayNow]: { en: 'Pay now · {total}', he: 'לתשלום עכשיו · {total}' },
|
|
340
383
|
[CheckoutWord.OrderClosed]: { en: 'This order was cancelled.', he: 'ההזמנה הזו בוטלה.' },
|
|
384
|
+
[CheckoutWord.PayFrameTitle]: { en: 'Secure card payment', he: 'תשלום מאובטח בכרטיס אשראי' },
|
|
385
|
+
[CheckoutWord.OpenPaymentHere]: { en: 'Open the secure page in this window', he: 'לפתוח את הדף המאובטח בחלון הזה' },
|
|
386
|
+
[CheckoutWord.PayFrameSlow]: { en: 'The secure page is slow to load.', he: 'הדף המאובטח נטען לאט.' },
|
|
387
|
+
[CheckoutWord.PayWithApplePay]: { en: 'Pay with Apple Pay', he: 'תשלום ב-Apple Pay' },
|
|
388
|
+
[CheckoutWord.OrderAwaitsPayment]: { en: 'Order #{number} is waiting for payment', he: 'הזמנה #{number} ממתינה לתשלום' },
|
|
389
|
+
[CheckoutWord.OrderAwaitsNote]: { en: 'Your bag is empty because the order was already placed.', he: 'הסל ריק כי ההזמנה כבר נוצרה.' },
|
|
341
390
|
});
|
|
342
391
|
|
|
343
392
|
export function checkoutWord(word: CheckoutWord, lang: string | null | undefined, fill: Readonly<Record<string, string | number>> = {}): string {
|