@m4l/gclick-realtime 1.0.2 → 1.0.3

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 (34) hide show
  1. package/dummy/catalogs/baseDeviceTemplate.d.ts +2 -5
  2. package/dummy/catalogs/baseDeviceTemplate.d.ts.map +1 -1
  3. package/dummy/catalogs/baseDeviceTemplate.js +3 -3
  4. package/dummy/catalogs/blueprints.d.ts +8 -8
  5. package/dummy/catalogs/blueprints.d.ts.map +1 -1
  6. package/dummy/catalogs/blueprints.js +44 -45
  7. package/package.json +1 -1
  8. package/web/host/hostRuntime.d.ts +8 -8
  9. package/web/host/hostRuntime.d.ts.map +1 -1
  10. package/web/host/hostRuntime.js +9 -9
  11. package/web/host/index.d.ts +3 -3
  12. package/web/host/index.d.ts.map +1 -1
  13. package/web/host/launchContract.d.ts +9 -9
  14. package/web/host/launchContract.d.ts.map +1 -1
  15. package/web/host/launchContract.js +28 -28
  16. package/web/index.js +41 -42
  17. package/web/producer/RealTimeProducerContext.js +7 -7
  18. package/web/runtime/index.d.ts +9 -9
  19. package/web/runtime/index.d.ts.map +1 -1
  20. package/web/runtime/runtime.d.ts +6 -14
  21. package/web/runtime/runtime.d.ts.map +1 -1
  22. package/web/runtime/runtime.js +10 -12
  23. package/web/runtime/runtimeAtmosphereOnly.d.ts +5 -5
  24. package/web/runtime/runtimeAtmosphereOnly.d.ts.map +1 -1
  25. package/web/runtime/runtimeAtmosphereOnly.js +6 -6
  26. package/web/runtime/runtimeRegistry.d.ts +5 -5
  27. package/web/runtime/runtimeRegistry.d.ts.map +1 -1
  28. package/web/runtime/runtimeRegistry.js +6 -6
  29. package/web/runtime/runtimeRegistry.shared.d.ts +9 -9
  30. package/web/runtime/runtimeRegistry.shared.d.ts.map +1 -1
  31. package/web/runtime/runtimeRegistry.shared.js +19 -19
  32. package/web/runtime/runtimeRegistryAtmosphereOnly.d.ts +6 -6
  33. package/web/runtime/runtimeRegistryAtmosphereOnly.d.ts.map +1 -1
  34. package/web/runtime/runtimeRegistryAtmosphereOnly.js +6 -6
@@ -1,11 +1,8 @@
1
1
  import { DeviceDataType } from '../../contracts/index';
2
2
  /**
3
- * Reference icon asset URLs kept from the original dummy fixture.
3
+ * Reference fallback icon id reused across the deterministic dummy catalogs.
4
4
  */
5
- /**
6
- * Shared fallback icon used across the deterministic dummy catalogs.
7
- */
8
- export declare const REAL_TIME_DUMMY_DEFAULT_ICON_ID = "i_mod_operative_my_gps_devices_types_truck";
5
+ export declare const REAL_TIME_DUMMY_DEFAULT_ICON_ID = "i_light_truck";
9
6
  /**
10
7
  * Base device template shared by the deterministic dummy simulator.
11
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"baseDeviceTemplate.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/dummy/catalogs/baseDeviceTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAU5D;;GAEG;AACH;;GAEG;AACH,eAAO,MAAM,+BAA+B,+CAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,IAAI,CAAC,cAAc,EAAE,kBAAkB,CAyHzF,CAAC"}
1
+ {"version":3,"file":"baseDeviceTemplate.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/dummy/catalogs/baseDeviceTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAU5D;;GAEG;AACH,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,IAAI,CAAC,cAAc,EAAE,kBAAkB,CAyHzF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { ADCPowerEnum as n, GNSSEnumSignal as a, GNSSEnumMotionStatus as i } from "../../contracts/constants.js";
2
- const e = "2026-04-21T12:00:00.000Z", t = "i_mod_operative_my_gps_devices_types_truck", s = t, d = {
2
+ const e = "2026-04-21T12:00:00.000Z", t = "i_light_truck", o = t, d = {
3
3
  deviceIcon: {
4
4
  id: "dummy-device-icon",
5
- iconId: s
5
+ iconId: o
6
6
  },
7
7
  department: {
8
8
  color: "#27C8F5",
@@ -123,5 +123,5 @@ const e = "2026-04-21T12:00:00.000Z", t = "i_mod_operative_my_gps_devices_types_
123
123
  };
124
124
  export {
125
125
  d as REAL_TIME_DUMMY_BASE_DEVICE_TEMPLATE,
126
- s as REAL_TIME_DUMMY_DEFAULT_ICON_ID
126
+ o as REAL_TIME_DUMMY_DEFAULT_ICON_ID
127
127
  };
@@ -14,7 +14,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
14
14
  };
15
15
  group: import('../..').SettingsGroup;
16
16
  iconBgColor: `#${string}`;
17
- iconId: "i_mod_operative_my_gps_devices_types_heavy_truck";
17
+ iconId: "i_heavy_truck";
18
18
  name: string;
19
19
  settingsPatch: {
20
20
  properties: {
@@ -35,7 +35,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
35
35
  };
36
36
  group: import('../..').SettingsGroup;
37
37
  iconBgColor: `#${string}`;
38
- iconId: "i_mod_operative_my_gps_devices_types_medium_truck";
38
+ iconId: "i_van";
39
39
  name: string;
40
40
  };
41
41
  teal_pickup: {
@@ -48,7 +48,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
48
48
  };
49
49
  group: import('../..').SettingsGroup;
50
50
  iconBgColor: `#${string}`;
51
- iconId: "i_mod_operative_my_gps_devices_types_truck";
51
+ iconId: "i_light_truck";
52
52
  name: string;
53
53
  };
54
54
  charcoal_sedan: {
@@ -61,7 +61,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
61
61
  };
62
62
  group: import('../..').SettingsGroup;
63
63
  iconBgColor: `#${string}`;
64
- iconId: "i_mod_operative_my_gps_devices_types_sedan";
64
+ iconId: "i_sedan";
65
65
  name: string;
66
66
  };
67
67
  sand_box_truck: {
@@ -74,7 +74,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
74
74
  };
75
75
  group: import('../..').SettingsGroup;
76
76
  iconBgColor: `#${string}`;
77
- iconId: "i_mod_operative_my_gps_devices_types_tanker_truck";
77
+ iconId: "i_heavy_truck";
78
78
  name: string;
79
79
  };
80
80
  yellow_service: {
@@ -87,7 +87,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
87
87
  };
88
88
  group: import('../..').SettingsGroup;
89
89
  iconBgColor: `#${string}`;
90
- iconId: "i_mod_operative_my_gps_devices_types_motorcycle";
90
+ iconId: "i_motorcycle";
91
91
  name: string;
92
92
  };
93
93
  red_tractor: {
@@ -100,7 +100,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
100
100
  };
101
101
  group: import('../..').SettingsGroup;
102
102
  iconBgColor: `#${string}`;
103
- iconId: "i_mod_operative_my_gps_devices_types_truck_tractor";
103
+ iconId: "i_truck_tractor";
104
104
  name: string;
105
105
  };
106
106
  blue_city_car: {
@@ -113,7 +113,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
113
113
  };
114
114
  group: import('../..').SettingsGroup;
115
115
  iconBgColor: `#${string}`;
116
- iconId: "i_mod_operative_my_gps_devices_types_sedan";
116
+ iconId: "i_sedan";
117
117
  name: string;
118
118
  };
119
119
  bootstrap_pending_icon: {
@@ -1 +1 @@
1
- {"version":3,"file":"blueprints.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/dummy/catalogs/blueprints.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,0BAA0B,mEAS7B,CAAC;AAeX;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FU,CAAC;AAEzD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,iCAAiC,CAAC"}
1
+ {"version":3,"file":"blueprints.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/dummy/catalogs/blueprints.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B,mEAS7B,CAAC;AAeX;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FU,CAAC;AAEzD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,iCAAiC,CAAC"}
@@ -1,14 +1,13 @@
1
- import { group3 as r, group7 as _, group6 as a, group5 as i, group4 as n, group2 as c, group1 as p, groupForest as l } from "./group.js";
1
+ import { group3 as e, group7 as a, group6 as n, group5 as i, group4 as l, group2 as c, group1 as _, groupForest as p } from "./group.js";
2
2
  import { REAL_TIME_DUMMY_DEFAULT_ICON_ID as d } from "./baseDeviceTemplate.js";
3
- const o = {
4
- HEAVY_TRUCK: "i_mod_operative_my_gps_devices_types_heavy_truck",
5
- MEDIUM_TRUCK: "i_mod_operative_my_gps_devices_types_medium_truck",
6
- MOTORCYCLE: "i_mod_operative_my_gps_devices_types_motorcycle",
7
- SEDAN: "i_mod_operative_my_gps_devices_types_sedan",
8
- STANDARD_TRUCK: d,
9
- TANKER_TRUCK: "i_mod_operative_my_gps_devices_types_tanker_truck",
10
- TRUCK_TRACTOR: "i_mod_operative_my_gps_devices_types_truck_tractor"
11
- }, g = [
3
+ const r = {
4
+ HEAVY_TRUCK: "i_heavy_truck",
5
+ LIGHT_TRUCK: d,
6
+ MOTORCYCLE: "i_motorcycle",
7
+ SEDAN: "i_sedan",
8
+ TRUCK_TRACTOR: "i_truck_tractor",
9
+ VAN: "i_van"
10
+ }, C = [
12
11
  1e4,
13
12
  10001,
14
13
  10002,
@@ -18,22 +17,22 @@ const o = {
18
17
  10006,
19
18
  10007
20
19
  ];
21
- function e(t) {
20
+ function o(t) {
22
21
  return {
23
22
  color: t.bgColor,
24
23
  id: t.id,
25
24
  name: t.name
26
25
  };
27
26
  }
28
- const m = {
27
+ const s = {
29
28
  forest_truck: {
30
29
  active: !1,
31
30
  alias: "North ridge",
32
31
  blueprintId: "forest_truck",
33
- department: e(l),
34
- group: l,
35
- iconBgColor: l.bgColor,
36
- iconId: o.HEAVY_TRUCK,
32
+ department: o(p),
33
+ group: p,
34
+ iconBgColor: p.bgColor,
35
+ iconId: r.HEAVY_TRUCK,
37
36
  name: "Atlas 01",
38
37
  settingsPatch: {
39
38
  properties: {
@@ -47,77 +46,77 @@ const m = {
47
46
  orchid_van: {
48
47
  alias: "Industrial belt",
49
48
  blueprintId: "orchid_van",
50
- department: e(p),
51
- group: p,
52
- iconBgColor: p.bgColor,
53
- iconId: o.MEDIUM_TRUCK,
49
+ department: o(_),
50
+ group: _,
51
+ iconBgColor: _.bgColor,
52
+ iconId: r.VAN,
54
53
  name: "Orchid Van"
55
54
  },
56
55
  teal_pickup: {
57
56
  alias: "Delivery east",
58
57
  blueprintId: "teal_pickup",
59
- department: e(c),
58
+ department: o(c),
60
59
  group: c,
61
60
  iconBgColor: c.bgColor,
62
- iconId: o.STANDARD_TRUCK,
61
+ iconId: r.LIGHT_TRUCK,
63
62
  name: "Teal Pickup"
64
63
  },
65
64
  charcoal_sedan: {
66
65
  alias: "Central commute",
67
66
  blueprintId: "charcoal_sedan",
68
- department: e(r),
69
- group: r,
70
- iconBgColor: r.bgColor,
71
- iconId: o.SEDAN,
67
+ department: o(e),
68
+ group: e,
69
+ iconBgColor: e.bgColor,
70
+ iconId: r.SEDAN,
72
71
  name: "Charcoal Sedan"
73
72
  },
74
73
  sand_box_truck: {
75
74
  alias: "Warehouse south",
76
75
  blueprintId: "sand_box_truck",
77
- department: e(n),
78
- group: n,
79
- iconBgColor: n.bgColor,
80
- iconId: o.TANKER_TRUCK,
76
+ department: o(l),
77
+ group: l,
78
+ iconBgColor: l.bgColor,
79
+ iconId: r.HEAVY_TRUCK,
81
80
  name: "Sand Box"
82
81
  },
83
82
  yellow_service: {
84
83
  alias: "Service loop",
85
84
  blueprintId: "yellow_service",
86
- department: e(i),
85
+ department: o(i),
87
86
  group: i,
88
87
  iconBgColor: i.bgColor,
89
- iconId: o.MOTORCYCLE,
88
+ iconId: r.MOTORCYCLE,
90
89
  name: "Service 07"
91
90
  },
92
91
  red_tractor: {
93
92
  alias: "Yard cycle",
94
93
  blueprintId: "red_tractor",
95
- department: e(a),
96
- group: a,
97
- iconBgColor: a.bgColor,
98
- iconId: o.TRUCK_TRACTOR,
94
+ department: o(n),
95
+ group: n,
96
+ iconBgColor: n.bgColor,
97
+ iconId: r.TRUCK_TRACTOR,
99
98
  name: "Red Tractor"
100
99
  },
101
100
  blue_city_car: {
102
101
  alias: "City shuttle",
103
102
  blueprintId: "blue_city_car",
104
- department: e(_),
105
- group: _,
106
- iconBgColor: _.bgColor,
107
- iconId: o.SEDAN,
103
+ department: o(a),
104
+ group: a,
105
+ iconBgColor: a.bgColor,
106
+ iconId: r.SEDAN,
108
107
  name: "Blue City"
109
108
  },
110
109
  bootstrap_pending_icon: {
111
110
  alias: "Catalog pending",
112
111
  blueprintId: "bootstrap_pending_icon",
113
- department: e(r),
114
- group: r,
115
- iconBgColor: r.bgColor,
112
+ department: o(e),
113
+ group: e,
114
+ iconBgColor: e.bgColor,
116
115
  name: "Bootstrap Pending",
117
116
  omitDeviceIcon: !0
118
117
  }
119
118
  };
120
119
  export {
121
- m as REAL_TIME_DUMMY_DEVICE_BLUEPRINTS,
122
- g as REAL_TIME_DUMMY_DEVICE_IDS
120
+ s as REAL_TIME_DUMMY_DEVICE_BLUEPRINTS,
121
+ C as REAL_TIME_DUMMY_DEVICE_IDS
123
122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/gclick-realtime",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -15,10 +15,10 @@ export interface GClickRealtimeHostRuntime {
15
15
  /**
16
16
  * Input contract used to create one host runtime directly from a shared dummy preset.
17
17
  */
18
- export interface CreateGClickRealtimeHostRuntimeFromPresetProps {
18
+ export interface LaunchGClickDummyHostRuntimeProps {
19
19
  presetId: RealTimeDummySimulationPresetId;
20
20
  resourceTypeId: RealTimeResourceTypeId;
21
- storeKey: string;
21
+ runtimeKey: string;
22
22
  storeId?: string;
23
23
  storeDevtoolsEnabled?: boolean;
24
24
  }
@@ -26,22 +26,22 @@ export interface CreateGClickRealtimeHostRuntimeFromPresetProps {
26
26
  * Input contract used to create one host runtime from Atmosphere-only
27
27
  * resource configs without registering the dummy source-data mechanism.
28
28
  */
29
- export interface CreateGClickAtmosphereOnlyRealtimeHostRuntimeProps {
29
+ export interface LaunchGClickAtmosphereHostRuntimeProps {
30
30
  resourceTypesConfig: RealTimeResourceSourceMechanismConfigAtmosphere[];
31
- storeKey: string;
31
+ runtimeKey: string;
32
32
  storeId?: string;
33
33
  storeDevtoolsEnabled?: boolean;
34
34
  }
35
35
  /**
36
36
  * Create one host-runtime bag from a deterministic dummy preset without rebuilding MF-local runtime wiring.
37
37
  */
38
- export declare function createGClickRealtimeHostRuntimeFromPreset(props: CreateGClickRealtimeHostRuntimeFromPresetProps): GClickRealtimeHostRuntime;
38
+ export declare function launchGClickDummyHostRuntime(props: LaunchGClickDummyHostRuntimeProps): GClickRealtimeHostRuntime;
39
39
  /**
40
40
  * Create one host-runtime bag from Atmosphere-only realtime resource configs.
41
41
  */
42
- export declare function createGClickAtmosphereOnlyRealtimeHostRuntime(props: CreateGClickAtmosphereOnlyRealtimeHostRuntimeProps): GClickRealtimeHostRuntime;
42
+ export declare function launchGClickAtmosphereHostRuntime(props: LaunchGClickAtmosphereHostRuntimeProps): GClickRealtimeHostRuntime;
43
43
  /**
44
- * Resolve the host-owned producer tools forwarded into the current MF runtime bag.
44
+ * Resolve the host-owned realtime tools forwarded into the current MF runtime bag.
45
45
  */
46
- export declare function resolveGClickRealtimeProducerTools(hostRuntime?: GClickRealtimeHostRuntime): RealTimeProducerTools;
46
+ export declare function resolveGClickRealtimeTools(hostRuntime?: GClickRealtimeHostRuntime): RealTimeProducerTools;
47
47
  //# sourceMappingURL=hostRuntime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hostRuntime.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/hostRuntime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,+CAA+C,EAC/C,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE;QACT,aAAa,CAAC,EAAE,qBAAqB,CAAC;KACvC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,8CAA8C;IAC7D,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,cAAc,EAAE,sBAAsB,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,kDAAkD;IACjE,mBAAmB,EAAE,+CAA+C,EAAE,CAAC;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,8CAA8C,GACpD,yBAAyB,CAyB3B;AAED;;GAEG;AACH,wBAAgB,6CAA6C,CAC3D,KAAK,EAAE,kDAAkD,GACxD,yBAAyB,CAQ3B;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAChD,WAAW,CAAC,EAAE,yBAAyB,GACtC,qBAAqB,CAavB"}
1
+ {"version":3,"file":"hostRuntime.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/hostRuntime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,+CAA+C,EAC/C,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE;QACT,aAAa,CAAC,EAAE,qBAAqB,CAAC;KACvC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,cAAc,EAAE,sBAAsB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAsC;IACrD,mBAAmB,EAAE,+CAA+C,EAAE,CAAC;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,iCAAiC,GACvC,yBAAyB,CAyB3B;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,sCAAsC,GAC5C,yBAAyB,CAQ3B;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,CAAC,EAAE,yBAAyB,GACtC,qBAAqB,CAavB"}
@@ -1,5 +1,5 @@
1
- import { ensureGClickRealtimeProducerRuntime as n } from "../runtime/runtimeRegistry.js";
2
- import { ensureGClickAtmosphereOnlyRealtimeProducerRuntime as u } from "../runtime/runtimeRegistryAtmosphereOnly.js";
1
+ import { getOrCreateGClickRealtimeRuntime as s } from "../runtime/runtimeRegistry.js";
2
+ import { getOrCreateGClickAtmosphereRealtimeRuntime as u } from "../runtime/runtimeRegistryAtmosphereOnly.js";
3
3
  import { createRealTimeDummyResourceTypeConfigFromPreset as m } from "../../dummy/runtime/simulation.js";
4
4
  function f(r) {
5
5
  const {
@@ -7,12 +7,12 @@ function f(r) {
7
7
  resourceTypeId: o,
8
8
  storeDevtoolsEnabled: t = !1,
9
9
  storeId: i,
10
- storeKey: s
10
+ runtimeKey: n
11
11
  } = r;
12
12
  return {
13
13
  realtime: {
14
- producerTools: n({
15
- storeKey: s,
14
+ producerTools: s({
15
+ runtimeKey: n,
16
16
  storeId: i,
17
17
  storeDevtoolsEnabled: t,
18
18
  resourceTypesConfig: [
@@ -32,7 +32,7 @@ function d(r) {
32
32
  }
33
33
  };
34
34
  }
35
- function R(r) {
35
+ function C(r) {
36
36
  const e = r?.realtime?.producerTools;
37
37
  if (typeof e?.subscribe != "function" || typeof e?.unsubscribe != "function")
38
38
  throw new Error(
@@ -41,7 +41,7 @@ function R(r) {
41
41
  return e;
42
42
  }
43
43
  export {
44
- d as createGClickAtmosphereOnlyRealtimeHostRuntime,
45
- f as createGClickRealtimeHostRuntimeFromPreset,
46
- R as resolveGClickRealtimeProducerTools
44
+ d as launchGClickAtmosphereHostRuntime,
45
+ f as launchGClickDummyHostRuntime,
46
+ C as resolveGClickRealtimeTools
47
47
  };
@@ -1,5 +1,5 @@
1
- export { createGClickAtmosphereOnlyRealtimeHostRuntime, createGClickRealtimeHostRuntimeFromPreset, resolveGClickRealtimeProducerTools, } from './hostRuntime';
2
- export type { CreateGClickAtmosphereOnlyRealtimeHostRuntimeProps, CreateGClickRealtimeHostRuntimeFromPresetProps, GClickRealtimeHostRuntime, } from './hostRuntime';
3
- export { createGClickAtmosphereRealtimeHostRuntimeStoreKey, createGClickAtmosphereRealtimeResourceTypeConfig, createGClickDummyRealtimeHostRuntimeStoreKey, createGClickRealtimeHostRuntimeFromLaunchContract, normalizeGClickRealtimeFallbackTransport, normalizeGClickRealtimeSessionId, resolveGClickRealtimeAtmosphereHost, } from './launchContract';
1
+ export { launchGClickAtmosphereHostRuntime, launchGClickDummyHostRuntime, resolveGClickRealtimeTools, } from './hostRuntime';
2
+ export type { GClickRealtimeHostRuntime, LaunchGClickAtmosphereHostRuntimeProps, LaunchGClickDummyHostRuntimeProps, } from './hostRuntime';
3
+ export { createGClickAtmosphereRuntimeConfig, createGClickAtmosphereRuntimeKey, createGClickDummyRuntimeKey, launchGClickRealtimeHostRuntime, normalizeGClickRealtimeFallbackTransport, normalizeGClickRealtimeSessionId, resolveGClickRealtimeAtmosphereHost, } from './launchContract';
4
4
  export type { GClickRealtimeAtmosphereFallbackTransport, GClickRealtimeAtmosphereHostLaunchContract, GClickRealtimeDummyHostLaunchContract, GClickRealtimeHostLaunchContract, } from './launchContract';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6CAA6C,EAC7C,yCAAyC,EACzC,kCAAkC,GACnC,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,kDAAkD,EAClD,8CAA8C,EAC9C,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iDAAiD,EACjD,gDAAgD,EAChD,4CAA4C,EAC5C,iDAAiD,EACjD,wCAAwC,EACxC,gCAAgC,EAChC,mCAAmC,GACpC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,yCAAyC,EACzC,0CAA0C,EAC1C,qCAAqC,EACrC,gCAAgC,GACjC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,yBAAyB,EACzB,sCAAsC,EACtC,iCAAiC,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mCAAmC,EACnC,gCAAgC,EAChC,2BAA2B,EAC3B,+BAA+B,EAC/B,wCAAwC,EACxC,gCAAgC,EAChC,mCAAmC,GACpC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,yCAAyC,EACzC,0CAA0C,EAC1C,qCAAqC,EACrC,gCAAgC,GACjC,MAAM,kBAAkB,CAAC"}
@@ -12,7 +12,7 @@ export interface GClickRealtimeDummyHostLaunchContract {
12
12
  mode: 'dummy';
13
13
  presetId: RealTimeDummySimulationPresetId;
14
14
  resourceTypeId: RealTimeResourceTypeId;
15
- storeKeyPrefix: string;
15
+ runtimeKeyPrefix: string;
16
16
  storeDevtoolsEnabled?: boolean;
17
17
  }
18
18
  /**
@@ -28,7 +28,7 @@ export interface GClickRealtimeAtmosphereHostLaunchContract {
28
28
  sessionId?: string;
29
29
  sessionIdFallback?: string;
30
30
  storeDevtoolsEnabled?: boolean;
31
- storeKeyPrefix: string;
31
+ runtimeKeyPrefix: string;
32
32
  topic: string;
33
33
  }
34
34
  /**
@@ -48,19 +48,19 @@ export declare function normalizeGClickRealtimeSessionId(sessionId?: string, ses
48
48
  */
49
49
  export declare function resolveGClickRealtimeAtmosphereHost(hostApiRemote: string): string;
50
50
  /**
51
- * Build the runtime cache key for one deterministic dummy launch contract.
51
+ * Build the runtime key for one deterministic dummy launch contract.
52
52
  */
53
- export declare function createGClickDummyRealtimeHostRuntimeStoreKey(props: Pick<GClickRealtimeDummyHostLaunchContract, 'presetId' | 'storeKeyPrefix'>): string;
53
+ export declare function createGClickDummyRuntimeKey(props: Pick<GClickRealtimeDummyHostLaunchContract, 'presetId' | 'runtimeKeyPrefix'>): string;
54
54
  /**
55
- * Build the runtime cache key for one Atmosphere-backed launch contract.
55
+ * Build the runtime key for one Atmosphere-backed launch contract.
56
56
  */
57
- export declare function createGClickAtmosphereRealtimeHostRuntimeStoreKey(props: Pick<GClickRealtimeAtmosphereHostLaunchContract, 'fallbackTransport' | 'hostApiRemote' | 'sessionId' | 'sessionIdFallback' | 'storeKeyPrefix'>): string;
57
+ export declare function createGClickAtmosphereRuntimeKey(props: Pick<GClickRealtimeAtmosphereHostLaunchContract, 'fallbackTransport' | 'hostApiRemote' | 'sessionId' | 'sessionIdFallback' | 'runtimeKeyPrefix'>): string;
58
58
  /**
59
- * Build the Atmosphere resource config derived from one shared shell launch contract.
59
+ * Build the Atmosphere runtime config derived from one shared shell launch contract.
60
60
  */
61
- export declare function createGClickAtmosphereRealtimeResourceTypeConfig(contract: GClickRealtimeAtmosphereHostLaunchContract): RealTimeResourceSourceMechanismConfigAtmosphere | undefined;
61
+ export declare function createGClickAtmosphereRuntimeConfig(contract: GClickRealtimeAtmosphereHostLaunchContract): RealTimeResourceSourceMechanismConfigAtmosphere | undefined;
62
62
  /**
63
63
  * Boot one host-runtime bag from the shared shell launch contract.
64
64
  */
65
- export declare function createGClickRealtimeHostRuntimeFromLaunchContract(contract: GClickRealtimeHostLaunchContract): GClickRealtimeHostRuntime;
65
+ export declare function launchGClickRealtimeHostRuntime(contract: GClickRealtimeHostLaunchContract): GClickRealtimeHostRuntime;
66
66
  //# sourceMappingURL=launchContract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"launchContract.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/launchContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EACV,+CAA+C,EAC/C,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAM/D;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG,cAAc,GAAG,WAAW,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,cAAc,EAAE,sBAAsB,CAAC;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,yCAAyC,CAAC;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,sBAAsB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,gCAAgC,GACxC,qCAAqC,GACrC,0CAA0C,CAAC;AAK/C;;GAEG;AACH,wBAAgB,wCAAwC,CACtD,iBAAiB,CAAC,EAAE,yCAAyC,GAC5D,yCAAyC,CAI3C;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,SAAS,CAAC,EAAE,MAAM,EAClB,iBAAiB,SAAuC,UAGzD;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,aAAa,EAAE,MAAM,UAKxE;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CAC1D,KAAK,EAAE,IAAI,CAAC,qCAAqC,EAAE,UAAU,GAAG,gBAAgB,CAAC,UAGlF;AAED;;GAEG;AACH,wBAAgB,iDAAiD,CAC/D,KAAK,EAAE,IAAI,CACT,0CAA0C,EAC1C,mBAAmB,GAAG,eAAe,GAAG,WAAW,GAAG,mBAAmB,GAAG,gBAAgB,CAC7F,UAWF;AAED;;GAEG;AACH,wBAAgB,gDAAgD,CAC9D,QAAQ,EAAE,0CAA0C,GACnD,+CAA+C,GAAG,SAAS,CAmB7D;AAED;;GAEG;AACH,wBAAgB,iDAAiD,CAC/D,QAAQ,EAAE,gCAAgC,GACzC,yBAAyB,CA2B3B"}
1
+ {"version":3,"file":"launchContract.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/launchContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EACV,+CAA+C,EAC/C,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAM/D;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG,cAAc,GAAG,WAAW,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,cAAc,EAAE,sBAAsB,CAAC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,yCAAyC,CAAC;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,sBAAsB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,gCAAgC,GACxC,qCAAqC,GACrC,0CAA0C,CAAC;AAK/C;;GAEG;AACH,wBAAgB,wCAAwC,CACtD,iBAAiB,CAAC,EAAE,yCAAyC,GAC5D,yCAAyC,CAI3C;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,SAAS,CAAC,EAAE,MAAM,EAClB,iBAAiB,SAAuC,UAGzD;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,aAAa,EAAE,MAAM,UAKxE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,IAAI,CAAC,qCAAqC,EAAE,UAAU,GAAG,kBAAkB,CAAC,UAGpF;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,IAAI,CACT,0CAA0C,EAC1C,mBAAmB,GAAG,eAAe,GAAG,WAAW,GAAG,mBAAmB,GAAG,kBAAkB,CAC/F,UAWF;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,0CAA0C,GACnD,+CAA+C,GAAG,SAAS,CAmB7D;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,gCAAgC,GACzC,yBAAyB,CA2B3B"}
@@ -1,72 +1,72 @@
1
- import { createGClickRealtimeHostRuntimeFromPreset as n, createGClickAtmosphereOnlyRealtimeHostRuntime as l } from "./hostRuntime.js";
2
- const a = "long-polling", m = "no-session-id";
3
- function r(e) {
4
- return e === "websocket" ? "websocket" : a;
1
+ import { launchGClickDummyHostRuntime as r, launchGClickAtmosphereHostRuntime as l } from "./hostRuntime.js";
2
+ const u = "long-polling", a = "no-session-id";
3
+ function t(e) {
4
+ return e === "websocket" ? "websocket" : u;
5
5
  }
6
- function i(e, s = m) {
6
+ function n(e, s = a) {
7
7
  return e?.trim() || s;
8
8
  }
9
- function u(e) {
9
+ function m(e) {
10
10
  const s = new URL(e), o = s.pathname.replace(/\/+$/u, "");
11
11
  return `${s.host}${o}/wss`;
12
12
  }
13
13
  function d(e) {
14
- return `${e.storeKeyPrefix}:${e.presetId}`;
14
+ return `${e.runtimeKeyPrefix}:${e.presetId}`;
15
15
  }
16
16
  function p(e) {
17
- const s = r(
17
+ const s = t(
18
18
  e.fallbackTransport
19
- ), o = i(
19
+ ), o = n(
20
20
  e.sessionId,
21
21
  e.sessionIdFallback
22
22
  );
23
- return `${e.storeKeyPrefix}:${e.hostApiRemote}:${o}:${s}`;
23
+ return `${e.runtimeKeyPrefix}:${e.hostApiRemote}:${o}:${s}`;
24
24
  }
25
- function R(e) {
25
+ function f(e) {
26
26
  if (e.hostApiRemote)
27
27
  return {
28
28
  sourceDataMechanism: "atmosphere",
29
29
  resourceTypeId: e.resourceTypeId,
30
30
  database: e.database,
31
- fallbackTransport: r(e.fallbackTransport),
32
- host: u(e.hostApiRemote),
31
+ fallbackTransport: t(e.fallbackTransport),
32
+ host: m(e.hostApiRemote),
33
33
  port: "wss",
34
34
  path: e.path,
35
35
  topic: e.topic,
36
- sessionId: i(
36
+ sessionId: n(
37
37
  e.sessionId,
38
38
  e.sessionIdFallback
39
39
  )
40
40
  };
41
41
  }
42
- function f(e) {
42
+ function c(e) {
43
43
  if (e.mode === "dummy") {
44
- const t = d(e);
45
- return n({
44
+ const i = d(e);
45
+ return r({
46
46
  presetId: e.presetId,
47
47
  resourceTypeId: e.resourceTypeId,
48
- storeKey: t,
49
- storeId: t,
48
+ runtimeKey: i,
49
+ storeId: i,
50
50
  storeDevtoolsEnabled: e.storeDevtoolsEnabled ?? !1
51
51
  });
52
52
  }
53
- const s = R(e);
53
+ const s = f(e);
54
54
  if (!s || !e.hostApiRemote)
55
55
  return {};
56
56
  const o = p(e);
57
57
  return l({
58
- storeKey: o,
58
+ runtimeKey: o,
59
59
  storeId: o,
60
60
  storeDevtoolsEnabled: e.storeDevtoolsEnabled ?? !1,
61
61
  resourceTypesConfig: [s]
62
62
  });
63
63
  }
64
64
  export {
65
- p as createGClickAtmosphereRealtimeHostRuntimeStoreKey,
66
- R as createGClickAtmosphereRealtimeResourceTypeConfig,
67
- d as createGClickDummyRealtimeHostRuntimeStoreKey,
68
- f as createGClickRealtimeHostRuntimeFromLaunchContract,
69
- r as normalizeGClickRealtimeFallbackTransport,
70
- i as normalizeGClickRealtimeSessionId,
71
- u as resolveGClickRealtimeAtmosphereHost
65
+ f as createGClickAtmosphereRuntimeConfig,
66
+ p as createGClickAtmosphereRuntimeKey,
67
+ d as createGClickDummyRuntimeKey,
68
+ c as launchGClickRealtimeHostRuntime,
69
+ t as normalizeGClickRealtimeFallbackTransport,
70
+ n as normalizeGClickRealtimeSessionId,
71
+ m as resolveGClickRealtimeAtmosphereHost
72
72
  };
package/web/index.js CHANGED
@@ -2,57 +2,56 @@ import { createRealTimeProducerTools as o } from "@m4l/realtime-runtime/web";
2
2
  import { REAL_TIME_DUMMY_DEFAULT_PRESET_ID as m, REAL_TIME_DUMMY_SIMULATION_PRESETS as i, createRealTimeDummySimulationConfigFromPreset as R } from "../dummy/catalogs/presets.js";
3
3
  import { createRealTimeDummyResourceTypeConfigFromPreset as l } from "../dummy/runtime/simulation.js";
4
4
  import { RealTimeDummySimulationPresetId as u } from "../fixtures/types.js";
5
- import { RealTimeProducerContext as n, RealTimeProducerProvider as T } from "./producer/RealTimeProducerContext.js";
6
- import { useRealTimeProducer as C } from "./producer/useRealTimeProducer.js";
7
- import { createRealTimeProducerStore as P } from "./producer/store.js";
5
+ import { RealTimeProducerContext as C, RealTimeProducerProvider as n } from "./producer/RealTimeProducerContext.js";
6
+ import { useRealTimeProducer as T } from "./producer/useRealTimeProducer.js";
7
+ import { createRealTimeProducerStore as f } from "./producer/store.js";
8
8
  import { SourceDataFactory as S } from "./producer/sourceDataFactory.js";
9
- import { RealTimeConsumerContext as _, RealTimeConsumerProvider as d } from "./consumer/RealTimeConsumerContext.js";
10
- import { useRealTimeConsumer as G } from "./consumer/useRealTimeConsumer.js";
9
+ import { RealTimeConsumerContext as G, RealTimeConsumerProvider as k } from "./consumer/RealTimeConsumerContext.js";
10
+ import { useRealTimeConsumer as A } from "./consumer/useRealTimeConsumer.js";
11
11
  import { createRealTimeConsumerStore as I } from "./consumer/store.js";
12
- import { createRealTimeProducerRuntime as D, createRealtimeRuntime as O } from "./runtime/runtime.js";
13
- import { createAtmosphereOnlyRealTimeProducerRuntime as L } from "./runtime/runtimeAtmosphereOnly.js";
14
- import { ensureGClickRealtimeProducerRuntime as F } from "./runtime/runtimeRegistry.js";
15
- import { createEnsureGClickRealtimeProducerRuntime as H, disposeGClickRealtimeProducerRuntime as v } from "./runtime/runtimeRegistry.shared.js";
16
- import { ensureGClickAtmosphereOnlyRealtimeProducerRuntime as N } from "./runtime/runtimeRegistryAtmosphereOnly.js";
17
- import { createGClickAtmosphereOnlyRealtimeHostRuntime as z, createGClickRealtimeHostRuntimeFromPreset as K, resolveGClickRealtimeProducerTools as V } from "./host/hostRuntime.js";
18
- import { createGClickAtmosphereRealtimeHostRuntimeStoreKey as j, createGClickAtmosphereRealtimeResourceTypeConfig as q, createGClickDummyRealtimeHostRuntimeStoreKey as w, createGClickRealtimeHostRuntimeFromLaunchContract as B, normalizeGClickRealtimeFallbackTransport as J, normalizeGClickRealtimeSessionId as Q, resolveGClickRealtimeAtmosphereHost as W } from "./host/launchContract.js";
19
- import { EnumResourceTypesIds as Z, PROCCESS_MESSAGES_INTERVAL as $, REALTIME_CONSUMER_SOTORE_ID as ee, REALTIME_PRODUCER_SOTORE_ID as re, RESOURCE_TYPE_DEVICES as oe } from "./shared/constants.js";
12
+ import { createRealtimeRuntime as d } from "./runtime/runtime.js";
13
+ import { createAtmosphereRealtimeRuntime as y } from "./runtime/runtimeAtmosphereOnly.js";
14
+ import { getOrCreateGClickRealtimeRuntime as L } from "./runtime/runtimeRegistry.js";
15
+ import { createGetOrCreateGClickRealtimeRuntime as g, disposeGClickRealtimeRuntime as F } from "./runtime/runtimeRegistry.shared.js";
16
+ import { getOrCreateGClickAtmosphereRealtimeRuntime as H } from "./runtime/runtimeRegistryAtmosphereOnly.js";
17
+ import { launchGClickAtmosphereHostRuntime as Y, launchGClickDummyHostRuntime as z, resolveGClickRealtimeTools as K } from "./host/hostRuntime.js";
18
+ import { createGClickAtmosphereRuntimeConfig as b, createGClickAtmosphereRuntimeKey as j, createGClickDummyRuntimeKey as q, launchGClickRealtimeHostRuntime as w, normalizeGClickRealtimeFallbackTransport as B, normalizeGClickRealtimeSessionId as J, resolveGClickRealtimeAtmosphereHost as Q } from "./host/launchContract.js";
19
+ import { EnumResourceTypesIds as X, PROCCESS_MESSAGES_INTERVAL as Z, REALTIME_CONSUMER_SOTORE_ID as $, REALTIME_PRODUCER_SOTORE_ID as ee, RESOURCE_TYPE_DEVICES as re } from "./shared/constants.js";
20
20
  export {
21
- Z as EnumResourceTypesIds,
22
- $ as PROCCESS_MESSAGES_INTERVAL,
23
- ee as REALTIME_CONSUMER_SOTORE_ID,
24
- re as REALTIME_PRODUCER_SOTORE_ID,
21
+ X as EnumResourceTypesIds,
22
+ Z as PROCCESS_MESSAGES_INTERVAL,
23
+ $ as REALTIME_CONSUMER_SOTORE_ID,
24
+ ee as REALTIME_PRODUCER_SOTORE_ID,
25
25
  m as REAL_TIME_DUMMY_DEFAULT_PRESET_ID,
26
26
  i as REAL_TIME_DUMMY_SIMULATION_PRESETS,
27
- oe as RESOURCE_TYPE_DEVICES,
28
- _ as RealTimeConsumerContext,
29
- d as RealTimeConsumerProvider,
27
+ re as RESOURCE_TYPE_DEVICES,
28
+ G as RealTimeConsumerContext,
29
+ k as RealTimeConsumerProvider,
30
30
  u as RealTimeDummySimulationPresetId,
31
- n as RealTimeProducerContext,
32
- T as RealTimeProducerProvider,
31
+ C as RealTimeProducerContext,
32
+ n as RealTimeProducerProvider,
33
33
  S as SourceDataFactory,
34
- L as createAtmosphereOnlyRealTimeProducerRuntime,
35
- H as createEnsureGClickRealtimeProducerRuntime,
36
- z as createGClickAtmosphereOnlyRealtimeHostRuntime,
37
- j as createGClickAtmosphereRealtimeHostRuntimeStoreKey,
38
- q as createGClickAtmosphereRealtimeResourceTypeConfig,
39
- w as createGClickDummyRealtimeHostRuntimeStoreKey,
40
- B as createGClickRealtimeHostRuntimeFromLaunchContract,
41
- K as createGClickRealtimeHostRuntimeFromPreset,
34
+ y as createAtmosphereRealtimeRuntime,
35
+ b as createGClickAtmosphereRuntimeConfig,
36
+ j as createGClickAtmosphereRuntimeKey,
37
+ q as createGClickDummyRuntimeKey,
38
+ g as createGetOrCreateGClickRealtimeRuntime,
42
39
  I as createRealTimeConsumerStore,
43
40
  l as createRealTimeDummyResourceTypeConfigFromPreset,
44
41
  R as createRealTimeDummySimulationConfigFromPreset,
45
- D as createRealTimeProducerRuntime,
46
- P as createRealTimeProducerStore,
42
+ f as createRealTimeProducerStore,
47
43
  o as createRealTimeProducerTools,
48
- O as createRealtimeRuntime,
49
- v as disposeGClickRealtimeProducerRuntime,
50
- N as ensureGClickAtmosphereOnlyRealtimeProducerRuntime,
51
- F as ensureGClickRealtimeProducerRuntime,
52
- J as normalizeGClickRealtimeFallbackTransport,
53
- Q as normalizeGClickRealtimeSessionId,
54
- W as resolveGClickRealtimeAtmosphereHost,
55
- V as resolveGClickRealtimeProducerTools,
56
- G as useRealTimeConsumer,
57
- C as useRealTimeProducer
44
+ d as createRealtimeRuntime,
45
+ F as disposeGClickRealtimeRuntime,
46
+ H as getOrCreateGClickAtmosphereRealtimeRuntime,
47
+ L as getOrCreateGClickRealtimeRuntime,
48
+ Y as launchGClickAtmosphereHostRuntime,
49
+ z as launchGClickDummyHostRuntime,
50
+ w as launchGClickRealtimeHostRuntime,
51
+ B as normalizeGClickRealtimeFallbackTransport,
52
+ J as normalizeGClickRealtimeSessionId,
53
+ Q as resolveGClickRealtimeAtmosphereHost,
54
+ K as resolveGClickRealtimeTools,
55
+ A as useRealTimeConsumer,
56
+ T as useRealTimeProducer
58
57
  };
@@ -1,14 +1,14 @@
1
1
  import { j as u } from "../../_virtual/jsx-runtime.js";
2
- import { r as e } from "../../_virtual/index.js";
3
- import { createRealTimeProducerRuntime as c } from "../runtime/runtime.js";
4
- const i = e.createContext(
2
+ import { r } from "../../_virtual/index.js";
3
+ import { createRealtimeRuntime as c } from "../runtime/runtime.js";
4
+ const i = r.createContext(
5
5
  null
6
6
  );
7
7
  function f(t) {
8
- const { children: o, ...n } = t, r = e.useRef(null);
9
- return r.current || (r.current = c(n)), e.useEffect(() => () => {
10
- r.current?.dispose();
11
- }, []), /* @__PURE__ */ u.jsx(i.Provider, { value: r.current.store, children: o });
8
+ const { children: o, ...n } = t, e = r.useRef(null);
9
+ return e.current || (e.current = c(n)), r.useEffect(() => () => {
10
+ e.current?.dispose();
11
+ }, []), /* @__PURE__ */ u.jsx(i.Provider, { value: e.current.store, children: o });
12
12
  }
13
13
  export {
14
14
  i as RealTimeProducerContext,
@@ -1,10 +1,10 @@
1
- export { createRealtimeRuntime, createRealTimeProducerRuntime, } from './runtime';
2
- export type { CreateRealTimeProducerRuntimeProps, CreateRealtimeRuntimeProps, RealTimeProducerRuntime, RealtimeGClickRuntime, } from './runtime';
3
- export { createAtmosphereOnlyRealTimeProducerRuntime, } from './runtimeAtmosphereOnly';
4
- export type { CreateAtmosphereOnlyRealTimeProducerRuntimeProps, } from './runtimeAtmosphereOnly';
5
- export { ensureGClickRealtimeProducerRuntime, disposeGClickRealtimeProducerRuntime, } from './runtimeRegistry';
6
- export { createEnsureGClickRealtimeProducerRuntime, } from './runtimeRegistry.shared';
7
- export { ensureGClickAtmosphereOnlyRealtimeProducerRuntime, } from './runtimeRegistryAtmosphereOnly';
8
- export type { EnsureGClickAtmosphereOnlyRealtimeProducerRuntimeProps, } from './runtimeRegistryAtmosphereOnly';
9
- export type { EnsureGClickRealtimeProducerRuntimeProps, } from './runtimeRegistry.shared';
1
+ export { createRealtimeRuntime, } from './runtime';
2
+ export type { CreateRealtimeRuntimeProps, GClickRealtimeRuntime, } from './runtime';
3
+ export { createAtmosphereRealtimeRuntime, } from './runtimeAtmosphereOnly';
4
+ export type { CreateAtmosphereRealtimeRuntimeProps, } from './runtimeAtmosphereOnly';
5
+ export { getOrCreateGClickRealtimeRuntime, disposeGClickRealtimeRuntime, } from './runtimeRegistry';
6
+ export { createGetOrCreateGClickRealtimeRuntime, } from './runtimeRegistry.shared';
7
+ export { getOrCreateGClickAtmosphereRealtimeRuntime, } from './runtimeRegistryAtmosphereOnly';
8
+ export type { GetOrCreateGClickAtmosphereRealtimeRuntimeProps, } from './runtimeRegistryAtmosphereOnly';
9
+ export type { GetOrCreateGClickRealtimeRuntimeProps, } from './runtimeRegistry.shared';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,kCAAkC,EAClC,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,2CAA2C,GAC5C,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,gDAAgD,GACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iDAAiD,GAClD,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,sDAAsD,GACvD,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,wCAAwC,GACzC,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,oCAAoC,GACrC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0CAA0C,GAC3C,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,+CAA+C,GAChD,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,qCAAqC,GACtC,MAAM,0BAA0B,CAAC"}
@@ -1,24 +1,16 @@
1
1
  import { RealtimeRuntime, RealTimeProducerTools } from '@m4l/realtime-runtime';
2
- import { CreateRealtimeRuntimeProps, CreateRealTimeProducerRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
2
+ import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
3
3
  import { RealTimeProducerStoreType } from '../producer/store';
4
- export type { CreateRealtimeRuntimeProps, CreateRealTimeProducerRuntimeProps, } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
4
+ export type { CreateRealtimeRuntimeProps, RealtimeRuntimeBundle, } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
5
5
  /**
6
- * GClick runtime object that keeps the neutral engine API plus the current compatibility fields.
6
+ * GClick runtime object that keeps the neutral engine API plus the current compatibility fields.
7
7
  */
8
- export interface RealTimeProducerRuntime extends RealtimeRuntime {
8
+ export interface GClickRealtimeRuntime extends RealtimeRuntime {
9
9
  store: RealTimeProducerStoreType;
10
10
  tools: RealTimeProducerTools;
11
11
  }
12
12
  /**
13
- * Neutral alias for the GClick runtime shape.
13
+ * Create one GClick runtime that supports every registered source mechanism.
14
14
  */
15
- export type RealtimeGClickRuntime = RealTimeProducerRuntime;
16
- /**
17
- * Create one producer runtime that supports every registered source mechanism.
18
- */
19
- export declare function createRealtimeRuntime(props: CreateRealtimeRuntimeProps): RealtimeGClickRuntime;
20
- /**
21
- * Compatibility alias kept while current GClick consumers still use producer naming.
22
- */
23
- export declare const createRealTimeProducerRuntime: (props: CreateRealTimeProducerRuntimeProps) => RealTimeProducerRuntime;
15
+ export declare function createRealtimeRuntime(props: CreateRealtimeRuntimeProps): GClickRealtimeRuntime;
24
16
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,YAAY,EACV,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,KAAK,EAAE,yBAAyB,CAAC;IACjC,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAqB5D;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,0BAA0B,GAChC,qBAAqB,CAUvB;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,EACf,CACvB,KAAK,EAAE,kCAAkC,KACtC,uBAAuB,CAAC"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,YAAY,EACV,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,KAAK,EAAE,yBAAyB,CAAC;IACjC,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAqBD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,0BAA0B,GAChC,qBAAqB,CAUvB"}
@@ -1,24 +1,22 @@
1
- import { SourceDataFactory as c } from "../producer/sourceDataFactory.js";
2
- import { createRealTimeProducerRuntimeWithSourceDataFactory as o } from "@m4l/realtime-runtime/web";
3
- import { recordRealtimePerformanceMetric as a } from "../shared/performanceMetrics.js";
4
- function i(e) {
1
+ import { SourceDataFactory as o } from "../producer/sourceDataFactory.js";
2
+ import { createRealtimeRuntimeBundle as c } from "@m4l/realtime-runtime/web";
3
+ import { recordRealtimePerformanceMetric as n } from "../shared/performanceMetrics.js";
4
+ function a(e) {
5
5
  return (r, t) => {
6
- a(r, t), e?.(r, t);
6
+ n(r, t), e?.(r, t);
7
7
  };
8
8
  }
9
- function n(e) {
10
- return o(
9
+ function u(e) {
10
+ return c(
11
11
  {
12
12
  ...e,
13
- onPerformanceMetric: i(
13
+ onPerformanceMetric: a(
14
14
  e.onPerformanceMetric
15
15
  )
16
16
  },
17
- c.createSourceData
17
+ o.createSourceData
18
18
  );
19
19
  }
20
- const R = n;
21
20
  export {
22
- R as createRealTimeProducerRuntime,
23
- n as createRealtimeRuntime
21
+ u as createRealtimeRuntime
24
22
  };
@@ -1,11 +1,11 @@
1
- import { CreateRealTimeProducerRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
1
+ import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
2
2
  import { RealTimeResourceSourceMechanismConfigAtmosphere } from '../shared/runtimeTypes';
3
- import { RealTimeProducerRuntime } from './runtime';
4
- export type CreateAtmosphereOnlyRealTimeProducerRuntimeProps = Omit<CreateRealTimeProducerRuntimeProps, 'resourceTypesConfig'> & {
3
+ import { GClickRealtimeRuntime } from './runtime';
4
+ export type CreateAtmosphereRealtimeRuntimeProps = Omit<CreateRealtimeRuntimeProps, 'resourceTypesConfig'> & {
5
5
  resourceTypesConfig: RealTimeResourceSourceMechanismConfigAtmosphere[];
6
6
  };
7
7
  /**
8
- * Create one producer runtime restricted to Atmosphere-backed resource types.
8
+ * Create one GClick runtime restricted to Atmosphere-backed resource types.
9
9
  */
10
- export declare function createAtmosphereOnlyRealTimeProducerRuntime(props: CreateAtmosphereOnlyRealTimeProducerRuntimeProps): RealTimeProducerRuntime;
10
+ export declare function createAtmosphereRealtimeRuntime(props: CreateAtmosphereRealtimeRuntimeProps): GClickRealtimeRuntime;
11
11
  //# sourceMappingURL=runtimeAtmosphereOnly.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeAtmosphereOnly.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeAtmosphereOnly.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,+CAA+C,EAChD,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,MAAM,gDAAgD,GAAG,IAAI,CACjE,kCAAkC,EAClC,qBAAqB,CACtB,GAAG;IACF,mBAAmB,EAAE,+CAA+C,EAAE,CAAC;CACxE,CAAC;AAqBF;;GAEG;AACH,wBAAgB,2CAA2C,CACzD,KAAK,EAAE,gDAAgD,GACtD,uBAAuB,CAUzB"}
1
+ {"version":3,"file":"runtimeAtmosphereOnly.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeAtmosphereOnly.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,+CAA+C,EAChD,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,0BAA0B,EAC1B,qBAAqB,CACtB,GAAG;IACF,mBAAmB,EAAE,+CAA+C,EAAE,CAAC;CACxE,CAAC;AAqBF;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,oCAAoC,GAC1C,qBAAqB,CAUvB"}
@@ -1,16 +1,16 @@
1
1
  import { createAtmosphereSourceData as o } from "@m4l/realtime-runtime";
2
- import { createRealTimeProducerRuntimeWithSourceDataFactory as c } from "@m4l/realtime-runtime/web";
3
- import { recordRealtimePerformanceMetric as i } from "../shared/performanceMetrics.js";
4
- function m(e) {
2
+ import { createRealtimeRuntimeBundle as c } from "@m4l/realtime-runtime/web";
3
+ import { recordRealtimePerformanceMetric as m } from "../shared/performanceMetrics.js";
4
+ function n(e) {
5
5
  return (r, t) => {
6
- i(r, t), e?.(r, t);
6
+ m(r, t), e?.(r, t);
7
7
  };
8
8
  }
9
9
  function u(e) {
10
10
  return c(
11
11
  {
12
12
  ...e,
13
- onPerformanceMetric: m(
13
+ onPerformanceMetric: n(
14
14
  e.onPerformanceMetric
15
15
  )
16
16
  },
@@ -18,5 +18,5 @@ function u(e) {
18
18
  );
19
19
  }
20
20
  export {
21
- u as createAtmosphereOnlyRealTimeProducerRuntime
21
+ u as createAtmosphereRealtimeRuntime
22
22
  };
@@ -1,8 +1,8 @@
1
- import { disposeGClickRealtimeProducerRuntime, EnsureGClickRealtimeProducerRuntimeProps } from './runtimeRegistry.shared';
1
+ import { disposeGClickRealtimeRuntime, GetOrCreateGClickRealtimeRuntimeProps } from './runtimeRegistry.shared';
2
2
  /**
3
- * Lazily create or reuse one host-owned producer runtime for the requested store key.
3
+ * Lazily create or reuse one host-owned runtime for the requested runtime key.
4
4
  */
5
- export declare const ensureGClickRealtimeProducerRuntime: (props: import('./runtimeRegistry.shared').EnsureGClickRealtimeRuntimeProps<import('../../../../../dist/packages/@m4l/realtime-runtime/web').CreateRealTimeProducerRuntimeProps>) => import('./runtime').RealTimeProducerRuntime;
6
- export { disposeGClickRealtimeProducerRuntime };
7
- export type { EnsureGClickRealtimeProducerRuntimeProps };
5
+ export declare const getOrCreateGClickRealtimeRuntime: (props: import('./runtimeRegistry.shared').GetOrCreateGClickRealtimeRuntimePropsFor<import('../../../../../dist/packages/@m4l/realtime-runtime/web').CreateRealtimeRuntimeProps>) => import('./runtime').GClickRealtimeRuntime;
6
+ export { disposeGClickRealtimeRuntime };
7
+ export type { GetOrCreateGClickRealtimeRuntimeProps };
8
8
  //# sourceMappingURL=runtimeRegistry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRegistry.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oCAAoC,EACpC,KAAK,wCAAwC,EAC9C,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,mCAAmC,qMAG5C,CAAC;AAEL,OAAO,EAAE,oCAAoC,EAAE,CAAC;AAEhD,YAAY,EAAE,wCAAwC,EAAE,CAAC"}
1
+ {"version":3,"file":"runtimeRegistry.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,4BAA4B,EAC5B,KAAK,qCAAqC,EAC3C,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,gCAAgC,mMAGzC,CAAC;AAEL,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAExC,YAAY,EAAE,qCAAqC,EAAE,CAAC"}
@@ -1,10 +1,10 @@
1
- import { createRealTimeProducerRuntime as e } from "./runtime.js";
2
- import { createEnsureGClickRealtimeProducerRuntime as r } from "./runtimeRegistry.shared.js";
3
- import { disposeGClickRealtimeProducerRuntime as c } from "./runtimeRegistry.shared.js";
4
- const m = r(e, {
1
+ import { createRealtimeRuntime as e } from "./runtime.js";
2
+ import { createGetOrCreateGClickRealtimeRuntime as t } from "./runtimeRegistry.shared.js";
3
+ import { disposeGClickRealtimeRuntime as l } from "./runtimeRegistry.shared.js";
4
+ const r = t(e, {
5
5
  runtimeFamily: "standard"
6
6
  });
7
7
  export {
8
- c as disposeGClickRealtimeProducerRuntime,
9
- m as ensureGClickRealtimeProducerRuntime
8
+ l as disposeGClickRealtimeRuntime,
9
+ r as getOrCreateGClickRealtimeRuntime
10
10
  };
@@ -1,23 +1,23 @@
1
1
  import { RealtimeRuntime } from '@m4l/realtime-runtime';
2
- import { CreateRealTimeProducerRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
2
+ import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
3
3
  export type GClickRealtimeRuntimeFamily = 'standard' | 'atmosphere-only';
4
4
  export interface GClickRealtimeRuntimeKeyProps {
5
- storeKey: string;
5
+ runtimeKey: string;
6
6
  storeId?: string;
7
7
  }
8
- export type EnsureGClickRealtimeRuntimeProps<TCreateProps extends {
8
+ export type GetOrCreateGClickRealtimeRuntimePropsFor<TCreateProps extends {
9
9
  storeId?: string;
10
10
  }> = Omit<TCreateProps, 'storeId'> & GClickRealtimeRuntimeKeyProps;
11
- export type EnsureGClickRealtimeProducerRuntimeProps = EnsureGClickRealtimeRuntimeProps<CreateRealTimeProducerRuntimeProps>;
12
- export interface CreateEnsureGClickRealtimeProducerRuntimeOptions {
11
+ export type GetOrCreateGClickRealtimeRuntimeProps = GetOrCreateGClickRealtimeRuntimePropsFor<CreateRealtimeRuntimeProps>;
12
+ export interface CreateGetOrCreateGClickRealtimeRuntimeOptions {
13
13
  runtimeFamily?: GClickRealtimeRuntimeFamily;
14
14
  }
15
15
  /**
16
- * Create one typed ensure helper for GClick-owned runtime factories.
16
+ * Create one typed get-or-create helper for GClick-owned runtime factories.
17
17
  */
18
- export declare function createEnsureGClickRealtimeProducerRuntime<TCreateProps extends CreateRealTimeProducerRuntimeProps, TRuntime extends RealtimeRuntime>(createRuntime: (props: TCreateProps) => TRuntime, options?: CreateEnsureGClickRealtimeProducerRuntimeOptions): (props: EnsureGClickRealtimeRuntimeProps<TCreateProps>) => TRuntime;
18
+ export declare function createGetOrCreateGClickRealtimeRuntime<TCreateProps extends CreateRealtimeRuntimeProps, TRuntime extends RealtimeRuntime>(createRuntime: (props: TCreateProps) => TRuntime, options?: CreateGetOrCreateGClickRealtimeRuntimeOptions): (props: GetOrCreateGClickRealtimeRuntimePropsFor<TCreateProps>) => TRuntime;
19
19
  /**
20
- * Dispose every cached GClick runtime family associated with the provided public store key.
20
+ * Dispose every cached GClick runtime family associated with the provided public runtime key.
21
21
  */
22
- export declare function disposeGClickRealtimeProducerRuntime(storeKey: string): void;
22
+ export declare function disposeGClickRealtimeRuntime(runtimeKey: string): void;
23
23
  //# sourceMappingURL=runtimeRegistry.shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRegistry.shared.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistry.shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAEpF,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,gCAAgC,CAC1C,YAAY,SAAS;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,IACvC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,6BAA6B,CAAC;AAElE,MAAM,MAAM,wCAAwC,GAClD,gCAAgC,CAAC,kCAAkC,CAAC,CAAC;AAEvE,MAAM,WAAW,gDAAgD;IAC/D,aAAa,CAAC,EAAE,2BAA2B,CAAC;CAC7C;AA+BD;;GAEG;AACH,wBAAgB,yCAAyC,CACvD,YAAY,SAAS,kCAAkC,EACvD,QAAQ,SAAS,eAAe,EAEhC,aAAa,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,QAAQ,EAChD,OAAO,GAAE,gDAAqD,IAQ5D,OAAO,gCAAgC,CAAC,YAAY,CAAC,KACpD,QAAQ,CAeZ;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,MAAM,QAepE"}
1
+ {"version":3,"file":"runtimeRegistry.shared.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistry.shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,wCAAwC,CAClD,YAAY,SAAS;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,IACvC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,6BAA6B,CAAC;AAElE,MAAM,MAAM,qCAAqC,GAC/C,wCAAwC,CAAC,0BAA0B,CAAC,CAAC;AAEvE,MAAM,WAAW,6CAA6C;IAC5D,aAAa,CAAC,EAAE,2BAA2B,CAAC;CAC7C;AA+BD;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,YAAY,SAAS,0BAA0B,EAC/C,QAAQ,SAAS,eAAe,EAEhC,aAAa,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,QAAQ,EAChD,OAAO,GAAE,6CAAkD,IAWzD,OAAO,wCAAwC,CAAC,YAAY,CAAC,KAC5D,QAAQ,CAeZ;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,QAe9D"}
@@ -1,40 +1,40 @@
1
- import { createEnsureRealtimeRuntime as a, disposeRealtimeRuntime as l } from "@m4l/realtime-runtime";
2
- const R = "standard", d = [
1
+ import { createGetOrCreateRuntime as R, disposeRealtimeRuntime as l } from "@m4l/realtime-runtime";
2
+ const s = "standard", C = [
3
3
  "standard",
4
4
  "atmosphere-only"
5
5
  ];
6
- function o(t) {
6
+ function m(t) {
7
7
  const e = t.trim();
8
8
  if (!e)
9
- throw new Error("GClick realtime runtime requires a non-empty storeKey.");
9
+ throw new Error("GClick realtime runtime requires a non-empty runtimeKey.");
10
10
  return e;
11
11
  }
12
- function m(t, e) {
13
- return `gclick-realtime:${e}:${o(t)}`;
12
+ function o(t, e) {
13
+ return `gclick-realtime:${e}:${m(t)}`;
14
14
  }
15
15
  function I(t, e = {}) {
16
16
  const {
17
- runtimeFamily: r = R
18
- } = e, c = a(t);
17
+ runtimeFamily: r = s
18
+ } = e, a = R(t);
19
19
  return function(u) {
20
- const { storeKey: s, ...n } = u, i = o(s);
21
- return c({
20
+ const { runtimeKey: c, ...i } = u, n = m(c);
21
+ return a({
22
22
  createProps: {
23
- ...n,
24
- storeId: n.storeId ?? i
23
+ ...i,
24
+ storeId: i.storeId ?? n
25
25
  },
26
- runtimeKey: m(
27
- i,
26
+ runtimeKey: o(
27
+ n,
28
28
  r
29
29
  )
30
30
  });
31
31
  };
32
32
  }
33
- function C(t) {
33
+ function E(t) {
34
34
  const e = t.trim();
35
- e && d.forEach((r) => {
35
+ e && C.forEach((r) => {
36
36
  l(
37
- m(
37
+ o(
38
38
  e,
39
39
  r
40
40
  )
@@ -42,6 +42,6 @@ function C(t) {
42
42
  });
43
43
  }
44
44
  export {
45
- I as createEnsureGClickRealtimeProducerRuntime,
46
- C as disposeGClickRealtimeProducerRuntime
45
+ I as createGetOrCreateGClickRealtimeRuntime,
46
+ E as disposeGClickRealtimeRuntime
47
47
  };
@@ -1,9 +1,9 @@
1
- import { disposeGClickRealtimeProducerRuntime, EnsureGClickRealtimeRuntimeProps } from './runtimeRegistry.shared';
2
- import { CreateAtmosphereOnlyRealTimeProducerRuntimeProps } from './runtimeAtmosphereOnly';
3
- export type EnsureGClickAtmosphereOnlyRealtimeProducerRuntimeProps = EnsureGClickRealtimeRuntimeProps<CreateAtmosphereOnlyRealTimeProducerRuntimeProps>;
1
+ import { disposeGClickRealtimeRuntime, GetOrCreateGClickRealtimeRuntimePropsFor } from './runtimeRegistry.shared';
2
+ import { CreateAtmosphereRealtimeRuntimeProps } from './runtimeAtmosphereOnly';
3
+ export type GetOrCreateGClickAtmosphereRealtimeRuntimeProps = GetOrCreateGClickRealtimeRuntimePropsFor<CreateAtmosphereRealtimeRuntimeProps>;
4
4
  /**
5
- * Lazily create or reuse one Atmosphere-only host-owned producer runtime for the requested store key.
5
+ * Lazily create or reuse one Atmosphere-only host-owned runtime for the requested runtime key.
6
6
  */
7
- export declare const ensureGClickAtmosphereOnlyRealtimeProducerRuntime: (props: EnsureGClickRealtimeRuntimeProps<CreateAtmosphereOnlyRealTimeProducerRuntimeProps>) => import('./runtime').RealTimeProducerRuntime;
8
- export { disposeGClickRealtimeProducerRuntime };
7
+ export declare const getOrCreateGClickAtmosphereRealtimeRuntime: (props: GetOrCreateGClickRealtimeRuntimePropsFor<CreateAtmosphereRealtimeRuntimeProps>) => import('./runtime').GClickRealtimeRuntime;
8
+ export { disposeGClickRealtimeRuntime };
9
9
  //# sourceMappingURL=runtimeRegistryAtmosphereOnly.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeRegistryAtmosphereOnly.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistryAtmosphereOnly.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oCAAoC,EACpC,KAAK,gCAAgC,EACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,gDAAgD,EACjD,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,sDAAsD,GAChE,gCAAgC,CAAC,gDAAgD,CAAC,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,iDAAiD,4IAM3D,CAAC;AAEJ,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"runtimeRegistryAtmosphereOnly.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistryAtmosphereOnly.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,4BAA4B,EAC5B,KAAK,wCAAwC,EAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,oCAAoC,EACrC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,+CAA+C,GACzD,wCAAwC,CAAC,oCAAoC,CAAC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,0CAA0C,sIAMpD,CAAC;AAEJ,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -1,13 +1,13 @@
1
- import { createAtmosphereOnlyRealTimeProducerRuntime as e } from "./runtimeAtmosphereOnly.js";
2
- import { createEnsureGClickRealtimeProducerRuntime as r } from "./runtimeRegistry.shared.js";
3
- import { disposeGClickRealtimeProducerRuntime as n } from "./runtimeRegistry.shared.js";
4
- const o = r(
1
+ import { createAtmosphereRealtimeRuntime as e } from "./runtimeAtmosphereOnly.js";
2
+ import { createGetOrCreateGClickRealtimeRuntime as t } from "./runtimeRegistry.shared.js";
3
+ import { disposeGClickRealtimeRuntime as l } from "./runtimeRegistry.shared.js";
4
+ const i = t(
5
5
  e,
6
6
  {
7
7
  runtimeFamily: "atmosphere-only"
8
8
  }
9
9
  );
10
10
  export {
11
- n as disposeGClickRealtimeProducerRuntime,
12
- o as ensureGClickAtmosphereOnlyRealtimeProducerRuntime
11
+ l as disposeGClickRealtimeRuntime,
12
+ i as getOrCreateGClickAtmosphereRealtimeRuntime
13
13
  };