@vectoriox/iox-ui 5.132.0 → 5.134.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 +12 -1
- package/composite-core/index.d.ts +44 -22
- package/design-core/index.d.ts +436 -35
- package/domain-core/index.d.ts +353 -0
- package/domain-core/package.json +3 -0
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +2 -0
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -48
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +21 -0
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +118 -62
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +895 -416
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-domain-core.mjs +422 -0
- package/fesm2022/vectoriox-iox-ui-domain-core.mjs.map +1 -0
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +13974 -12036
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +9 -3
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-mail-core.mjs +288 -2
- package/fesm2022/vectoriox-iox-ui-mail-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +290 -16
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1419 -379
- package/harness-core/index.d.ts +6 -1
- package/index.d.ts +139 -10
- package/mail-core/index.d.ts +315 -39
- package/package.json +5 -1
- package/src/actions-core/element-actions.ts +2 -0
- package/src/assist-core/page-sections.ts +7 -37
- package/src/commerce-core/shop-display.ts +21 -0
- package/src/composite-core/consent.ts +6 -2
- package/src/composite-core/shop-runtime.ts +47 -3
- package/src/composite-core/shop.ts +76 -57
- package/src/design-core/design-settings.ts +16 -0
- package/src/design-core/design-token.model.ts +7 -1
- package/src/design-core/flavor-spec.generated.ts +374 -35
- package/src/design-core/flavor-tokens.ts +12 -1
- package/src/design-core/header-behaviour.ts +32 -0
- package/src/design-core/motion-language.ts +115 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +3 -0
- package/src/domain-core/domain-vocabulary.ts +125 -0
- package/src/domain-core/domain-wire.ts +95 -0
- package/src/domain-core/org-path-redirect.ts +105 -0
- package/src/domain-core/public-api.ts +12 -0
- package/src/domain-core/web-domain.ts +251 -0
- package/src/generation-core/carry-fill.ts +36 -0
- package/src/generation-core/carry.ts +398 -0
- package/src/generation-core/check-carry.ts +216 -0
- package/src/generation-core/check-layout.ts +71 -5
- package/src/generation-core/compose-layout.ts +187 -28
- package/src/generation-core/compose-site.ts +154 -31
- package/src/generation-core/entrances.ts +66 -10
- package/src/generation-core/header-edit.ts +299 -0
- package/src/generation-core/header-mix.ts +64 -5
- package/src/generation-core/layout-fingerprint.ts +5 -1
- package/src/generation-core/layout-language.ts +20 -1
- package/src/generation-core/layout-space.ts +4 -4
- package/src/generation-core/layout-wire.ts +36 -1
- package/src/generation-core/node-baselines.generated.ts +1 -0
- package/src/generation-core/public-api.ts +7 -0
- package/src/generation-core/redesign-additions.ts +273 -0
- package/src/generation-core/redesign-run.ts +364 -0
- package/src/generation-core/refit-page.ts +151 -0
- package/src/generation-core/section-stamp.ts +4 -4
- package/src/generation-core/shop-plan.ts +15 -0
- package/src/generation-core/site-build-run.ts +20 -3
- package/src/generation-core/site-spec.generated.ts +194 -94
- package/src/generation-core/site-tree.ts +19 -5
- package/src/generation-core/validate-site-plan.ts +37 -3
- package/src/harness-core/motion.ts +13 -3
- package/src/harness-core/starting-design.ts +1 -1
- package/src/mail-core/mail-domain.ts +305 -0
- package/src/mail-core/mail-standing.ts +58 -0
- package/src/mail-core/mail-vocabulary.ts +3 -0
- package/src/mail-core/mail-wire.ts +70 -1
- package/src/mail-core/public-api.ts +6 -1
- package/styles/iox-design.css +44 -2
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* domain-core vocabulary — a studio's own web address (custom-domains-plan, CD0). The states, refusals, record roles and
|
|
3
|
+
* the numbers every reader of a domain shares: the control plane writes what it found, iox-cms passes it on, the admin
|
|
4
|
+
* shows it, the engine serves by it. Framework-free; imports nothing.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Where a studio's own address stands — decided by ONE rule, `webDomainState` (R-CD1). "Checking" is not a state: it is
|
|
8
|
+
* the few seconds a Check request is open, said by the screen's busy button, never stored.
|
|
9
|
+
*/
|
|
10
|
+
declare enum WebDomainState {
|
|
11
|
+
/** no domain */
|
|
12
|
+
NotSet = "not-set",
|
|
13
|
+
/** entered; its records were never found (never checked, or the domain is not proven ours yet) */
|
|
14
|
+
Waiting = "waiting",
|
|
15
|
+
/** DNS is right and proven; cert-manager is getting the certificate (1–10 minutes) */
|
|
16
|
+
Certificate = "certificate",
|
|
17
|
+
/** the certificate is ready and the address serves the site */
|
|
18
|
+
Live = "live",
|
|
19
|
+
/** a check found a record missing or wrong, or the certificate could not be issued (CAA, a proxy in front) */
|
|
20
|
+
Failed = "failed",
|
|
21
|
+
/** was live; a recheck found DNS moved away or the certificate failed — the iox.studio address serves again at once */
|
|
22
|
+
Lost = "lost"
|
|
23
|
+
}
|
|
24
|
+
/** What cert-manager says about a domain's certificate. `Wildcard` is the default host's (`*.iox.studio`), never a custom one's. */
|
|
25
|
+
declare enum WebCertState {
|
|
26
|
+
None = "none",
|
|
27
|
+
Pending = "pending",
|
|
28
|
+
Ready = "ready",
|
|
29
|
+
Failed = "failed",
|
|
30
|
+
Wildcard = "wildcard"
|
|
31
|
+
}
|
|
32
|
+
/** The three records an owner adds at their DNS host (CD-D3). */
|
|
33
|
+
declare enum WebDnsRecordRole {
|
|
34
|
+
/** CNAME `www` → `<studio>.iox.studio` */
|
|
35
|
+
Www = "www",
|
|
36
|
+
/** A `@` → the ingress load balancer (an ALIAS / ANAME / flattened CNAME resolving there is accepted) */
|
|
37
|
+
Apex = "apex",
|
|
38
|
+
/** TXT `_iox` = `iox-verify=<token>` — proves this studio owns the domain */
|
|
39
|
+
Ownership = "ownership"
|
|
40
|
+
}
|
|
41
|
+
/** Which of a domain's two names serves the site; the other 301s to it (CD-D2). */
|
|
42
|
+
declare enum WebDomainName {
|
|
43
|
+
Www = "www",
|
|
44
|
+
Apex = "apex"
|
|
45
|
+
}
|
|
46
|
+
/** What a check found wrong beyond a record's own ok/false — said on the card in the owner's words. */
|
|
47
|
+
declare enum WebDomainProblem {
|
|
48
|
+
/** the `_iox` TXT is missing or holds another token */
|
|
49
|
+
TokenMissing = "token-missing",
|
|
50
|
+
/** `www` does not resolve to the studio */
|
|
51
|
+
WwwNotHere = "www-not-here",
|
|
52
|
+
/** `@` does not resolve to the load balancer */
|
|
53
|
+
ApexNotHere = "apex-not-here",
|
|
54
|
+
/** `www` or `@` resolves to a proxy (Cloudflare's orange cloud) — HTTP-01 and the recheck cannot reach us (CD-D15) */
|
|
55
|
+
Proxied = "proxied",
|
|
56
|
+
/** a CAA record does not allow letsencrypt.org — issuance would fail silently (trap 4) */
|
|
57
|
+
CaaRefuses = "caa-refuses",
|
|
58
|
+
/** cert-manager could not issue or renew the certificate */
|
|
59
|
+
CertificateFailed = "certificate-failed"
|
|
60
|
+
}
|
|
61
|
+
/** Why a domain cannot be added — the wire's `code` and the screen's message key. */
|
|
62
|
+
declare enum WebDomainRefusal {
|
|
63
|
+
/** not a host name at all */
|
|
64
|
+
NotADomain = "not-a-domain",
|
|
65
|
+
/** an IP address — a site is reached by name */
|
|
66
|
+
IpAddress = "ip-address",
|
|
67
|
+
/** under iox.studio — the studio already has that address */
|
|
68
|
+
PlatformDomain = "platform-domain",
|
|
69
|
+
/** only a public suffix (`co.il`, `com`) — nobody owns it */
|
|
70
|
+
PublicSuffix = "public-suffix",
|
|
71
|
+
/** a name below the domain other than `www` (`shop.mywebsite.co.il`) — the domain itself is entered; both names are connected */
|
|
72
|
+
Subdomain = "subdomain",
|
|
73
|
+
/** another IOX studio has it VERIFIED (CD-D11) — 409 */
|
|
74
|
+
Taken = "taken",
|
|
75
|
+
/** the plan's count of own domains is used (CD-D4) — 403 */
|
|
76
|
+
PlanFull = "plan-full",
|
|
77
|
+
/** the studio's plan has no own domains, or the control plane is not reachable — 403 / 503 */
|
|
78
|
+
NotEnabled = "not-enabled",
|
|
79
|
+
/** the control plane failed — 502 */
|
|
80
|
+
Upstream = "upstream"
|
|
81
|
+
}
|
|
82
|
+
/** How iox-cms found the site a request is for. */
|
|
83
|
+
declare enum SiteResolvedBy {
|
|
84
|
+
/** the request's Host is one of the organization's own domains — base href `/`, no org segment */
|
|
85
|
+
Host = "host",
|
|
86
|
+
/** the first path segment is the organization's label — base href `/<label>/` */
|
|
87
|
+
Segment = "segment",
|
|
88
|
+
/** neither: the default organization serves a path with no org segment (answered only when the engine sent `host`) */
|
|
89
|
+
Default = "default"
|
|
90
|
+
}
|
|
91
|
+
/** The platform's own zones: a studio already has `<studio>.iox.studio` and can never claim a name under them. */
|
|
92
|
+
declare const PLATFORM_WEB_DOMAINS: readonly string[];
|
|
93
|
+
/** The ownership record's name and value prefix (CD-D3). */
|
|
94
|
+
declare const WEB_DOMAIN_TXT_HOST = "_iox";
|
|
95
|
+
declare const WEB_DOMAIN_TOKEN_PREFIX = "iox-verify=";
|
|
96
|
+
/** The Check button rests this long after a check (the ML4 rule). */
|
|
97
|
+
declare const WEB_DOMAIN_CHECK_MIN_MS = 30000;
|
|
98
|
+
/** A live (or lost) domain is rechecked once a day (CD-D10). */
|
|
99
|
+
declare const WEB_DOMAIN_RECHECK_MS: number;
|
|
100
|
+
/** A lost domain stays attached this long, so putting the records back revives it with no new certificate (CD-D10). */
|
|
101
|
+
declare const WEB_DOMAIN_LOST_KEEP_MS: number;
|
|
102
|
+
/** An entered-but-unverified claim blocks nobody and expires after this long (CD-D11). */
|
|
103
|
+
declare const WEB_DOMAIN_CLAIM_MS: number;
|
|
104
|
+
/** A certificate expiring within this long counts as failing to renew (CD-D10). */
|
|
105
|
+
declare const WEB_CERT_RENEW_MARGIN_MS: number;
|
|
106
|
+
/** Domains over a downgraded plan's count stay served this long (CD-D12). */
|
|
107
|
+
declare const WEB_DOMAIN_GRACE_MS: number;
|
|
108
|
+
/**
|
|
109
|
+
* First path segments that are never redirected from the default host (CD-D6, R-CD5): the admin, the API, sign-in. On a
|
|
110
|
+
* custom host only `webadmin` moves — to the admin origin (CD-D7); the API and sign-in answer on every host the site has.
|
|
111
|
+
*/
|
|
112
|
+
declare const NEVER_REDIRECTED_SEGMENTS: readonly string[];
|
|
113
|
+
/** The admin SPA's first segment — on a custom host it 301s to the default host (CD-D7). */
|
|
114
|
+
declare const ADMIN_SEGMENT = "webadmin";
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A studio's own web address — what a domain is, the three records, the ONE state rule, which host serves (CD0).
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Public suffixes of more than one label, curated (not the whole Public Suffix List — a framework-free entry carries no
|
|
122
|
+
* 250 KB table). Israel's first, then the ones an Israeli studio's customers most often hold. A suffix missing here makes
|
|
123
|
+
* `registrableDomain('shop.example.com.xx')` one label short, which the screen shows before anything is asked of DNS.
|
|
124
|
+
*/
|
|
125
|
+
declare const MULTI_PART_SUFFIXES: readonly string[];
|
|
126
|
+
/** A record the owner adds, with the check's last word on it. */
|
|
127
|
+
interface WebDnsRecord {
|
|
128
|
+
role: WebDnsRecordRole;
|
|
129
|
+
type: 'CNAME' | 'A' | 'TXT';
|
|
130
|
+
/** the full name — `www.mywebsite.co.il` */
|
|
131
|
+
name: string;
|
|
132
|
+
/** the name as most DNS screens want it, relative to the domain (`www`, `@`, `_iox`) */
|
|
133
|
+
host: string;
|
|
134
|
+
value: string;
|
|
135
|
+
/** the last check: true ok · false wrong or missing · null not checked yet */
|
|
136
|
+
ok: boolean | null;
|
|
137
|
+
}
|
|
138
|
+
/** What the control plane keeps per domain (one row = one registrable domain with its `www`, CD-D4). */
|
|
139
|
+
interface WebDomainRow {
|
|
140
|
+
/** the registrable domain, lower-case ASCII (punycode for a Hebrew name) — `mywebsite.co.il` */
|
|
141
|
+
domain: string;
|
|
142
|
+
/** the organization the domain shows (CD-D5); null = the studio's default organization */
|
|
143
|
+
orgId?: string | null;
|
|
144
|
+
/** which name serves; the other 301s to it (CD-D2) — `www` unless the owner picked the bare domain */
|
|
145
|
+
serveAs?: WebDomainName | null;
|
|
146
|
+
/** the organization's primary domain — its other domains 301 here (CD-D5) */
|
|
147
|
+
primary?: boolean;
|
|
148
|
+
records?: readonly WebDnsRecord[];
|
|
149
|
+
problems?: readonly WebDomainProblem[];
|
|
150
|
+
certState?: WebCertState | null;
|
|
151
|
+
/** ISO times */
|
|
152
|
+
checkedAt?: string | null;
|
|
153
|
+
/** the TXT token was found — the domain is proven ours (R-CD2) */
|
|
154
|
+
verifiedAt?: string | null;
|
|
155
|
+
/** the first time the domain went live — a domain that once was and no longer is, is Lost */
|
|
156
|
+
liveAt?: string | null;
|
|
157
|
+
/** when a recheck found it gone (starts the 30 days, CD-D10) */
|
|
158
|
+
lostAt?: string | null;
|
|
159
|
+
createdAt?: string | null;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The host a person typed, as a lower-case ASCII host name — a scheme, a path, a port, a trailing dot and spaces are
|
|
163
|
+
* forgiven; a Hebrew name becomes its punycode (the WHATWG URL parser does it, in Node and every browser). Null when it
|
|
164
|
+
* is not a host name.
|
|
165
|
+
*/
|
|
166
|
+
declare function normalizeHost(input: unknown): string | null;
|
|
167
|
+
/**
|
|
168
|
+
* The registrable domain of a host — `www.shop.mywebsite.co.il` → `mywebsite.co.il`. Null for an IP, a single label or
|
|
169
|
+
* a bare public suffix.
|
|
170
|
+
*/
|
|
171
|
+
declare function registrableDomain(input: unknown): string | null;
|
|
172
|
+
/** Why `input` cannot become a studio's own domain, or null when it can (the domain is then `webDomainOf(input)`). */
|
|
173
|
+
declare function webDomainRefusal(input: unknown, platformDomains?: readonly string[]): WebDomainRefusal | null;
|
|
174
|
+
/** The registrable domain an accepted input names (`https://www.MyWebsite.co.il/` → `mywebsite.co.il`), else null. */
|
|
175
|
+
declare function webDomainOf(input: unknown, platformDomains?: readonly string[]): string | null;
|
|
176
|
+
/** The ownership record's value for a studio's token. */
|
|
177
|
+
declare function webDomainTokenValue(token: string): string;
|
|
178
|
+
/**
|
|
179
|
+
* The three records to copy (CD-D3), in the order the card lists them, not checked yet. `studioHost` is the studio's
|
|
180
|
+
* `<studio>.iox.studio`; `loadBalancerIp` the ingress's public address.
|
|
181
|
+
*/
|
|
182
|
+
declare function webDomainRecords(domain: string, studioHost: string, loadBalancerIp: string, token: string): WebDnsRecord[];
|
|
183
|
+
/**
|
|
184
|
+
* THE state of a domain (R-CD1) — every screen, the bell, the engine's host table and the control plane read it.
|
|
185
|
+
* Live only when proven, pointing here, and cert-manager says Ready (R-CD2); once live, anything less is Lost.
|
|
186
|
+
*/
|
|
187
|
+
declare function webDomainState(row: WebDomainRow | null | undefined): WebDomainState;
|
|
188
|
+
/** Is the domain on the studio's custom Ingress — the control plane renders its names into `customHosts`, the engine serves them. */
|
|
189
|
+
declare function webDomainAttached(row: WebDomainRow | null | undefined): boolean;
|
|
190
|
+
/** The host that serves a domain: `www.<domain>` unless the owner picked the bare domain (CD-D2). */
|
|
191
|
+
declare function primaryHost(row: Pick<WebDomainRow, 'domain' | 'serveAs'>): string;
|
|
192
|
+
/** Both names a domain connects — the served one first. */
|
|
193
|
+
declare function webDomainHosts(row: Pick<WebDomainRow, 'domain' | 'serveAs'>): [string, string];
|
|
194
|
+
/**
|
|
195
|
+
* The live address an organization's site answers on, or null (no live domain → the iox.studio address is canonical).
|
|
196
|
+
* The row marked `primary` wins; with none marked, the first live one (one domain needs no choice, CD-D5).
|
|
197
|
+
*/
|
|
198
|
+
declare function orgPrimaryHost(rows: readonly WebDomainRow[] | null | undefined, orgId: string | null): string | null;
|
|
199
|
+
/** One entry of the host table iox-cms answers the engine's `resolve?host=` from. */
|
|
200
|
+
interface WebHostRoute {
|
|
201
|
+
host: string;
|
|
202
|
+
orgId: string | null;
|
|
203
|
+
/** the organization's live primary host — the canonical address; null while none is live (no redirect anywhere) */
|
|
204
|
+
primaryHost: string | null;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* The host table: every name of every ATTACHED domain → its organization, with that organization's live primary. A Lost
|
|
208
|
+
* domain still serves its organization (so a returning record revives it) but is nobody's primary (R-CD6).
|
|
209
|
+
*/
|
|
210
|
+
declare function webHostTable(rows: readonly WebDomainRow[] | null | undefined): WebHostRoute[];
|
|
211
|
+
/** The route for a request's Host, or null (the default host, or a name no domain holds). */
|
|
212
|
+
declare function webHostRoute(table: readonly WebHostRoute[] | null | undefined, host: string | null | undefined): WebHostRoute | null;
|
|
213
|
+
/** Is a live or lost domain due its daily recheck (CD-D10)? */
|
|
214
|
+
declare function webDomainRecheckDue(row: WebDomainRow | null | undefined, now: number): boolean;
|
|
215
|
+
/** Has a lost domain been gone 30 days — detach it (CD-D10)? */
|
|
216
|
+
declare function webDomainDetachDue(row: WebDomainRow | null | undefined, now: number): boolean;
|
|
217
|
+
/** Has an entered-but-unproven claim expired, so it blocks nobody (CD-D11)? */
|
|
218
|
+
declare function webDomainClaimExpired(row: WebDomainRow | null | undefined, now: number): boolean;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Where a request goes once an organization's own address is live (CD-D6, CD-D7, R-CD5) — the engine applies it as a 301.
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/** The request as the engine sees it. */
|
|
225
|
+
interface RedirectRequest {
|
|
226
|
+
/** the `Host` header (a port is ignored) */
|
|
227
|
+
host: string | null | undefined;
|
|
228
|
+
/** the path, starting with `/` — no query */
|
|
229
|
+
path: string;
|
|
230
|
+
/** the query, with or without its `?` */
|
|
231
|
+
search?: string | null;
|
|
232
|
+
}
|
|
233
|
+
/** What the engine knows about the site this request is for. */
|
|
234
|
+
interface RedirectSite {
|
|
235
|
+
/** the studio's `<studio>.iox.studio` — the admin origin (CD-D7) */
|
|
236
|
+
defaultHost: string;
|
|
237
|
+
/** the organization segment the path carries (`kadar` for `/kadar/about`); null when the path carries none (the default organization) */
|
|
238
|
+
orgSegment: string | null;
|
|
239
|
+
/** the organization's LIVE primary host (`orgPrimaryHost`), or null — nothing is redirected while none is live (R-CD6) */
|
|
240
|
+
primary: string | null;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The absolute URL a request 301s to, or null to serve it here.
|
|
244
|
+
* - `/webadmin|/admin|/api|/auth` are never moved from the default host; on a custom host only `/webadmin` moves, to the
|
|
245
|
+
* default host (one admin origin, CD-D7) — the API and sign-in answer on every host.
|
|
246
|
+
* - With a live primary: any other host (the default host, the other name, another domain of the organization) goes to the
|
|
247
|
+
* primary with the path kept and the organization segment dropped (`/kadar/about` → `/about`).
|
|
248
|
+
* - On the primary itself only a path still carrying the organization segment moves (an old link) — never a loop.
|
|
249
|
+
*/
|
|
250
|
+
declare function orgPathRedirect(req: RedirectRequest, site: RedirectSite): string | null;
|
|
251
|
+
/** What `site/resolve` answered, as far as the request plan reads it (domain-wire's `SiteResolveAnswer`). */
|
|
252
|
+
interface ResolvedSite {
|
|
253
|
+
label: string | null;
|
|
254
|
+
primaryHost: string | null;
|
|
255
|
+
by: SiteResolvedBy;
|
|
256
|
+
}
|
|
257
|
+
/** How the engine handles one request (custom-domains step 21). */
|
|
258
|
+
interface SiteRequestPlan {
|
|
259
|
+
/** 301 here first; null = render */
|
|
260
|
+
redirect: string | null;
|
|
261
|
+
/** `/<segment>/` when the path carries the organization, else `/` (the organization's own host, or the default organization) */
|
|
262
|
+
baseHref: string;
|
|
263
|
+
/** the site the page renders for; false = the legacy default-organization read (no tenant) */
|
|
264
|
+
tenant: boolean;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* The ONE request decision the engine applies: render for whom, under which base href, or 301 where. A redirect is only
|
|
268
|
+
* ever computed for the studio's own host or a host the studio's table holds — a pod IP, `localhost` or a health probe is
|
|
269
|
+
* served as it is.
|
|
270
|
+
* @param rawSegment the request's first path segment as the browser sent it (possibly URL-encoded)
|
|
271
|
+
* @param studioHost the studio's `<studio>.iox.studio` (null when the engine was not told — nothing is redirected)
|
|
272
|
+
*/
|
|
273
|
+
declare function planSiteRequest(req: RedirectRequest, site: ResolvedSite | null, rawSegment: string | null, studioHost: string | null): SiteRequestPlan;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The wire for a studio's own web address: the control plane's `/instances/me/domains` routes (iox-cms calls them with
|
|
277
|
+
* its instance token — R-CD3) and the answer iox-cms passes to the admin.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
/** `GET` the studio's domains · `PUT` add one (`WebDomainRequest`) · `DELETE …/:domain` stop using one. */
|
|
281
|
+
declare const RELAY_WEB_DOMAINS_PATH = "/instances/me/domains";
|
|
282
|
+
/** `/instances/me/domains/:domain` */
|
|
283
|
+
declare function webDomainPath(domain: string): string;
|
|
284
|
+
/** `POST /instances/me/domains/:domain/check` — resolve its records now on public resolvers. */
|
|
285
|
+
declare function webDomainCheckPath(domain: string): string;
|
|
286
|
+
/** `PATCH /instances/me/domains/:domain/primary` — `{ serveAs?, primary? }`. */
|
|
287
|
+
declare function webDomainPrimaryPath(domain: string): string;
|
|
288
|
+
/** `PUT /instances/me/domains` */
|
|
289
|
+
interface WebDomainRequest {
|
|
290
|
+
/** what the owner typed — the server normalizes it (`webDomainOf`) and refuses by `webDomainRefusal` */
|
|
291
|
+
domain: string;
|
|
292
|
+
/** the organization it shows; omitted with one organization (CD-D5) */
|
|
293
|
+
orgId?: string | null;
|
|
294
|
+
}
|
|
295
|
+
/** `PATCH …/primary` */
|
|
296
|
+
interface WebDomainPrimaryRequest {
|
|
297
|
+
serveAs?: WebDomainName;
|
|
298
|
+
primary?: boolean;
|
|
299
|
+
}
|
|
300
|
+
/** One domain as the wire carries it — the row plus its decided state, so no reader decides it again. */
|
|
301
|
+
interface WebDomainEntry {
|
|
302
|
+
domain: string;
|
|
303
|
+
orgId: string | null;
|
|
304
|
+
serveAs: WebDomainName;
|
|
305
|
+
primary: boolean;
|
|
306
|
+
/** `primaryHost(entry)` — the name that serves */
|
|
307
|
+
host: string;
|
|
308
|
+
state: WebDomainState;
|
|
309
|
+
certState: WebCertState;
|
|
310
|
+
records: WebDnsRecord[];
|
|
311
|
+
problems: WebDomainProblem[];
|
|
312
|
+
checkedAt: string | null;
|
|
313
|
+
verifiedAt: string | null;
|
|
314
|
+
liveAt: string | null;
|
|
315
|
+
lostAt: string | null;
|
|
316
|
+
/** the day a domain over a downgraded plan stops (CD-D12), or a lost one detaches (CD-D10); null otherwise */
|
|
317
|
+
stopsAt: string | null;
|
|
318
|
+
}
|
|
319
|
+
/** `GET /instances/me/domains` (and every write's answer). */
|
|
320
|
+
interface WebDomainAnswer {
|
|
321
|
+
domains: WebDomainEntry[];
|
|
322
|
+
/** how many own domains the plan includes (CD-D4) */
|
|
323
|
+
limit: number;
|
|
324
|
+
/** the studio's `<studio>.iox.studio` — the CNAME's value and the admin origin */
|
|
325
|
+
studioHost: string;
|
|
326
|
+
}
|
|
327
|
+
/** iox-cms's answer to the admin: the control plane's, plus whether THIS user may add, remove or pick the primary (CD-D13). */
|
|
328
|
+
interface WebDomainView extends WebDomainAnswer {
|
|
329
|
+
mayChange: boolean;
|
|
330
|
+
}
|
|
331
|
+
/** A refused domain call: `{ code, message }` — 400 (`not-a-domain` · `ip-address` · `platform-domain` · `public-suffix` · `subdomain`), 409 (`taken`), 403 (`plan-full` · `not-enabled`), 503 (`not-enabled`), 502 (`upstream`). */
|
|
332
|
+
interface WebDomainRefusalBody {
|
|
333
|
+
code: WebDomainRefusal;
|
|
334
|
+
message: string;
|
|
335
|
+
}
|
|
336
|
+
/** No domains: what a studio whose control plane is unreachable or whose plan includes none reads. */
|
|
337
|
+
declare const NO_WEB_DOMAINS: WebDomainAnswer;
|
|
338
|
+
/**
|
|
339
|
+
* `GET api/site/resolve?host=<Host>&org=<first segment>` — what the engine learns about the site a request is for. An
|
|
340
|
+
* engine that sends only `?org=` gets the answer it always got (`null` for an unknown label); `primaryHost` and `by` are
|
|
341
|
+
* additive.
|
|
342
|
+
*/
|
|
343
|
+
interface SiteResolveAnswer {
|
|
344
|
+
orgId: string;
|
|
345
|
+
label: string | null;
|
|
346
|
+
isDefault: boolean;
|
|
347
|
+
/** the organization's live primary host (canonical); null = the iox.studio address is canonical */
|
|
348
|
+
primaryHost: string | null;
|
|
349
|
+
by: SiteResolvedBy;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export { ADMIN_SEGMENT, MULTI_PART_SUFFIXES, NEVER_REDIRECTED_SEGMENTS, NO_WEB_DOMAINS, PLATFORM_WEB_DOMAINS, RELAY_WEB_DOMAINS_PATH, SiteResolvedBy, WEB_CERT_RENEW_MARGIN_MS, WEB_DOMAIN_CHECK_MIN_MS, WEB_DOMAIN_CLAIM_MS, WEB_DOMAIN_GRACE_MS, WEB_DOMAIN_LOST_KEEP_MS, WEB_DOMAIN_RECHECK_MS, WEB_DOMAIN_TOKEN_PREFIX, WEB_DOMAIN_TXT_HOST, WebCertState, WebDnsRecordRole, WebDomainName, WebDomainProblem, WebDomainRefusal, WebDomainState, normalizeHost, orgPathRedirect, orgPrimaryHost, planSiteRequest, primaryHost, registrableDomain, webDomainAttached, webDomainCheckPath, webDomainClaimExpired, webDomainDetachDue, webDomainHosts, webDomainOf, webDomainPath, webDomainPrimaryPath, webDomainRecheckDue, webDomainRecords, webDomainRefusal, webDomainState, webDomainTokenValue, webHostRoute, webHostTable };
|
|
353
|
+
export type { RedirectRequest, RedirectSite, ResolvedSite, SiteRequestPlan, SiteResolveAnswer, WebDnsRecord, WebDomainAnswer, WebDomainEntry, WebDomainPrimaryRequest, WebDomainRefusalBody, WebDomainRequest, WebDomainRow, WebDomainView, WebHostRoute };
|
|
@@ -208,6 +208,8 @@ const ELEMENT_ACTION_DESCRIPTORS = Object.freeze([
|
|
|
208
208
|
{ value: 'line', labelKey: 'builder.actions.params.byLine' },
|
|
209
209
|
{ value: 'word', labelKey: 'builder.actions.params.byWord' },
|
|
210
210
|
] }] },
|
|
211
|
+
// AW3 (Motion board, E5): a heading comes from a small blur into focus — the look's `blur-in` move; reduced → the fade.
|
|
212
|
+
{ type: 'blurIn', labelKey: 'builder.actions.blurIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
|
|
211
213
|
// Premium M6 (N5): a number that counts up ONCE, the first time it comes into view (D4); its final value is always the
|
|
212
214
|
// node's own text, so it is what the page sends. Offered only where it can wait unseen for that moment.
|
|
213
215
|
{ type: 'countUp', labelKey: 'builder.actions.countUp', kind: 'animated', group: 'motion', builderBehaviour: 'run', triggers: COUNT_UP_TRIGGERS,
|