@wix/himalaya-cli 0.1722.0 → 0.1724.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.
Files changed (73) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +2 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/godot/src/index.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/attendance-classifier.d.ts +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +3 -39
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +10 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +2 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/preview-surfaces.d.ts +24 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.d.ts +37 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-web-sdk.generated.d.ts +1 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/wrapped-app-link.d.ts +13 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +2 -3
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-order-backend.d.ts +0 -2
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance.d.ts +2 -8
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +4 -13
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +175 -1
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +46 -502
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +5 -26
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +64 -648
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  21. package/dist/browser-plane/assets.json +5 -5
  22. package/dist/browser-plane/package-reader.js +4 -4
  23. package/dist/browser-plane/preview-deferred/{74e5b76ecf38392d7eb3f9a9512d60a0675de85d411c9c56293e123152b3f70b.bin → a6e25c06d2a17ab2b5e34bf2b5965fa3ddd76ce3da32a036e546a60938130d7b.bin} +1 -1
  24. package/dist/browser-plane/sw.js +9 -9
  25. package/dist/cli.mjs +1325 -422
  26. package/dist/preview-assets.generated.bin +0 -0
  27. package/guides/himi-json-output.md +6 -2
  28. package/guides/iap-screen-adoption.md +4 -4
  29. package/guides/sdk-reference.json +11 -74
  30. package/guides/webview-page-sdk.md +14 -0
  31. package/guides/wix-business-context.md +24 -0
  32. package/guides/wix-site-to-himi-app.md +2 -1
  33. package/package.json +2 -2
  34. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +2 -2
  35. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +5 -8
  36. package/templates/beauty-salon-owner/config.ts +1 -1
  37. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +2 -2
  38. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +5 -8
  39. package/templates/brandy/README.md +14 -1
  40. package/templates/brandy/config.ts +71 -5
  41. package/templates/brandy/dev/index.ts +522 -8
  42. package/templates/brandy/himalaya.content.json +1 -1
  43. package/templates/brandy/himalaya.template.json +1 -1
  44. package/templates/brandy/tier5-src/himi-brandy-base44-account/index.ts +187 -0
  45. package/templates/community-club/tier5-src/himi-store-account/index.ts +2 -2
  46. package/templates/community-club-owner/config.ts +1 -1
  47. package/templates/conference/tier5-src/himi-store-account/index.ts +2 -2
  48. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +2 -2
  49. package/templates/events-meetups-owner/config.ts +1 -1
  50. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +2 -2
  51. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +5 -8
  52. package/templates/gym-fitness-owner/config.ts +1 -1
  53. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +2 -2
  54. package/templates/nonprofit-cause-owner/config.ts +1 -1
  55. package/templates/owner-lite/config.ts +1 -1
  56. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +2 -2
  57. package/templates/podcast-creator-owner/config.ts +1 -1
  58. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +2 -2
  59. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +5 -8
  60. package/templates/portfolio-creative-owner/config.ts +1 -1
  61. package/templates/restaurant/tier5-src/himi-store-account/index.ts +2 -2
  62. package/templates/restaurant-owner/config.ts +1 -1
  63. package/templates/retail-store/tier5-src/himi-store-account/index.ts +2 -2
  64. package/templates/retail-store/tier5-src/himi-store-product/index.ts +5 -8
  65. package/templates/retail-store-owner/config.ts +1 -1
  66. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +2 -2
  67. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +2 -2
  68. package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +5 -8
  69. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +2 -2
  70. package/templates/yoga-studio-owner/config.ts +1 -1
  71. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/attendance-orders.d.ts +0 -10
  72. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/online-programs-orders.d.ts +0 -2
  73. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans-orders.d.ts +0 -2
@@ -1,8 +1,9 @@
1
1
  // Your app's screens. Each one is a page of your website — a WebView screen built from the
2
2
  // `site` block of ../provisioning.json — so this file holds no screen of its own. Change the
3
- // pages by changing that block, never this file.
4
- import { siteScreens } from "@himalaya/core";
5
- import config, { site } from "../config.js";
3
+ // pages by changing that block, never this file. When provisioning.json enables page
4
+ // capabilities (`webSdk`), every page gets the worker that answers them (`withSiteWebSdk`).
5
+ import { siteScreens, withSiteWebSdk } from "@himalaya/core";
6
+ import config, { base44, BASE44_ACCOUNT_SCREEN_ID, site, webSdk } from "../config.js";
6
7
 
7
8
  const SCREENS = siteScreens(site);
8
9
 
@@ -339,6 +340,516 @@ const NOTIFICATIONS_SEED = {
339
340
  "bundleVersion": "0.0.1"
340
341
  }
341
342
  };
343
+ // The native Account screen of a BASE44 site (a `base44` binding in ../provisioning.json): sign in,
344
+ // register, an emailed code, sign out — and Delete account when the binding names the backend
345
+ // function that deletes it (`base44.deleteAccountFunction`; App Store 5.1.1(v)). Signing in here
346
+ // signs the website's pages in too. It runs on the himi-brandy-base44-account worker in tier5-src/.
347
+ const BASE44_ACCOUNT = {
348
+ "screenId": "himi_base44_account",
349
+ "renderer": "sdui_intent",
350
+ "title": "",
351
+ "schemaVersion": 1,
352
+ "cacheControl": {
353
+ "maxAge": 0,
354
+ "staleWhileRevalidate": 0
355
+ },
356
+ "payload": {
357
+ "id": "himi_base44_account.root",
358
+ "body": {
359
+ "package": "himalaya",
360
+ "type": "VStack",
361
+ "props": {
362
+ "spacing": 16,
363
+ "alignment": "leading",
364
+ "children": [
365
+ {
366
+ "id": "himi_base44_account.title",
367
+ "body": {
368
+ "package": "himalaya",
369
+ "type": "Text",
370
+ "props": {
371
+ "text": "Account",
372
+ "style": "title1"
373
+ }
374
+ }
375
+ },
376
+ {
377
+ "id": "himi_base44_account.message",
378
+ "body": {
379
+ "package": "himalaya",
380
+ "type": "Text",
381
+ "props": {
382
+ "text": "$service:himiBase44Account.message",
383
+ "style": "footnote",
384
+ "color": "textPrimary",
385
+ "collapseWhenEmpty": true
386
+ }
387
+ }
388
+ },
389
+ {
390
+ "id": "himi_base44_account.error",
391
+ "body": {
392
+ "package": "himalaya",
393
+ "type": "Text",
394
+ "props": {
395
+ "text": "$service:himiBase44Account.error",
396
+ "style": "footnote",
397
+ "color": "danger",
398
+ "maxLines": 4,
399
+ "collapseWhenEmpty": true
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "id": "himi_base44_account.login",
405
+ "body": {
406
+ "package": "himalaya",
407
+ "type": "VStack",
408
+ "props": {
409
+ "spacing": 8,
410
+ "alignment": "leading",
411
+ "children": [
412
+ {
413
+ "id": "",
414
+ "body": {
415
+ "package": "himalaya",
416
+ "type": "Text",
417
+ "props": {
418
+ "text": "Sign in",
419
+ "style": "title2"
420
+ }
421
+ }
422
+ },
423
+ {
424
+ "id": "",
425
+ "body": {
426
+ "package": "himalaya",
427
+ "type": "Text",
428
+ "props": {
429
+ "text": "Sign in with your account on this app. The website tabs sign in with you.",
430
+ "style": "body",
431
+ "color": "textSecondary"
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "id": "himi_base44_account.email",
437
+ "body": {
438
+ "package": "himalaya",
439
+ "type": "TextField",
440
+ "props": {
441
+ "placeholder": "Email",
442
+ "keyboard": "email",
443
+ "autoCapitalization": "none",
444
+ "onChange": {
445
+ "actionId": "tier5.himiBase44Account.setEmail"
446
+ }
447
+ }
448
+ }
449
+ },
450
+ {
451
+ "id": "himi_base44_account.password",
452
+ "body": {
453
+ "package": "himalaya",
454
+ "type": "TextField",
455
+ "props": {
456
+ "placeholder": "Password",
457
+ "secure": true,
458
+ "autoCapitalization": "none",
459
+ "onChange": {
460
+ "actionId": "tier5.himiBase44Account.setPassword"
461
+ }
462
+ }
463
+ },
464
+ "modifiers": {
465
+ "hiddenPath": "$service:himiBase44Account.hidePasswordField"
466
+ }
467
+ },
468
+ {
469
+ "id": "himi_base44_account.code",
470
+ "body": {
471
+ "package": "himalaya",
472
+ "type": "TextField",
473
+ "props": {
474
+ "placeholder": "Code from your email",
475
+ "keyboard": "number",
476
+ "autoCapitalization": "none",
477
+ "onChange": {
478
+ "actionId": "tier5.himiBase44Account.setCode"
479
+ }
480
+ }
481
+ },
482
+ "modifiers": {
483
+ "hiddenPath": "$service:himiBase44Account.hideCodeField"
484
+ }
485
+ },
486
+ {
487
+ "id": "himi_base44_account.signin",
488
+ "body": {
489
+ "package": "himalaya",
490
+ "type": "Button",
491
+ "props": {
492
+ "title": "Sign in",
493
+ "style": "primary",
494
+ "fullWidth": true,
495
+ "action": {
496
+ "actionId": "tier5.himiBase44Account.signIn"
497
+ }
498
+ }
499
+ },
500
+ "modifiers": {
501
+ "hiddenPath": "$service:himiBase44Account.hidePasswordField"
502
+ }
503
+ },
504
+ {
505
+ "id": "himi_base44_account.register",
506
+ "body": {
507
+ "package": "himalaya",
508
+ "type": "Button",
509
+ "props": {
510
+ "title": "Create account",
511
+ "style": "secondary",
512
+ "fullWidth": true,
513
+ "action": {
514
+ "actionId": "tier5.himiBase44Account.register"
515
+ }
516
+ }
517
+ },
518
+ "modifiers": {
519
+ "hiddenPath": "$service:himiBase44Account.hidePasswordField"
520
+ }
521
+ },
522
+ {
523
+ "id": "himi_base44_account.send_code",
524
+ "body": {
525
+ "package": "himalaya",
526
+ "type": "Button",
527
+ "props": {
528
+ "title": "Email me a code instead",
529
+ "style": "secondary",
530
+ "fullWidth": true,
531
+ "action": {
532
+ "actionId": "tier5.himiBase44Account.sendCode"
533
+ }
534
+ }
535
+ },
536
+ "modifiers": {
537
+ "hiddenPath": "$service:himiBase44Account.hidePasswordField"
538
+ }
539
+ },
540
+ {
541
+ "id": "himi_base44_account.verify_code",
542
+ "body": {
543
+ "package": "himalaya",
544
+ "type": "Button",
545
+ "props": {
546
+ "title": "Verify code",
547
+ "style": "primary",
548
+ "fullWidth": true,
549
+ "action": {
550
+ "actionId": "tier5.himiBase44Account.verifyCode"
551
+ }
552
+ }
553
+ },
554
+ "modifiers": {
555
+ "hiddenPath": "$service:himiBase44Account.hideCodeField"
556
+ }
557
+ },
558
+ {
559
+ "id": "himi_base44_account.use_password",
560
+ "body": {
561
+ "package": "himalaya",
562
+ "type": "Button",
563
+ "props": {
564
+ "title": "Use a password",
565
+ "style": "secondary",
566
+ "fullWidth": true,
567
+ "action": {
568
+ "actionId": "tier5.himiBase44Account.usePassword"
569
+ }
570
+ }
571
+ },
572
+ "modifiers": {
573
+ "hiddenPath": "$service:himiBase44Account.hideCodeField"
574
+ }
575
+ },
576
+ {
577
+ "id": "himi_base44_account.reset_password",
578
+ "body": {
579
+ "package": "himalaya",
580
+ "type": "Button",
581
+ "props": {
582
+ "title": "Forgot password?",
583
+ "style": "secondary",
584
+ "fullWidth": true,
585
+ "action": {
586
+ "actionId": "tier5.himiBase44Account.resetPassword"
587
+ }
588
+ }
589
+ },
590
+ "modifiers": {
591
+ "hiddenPath": "$service:himiBase44Account.hidePasswordField"
592
+ }
593
+ }
594
+ ]
595
+ }
596
+ },
597
+ "modifiers": {
598
+ "background": {
599
+ "token": "surfaceElevated"
600
+ },
601
+ "border": {
602
+ "width": 1,
603
+ "color": {
604
+ "token": "border"
605
+ }
606
+ },
607
+ "cornerRadius": 16,
608
+ "padding": {
609
+ "leading": 16,
610
+ "trailing": 16,
611
+ "top": 16,
612
+ "bottom": 16
613
+ },
614
+ "hiddenPath": "$service:himiBase44Account.hideSignedOut"
615
+ }
616
+ },
617
+ {
618
+ "id": "",
619
+ "body": {
620
+ "package": "himalaya",
621
+ "type": "VStack",
622
+ "props": {
623
+ "spacing": 12,
624
+ "children": [
625
+ {
626
+ "id": "himi_base44_account.member",
627
+ "body": {
628
+ "package": "himalaya",
629
+ "type": "VStack",
630
+ "props": {
631
+ "spacing": 8,
632
+ "alignment": "leading",
633
+ "children": [
634
+ {
635
+ "id": "",
636
+ "body": {
637
+ "package": "himalaya",
638
+ "type": "Text",
639
+ "props": {
640
+ "text": "Signed in",
641
+ "style": "title2"
642
+ }
643
+ }
644
+ },
645
+ {
646
+ "id": "himi_base44_account.user",
647
+ "body": {
648
+ "package": "himalaya",
649
+ "type": "Text",
650
+ "props": {
651
+ "text": "$service:himiBase44Account.user",
652
+ "style": "body",
653
+ "color": "textSecondary"
654
+ }
655
+ }
656
+ }
657
+ ]
658
+ }
659
+ },
660
+ "modifiers": {
661
+ "background": {
662
+ "token": "surfaceElevated"
663
+ },
664
+ "border": {
665
+ "width": 1,
666
+ "color": {
667
+ "token": "border"
668
+ }
669
+ },
670
+ "cornerRadius": 16,
671
+ "padding": {
672
+ "leading": 16,
673
+ "trailing": 16,
674
+ "top": 16,
675
+ "bottom": 16
676
+ }
677
+ }
678
+ },
679
+ {
680
+ "id": "himi_base44_account.signout",
681
+ "body": {
682
+ "package": "himalaya",
683
+ "type": "Button",
684
+ "props": {
685
+ "title": "Sign out",
686
+ "style": "secondary",
687
+ "fullWidth": true,
688
+ "action": {
689
+ "actionId": "tier5.himiBase44Account.signOut"
690
+ }
691
+ }
692
+ }
693
+ },
694
+ {
695
+ "id": "himi_base44_account.delete_account",
696
+ "body": {
697
+ "package": "himalaya",
698
+ "type": "Button",
699
+ "props": {
700
+ "title": "Delete account",
701
+ "style": "destructive",
702
+ "fullWidth": true,
703
+ "action": {
704
+ "actionId": "tier5.himiBase44Account.askDelete"
705
+ }
706
+ }
707
+ },
708
+ "modifiers": {
709
+ "hiddenPath": "$service:himiBase44Account.hideDelete"
710
+ }
711
+ },
712
+ {
713
+ "id": "himi_base44_account.delete_confirm",
714
+ "body": {
715
+ "package": "himalaya",
716
+ "type": "VStack",
717
+ "props": {
718
+ "spacing": 8,
719
+ "alignment": "leading",
720
+ "children": [
721
+ {
722
+ "id": "",
723
+ "body": {
724
+ "package": "himalaya",
725
+ "type": "Text",
726
+ "props": {
727
+ "text": "Delete your account?",
728
+ "style": "title2"
729
+ }
730
+ }
731
+ },
732
+ {
733
+ "id": "",
734
+ "body": {
735
+ "package": "himalaya",
736
+ "type": "Text",
737
+ "props": {
738
+ "text": "This permanently deletes your account on this app. It cannot be undone.",
739
+ "style": "body",
740
+ "color": "textSecondary"
741
+ }
742
+ }
743
+ },
744
+ {
745
+ "id": "himi_base44_account.confirm_delete",
746
+ "body": {
747
+ "package": "himalaya",
748
+ "type": "Button",
749
+ "props": {
750
+ "title": "Delete permanently",
751
+ "style": "destructive",
752
+ "fullWidth": true,
753
+ "action": {
754
+ "actionId": "tier5.himiBase44Account.confirmDelete"
755
+ }
756
+ }
757
+ }
758
+ },
759
+ {
760
+ "id": "himi_base44_account.cancel_delete",
761
+ "body": {
762
+ "package": "himalaya",
763
+ "type": "Button",
764
+ "props": {
765
+ "title": "Keep my account",
766
+ "style": "secondary",
767
+ "fullWidth": true,
768
+ "action": {
769
+ "actionId": "tier5.himiBase44Account.cancelDelete"
770
+ }
771
+ }
772
+ }
773
+ }
774
+ ]
775
+ }
776
+ },
777
+ "modifiers": {
778
+ "background": {
779
+ "token": "surfaceElevated"
780
+ },
781
+ "border": {
782
+ "width": 1,
783
+ "color": {
784
+ "token": "border"
785
+ }
786
+ },
787
+ "cornerRadius": 16,
788
+ "padding": {
789
+ "leading": 16,
790
+ "trailing": 16,
791
+ "top": 16,
792
+ "bottom": 16
793
+ },
794
+ "hiddenPath": "$service:himiBase44Account.hideConfirmDelete"
795
+ }
796
+ }
797
+ ]
798
+ }
799
+ },
800
+ "modifiers": {
801
+ "hiddenPath": "$service:himiBase44Account.hideSignedIn"
802
+ }
803
+ }
804
+ ]
805
+ }
806
+ },
807
+ "modifiers": {
808
+ "background": {
809
+ "token": "surfacePrimary"
810
+ },
811
+ "padding": {
812
+ "leading": 16,
813
+ "trailing": 16,
814
+ "top": 18,
815
+ "bottom": 28
816
+ },
817
+ "onAppear": {
818
+ "actionId": "tier5.himiBase44Account.open",
819
+ "params": {
820
+ "deleteFunction": ""
821
+ }
822
+ }
823
+ }
824
+ },
825
+ "logicBundle": {
826
+ "url": "http://localhost:8190/v1/bundles/himi-brandy-base44-account?integrity=",
827
+ "integrity": "",
828
+ "contentType": "application/javascript+ts-bundle",
829
+ "declaredCapabilities": [
830
+ "base44"
831
+ ],
832
+ "minBinaryVersion": "0.2.0",
833
+ "bundleVersion": "0.0.1"
834
+ }
835
+ };
836
+ /** The Account screen for this binding: the Delete rows only when it names a delete function. */
837
+ function base44Account(deleteFunction: string | undefined): unknown {
838
+ const screen = JSON.parse(JSON.stringify(BASE44_ACCOUNT));
839
+ screen.payload.modifiers.onAppear.params.deleteFunction = deleteFunction ?? "";
840
+ if (!deleteFunction) {
841
+ const strip = (node: { body?: { props?: { children?: Array<{ id?: string }> } } }): void => {
842
+ const children = node.body?.props?.children;
843
+ if (!Array.isArray(children)) return;
844
+ node.body!.props!.children = children.filter((c) => c.id !== "himi_base44_account.delete_account" && c.id !== "himi_base44_account.delete_confirm");
845
+ for (const child of node.body!.props!.children!) strip(child as never);
846
+ };
847
+ strip(screen.payload);
848
+ }
849
+ return screen;
850
+ }
851
+ const ACCOUNT = base44 ? { [BASE44_ACCOUNT_SCREEN_ID]: base44Account(base44.deleteAccountFunction) } : {};
852
+
342
853
  // The home screen is always the `home` page's: `site_home`. A literal on purpose — `himi init`
343
854
  // and the agent tooling read `homeScreenId` from this file as written; config.ts refuses a map
344
855
  // whose first tab is anything else, so the literal and the tab bar cannot disagree.
@@ -347,17 +858,20 @@ export default {
347
858
  config,
348
859
  homeScreenId: "site_home",
349
860
  screens: {
350
- // A fresh copy per build: descriptors are pure functions of the site block. A JSON round
351
- // trip, not structuredClone: `himi test` builds screens in the contained realm, which withholds it.
861
+ // A fresh copy per build: descriptors are pure functions of the site block (withSiteWebSdk
862
+ // copies, and attaches the page worker when `webSdk` enables capabilities). A JSON round trip,
863
+ // not structuredClone: `himi test` builds screens in the contained realm, which withholds it.
352
864
  exact: {
353
- ...Object.fromEntries(Object.keys(SCREENS).map((id) => [id, () => JSON.parse(JSON.stringify(SCREENS[id]))])),
865
+ ...Object.fromEntries(Object.keys(SCREENS).map((id) => [id, (ctx: Parameters<typeof withSiteWebSdk>[1]) => withSiteWebSdk(SCREENS[id]!, ctx, webSdk)])),
354
866
  himi_notification_settings: () => JSON.parse(JSON.stringify(NOTIFICATIONS)),
867
+ ...Object.fromEntries(Object.entries(ACCOUNT).map(([id, screen]) => [id, () => JSON.parse(JSON.stringify(screen))])),
355
868
  },
356
869
  templated: [],
357
870
  },
358
871
  actions: [],
359
872
  createStore: () => ({}),
360
873
  // Every page is seeded, so the whole tab bar and drawer work on a cold offline start (each
361
- // WebView then shows its own offline state until the network returns).
362
- seed: { screens: { ...SCREENS, himi_notification_settings: NOTIFICATIONS_SEED }, data: {} },
874
+ // WebView then shows its own offline state until the network returns). The seed copy carries no
875
+ // page worker: the built worker's integrity is only known when the app is served.
876
+ seed: { screens: { ...SCREENS, himi_notification_settings: NOTIFICATIONS_SEED, ...ACCOUNT }, data: {} },
363
877
  };
@@ -2,7 +2,7 @@
2
2
  "name": "__HIMI_APP_NAME__",
3
3
  "icon": "icon.png",
4
4
  "target": "prod",
5
- "shell": "brandy",
5
+ "shell": "branded-lite",
6
6
  "screens": {
7
7
  "site_home": {
8
8
  "displayName": "Home"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "title": "Brandy — your website as an app",
3
- "description": "A site shell: the customer's live Wix website as a native app. Every tab and drawer row is one of the site's own pages in a native-framed WebView, with a native tab bar, drawer, splash and brand colours; the site's header, footer and Wix ads are hidden. The page map lives in provisioning.json (`site`), and `himi site analyze --url <site> --shell brandy` derives it from the site's own menu. Start here to ship an existing website as an app today and move tabs to native screens later.",
3
+ "description": "A site shell: the customer's live Wix website as a native app. Every tab and drawer row is one of the site's own pages in a native-framed WebView, with a native tab bar, drawer, splash and brand colours; the site's header, footer and Wix ads are hidden. The page map lives in provisioning.json (`site`), and `himi site analyze --url <site>` derives it from the site's own menu. It runs on the Branded Lite shell (`himi dist` builds that shell; an existing Brandy app keeps its identity with `--shell brandy`). Start here to ship an existing website as an app today and move tabs to native screens later.",
4
4
  "tags": ["wix", "website", "site-shell", "webview", "tabs", "drawer", "no-code", "day-zero", "consumer"],
5
5
  "category": "consumer"
6
6
  }