@wix/himalaya-cli 0.1723.0 → 0.1725.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 +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/godot/src/index.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/attendance-classifier.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +9 -43
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/location/src/index.d.ts +5 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/on-device-ai/src/index.d.ts +19 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/preview-surfaces.d.ts +24 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.generated.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/wrapped-app-link.d.ts +13 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +5 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +0 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +2 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +4 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/videos.d.ts +31 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +175 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +127 -509
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +5 -26
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/on-device-ai.mjs +49 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +150 -644
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
- package/dist/browser-plane/assets.json +7 -7
- package/dist/browser-plane/package-reader.js +4 -4
- package/dist/browser-plane/preview-deferred/{74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin → 49dfd582c5a8fb38ceabd1c544343d87fd478063c04f90c4e7a4ed5ee774f1eb.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/browser-plane/t5-frame.html +16 -0
- package/dist/browser-plane/t5-worker-frame.html +16 -0
- package/dist/cli.mjs +3039 -1831
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/capabilities.md +2 -2
- package/guides/headless-loop.md +2 -1
- package/guides/himi-json-output.md +6 -2
- package/guides/iap-products.md +2 -2
- package/guides/iap-screen-adoption.md +5 -5
- package/guides/sdk-reference.json +47 -82
- package/guides/skill.md +1 -1
- package/guides/testing-himi-apps.md +4 -3
- package/guides/web-page-sdk-reference.md +1 -1
- package/guides/webview-page-sdk.md +14 -0
- package/guides/wix-business-context.md +24 -0
- package/guides/wix-site-to-himi-app.md +2 -1
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/branded-lite/dev/index.ts +35 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +82 -12
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/branded-lite/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/brandy/README.md +13 -0
- package/templates/brandy/config.ts +15 -1
- package/templates/brandy/dev/index.ts +10 -7
- package/templates/community-club/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/conference/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/retail-store/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +2 -2
- package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +5 -8
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance-orders.d.ts +0 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs-orders.d.ts +0 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans-orders.d.ts +0 -2
|
@@ -125,6 +125,7 @@ export interface NavigationConfig {
|
|
|
125
125
|
flagConfig: FlagConfig;
|
|
126
126
|
push?: PushConfig;
|
|
127
127
|
appLinkHosts?: string[];
|
|
128
|
+
wrappedAppLinks?: import("@wix/himalaya/core").WrappedAppLink[];
|
|
128
129
|
permissionCopy?: Record<string, string>;
|
|
129
130
|
control?: AppControl;
|
|
130
131
|
useProdServe?: boolean;
|
|
@@ -206,6 +206,8 @@ export interface DerivedAppMeta {
|
|
|
206
206
|
control?: import("@wix/himalaya/core").AppControl;
|
|
207
207
|
/** Forwarded from AppConfig.appLinkHosts for the OTA app-config channel. */
|
|
208
208
|
appLinkHosts?: string[];
|
|
209
|
+
/** Forwarded from AppConfig.wrappedAppLinks (#4816) for the OTA app-config channel. */
|
|
210
|
+
wrappedAppLinks?: import("@wix/himalaya/core").WrappedAppLink[];
|
|
209
211
|
/** Forwarded from AppConfig.permissionCopy — read by the dist contract (native usage strings). */
|
|
210
212
|
permissionCopy?: Record<string, string>;
|
|
211
213
|
/** Forwarded from AppConfig.navigation.tabBar — RFC 0010 tab structure. */
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/godot/src/index.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export interface PackResult {
|
|
|
19
19
|
status: PackStatus;
|
|
20
20
|
/** Local path the verified pack was written to, when it got that far. */
|
|
21
21
|
path?: string;
|
|
22
|
+
/** Why it failed, when the platform said: e.g. `http 404 host/v1/asset/<sha>`, `network -1009 host/…`,
|
|
23
|
+
* `sri mismatch`. Never a query or a header, so it is safe to show. */
|
|
24
|
+
detail?: string;
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Send a message to the running game (worker -> game).
|
|
@@ -26,7 +26,7 @@ export interface TicketAttendance extends AttendancePrice {
|
|
|
26
26
|
}
|
|
27
27
|
/** Delivery metadata decides the route; online booking and online payment alone never do. */
|
|
28
28
|
export declare function classifyForApple(item: BookingAttendance | TicketAttendance, currency: string): AppleAttendanceRoute;
|
|
29
|
-
/** Applies platform support
|
|
29
|
+
/** Applies platform support without sending uncertain iOS offers to web checkout. */
|
|
30
30
|
export declare function attendanceCheckoutRoute(item: BookingAttendance | TicketAttendance, currency: string, platform: string): "regular" | "appleIap" | "blocked";
|
|
31
31
|
/** Preserves missing Wix service fields as unknown so absent metadata cannot authorize a payment route. */
|
|
32
32
|
export declare function bookingAttendanceOf(raw: unknown): BookingAttendance;
|
|
@@ -37,64 +37,30 @@ export interface AppleSaleRule {
|
|
|
37
37
|
appProductId(entityId: string): string;
|
|
38
38
|
productType: "NON_CONSUMABLE" | "CONSUMABLE";
|
|
39
39
|
}
|
|
40
|
-
export declare const BOOKINGS_APPLE_SALES_ENABLED = true;
|
|
41
|
-
export declare const EVENTS_APPLE_SALES_ENABLED = true;
|
|
42
|
-
/**
|
|
43
|
-
* Whether Wix Stores items sell through the App Store: the Stores rule in `APPLE_SALE_RULES` and the
|
|
44
|
-
* product screen's Buy. A sale is wix-iap StartItemPayment (catalyst-server #24496), which places and
|
|
45
|
-
* charges the member's eCom order for one catalog item server-side; the device never opens an eCom
|
|
46
|
-
* checkout or a cashier charge for it. ON for mapped digital products.
|
|
47
|
-
*/
|
|
48
|
-
export declare const STORES_APPLE_SALES_ENABLED = true;
|
|
49
40
|
/** StartItemPayment's CatalogReference: the purchases catalog sells a Stores product under its product
|
|
50
41
|
* id (eCom's `catalogItemId`). One-time unlocks only, whatever the backend also accepts. */
|
|
51
42
|
export declare const STORES_PRODUCT_SALE_RULE: AppleSaleRule;
|
|
52
|
-
/** One-time unlimited plans sell through the App Store. Proven live in Sandbox on 2026-10-19: a member's
|
|
53
|
-
* online plan order is charged with one cashier item whose id is the plan id, so StartPayment maps it to the
|
|
54
|
-
* plan's Apple product, and the order reads ACTIVE and PAID. Recurring and time-limited plans stay outside
|
|
55
|
-
* this rule; their Billing lifecycle is unfinished. */
|
|
56
|
-
export declare const PRICING_PLAN_APPLE_SALES_ENABLED = true;
|
|
57
43
|
/**
|
|
58
|
-
* Whether Wix Video videos sell through the App Store. OFF
|
|
59
|
-
*
|
|
60
|
-
* its
|
|
61
|
-
*
|
|
44
|
+
* Whether Wix Video videos sell through the App Store. OFF until the Wix Video purchase is proven live
|
|
45
|
+
* (gates G1–G4). A video with a one-time Sale price above zero is mapped under
|
|
46
|
+
* its video id as a one-time unlock (`wixVideoItem`), and screens show its App Store price. ON, the Video
|
|
47
|
+
* screen offers Buy: the device opens Video's own SALE order on its GraphQL gateway (`wixVideoOrders`),
|
|
48
|
+
* and the shared checkout charges it with appleIAP and pays it through StartPayment. OFF, the adapter
|
|
49
|
+
* refuses every sale and the screen composes no checkout.
|
|
62
50
|
*/
|
|
63
51
|
export declare const VIDEOS_APPLE_SALES_ENABLED = false;
|
|
64
|
-
/**
|
|
65
|
-
* Which verticals order through wix-iap StartItemPayment (catalyst-server #24878 Plans, #24880 Online
|
|
66
|
-
* Programs, #24881 Bookings, #24882 Events) instead of the device's own checkout and StartPayment. The
|
|
67
|
-
* server places the order as the member, charges it with appleIAP and names the App Store product. Each
|
|
68
|
-
* OFF: that vertical keeps its client checkout. Turn one on only once production wix-iap and Serve's
|
|
69
|
-
* generated client carry its fields; each flips on its own.
|
|
70
|
-
*/
|
|
71
|
-
export declare const PRICING_PLAN_ITEM_PAYMENT_ENABLED = false;
|
|
72
|
-
export declare const ONLINE_PROGRAM_ITEM_PAYMENT_ENABLED = false;
|
|
73
|
-
export declare const BOOKINGS_ITEM_PAYMENT_ENABLED = false;
|
|
74
|
-
export declare const EVENTS_ITEM_PAYMENT_ENABLED = false;
|
|
75
|
-
/**
|
|
76
|
-
* CancelPayment (catalyst-server #24894, not deployed) when the member closes the Apple sheet: it cancels
|
|
77
|
-
* the pending Payment and releases the ticket reservation or booking it held. OFF: nothing is sent, and the
|
|
78
|
-
* Payment expires on its own in about an hour.
|
|
79
|
-
*/
|
|
80
|
-
export declare const CANCEL_PAYMENT_ENABLED = false;
|
|
81
52
|
/**
|
|
82
53
|
* The one definition `himi store iap connect` writes mappings by and the mapping source reads them by,
|
|
83
|
-
* keyed by catalog kind.
|
|
84
|
-
*
|
|
85
|
-
* Wix Stores and one-time unlimited Pricing Plans join only with their independent switches.
|
|
54
|
+
* keyed by catalog kind. Every vertical but Video sells through wix-iap StartItemPayment, which orders
|
|
55
|
+
* the item server-side and names the App Store product by the item's own id.
|
|
86
56
|
*/
|
|
87
57
|
export interface AppleSaleOptions {
|
|
88
|
-
storesAppleSalesEnabled?: boolean;
|
|
89
|
-
pricingPlanAppleSalesEnabled?: boolean;
|
|
90
|
-
bookingsAppleSalesEnabled?: boolean;
|
|
91
|
-
eventsAppleSalesEnabled?: boolean;
|
|
92
58
|
videosAppleSalesEnabled?: boolean;
|
|
93
59
|
}
|
|
94
60
|
/** Resolves runtime sale eligibility independently from the catalog's provisioning support. */
|
|
95
61
|
export declare function appleSaleRules(options?: AppleSaleOptions): Readonly<Record<string, AppleSaleRule>>;
|
|
96
62
|
export declare const APPLE_SALE_RULES: Readonly<Record<string, AppleSaleRule>>;
|
|
97
|
-
/** Catalog setup may precede activation
|
|
63
|
+
/** Catalog setup may precede activation: a video is provisioned while its sales stay off. */
|
|
98
64
|
export declare const APPLE_PROVISIONING_RULES: Readonly<Record<string, AppleSaleRule>>;
|
|
99
65
|
/** What the mapping source prices by: every sale rule, plus the verticals whose App Store prices show
|
|
100
66
|
* before their purchase is on (Wix Video). A priced item with no sale rule has no checkout adapter. */
|
|
@@ -187,9 +187,10 @@ export declare function watchGeofences(fences: Geofence[], onEvent: (event: Geof
|
|
|
187
187
|
}): GeofenceWatcher;
|
|
188
188
|
export declare const version = 4;
|
|
189
189
|
export interface RegionMonitoringSupport {
|
|
190
|
-
/** False on
|
|
190
|
+
/** False on the web, and wherever the module is not linked. Check it BEFORE relying on a
|
|
191
|
+
* terminated-app trigger. */
|
|
191
192
|
available: boolean;
|
|
192
|
-
/** How many regions the OS will monitor for this app. iOS: 20, process-wide. */
|
|
193
|
+
/** How many regions the OS will monitor for this app. iOS: 20, Android: 100, process-wide. */
|
|
193
194
|
maxRegions: number;
|
|
194
195
|
/** Radii below this are unreliable on consumer GPS and are clamped up to it. */
|
|
195
196
|
minRadiusM: number;
|
|
@@ -205,7 +206,8 @@ export interface MonitoredRegionResult {
|
|
|
205
206
|
ok: boolean;
|
|
206
207
|
id?: string;
|
|
207
208
|
radiusM?: number;
|
|
208
|
-
/** Why it was refused: no Always grant
|
|
209
|
+
/** Why it was refused: no Always grant (on Android, also only approximate location granted —
|
|
210
|
+
* geofencing needs precise), the region cap, or an unusable coordinate. */
|
|
209
211
|
reason?: string;
|
|
210
212
|
}
|
|
211
213
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Availability } from "@wix/himalaya/sdk-types";
|
|
2
2
|
export type { Availability } from "@wix/himalaya/sdk-types";
|
|
3
|
-
/** The on-device engine backing generation, when one is available.
|
|
4
|
-
|
|
3
|
+
/** The on-device engine backing generation, when one is available. `chrome_built_in` is Chrome's
|
|
4
|
+
* task model (Summarizer / Rewriter / Proofreader), which only the writing tasks report. */
|
|
5
|
+
export type OnDeviceEngine = "foundation_models" | "gemini_nano" | "prompt_api" | "chrome_built_in";
|
|
5
6
|
export interface OnDeviceAvailability {
|
|
6
7
|
/** Honest support level for text generation on THIS device/host (spec R8). */
|
|
7
8
|
textGeneration: Availability;
|
|
@@ -57,15 +58,26 @@ export declare function generateText(input: GenerateTextInput): Promise<Generate
|
|
|
57
58
|
*/
|
|
58
59
|
export declare function generateJson<T = Record<string, unknown>>(input: GenerateTextInput): Promise<T | null>;
|
|
59
60
|
export interface SummarizeOptions {
|
|
60
|
-
/**
|
|
61
|
+
/** "paragraph" (default) or "bullets". */
|
|
62
|
+
format?: "paragraph" | "bullets";
|
|
63
|
+
/** "short", "medium" (default) or "long". */
|
|
64
|
+
length?: "short" | "medium" | "long";
|
|
65
|
+
/** Extra free-form instruction, e.g. "in one sentence". When set, the summary is generated
|
|
66
|
+
* through `generateText` with that instruction instead of the platform's summarizer. */
|
|
61
67
|
instruction?: string;
|
|
62
|
-
/** Complexity
|
|
68
|
+
/** Complexity hint for the `instruction` path. Defaults to MEDIUM. */
|
|
63
69
|
taskComplexity?: TaskComplexity;
|
|
64
70
|
}
|
|
71
|
+
/** How `rewrite` should change the text. */
|
|
72
|
+
export type RewriteStyle = "rephrase" | "shorter" | "elaborate" | "friendly" | "professional" | "emojify";
|
|
65
73
|
/**
|
|
66
|
-
* Summarize a block of text on device
|
|
67
|
-
*
|
|
68
|
-
*
|
|
74
|
+
* Summarize a block of text on device — the on-device model with summarization instructions (Apple
|
|
75
|
+
* Foundation Models, Gemini Nano), or Chrome's Summarizer on the web. Returns plain text in `text`;
|
|
76
|
+
* check `.success`.
|
|
69
77
|
*/
|
|
70
78
|
export declare function summarize(text: string, opts?: SummarizeOptions): Promise<GenerateTextResult>;
|
|
79
|
+
/** Rewrite text on device in a given style (shorter, friendlier, more professional…). */
|
|
80
|
+
export declare function rewrite(text: string, style?: RewriteStyle): Promise<GenerateTextResult>;
|
|
81
|
+
/** Fix spelling and grammar on device; `text` is the corrected text. */
|
|
82
|
+
export declare function proofread(text: string): Promise<GenerateTextResult>;
|
|
71
83
|
export declare const version = 1;
|
|
@@ -25,7 +25,7 @@ export declare const CAPABILITY_REGISTRY: {
|
|
|
25
25
|
readonly media_playback: readonly ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"];
|
|
26
26
|
readonly motion: readonly ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"];
|
|
27
27
|
readonly network: readonly ["status", "subscribe"];
|
|
28
|
-
readonly on_device_ai: readonly ["availability", "generateText"];
|
|
28
|
+
readonly on_device_ai: readonly ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"];
|
|
29
29
|
readonly open_url: readonly ["canOpen", "open"];
|
|
30
30
|
readonly pdf: readonly ["isAvailable", "open"];
|
|
31
31
|
readonly photos: readonly ["getSavePermissionStatus", "pick", "saveToLibrary"];
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type { CmsConfig } from "./cms.js";
|
|
|
10
10
|
import { type LegacyImportConfig } from "./legacy-import.js";
|
|
11
11
|
import { type DataResourcesConfig } from "@wix/himalaya/data-resources";
|
|
12
12
|
import { type Base44EntitySpec, type Base44FunctionSpec } from "./base44-entities.js";
|
|
13
|
+
import { type WrappedAppLink } from "./wrapped-app-link.js";
|
|
13
14
|
import type { FunctionDefinition, FunctionScheduleRecord } from "@himalaya/functions";
|
|
14
15
|
export type { CmsConfig, CmsCollectionSpec, CmsFieldSpec, WixFieldType } from "./cms.js";
|
|
15
16
|
export type { PushRoute, PushPayloadAdapter, PushScreenMapEntry };
|
|
@@ -525,6 +526,15 @@ export interface AppConfig {
|
|
|
525
526
|
* routes inbound https links on these hosts through the deep-link table.
|
|
526
527
|
*/
|
|
527
528
|
appLinkHosts?: string[];
|
|
529
|
+
/**
|
|
530
|
+
* #4816 — links on a host this app SHARES with other apps, which carry its route in a query
|
|
531
|
+
* param: `{ host: "invite.mobileappinvite.com", path: "/nano", param: "deeplink" }` makes
|
|
532
|
+
* `https://invite.mobileappinvite.com/nano?deeplink=join/AB12` open `<scheme>://join/AB12`.
|
|
533
|
+
* Served OTA on the app-config channel as `wrappedAppLinks`; the native `normalizeIncomingURL`
|
|
534
|
+
* unwraps such a link before routing it. The host is NOT an `appLinkHosts` entry (the app does
|
|
535
|
+
* not own it); the shell still claims the path in its entitlements and manifest.
|
|
536
|
+
*/
|
|
537
|
+
wrappedAppLinks?: WrappedAppLink[];
|
|
528
538
|
/**
|
|
529
539
|
* iOS universal-link identity. Served (per running app instance) by the
|
|
530
540
|
* dev-server's `GET /.well-known/apple-app-site-association`. Pure app
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts
CHANGED
|
@@ -19,10 +19,12 @@ export * from "./worker-subtree.js";
|
|
|
19
19
|
export * from "./worker-subtree-safe-types.generated.js";
|
|
20
20
|
export * from "./icon-catalog.generated.js";
|
|
21
21
|
export * from "./app-link.js";
|
|
22
|
+
export * from "./wrapped-app-link.js";
|
|
22
23
|
export * from "./app-identity.js";
|
|
23
24
|
export * from "./store-adopt.js";
|
|
24
25
|
export * from "./app-registry-client.js";
|
|
25
26
|
export * from "./site-shell.js";
|
|
27
|
+
export * from "./site-web-sdk.js";
|
|
26
28
|
export * from "./site-menu.js";
|
|
27
29
|
export * from "./webview-embedded.js";
|
|
28
30
|
export * from "./webview-origin.js";
|
|
@@ -11,6 +11,30 @@ export type SizeClass = "compact" | "medium" | "expanded";
|
|
|
11
11
|
* CONTAINER, never the OS window — that is what lets a 390px phone frame on a
|
|
12
12
|
* wide desktop still resolve to `compact` (AppShell.tsx). */
|
|
13
13
|
export declare function resolveSizeClass(width: number): SizeClass;
|
|
14
|
+
/** The `contentMaxWidth` token: a size-class-keyed content measure (RFC 0041). */
|
|
15
|
+
export interface ContentMaxWidth {
|
|
16
|
+
base: number;
|
|
17
|
+
medium?: number;
|
|
18
|
+
expanded?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const DEFAULT_CONTENT_MAX: ContentMaxWidth;
|
|
21
|
+
/** The web shell's expanded sidebar rail, in px (SidebarRail.tsx). The column beside it is the
|
|
22
|
+
* surface width less this, so a render that draws no rail draws the screen at that column. */
|
|
23
|
+
export declare const SIDEBAR_RAIL_WIDTH = 240;
|
|
24
|
+
/** Resolve a size-class-keyed content measure against a width (expanded ≥840 →
|
|
25
|
+
* medium ≥600 → base), with downward fallback. Mirror of the Grid column ladder. */
|
|
26
|
+
export declare function resolveContentMax(cmw: ContentMaxWidth, width: number): number;
|
|
27
|
+
/** The web shell's content measures for one surface at one width (AppShell.tsx).
|
|
28
|
+
* `contentMax` caps the screen beside a sidebar; `shellMax` caps the whole shell
|
|
29
|
+
* otherwise. Tablet and Mac previews imitate the native shells (full bleed below
|
|
30
|
+
* expanded, then the token's measure); the website (`desktop`) and phones keep the
|
|
31
|
+
* token's `base` phone column. `himi render` applies the same measure, so a render
|
|
32
|
+
* matches what the host shows. */
|
|
33
|
+
export declare function shellContentMeasures(surfaceId: string | undefined, width: number, contentMaxWidth: ContentMaxWidth | undefined): {
|
|
34
|
+
nativePreview: boolean;
|
|
35
|
+
contentMax: number | "100%";
|
|
36
|
+
shellMax: number | "100%";
|
|
37
|
+
};
|
|
14
38
|
/** The chassis drawn around a preview. Purely presentational — it decides bezel,
|
|
15
39
|
* status bar, title bar, crown, wallpaper; it never affects what renders inside. */
|
|
16
40
|
export type ChassisKind = "phone" | "tablet" | "browser" | "mac" | "watch" | "watch-round" | "widget" | "car" | "tv";
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ScreenDescriptor } from "./schema.js";
|
|
2
|
+
/** A provisioning.json `webSdk` block, as written: `bundle` is usually absent. */
|
|
3
|
+
export interface SiteWebSdk {
|
|
4
|
+
/** The package's own Tier-5 worker. Absent ⇒ the generated companion (health alone ⇒ its built-in
|
|
5
|
+
* proof worker). */
|
|
6
|
+
bundle?: string;
|
|
7
|
+
/** Capability ids a page may call. */
|
|
8
|
+
capabilities?: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
/** The worker a `webSdk` block puts behind every site page, and what each page declares for it. */
|
|
11
|
+
export interface SiteWebSdkCompanion {
|
|
12
|
+
bundle: string;
|
|
13
|
+
declaredCapabilities: string[];
|
|
14
|
+
}
|
|
15
|
+
/** What {@link withSiteWebSdk} reads from the screen builder's context. */
|
|
16
|
+
export interface SiteWebSdkBuildContext {
|
|
17
|
+
serverBaseUrl: string;
|
|
18
|
+
bundleIntegrity(bundleName: string): string | null;
|
|
19
|
+
}
|
|
20
|
+
/** Bundle names the content build reserves for generated companions. */
|
|
21
|
+
export declare const SITE_WEB_SDK_GENERATED_PREFIX = "himi-webview-page-";
|
|
22
|
+
/** Health's built-in proof worker, used when health is the only capability. */
|
|
23
|
+
export declare const SITE_WEB_SDK_HEALTH_BUNDLE = "himi-webview-health";
|
|
24
|
+
/** The generated companion's bundle name for a capability set (order and duplicates ignored). */
|
|
25
|
+
export declare function siteWebSdkBundleName(capabilities: readonly string[]): string;
|
|
26
|
+
/** The worker a `webSdk` block needs and what a site screen declares for it, or null when the block
|
|
27
|
+
* enables no capability. A generated companion declares the `webview` transport, the enabled set,
|
|
28
|
+
* and whatever their packages dispatch besides them; the package's own `bundle` declares the
|
|
29
|
+
* transport and the enabled set. Throws on a block no worker can serve: a reserved bundle name
|
|
30
|
+
* that is not this set's, or a capability no page can call. */
|
|
31
|
+
export declare function siteWebSdkCompanion(webSdk: SiteWebSdk | null | undefined): SiteWebSdkCompanion | null;
|
|
32
|
+
/** A copy of a site screen with the `webSdk` block's worker attached as its `logicBundle`, so the
|
|
33
|
+
* page can call the enabled capabilities. Without a block (or with no capability) the copy is
|
|
34
|
+
* unchanged. Null when the worker is not built, so the screen fails to build rather than ship a
|
|
35
|
+
* page whose calls nothing answers. A worker-backed page keeps the WebView screen form only (its
|
|
36
|
+
* node form is dropped), which every binary routes to the worker-backed WebView. */
|
|
37
|
+
export declare function withSiteWebSdk(descriptor: ScreenDescriptor, ctx: SiteWebSdkBuildContext, webSdk: SiteWebSdk | null | undefined): ScreenDescriptor | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PAGE_CAPABILITY_DISPATCHES: Readonly<Record<string, readonly string[]>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** One `wrappedAppLinks` entry: an http(s) link on `host` whose path is `path` or under it carries
|
|
2
|
+
* the app's route in the `param` query param. */
|
|
3
|
+
export interface WrappedAppLink {
|
|
4
|
+
host: string;
|
|
5
|
+
/** Starts with `/`, no trailing slash: `/nano` matches `/nano`, `/nano/` and `/nano/x`. */
|
|
6
|
+
path: string;
|
|
7
|
+
param: string;
|
|
8
|
+
}
|
|
9
|
+
/** The route `url` carries as `<scheme>://<route>`, keeping its other query params (e.g.
|
|
10
|
+
* `businessId`), or null when `url` matches none of `wrappers`. Only http(s) links are read. */
|
|
11
|
+
export declare function unwrapAppLink(url: string, wrappers: readonly WrappedAppLink[], scheme: string): string | null;
|
|
12
|
+
/** `defineApp` validation: the problems with a `wrappedAppLinks` value, empty when it is valid. */
|
|
13
|
+
export declare function wrappedAppLinksProblems(value: unknown, appLinkHosts?: readonly string[]): string[];
|
|
@@ -3,7 +3,9 @@ export declare const HIMALAYA_SERVE_CHECKOUT_ROUTES: AppleIapCheckoutRoutes;
|
|
|
3
3
|
export declare function appleIapCheckoutRoutes(): AppleIapCheckoutRoutes | null;
|
|
4
4
|
/** The low-level factory's switch: on whenever the production routes exist. */
|
|
5
5
|
export declare function appleIapCheckoutEnabled(): boolean;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* new attempts: stored ones are still held, completed and tracked (docs/iap-wix-checkout.md). */
|
|
6
|
+
/** @deprecated Always true: Wix Stores items always sell through the App Store (wix-iap StartItemPayment).
|
|
7
|
+
* Kept because screens generated from earlier `himi init` templates still call it. */
|
|
9
8
|
export declare function storesAppleSalesEnabled(): boolean;
|
|
9
|
+
/** Whether a Wix Video sells through the App Store: the device opens Video's SALE order and the
|
|
10
|
+
* shared checkout pays it (`VIDEOS_APPLE_SALES_ENABLED` in @himalaya/iap, off until its live gates pass). */
|
|
11
|
+
export declare function videosAppleSalesEnabled(): boolean;
|
|
@@ -32,8 +32,6 @@ export interface WixOrderBackendDependencies {
|
|
|
32
32
|
/** StoreKit's storefront country (alpha-3), the billing country of a Pricing Plans order; null
|
|
33
33
|
* when the store has none. Read before every StartItemPayment. */
|
|
34
34
|
storeCountry?(): Promise<string | null>;
|
|
35
|
-
/** Whether a closed Apple sheet sends CancelPayment; defaults to `CANCEL_PAYMENT_ENABLED` (off). */
|
|
36
|
-
cancelPaymentEnabled?: boolean;
|
|
37
35
|
report(event: OrderEvent): void;
|
|
38
36
|
}
|
|
39
37
|
export declare function createWixOrderBackend(deps: WixOrderBackendDependencies): DeliveryBackend;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { IapItemPaymentAdapter } from "../apple-iap-contract.js";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
eventsEnabled: boolean;
|
|
5
|
-
}): {
|
|
6
|
-
bookingOrders: IapItemPaymentAdapter;
|
|
7
|
-
eventTicketOrders: IapItemPaymentAdapter;
|
|
8
|
-
};
|
|
9
|
-
export declare const bookingItemPayments: IapItemPaymentAdapter, eventTicketItemPayments: IapItemPaymentAdapter;
|
|
2
|
+
export declare const bookingItemPayments: IapItemPaymentAdapter;
|
|
3
|
+
export declare const eventTicketItemPayments: IapItemPaymentAdapter;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import type { IapOrderAdapter } from "../apple-iap-contract.js";
|
|
2
|
-
import { onlineProgramItemPayments } from "./online-programs.js";
|
|
3
|
-
import { onlineProgramClientOrders } from "./online-programs-orders.js";
|
|
4
|
-
import { pricingPlanItemPayments } from "./pricing-plans.js";
|
|
5
|
-
import { pricingPlanClientOrders } from "./pricing-plans-orders.js";
|
|
6
|
-
import { bookingItemPayments, eventTicketItemPayments } from "./attendance.js";
|
|
7
|
-
import { bookingClientOrders, eventTicketClientOrders } from "./attendance-orders.js";
|
|
8
|
-
export { onlineProgramItemPayments, onlineProgramClientOrders, pricingPlanItemPayments, pricingPlanClientOrders };
|
|
9
|
-
export { bookingItemPayments, eventTicketItemPayments, bookingClientOrders, eventTicketClientOrders };
|
|
10
1
|
export { storesProductOrders, classifyCart } from "./stores.js";
|
|
11
2
|
export { wixVideoOrders } from "./videos.js";
|
|
12
|
-
export declare const onlineProgramOrders:
|
|
13
|
-
export declare const pricingPlanOrders:
|
|
14
|
-
export declare const bookingOrders:
|
|
15
|
-
export declare const eventTicketOrders:
|
|
3
|
+
export declare const onlineProgramOrders: import("../apple-iap-contract.js").IapItemPaymentAdapter;
|
|
4
|
+
export declare const pricingPlanOrders: import("../apple-iap-contract.js").IapItemPaymentAdapter;
|
|
5
|
+
export declare const bookingOrders: import("../apple-iap-contract.js").IapItemPaymentAdapter;
|
|
6
|
+
export declare const eventTicketOrders: import("../apple-iap-contract.js").IapItemPaymentAdapter;
|
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
import type { IapOrderAdapter } from "../apple-iap-contract.js";
|
|
1
|
+
import type { BridgeRefusal, IapOrderAdapter, SessionBoundBridge } from "../apple-iap-contract.js";
|
|
2
|
+
/** What opening a SALE order answered. `pending` and `active` are Video's own refusals of a second
|
|
3
|
+
* order (wix-vod-backend `purchase-order.ts`); `other` is any refusal it gave a reason for. */
|
|
4
|
+
export type VideoOrderAnswer = {
|
|
5
|
+
status: "ok";
|
|
6
|
+
orderId: string;
|
|
7
|
+
} | {
|
|
8
|
+
status: "refused";
|
|
9
|
+
reason: "pending" | "active" | "other";
|
|
10
|
+
} | BridgeRefusal;
|
|
11
|
+
/** The member's SALE purchase of a video: its status and the order it was opened with, or null when
|
|
12
|
+
* Video knows none. */
|
|
13
|
+
export type VideoPurchaseAnswer = {
|
|
14
|
+
status: "ok";
|
|
15
|
+
purchase: {
|
|
16
|
+
status: string;
|
|
17
|
+
orderId: string | null;
|
|
18
|
+
} | null;
|
|
19
|
+
} | BridgeRefusal;
|
|
20
|
+
/** Video's order and purchase reads, bound to the captured member session. */
|
|
21
|
+
export interface WixVideoPort {
|
|
22
|
+
openSaleOrder(videoId: string): Promise<VideoOrderAnswer>;
|
|
23
|
+
/** Video keys a purchase by the video, not by the order (wix-vod-gql-schema `purchase.graphql`). */
|
|
24
|
+
salePurchase(videoId: string): Promise<VideoPurchaseAnswer>;
|
|
25
|
+
}
|
|
26
|
+
export type WixVideoPortOf = (bridge: SessionBoundBridge) => WixVideoPort;
|
|
27
|
+
/** Video's GraphQL gateway over the session-bound bridge, which refuses to send and drops the answer
|
|
28
|
+
* once the member's session is no longer current. The native transport attaches the credential. */
|
|
29
|
+
export declare const graphqlVideoPort: WixVideoPortOf;
|
|
30
|
+
/** Internal factory for hermetic tests. Screens receive the built-in bound to the shipped switch. */
|
|
2
31
|
export declare function videoOrdersWith(options: {
|
|
3
32
|
enabled: boolean;
|
|
33
|
+
port?: WixVideoPortOf;
|
|
4
34
|
}): IapOrderAdapter;
|
|
5
35
|
export declare const wixVideoOrders: IapOrderAdapter;
|
|
@@ -3,6 +3,6 @@ export { iapPurchaseFields } from "./purchase-fields.js";
|
|
|
3
3
|
export { createAppleIapCheckout } from "./apple-iap.js";
|
|
4
4
|
export { onlineProgramOrders, pricingPlanOrders, storesProductOrders, bookingOrders, eventTicketOrders, wixVideoOrders, classifyCart } from "./iap-verticals/index.js";
|
|
5
5
|
export { createWorkerOrderRefStore } from "./order-refs.js";
|
|
6
|
-
export { storesAppleSalesEnabled } from "./checkout-source.js";
|
|
6
|
+
export { storesAppleSalesEnabled, videosAppleSalesEnabled } from "./checkout-source.js";
|
|
7
7
|
export type { AccessRead, AppleIapCheckout, AppleIapCheckoutDependencies, AppleIapCheckoutPhase, AppleIapCheckoutState, BridgeOutcome, BridgeRefusal, CashierRoute, IapAdapterBase, IapEligibility, IapItemPaymentAdapter, IapOrderAdapter, IapOrderItem, IapVerticalOrderAdapter, OrderAttempt, OrderFailureCode, OrderPartitionKey, OrderRef, OrderRefPartition, OrderRefStage, OrderRefStore, PaymentAccess, PaymentProgress, SessionBoundBridge, VerticalRef, WixBridge, } from "./apple-iap-contract.js";
|
|
8
8
|
export type { AppleIapCheckoutRoutes, IapCommerce, IapCommerceOptions, IapPurchaseCopy, IapPurchaseFields, IapPurchaseGap, IapPurchaseReadiness, IapRestoreResult, } from "./commerce-contract.js";
|
|
@@ -40,7 +40,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
42
42
|
"network": ["status", "subscribe"],
|
|
43
|
-
"on_device_ai": ["availability", "generateText"],
|
|
43
|
+
"on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
|
|
44
44
|
"open_url": ["canOpen", "open"],
|
|
45
45
|
"pdf": ["isAvailable", "open"],
|
|
46
46
|
"photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
|
|
@@ -40,7 +40,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
42
42
|
"network": ["status", "subscribe"],
|
|
43
|
-
"on_device_ai": ["availability", "generateText"],
|
|
43
|
+
"on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
|
|
44
44
|
"open_url": ["canOpen", "open"],
|
|
45
45
|
"pdf": ["isAvailable", "open"],
|
|
46
46
|
"photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
|
|
@@ -40,7 +40,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
42
42
|
"network": ["status", "subscribe"],
|
|
43
|
-
"on_device_ai": ["availability", "generateText"],
|
|
43
|
+
"on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
|
|
44
44
|
"open_url": ["canOpen", "open"],
|
|
45
45
|
"pdf": ["isAvailable", "open"],
|
|
46
46
|
"photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
|
|
@@ -40,7 +40,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
40
40
|
"media_playback": ["download", "getCapabilities", "getState", "next", "pause", "pictureInPicture", "play", "presentFullscreen", "previous", "release", "removeDownload", "seek", "seekTo", "setMuted", "setQueue", "setRate", "skip", "status", "stop", "subscribeStatus", "unsubscribeStatus"],
|
|
41
41
|
"motion": ["availability", "getAltitude", "getHeading", "getPermissionStatus", "getStepCount", "openStepHistorySetup", "requestPermission", "watchNext", "watchStart", "watchStop"],
|
|
42
42
|
"network": ["status", "subscribe"],
|
|
43
|
-
"on_device_ai": ["availability", "generateText"],
|
|
43
|
+
"on_device_ai": ["availability", "generateText", "proofreadText", "rewriteText", "summarizeText"],
|
|
44
44
|
"open_url": ["canOpen", "open"],
|
|
45
45
|
"pdf": ["isAvailable", "open"],
|
|
46
46
|
"photos": ["getSavePermissionStatus", "pick", "saveToLibrary"],
|