@wix/himalaya-cli 0.1649.0 → 0.1651.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/sdk/ui/src/index.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/ui.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin → 6ba3f2eb2ac29f4f9eeebd1294a8003820cd260274c5400149d76833b3171555.bin} +1 -1
- package/dist/browser-plane/sw.js +5 -5
- package/dist/cli.mjs +307 -80
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/one-app-to-himi-app.md +13 -4
- package/guides/sdk-reference.json +8 -1
- package/package.json +2 -2
- package/templates/beauty-salon/config.ts +16 -1
- package/templates/branded-lite/config.ts +16 -1
- package/templates/branded-lite/dev/index.ts +292 -305
- package/templates/branded-lite/l10n/en.json +3 -3
- package/templates/branded-lite/tier5-src/_shared/branded-form.ts +22 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-form/index.ts +250 -74
- package/templates/community-club/config.ts +16 -1
- package/templates/events-meetups/config.ts +16 -1
- package/templates/gym-fitness/config.ts +16 -1
- package/templates/nonprofit-cause/config.ts +16 -1
- package/templates/podcast-creator/config.ts +16 -1
- package/templates/portfolio-creative/config.ts +16 -1
- package/templates/restaurant/config.ts +16 -1
- package/templates/retail-store/config.ts +16 -1
- package/templates/yoga-studio/config.ts +16 -1
|
Binary file
|
|
@@ -870,10 +870,11 @@ A source with many top-tab pages (33 in one migration) converts to this arrangem
|
|
|
870
870
|
- `appEditor.outline.*` icons with no Himi name (lightning, rocket, light bulb, megaphone,
|
|
871
871
|
brochure, content card) need a fallback icon from `himi icons`, such as `star`,
|
|
872
872
|
`bell` or `doc`. Record each fallback as an adaptation.
|
|
873
|
-
- A source `goToScreen` to a page that is now a **tab** must select that tab.
|
|
874
|
-
`himi.
|
|
875
|
-
|
|
876
|
-
in More can use
|
|
873
|
+
- A source `goToScreen` to a page that is now a **tab** must select that tab. `himi one-app generate`
|
|
874
|
+
writes it as a `himi.tab` action with the tab's id (the id `apply-navigation` gives the tab), because
|
|
875
|
+
`himi.open` would push a second copy of the page. Write the same `himi.tab` action (or a worker action that
|
|
876
|
+
calls `navigate(s, { tab: "<tabId>" })`) for a link you add by hand. A `goToScreen` to a page in More can use
|
|
877
|
+
`himi.open`. The link names its layout item by ID or by slug; a slug two items share names neither.
|
|
877
878
|
- A `goToScreen` whose layout item does not exist does nothing in the source. Keep it a
|
|
878
879
|
no-op (a worker action that returns the state unchanged) and list it as an unresolved
|
|
879
880
|
route.
|
|
@@ -1039,6 +1040,14 @@ review and the hash-verified collected source, checks decisions and site binding
|
|
|
1039
1040
|
and creates nothing. A passing check validates the recorded plan, not the truth
|
|
1040
1041
|
of merchant readiness. The review's original manifest hash describes the initial
|
|
1041
1042
|
template; edit the review without rewriting collected evidence or manifest hashes.
|
|
1043
|
+
When the review has an online-paid flow, `validate-payments` also reports an `ownerSteps`
|
|
1044
|
+
entry (`checkout_client_headless_oauth`): Wix opens its hosted checkout only for an OAuth
|
|
1045
|
+
client that is a Headless OAuth app, and the One App's own client is not one. Creating
|
|
1046
|
+
that client happens on the site owner's Wix account, so it is the owner's step (the
|
|
1047
|
+
dashboard OAuth settings, or `himi site client ensure --site <msid> --yes
|
|
1048
|
+
--write-provisioning` run with the owner's own account); the migration never creates it
|
|
1049
|
+
and an agent must not without the owner's consent. Until it exists a member who taps Join
|
|
1050
|
+
sees that paying in the app is not available yet, and no order is created on the site.
|
|
1042
1051
|
Keep the decision, resulting target controls and controlled runtime evidence in
|
|
1043
1052
|
the reconstruction plan and migration report. For all paid flows, handle the exact
|
|
1044
1053
|
structured `SITE_NOT_ACCEPTING_PAYMENTS` failure with clear recovery; unrelated
|
|
@@ -6143,7 +6143,7 @@
|
|
|
6143
6143
|
"name": "AlertOptions",
|
|
6144
6144
|
"kind": "interface",
|
|
6145
6145
|
"jsdoc": "",
|
|
6146
|
-
"decl": "export interface AlertOptions {\n /** Required — the native presenters drop alerts with an empty title. */\n title: string;\n message?: string;\n /** Confirm button label. Default \"Confirm\". */\n confirmLabel?: string;\n /** Cancel button label. OMIT for a single-button alert (no cancel button). */\n cancelLabel?: string;\n /** Style the confirm button with the `danger` token. A destructive confirm is not the\n * affirmative button: its `confirm.actionId` still runs, but without gesture credit. */\n destructive?: boolean;\n /** The affirmative button's ACTION. Pressing it runs `actionId` as a NEW invocation\n * with user-gesture origin (so an app service's `app.<svc>.<action>` may return `_nav` and\n * navigate — the \"Ready — View\" alert). `label` replaces `confirmLabel`. The id is checked when\n * you set it, against this worker: a `capability.<id>.*` needs `<id>` allowed, an `app.*` from a\n * screen worker needs `app_services` and an exported action, a `tier5.*` must be this worker's\n * own; anything else rejects (`action_not_allowed`). Cancel and dismissal run nothing. */\n confirm?: AlertConfirm;\n /** Up to three buttons, replacing the four options above; see `AlertButtonOptions`. */\n buttons?: AlertButtonOptions[];\n}",
|
|
6146
|
+
"decl": "export interface AlertOptions {\n /** Required — the native presenters drop alerts with an empty title. */\n title: string;\n message?: string;\n /** Confirm button label. Default \"Confirm\". */\n confirmLabel?: string;\n /** Cancel button label. OMIT for a single-button alert (no cancel button). */\n cancelLabel?: string;\n /** Style the confirm button with the `danger` token. A destructive confirm is not the\n * affirmative button: its `confirm.actionId` still runs, but without gesture credit. */\n destructive?: boolean;\n /** `\"success\"`: a green checkmark above the title. Confirm / cancel alerts only; older hosts ignore it. */\n icon?: AlertIcon;\n /** The affirmative button's ACTION. Pressing it runs `actionId` as a NEW invocation\n * with user-gesture origin (so an app service's `app.<svc>.<action>` may return `_nav` and\n * navigate — the \"Ready — View\" alert). `label` replaces `confirmLabel`. The id is checked when\n * you set it, against this worker: a `capability.<id>.*` needs `<id>` allowed, an `app.*` from a\n * screen worker needs `app_services` and an exported action, a `tier5.*` must be this worker's\n * own; anything else rejects (`action_not_allowed`). Cancel and dismissal run nothing. */\n confirm?: AlertConfirm;\n /** Up to three buttons, replacing the four options above; see `AlertButtonOptions`. */\n buttons?: AlertButtonOptions[];\n}",
|
|
6147
6147
|
"verificationChecked": true
|
|
6148
6148
|
},
|
|
6149
6149
|
{
|
|
@@ -6160,6 +6160,13 @@
|
|
|
6160
6160
|
"decl": "export interface AlertButtonOptions {\n id: string;\n label: string;\n role?: AlertButtonRole;\n /** Run on press, as a new invocation (see `AlertOptions.confirm`). Omit to just await the press. */\n actionId?: string;\n /** Passed to the action (JSON types kept). */\n args?: Record<string, unknown>;\n}",
|
|
6161
6161
|
"verificationChecked": true
|
|
6162
6162
|
},
|
|
6163
|
+
{
|
|
6164
|
+
"name": "AlertIcon",
|
|
6165
|
+
"kind": "type",
|
|
6166
|
+
"jsdoc": "/** The glyphs an alert can show above its title. */",
|
|
6167
|
+
"decl": "export type AlertIcon = \"success\";",
|
|
6168
|
+
"verificationChecked": true
|
|
6169
|
+
},
|
|
6163
6170
|
{
|
|
6164
6171
|
"name": "AlertConfirm",
|
|
6165
6172
|
"kind": "interface",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1651.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "41b89ef5ee5070e6b64dd89983a8e26485a91b69c8c14e46c4d45677"
|
|
76
76
|
}
|
|
@@ -462,7 +462,7 @@ export default defineApp({
|
|
|
462
462
|
// Your on-device database. It must declare every entity a worker reads or writes,
|
|
463
463
|
// or those calls fail closed — keep it in step with `local_database` above.
|
|
464
464
|
dataSchema: {
|
|
465
|
-
"version":
|
|
465
|
+
"version": 4,
|
|
466
466
|
"entities": [
|
|
467
467
|
{
|
|
468
468
|
"name": "products",
|
|
@@ -646,6 +646,21 @@ export default defineApp({
|
|
|
646
646
|
"type": "string"
|
|
647
647
|
}
|
|
648
648
|
]
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "form_drafts",
|
|
652
|
+
"encrypted": true,
|
|
653
|
+
"fields": [
|
|
654
|
+
{
|
|
655
|
+
"name": "id",
|
|
656
|
+
"type": "string",
|
|
657
|
+
"required": true
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "values",
|
|
661
|
+
"type": "string"
|
|
662
|
+
}
|
|
663
|
+
]
|
|
649
664
|
}
|
|
650
665
|
]
|
|
651
666
|
},
|
|
@@ -1094,7 +1094,7 @@ export default defineApp({
|
|
|
1094
1094
|
// Your on-device database. It must declare every entity a worker reads or writes,
|
|
1095
1095
|
// or those calls fail closed — keep it in step with `local_database` above.
|
|
1096
1096
|
dataSchema: {
|
|
1097
|
-
"version":
|
|
1097
|
+
"version": 4,
|
|
1098
1098
|
"entities": [
|
|
1099
1099
|
{
|
|
1100
1100
|
"name": "products",
|
|
@@ -1278,6 +1278,21 @@ export default defineApp({
|
|
|
1278
1278
|
"type": "string"
|
|
1279
1279
|
}
|
|
1280
1280
|
]
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "form_drafts",
|
|
1284
|
+
"encrypted": true,
|
|
1285
|
+
"fields": [
|
|
1286
|
+
{
|
|
1287
|
+
"name": "id",
|
|
1288
|
+
"type": "string",
|
|
1289
|
+
"required": true
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "values",
|
|
1293
|
+
"type": "string"
|
|
1294
|
+
}
|
|
1295
|
+
]
|
|
1281
1296
|
}
|
|
1282
1297
|
]
|
|
1283
1298
|
},
|