@wix/himalaya-cli 0.1878.0 → 0.1879.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 (33) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/worker-subtree-safe-types.generated.d.ts +20 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/store-invite-message.d.ts +32 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +38 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +19 -12
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +34 -0
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{7ef1986106af7b688111a1b3775f03396def712b12d0e4620cfc758042f8157c.bin → c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62.bin} +1 -1
  8. package/dist/browser-plane/sw.js +5 -5
  9. package/dist/cli.mjs +1402 -1097
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/one-app-to-himi-app.md +59 -9
  12. package/guides/qa-builds.md +15 -2
  13. package/package.json +2 -2
  14. package/templates/beauty-salon/tier5-src/_shared/member-screen.ts +5 -3
  15. package/templates/branded-lite/tier5-src/_shared/member-screen.ts +5 -3
  16. package/templates/branded-lite/tier5-src/_shared/one-app-member-action.ts +46 -0
  17. package/templates/brandy/tier5-src/_shared/member-screen.ts +5 -3
  18. package/templates/community-club/tier5-src/_shared/member-screen.ts +5 -3
  19. package/templates/conference/tier5-src/_shared/member-screen.ts +5 -3
  20. package/templates/events-meetups/tier5-src/_shared/member-screen.ts +5 -3
  21. package/templates/fitness-gym/tier5-src/_shared/member-screen.ts +5 -3
  22. package/templates/gym-fitness/tier5-src/_shared/member-screen.ts +5 -3
  23. package/templates/medical-services/tier5-src/_shared/member-screen.ts +5 -3
  24. package/templates/nonprofit-cause/tier5-src/_shared/member-screen.ts +5 -3
  25. package/templates/personal-fitness-trainer/tier5-src/_shared/member-screen.ts +5 -3
  26. package/templates/podcast-creator/tier5-src/_shared/member-screen.ts +5 -3
  27. package/templates/portfolio-creative/tier5-src/_shared/member-screen.ts +5 -3
  28. package/templates/professional-services/tier5-src/_shared/member-screen.ts +5 -3
  29. package/templates/restaurant/tier5-src/_shared/member-screen.ts +5 -3
  30. package/templates/retail-store/tier5-src/_shared/member-screen.ts +5 -3
  31. package/templates/salon-spa/tier5-src/_shared/member-screen.ts +5 -3
  32. package/templates/wholesale-store/tier5-src/_shared/member-screen.ts +5 -3
  33. package/templates/yoga-studio/tier5-src/_shared/member-screen.ts +5 -3
@@ -99,6 +99,26 @@ export declare const WORKER_SUBTREE_SAFE_TYPE_RULES: {
99
99
  readonly children: readonly [];
100
100
  readonly actions: readonly ["onChange"];
101
101
  };
102
+ readonly TextField: {
103
+ readonly children: readonly [];
104
+ readonly actions: readonly ["onChange", "onSubmit", "text.onChange", "text.onSubmit", "value.onChange", "value.onSubmit"];
105
+ };
106
+ readonly Toggle: {
107
+ readonly children: readonly [];
108
+ readonly actions: readonly ["onChange", "action"];
109
+ };
110
+ readonly Slider: {
111
+ readonly children: readonly [];
112
+ readonly actions: readonly ["onChange"];
113
+ };
114
+ readonly Stepper: {
115
+ readonly children: readonly [];
116
+ readonly actions: readonly ["onChange"];
117
+ };
118
+ readonly Gauge: {
119
+ readonly children: readonly [];
120
+ readonly actions: readonly [];
121
+ };
102
122
  };
103
123
  export declare const WORKER_SUBTREE_COMMON_ACTION_PATHS: readonly ["modifiers.onTap", "modifiers.onLongPress", "modifiers.onAppear", "modifiers.onDoubleTap", "modifiers.swipeDismiss.action"];
104
124
  export type WorkerSubtreeSafeType = keyof typeof WORKER_SUBTREE_SAFE_TYPE_RULES;
@@ -42,6 +42,38 @@ export interface StoreInviteRowOptions {
42
42
  /** Horizontal gutter of the row, in points (the Home's standard 16). */
43
43
  gutter?: number;
44
44
  }
45
+ export interface StoreInviteButtonOptions {
46
+ /** The button's node id. */
47
+ id: string;
48
+ service?: string;
49
+ /** Source text of the label. The app's catalog translates it (the l10n row for "Invite"). */
50
+ label?: string;
51
+ }
52
+ /**
53
+ * The Invite button on its own, for a row it shares with other actions (the One App Home's header actions). It carries the
54
+ * service's `load` as its OWN `onAppear`, so a row holding only other buttons never runs the Invite service, and the resume of a
55
+ * confirmed sign-in stays with the button that began it.
56
+ */
57
+ export declare function storeInviteButton(opts: StoreInviteButtonOptions): {
58
+ id: string;
59
+ body: {
60
+ package: string;
61
+ type: string;
62
+ props: {
63
+ title: string;
64
+ style: string;
65
+ size: string;
66
+ leadingIcon: string;
67
+ fullWidth: boolean;
68
+ action: {
69
+ actionId: string;
70
+ };
71
+ };
72
+ };
73
+ modifiers: {
74
+ weight: number;
75
+ };
76
+ };
45
77
  /**
46
78
  * A horizontal row of actions: today one Invite button that fills the row. Each control takes `weight: 1`, so a second
47
79
  * control added later gets an equal share, `spacing` apart. The button is tonal (a soft tint of the theme accent, so it
@@ -11548,6 +11548,40 @@ var WORKER_SUBTREE_SAFE_TYPE_RULES = {
11548
11548
  "actions": [
11549
11549
  "onChange"
11550
11550
  ]
11551
+ },
11552
+ "TextField": {
11553
+ "children": [],
11554
+ "actions": [
11555
+ "onChange",
11556
+ "onSubmit",
11557
+ "text.onChange",
11558
+ "text.onSubmit",
11559
+ "value.onChange",
11560
+ "value.onSubmit"
11561
+ ]
11562
+ },
11563
+ "Toggle": {
11564
+ "children": [],
11565
+ "actions": [
11566
+ "onChange",
11567
+ "action"
11568
+ ]
11569
+ },
11570
+ "Slider": {
11571
+ "children": [],
11572
+ "actions": [
11573
+ "onChange"
11574
+ ]
11575
+ },
11576
+ "Stepper": {
11577
+ "children": [],
11578
+ "actions": [
11579
+ "onChange"
11580
+ ]
11581
+ },
11582
+ "Gauge": {
11583
+ "children": [],
11584
+ "actions": []
11551
11585
  }
11552
11586
  };
11553
11587
  var WORKER_SUBTREE_COMMON_ACTION_PATHS = [
@@ -11792,6 +11826,10 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
11792
11826
  return;
11793
11827
  }
11794
11828
  const props = node.body.props;
11829
+ if (Object.keys(props).some((key) => key.startsWith("__"))) {
11830
+ rejection = "typed_decode";
11831
+ return;
11832
+ }
11795
11833
  for (const path of rule.actions) checkAction(valueAtPath(props, path));
11796
11834
  for (const path of WORKER_SUBTREE_COMMON_ACTION_PATHS) checkAction(valueAtPath(node, path));
11797
11835
  for (const childRule of rule.children) {
@@ -2763,24 +2763,30 @@ function storeInviteMessage(source) {
2763
2763
  function storeInviteAction(service = "storeInvite") {
2764
2764
  return { actionId: `tier5.${service}.invite` };
2765
2765
  }
2766
+ function inviteButtonNode(opts, modifiers) {
2767
+ return {
2768
+ id: opts.id,
2769
+ body: { package: "himalaya", type: "Button", props: {
2770
+ title: opts.label ?? "Invite",
2771
+ style: "tonal",
2772
+ size: "md",
2773
+ leadingIcon: "share",
2774
+ fullWidth: true,
2775
+ action: storeInviteAction(opts.service ?? "storeInvite")
2776
+ } },
2777
+ modifiers: { weight: 1, ...modifiers }
2778
+ };
2779
+ }
2780
+ function storeInviteButton(opts) {
2781
+ return inviteButtonNode(opts, { onAppear: { actionId: `tier5.${opts.service ?? "storeInvite"}.load`, params: {} } });
2782
+ }
2766
2783
  function storeInviteRow(opts) {
2767
2784
  const service = opts.service ?? "storeInvite";
2768
2785
  const gutter = opts.gutter ?? 16;
2769
2786
  return {
2770
2787
  id: opts.id,
2771
2788
  body: { package: "himalaya", type: "HStack", props: { spacing: 12, alignment: "center", children: [
2772
- {
2773
- id: `${opts.id}.button`,
2774
- body: { package: "himalaya", type: "Button", props: {
2775
- title: opts.label ?? "Invite",
2776
- style: "tonal",
2777
- size: "md",
2778
- leadingIcon: "share",
2779
- fullWidth: true,
2780
- action: storeInviteAction(service)
2781
- } },
2782
- modifiers: { weight: 1 }
2783
- }
2789
+ inviteButtonNode({ id: `${opts.id}.button`, service, ...opts.label !== void 0 ? { label: opts.label } : {} }, {})
2784
2790
  ] } },
2785
2791
  modifiers: { padding: { leading: gutter, trailing: gutter, top: 16, bottom: 0 }, onAppear: { actionId: `tier5.${service}.load`, params: {} } }
2786
2792
  };
@@ -8120,6 +8126,7 @@ export {
8120
8126
  podcastScreen,
8121
8127
  storeInviteAction,
8122
8128
  storeInviteAppName,
8129
+ storeInviteButton,
8123
8130
  storeInviteCopyFor,
8124
8131
  storeInviteMessage,
8125
8132
  storeInviteRow
@@ -8420,6 +8420,40 @@ var WORKER_SUBTREE_SAFE_TYPE_RULES = {
8420
8420
  "actions": [
8421
8421
  "onChange"
8422
8422
  ]
8423
+ },
8424
+ "TextField": {
8425
+ "children": [],
8426
+ "actions": [
8427
+ "onChange",
8428
+ "onSubmit",
8429
+ "text.onChange",
8430
+ "text.onSubmit",
8431
+ "value.onChange",
8432
+ "value.onSubmit"
8433
+ ]
8434
+ },
8435
+ "Toggle": {
8436
+ "children": [],
8437
+ "actions": [
8438
+ "onChange",
8439
+ "action"
8440
+ ]
8441
+ },
8442
+ "Slider": {
8443
+ "children": [],
8444
+ "actions": [
8445
+ "onChange"
8446
+ ]
8447
+ },
8448
+ "Stepper": {
8449
+ "children": [],
8450
+ "actions": [
8451
+ "onChange"
8452
+ ]
8453
+ },
8454
+ "Gauge": {
8455
+ "children": [],
8456
+ "actions": []
8423
8457
  }
8424
8458
  };
8425
8459
 
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2744566
5
+ "bytes": 2745046
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/7ef1986106af7b688111a1b3775f03396def712b12d0e4620cfc758042f8157c.bin",
24
+ "name": "preview-deferred/c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-DTQh7vir.js",
82
+ "key": "assets/pdf-BRHvTKyX.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "7ef1986106af7b688111a1b3775f03396def712b12d0e4620cfc758042f8157c",
85
- "file": "preview-deferred/7ef1986106af7b688111a1b3775f03396def712b12d0e4620cfc758042f8157c.bin"
84
+ "sha256": "c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62",
85
+ "file": "preview-deferred/c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",