@wix/himalaya-cli 0.1718.0 → 0.1720.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/provisioning-facts.d.ts +48 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/cli.mjs +15448 -14643
- package/guides/capabilities.md +4 -2
- package/guides/himi-json-output.md +5 -3
- package/guides/one-app-to-himi-app.md +23 -0
- package/guides/webview-page-sdk.md +7 -3
- package/guides/wix-business-context.md +3 -1
- package/package.json +2 -2
|
@@ -138,6 +138,7 @@ export interface NavigationConfig {
|
|
|
138
138
|
cashierConfig?: import("@wix/himalaya/core").CashierConfig;
|
|
139
139
|
base44Config?: import("@wix/himalaya/core").Base44Config;
|
|
140
140
|
wixIapConfig?: import("@wix/himalaya/core").WixIapConfig;
|
|
141
|
+
contract?: import("./provisioning-facts.js").ServedReleaseContract;
|
|
141
142
|
wixPlatformConfig?: WixPlatformConfig;
|
|
142
143
|
devGatewayConfig?: DevGatewayConfig;
|
|
143
144
|
dataSchema?: import("@wix/himalaya/core").DataSchemaConfig;
|
|
@@ -199,6 +199,9 @@ export interface DerivedAppMeta {
|
|
|
199
199
|
* `development-site` is not). Resolves a frog `mobileAppId` template such as Branded Lite's
|
|
200
200
|
* `brandedLite_{msid}`: the binary is bound by its Headless clientId and holds no msid. */
|
|
201
201
|
provisionedMsid?: string;
|
|
202
|
+
/** `provisioning.json`'s contract blocks for a site package (RFC 0079 §10), served as the
|
|
203
|
+
* app-config's `contract` for the dist projection. Read from disk at load time. */
|
|
204
|
+
releaseContract?: import("./provisioning-facts.js").ServedReleaseContract;
|
|
202
205
|
/** Forwarded from AppConfig.control for the OTA app-config channel. */
|
|
203
206
|
control?: import("@wix/himalaya/core").AppControl;
|
|
204
207
|
/** Forwarded from AppConfig.appLinkHosts for the OTA app-config channel. */
|
|
@@ -1,7 +1,54 @@
|
|
|
1
1
|
export interface ProvisioningFacts {
|
|
2
2
|
siteId?: string;
|
|
3
3
|
installedVerticals?: string[];
|
|
4
|
+
/** RFC 0079 §10 — the content package's contract blocks, served in its app-config as `contract`
|
|
5
|
+
* so the dist projection can read them. Present only for a package that carries a site block. */
|
|
6
|
+
contract?: ServedReleaseContract;
|
|
4
7
|
}
|
|
5
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The contract blocks a release serves in its app-config (`contract`), for serve-control's dist
|
|
10
|
+
* projection (core/serve-control/src/dist-contract.ts, `releaseContractBlocksOf` in
|
|
11
|
+
* tools/mobile-dist/dist-contract-merge.ts) — RFC 0079 §10 "Dist": a website-only release on the
|
|
12
|
+
* Branded Lite shell bakes ITS site, binding and identity, never the shell's reference ones.
|
|
13
|
+
*
|
|
14
|
+
* Copied, not validated: the projection validates every value it bakes (all or nothing) and refuses
|
|
15
|
+
* a contract that is present but invalid, so this module stays a plain reader. Only the keys below
|
|
16
|
+
* are copied — a provisioning file carries much more (location, hours, FAQ, …) that has no business
|
|
17
|
+
* in a served document.
|
|
18
|
+
*/
|
|
19
|
+
export interface ServedReleaseContract {
|
|
20
|
+
/** The site-shell `site` block (`origin`, `kind`, `pages`, …), as the package wrote it. */
|
|
21
|
+
site: Record<string, unknown>;
|
|
22
|
+
/** `bindings { wix, base44 }` and the older top-level spellings, as written: the projection folds
|
|
23
|
+
* them with the shared rule (two that disagree are refused, never resolved). */
|
|
24
|
+
bindings?: Record<string, unknown>;
|
|
25
|
+
wix?: Record<string, unknown>;
|
|
26
|
+
base44?: Record<string, unknown>;
|
|
27
|
+
/** The public identity fields the shared contract names beside `appName` (which the app-config's
|
|
28
|
+
* `name` already carries). A non-object `identity` is served AS WRITTEN, so the projection refuses
|
|
29
|
+
* it instead of quietly baking neutral values over a typo. */
|
|
30
|
+
identity?: Partial<Record<(typeof SERVED_IDENTITY_KEYS)[number], unknown>> | ServedMalformedBlock;
|
|
31
|
+
/** `branding.secondaryColor` only — the primary colour and the icon come from the release's
|
|
32
|
+
* tokens and icon. */
|
|
33
|
+
branding?: {
|
|
34
|
+
secondaryColor?: unknown;
|
|
35
|
+
} | ServedMalformedBlock;
|
|
36
|
+
/** A native app with website pages names its verticals and CMS collections beside its site. */
|
|
37
|
+
installedVerticals?: unknown[];
|
|
38
|
+
cmsCollections?: unknown[];
|
|
39
|
+
}
|
|
40
|
+
/** A block the package wrote with the wrong type (a string, a number, an array): served as written,
|
|
41
|
+
* for the projection to refuse. */
|
|
42
|
+
export type ServedMalformedBlock = string | number | boolean | unknown[];
|
|
43
|
+
/** The identity fields a release's served contract carries. */
|
|
44
|
+
export declare const SERVED_IDENTITY_KEYS: readonly ["businessName", "tagline", "supportUrl", "privacyUrl", "termsUrl"];
|
|
45
|
+
/**
|
|
46
|
+
* The served contract of a parsed provisioning document, or undefined when it carries no site
|
|
47
|
+
* block. "A site block" is decided by shape only — an object naming an `origin` and a `pages` list —
|
|
48
|
+
* so a malformed one is still SERVED and the projection refuses it, rather than this reader quietly
|
|
49
|
+
* dropping it and the build inheriting the shell's reference site. Pure.
|
|
50
|
+
*/
|
|
51
|
+
export declare function servedReleaseContractOf(raw: unknown): ServedReleaseContract | undefined;
|
|
52
|
+
/** `<dir>/provisioning.json`'s site, verticals and (for a site package) contract blocks. A missing or unreadable file, or a field of
|
|
6
53
|
* the wrong type, reads as absent: the file is a build input, never a reason to fail one. */
|
|
7
54
|
export declare function readProvisioningFacts(dir: string): ProvisioningFacts;
|
|
@@ -9602,6 +9602,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
|
|
|
9602
9602
|
...config.push?.screens ? { pushScreens: config.push.screens } : {},
|
|
9603
9603
|
...provisioning.installedVerticals ? { installedVerticals: provisioning.installedVerticals } : {},
|
|
9604
9604
|
...isMetaSiteId(provisioning.siteId) ? { provisionedMsid: provisioning.siteId } : {},
|
|
9605
|
+
...provisioning.contract ? { releaseContract: provisioning.contract } : {},
|
|
9605
9606
|
control: config.control,
|
|
9606
9607
|
appLinkHosts: config.appLinkHosts,
|
|
9607
9608
|
permissionCopy: config.permissionCopy,
|