@wix/himalaya-cli 0.1934.0 → 0.1935.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.
@@ -32,7 +32,19 @@ export interface FrogTelemetryConfig {
32
32
  apiRules?: ServedWixApiRule[];
33
33
  /** oneapp: the platform action map (#4979), a user's tap on a descriptor action → its RN tap event. */
34
34
  actionMap?: ServedActionMapEntry[];
35
+ /** oneapp: the platform push map (#6442), a tapped notification → the RN app's own push-opened event. */
36
+ pushMap?: ServedPushMapEntry[];
35
37
  }
38
+ export interface ServedPushMapEntry {
39
+ id: string;
40
+ match: string;
41
+ src: number;
42
+ evid: number;
43
+ endpoint?: string;
44
+ module?: string;
45
+ fields: Record<string, string | number>;
46
+ }
47
+ export declare function servedPushMap(app: string): ServedPushMapEntry[] | undefined;
36
48
  export interface ServedActionMapEntry {
37
49
  id: string;
38
50
  actionId: string;
package/dist/cli.mjs CHANGED
@@ -43349,8 +43349,108 @@ var init_action_map = __esm({
43349
43349
  }
43350
43350
  });
43351
43351
 
43352
+ // ../../core/schema/bi/push-map.json
43353
+ var push_map_default;
43354
+ var init_push_map = __esm({
43355
+ "../../core/schema/bi/push-map.json"() {
43356
+ push_map_default = {
43357
+ _comment: "#6442 \u2014 the platform push map: a notification the user TAPPED -> the RN app's own push-opened event (RN Nano's 191:200 genericPushNotificationEvent, sent beside the engine's 5:272). Per app, matched on the tapped link's route (scheme, leading slashes, query and fragment ignored; `:name` binds a segment). Fields are `$push.notificationId`, `$push.link`, `$push.title`, `$push.content` (an allowlist of the payload's data as JSON, keys sorted; see README), `$route.<name>` or literals. A notification without an id sends nothing, as in RN. `rn` cites the RN source and `differs` says where it departs; both are stripped when served as telemetryConfig.frog.pushMap. Canonical evaluator: stdlib/telemetry/wix-bi/src/push-map.ts; fixture: core/schema/fixtures/bi-push-map-cases.json.",
43358
+ apps: {
43359
+ nano: [
43360
+ {
43361
+ id: "widget",
43362
+ match: "widget/:widgetId",
43363
+ src: 191,
43364
+ evid: 200,
43365
+ endpoint: "oneapp",
43366
+ module: "nano",
43367
+ fields: {
43368
+ widgetId: "$route.widgetId",
43369
+ actionType: "open widget",
43370
+ pushType: "in-widget push",
43371
+ pushId: "$push.notificationId",
43372
+ deepLink: "$push.link",
43373
+ title: "$push.title",
43374
+ pushContent: "$push.content"
43375
+ },
43376
+ rn: "genericPushNotificationEvent 191:200 (@wix/bi-logger-wix-nano-data 1.8.0, endpoint ''): wix-private/nano packages/mobile-apps-nano-platform/src/utils/deeplinkUtils.ts:29 (createNotificationOpenedHandler) <- src/moduleAPI/deepLinks.ts:49",
43377
+ differs: "widgetId is the link's (RN reads the payload's custom widgetId key, which names the same widget)."
43378
+ },
43379
+ {
43380
+ id: "memberJoined",
43381
+ match: "memberJoined/:widgetId",
43382
+ src: 191,
43383
+ evid: 200,
43384
+ endpoint: "oneapp",
43385
+ module: "nano",
43386
+ fields: {
43387
+ widgetId: "$route.widgetId",
43388
+ actionType: "open my widgets",
43389
+ pushType: "member joined",
43390
+ pushId: "$push.notificationId",
43391
+ deepLink: "$push.link",
43392
+ title: "$push.title",
43393
+ pushContent: "$push.content"
43394
+ },
43395
+ rn: "genericPushNotificationEvent 191:200 (@wix/bi-logger-wix-nano-data 1.8.0, endpoint ''): wix-private/nano packages/mobile-apps-nano-platform/src/utils/deeplinkUtils.ts:29 (createNotificationOpenedHandler) <- src/moduleAPI/deepLinks.ts:67",
43396
+ differs: "widgetId is the link's (RN reads the payload's custom widgetId key, which names the same widget)."
43397
+ },
43398
+ {
43399
+ id: "explore",
43400
+ match: "explore",
43401
+ src: 191,
43402
+ evid: 200,
43403
+ endpoint: "oneapp",
43404
+ module: "nano",
43405
+ fields: {
43406
+ actionType: "explore screen",
43407
+ pushType: "nano of the day",
43408
+ pushId: "$push.notificationId",
43409
+ deepLink: "$push.link",
43410
+ title: "$push.title",
43411
+ pushContent: "$push.content"
43412
+ },
43413
+ rn: "genericPushNotificationEvent 191:200 (@wix/bi-logger-wix-nano-data 1.8.0, endpoint ''): wix-private/nano packages/mobile-apps-nano-platform/src/utils/deeplinkUtils.ts:29 (createNotificationOpenedHandler) <- src/moduleAPI/deepLinks.ts:82"
43414
+ },
43415
+ {
43416
+ id: "edit",
43417
+ match: "edit/:widgetId",
43418
+ src: 191,
43419
+ evid: 200,
43420
+ endpoint: "oneapp",
43421
+ module: "nano",
43422
+ fields: {
43423
+ widgetId: "$route.widgetId",
43424
+ actionType: "widget edit",
43425
+ pushType: "version was created",
43426
+ pushId: "$push.notificationId",
43427
+ deepLink: "$push.link",
43428
+ title: "$push.title",
43429
+ pushContent: "$push.content"
43430
+ },
43431
+ rn: "genericPushNotificationEvent 191:200 (@wix/bi-logger-wix-nano-data 1.8.0, endpoint ''): wix-private/nano packages/mobile-apps-nano-platform/src/utils/deeplinkUtils.ts:29 (createNotificationOpenedHandler) <- src/moduleAPI/deepLinks.ts:93",
43432
+ differs: "widgetId is the link's (RN reads the payload's custom widgetId key, which names the same widget)."
43433
+ }
43434
+ ]
43435
+ }
43436
+ };
43437
+ }
43438
+ });
43439
+
43352
43440
  // ../../core/dev-server/src/app-config.ts
43353
43441
  import { createHash as createHash12 } from "node:crypto";
43442
+ function servedPushMap(app2) {
43443
+ const entries = push_map_default.apps[app2];
43444
+ return entries?.map((e2) => ({
43445
+ id: e2.id,
43446
+ match: e2.match,
43447
+ src: e2.src,
43448
+ evid: e2.evid,
43449
+ ...e2.endpoint ? { endpoint: e2.endpoint } : {},
43450
+ ...e2.module ? { module: e2.module } : {},
43451
+ fields: e2.fields
43452
+ }));
43453
+ }
43354
43454
  function servedActionMap(app2) {
43355
43455
  const entries = action_map_default.apps[app2];
43356
43456
  return entries?.map((e2) => ({
@@ -43414,6 +43514,8 @@ function deriveTelemetryConfig(app2) {
43414
43514
  cfg.frog.apiRules = servedWixApiRules();
43415
43515
  const actionMap = servedActionMap(app2.name);
43416
43516
  if (actionMap) cfg.frog.actionMap = actionMap;
43517
+ const pushMap = servedPushMap(app2.name);
43518
+ if (pushMap) cfg.frog.pushMap = pushMap;
43417
43519
  }
43418
43520
  }
43419
43521
  if (wp?.real?.monitoring === true) {
@@ -43680,6 +43782,7 @@ var init_app_config = __esm({
43680
43782
  init_screen_map();
43681
43783
  init_wix_api_rules();
43682
43784
  init_action_map();
43785
+ init_push_map();
43683
43786
  SHARED_WIX_SENTRY_DSN = "https://5dfa4f23057c43149b6219c07d177472@sentry.io/84240";
43684
43787
  NAV_OVERRIDES = {
43685
43788
  reference: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1934.0",
3
+ "version": "0.1935.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": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "208ca68c5fce1dd9a3e4c1430d368899748007722ff3e8cf1ae7440c"
85
+ "falconPackageHash": "da7f999106a79d88dc228ce03aee9eab6c07acb65aedf6b4744ce802"
86
86
  }