@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.
- package/dummy/catalogs/baseDeviceTemplate.d.ts +2 -5
- package/dummy/catalogs/baseDeviceTemplate.d.ts.map +1 -1
- package/dummy/catalogs/baseDeviceTemplate.js +3 -3
- package/dummy/catalogs/blueprints.d.ts +8 -8
- package/dummy/catalogs/blueprints.d.ts.map +1 -1
- package/dummy/catalogs/blueprints.js +44 -45
- package/package.json +1 -1
- package/web/host/hostRuntime.d.ts +8 -8
- package/web/host/hostRuntime.d.ts.map +1 -1
- package/web/host/hostRuntime.js +9 -9
- package/web/host/index.d.ts +3 -3
- package/web/host/index.d.ts.map +1 -1
- package/web/host/launchContract.d.ts +9 -9
- package/web/host/launchContract.d.ts.map +1 -1
- package/web/host/launchContract.js +28 -28
- package/web/index.js +41 -42
- package/web/producer/RealTimeProducerContext.js +7 -7
- package/web/runtime/index.d.ts +9 -9
- package/web/runtime/index.d.ts.map +1 -1
- package/web/runtime/runtime.d.ts +6 -14
- package/web/runtime/runtime.d.ts.map +1 -1
- package/web/runtime/runtime.js +10 -12
- package/web/runtime/runtimeAtmosphereOnly.d.ts +5 -5
- package/web/runtime/runtimeAtmosphereOnly.d.ts.map +1 -1
- package/web/runtime/runtimeAtmosphereOnly.js +6 -6
- package/web/runtime/runtimeRegistry.d.ts +5 -5
- package/web/runtime/runtimeRegistry.d.ts.map +1 -1
- package/web/runtime/runtimeRegistry.js +6 -6
- package/web/runtime/runtimeRegistry.shared.d.ts +9 -9
- package/web/runtime/runtimeRegistry.shared.d.ts.map +1 -1
- package/web/runtime/runtimeRegistry.shared.js +19 -19
- package/web/runtime/runtimeRegistryAtmosphereOnly.d.ts +6 -6
- package/web/runtime/runtimeRegistryAtmosphereOnly.d.ts.map +1 -1
- package/web/runtime/runtimeRegistryAtmosphereOnly.js +6 -6
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { DeviceDataType } from '../../contracts/index';
|
|
2
2
|
/**
|
|
3
|
-
* Reference icon
|
|
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
|
|
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 = "
|
|
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:
|
|
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
|
-
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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":"
|
|
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
|
|
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
|
|
4
|
-
HEAVY_TRUCK: "
|
|
5
|
-
|
|
6
|
-
MOTORCYCLE: "
|
|
7
|
-
SEDAN: "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
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
|
|
27
|
+
const s = {
|
|
29
28
|
forest_truck: {
|
|
30
29
|
active: !1,
|
|
31
30
|
alias: "North ridge",
|
|
32
31
|
blueprintId: "forest_truck",
|
|
33
|
-
department:
|
|
34
|
-
group:
|
|
35
|
-
iconBgColor:
|
|
36
|
-
iconId:
|
|
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:
|
|
51
|
-
group:
|
|
52
|
-
iconBgColor:
|
|
53
|
-
iconId:
|
|
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:
|
|
58
|
+
department: o(c),
|
|
60
59
|
group: c,
|
|
61
60
|
iconBgColor: c.bgColor,
|
|
62
|
-
iconId:
|
|
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
|
|
69
|
-
group:
|
|
70
|
-
iconBgColor:
|
|
71
|
-
iconId:
|
|
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:
|
|
78
|
-
group:
|
|
79
|
-
iconBgColor:
|
|
80
|
-
iconId:
|
|
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:
|
|
85
|
+
department: o(i),
|
|
87
86
|
group: i,
|
|
88
87
|
iconBgColor: i.bgColor,
|
|
89
|
-
iconId:
|
|
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:
|
|
96
|
-
group:
|
|
97
|
-
iconBgColor:
|
|
98
|
-
iconId:
|
|
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:
|
|
105
|
-
group:
|
|
106
|
-
iconBgColor:
|
|
107
|
-
iconId:
|
|
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
|
|
114
|
-
group:
|
|
115
|
-
iconBgColor:
|
|
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
|
-
|
|
122
|
-
|
|
120
|
+
s as REAL_TIME_DUMMY_DEVICE_BLUEPRINTS,
|
|
121
|
+
C as REAL_TIME_DUMMY_DEVICE_IDS
|
|
123
122
|
};
|
package/package.json
CHANGED
|
@@ -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
|
|
18
|
+
export interface LaunchGClickDummyHostRuntimeProps {
|
|
19
19
|
presetId: RealTimeDummySimulationPresetId;
|
|
20
20
|
resourceTypeId: RealTimeResourceTypeId;
|
|
21
|
-
|
|
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
|
|
29
|
+
export interface LaunchGClickAtmosphereHostRuntimeProps {
|
|
30
30
|
resourceTypesConfig: RealTimeResourceSourceMechanismConfigAtmosphere[];
|
|
31
|
-
|
|
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
|
|
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
|
|
42
|
+
export declare function launchGClickAtmosphereHostRuntime(props: LaunchGClickAtmosphereHostRuntimeProps): GClickRealtimeHostRuntime;
|
|
43
43
|
/**
|
|
44
|
-
* Resolve the host-owned
|
|
44
|
+
* Resolve the host-owned realtime tools forwarded into the current MF runtime bag.
|
|
45
45
|
*/
|
|
46
|
-
export declare function
|
|
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,
|
|
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"}
|
package/web/host/hostRuntime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
|
|
10
|
+
runtimeKey: n
|
|
11
11
|
} = r;
|
|
12
12
|
return {
|
|
13
13
|
realtime: {
|
|
14
|
-
producerTools:
|
|
15
|
-
|
|
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
|
|
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
|
|
45
|
-
f as
|
|
46
|
-
|
|
44
|
+
d as launchGClickAtmosphereHostRuntime,
|
|
45
|
+
f as launchGClickDummyHostRuntime,
|
|
46
|
+
C as resolveGClickRealtimeTools
|
|
47
47
|
};
|
package/web/host/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
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
|
package/web/host/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
51
|
+
* Build the runtime key for one deterministic dummy launch contract.
|
|
52
52
|
*/
|
|
53
|
-
export declare function
|
|
53
|
+
export declare function createGClickDummyRuntimeKey(props: Pick<GClickRealtimeDummyHostLaunchContract, 'presetId' | 'runtimeKeyPrefix'>): string;
|
|
54
54
|
/**
|
|
55
|
-
* Build the runtime
|
|
55
|
+
* Build the runtime key for one Atmosphere-backed launch contract.
|
|
56
56
|
*/
|
|
57
|
-
export declare function
|
|
57
|
+
export declare function createGClickAtmosphereRuntimeKey(props: Pick<GClickRealtimeAtmosphereHostLaunchContract, 'fallbackTransport' | 'hostApiRemote' | 'sessionId' | 'sessionIdFallback' | 'runtimeKeyPrefix'>): string;
|
|
58
58
|
/**
|
|
59
|
-
* Build the Atmosphere
|
|
59
|
+
* Build the Atmosphere runtime config derived from one shared shell launch contract.
|
|
60
60
|
*/
|
|
61
|
-
export declare function
|
|
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
|
|
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,
|
|
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 {
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return e === "websocket" ? "websocket" :
|
|
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
|
|
6
|
+
function n(e, s = a) {
|
|
7
7
|
return e?.trim() || s;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
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.
|
|
14
|
+
return `${e.runtimeKeyPrefix}:${e.presetId}`;
|
|
15
15
|
}
|
|
16
16
|
function p(e) {
|
|
17
|
-
const s =
|
|
17
|
+
const s = t(
|
|
18
18
|
e.fallbackTransport
|
|
19
|
-
), o =
|
|
19
|
+
), o = n(
|
|
20
20
|
e.sessionId,
|
|
21
21
|
e.sessionIdFallback
|
|
22
22
|
);
|
|
23
|
-
return `${e.
|
|
23
|
+
return `${e.runtimeKeyPrefix}:${e.hostApiRemote}:${o}:${s}`;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
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:
|
|
32
|
-
host:
|
|
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:
|
|
36
|
+
sessionId: n(
|
|
37
37
|
e.sessionId,
|
|
38
38
|
e.sessionIdFallback
|
|
39
39
|
)
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function c(e) {
|
|
43
43
|
if (e.mode === "dummy") {
|
|
44
|
-
const
|
|
45
|
-
return
|
|
44
|
+
const i = d(e);
|
|
45
|
+
return r({
|
|
46
46
|
presetId: e.presetId,
|
|
47
47
|
resourceTypeId: e.resourceTypeId,
|
|
48
|
-
|
|
49
|
-
storeId:
|
|
48
|
+
runtimeKey: i,
|
|
49
|
+
storeId: i,
|
|
50
50
|
storeDevtoolsEnabled: e.storeDevtoolsEnabled ?? !1
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
const s =
|
|
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
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
d as
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
6
|
-
import { useRealTimeProducer as
|
|
7
|
-
import { createRealTimeProducerStore as
|
|
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
|
|
10
|
-
import { useRealTimeConsumer as
|
|
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 {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { EnumResourceTypesIds as
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
re as RESOURCE_TYPE_DEVICES,
|
|
28
|
+
G as RealTimeConsumerContext,
|
|
29
|
+
k as RealTimeConsumerProvider,
|
|
30
30
|
u as RealTimeDummySimulationPresetId,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
C as RealTimeProducerContext,
|
|
32
|
+
n as RealTimeProducerProvider,
|
|
33
33
|
S as SourceDataFactory,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
46
|
-
P as createRealTimeProducerStore,
|
|
42
|
+
f as createRealTimeProducerStore,
|
|
47
43
|
o as createRealTimeProducerTools,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
|
3
|
-
import {
|
|
4
|
-
const i =
|
|
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,
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
}, []), /* @__PURE__ */ u.jsx(i.Provider, { value:
|
|
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,
|
package/web/runtime/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { createRealtimeRuntime,
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
9
|
-
export type {
|
|
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,
|
|
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"}
|
package/web/runtime/runtime.d.ts
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import { RealtimeRuntime, RealTimeProducerTools } from '@m4l/realtime-runtime';
|
|
2
|
-
import { CreateRealtimeRuntimeProps
|
|
2
|
+
import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
3
3
|
import { RealTimeProducerStoreType } from '../producer/store';
|
|
4
|
-
export type { CreateRealtimeRuntimeProps,
|
|
4
|
+
export type { CreateRealtimeRuntimeProps, RealtimeRuntimeBundle, } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
5
5
|
/**
|
|
6
|
-
* GClick runtime object that keeps the neutral
|
|
6
|
+
* GClick runtime object that keeps the neutral engine API plus the current compatibility fields.
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface GClickRealtimeRuntime extends RealtimeRuntime {
|
|
9
9
|
store: RealTimeProducerStoreType;
|
|
10
10
|
tools: RealTimeProducerTools;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Create one GClick runtime that supports every registered source mechanism.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
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,
|
|
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"}
|
package/web/runtime/runtime.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { SourceDataFactory as
|
|
2
|
-
import {
|
|
3
|
-
import { recordRealtimePerformanceMetric as
|
|
4
|
-
function
|
|
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
|
-
|
|
6
|
+
n(r, t), e?.(r, t);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
return
|
|
9
|
+
function u(e) {
|
|
10
|
+
return c(
|
|
11
11
|
{
|
|
12
12
|
...e,
|
|
13
|
-
onPerformanceMetric:
|
|
13
|
+
onPerformanceMetric: a(
|
|
14
14
|
e.onPerformanceMetric
|
|
15
15
|
)
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
o.createSourceData
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
const R = n;
|
|
21
20
|
export {
|
|
22
|
-
|
|
23
|
-
n as createRealtimeRuntime
|
|
21
|
+
u as createRealtimeRuntime
|
|
24
22
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
2
2
|
import { RealTimeResourceSourceMechanismConfigAtmosphere } from '../shared/runtimeTypes';
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
3
|
+
import { GClickRealtimeRuntime } from './runtime';
|
|
4
|
+
export type CreateAtmosphereRealtimeRuntimeProps = Omit<CreateRealtimeRuntimeProps, 'resourceTypesConfig'> & {
|
|
5
5
|
resourceTypesConfig: RealTimeResourceSourceMechanismConfigAtmosphere[];
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
* Create one
|
|
8
|
+
* Create one GClick runtime restricted to Atmosphere-backed resource types.
|
|
9
9
|
*/
|
|
10
|
-
export declare function
|
|
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,
|
|
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 {
|
|
3
|
-
import { recordRealtimePerformanceMetric as
|
|
4
|
-
function
|
|
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
|
-
|
|
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:
|
|
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
|
|
21
|
+
u as createAtmosphereRealtimeRuntime
|
|
22
22
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { disposeGClickRealtimeRuntime, GetOrCreateGClickRealtimeRuntimeProps } from './runtimeRegistry.shared';
|
|
2
2
|
/**
|
|
3
|
-
* Lazily create or reuse one host-owned
|
|
3
|
+
* Lazily create or reuse one host-owned runtime for the requested runtime key.
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
6
|
-
export {
|
|
7
|
-
export type {
|
|
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,
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
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
|
-
|
|
9
|
-
|
|
8
|
+
l as disposeGClickRealtimeRuntime,
|
|
9
|
+
r as getOrCreateGClickRealtimeRuntime
|
|
10
10
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { RealtimeRuntime } from '@m4l/realtime-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
3
3
|
export type GClickRealtimeRuntimeFamily = 'standard' | 'atmosphere-only';
|
|
4
4
|
export interface GClickRealtimeRuntimeKeyProps {
|
|
5
|
-
|
|
5
|
+
runtimeKey: string;
|
|
6
6
|
storeId?: string;
|
|
7
7
|
}
|
|
8
|
-
export type
|
|
8
|
+
export type GetOrCreateGClickRealtimeRuntimePropsFor<TCreateProps extends {
|
|
9
9
|
storeId?: string;
|
|
10
10
|
}> = Omit<TCreateProps, 'storeId'> & GClickRealtimeRuntimeKeyProps;
|
|
11
|
-
export type
|
|
12
|
-
export interface
|
|
11
|
+
export type GetOrCreateGClickRealtimeRuntimeProps = GetOrCreateGClickRealtimeRuntimePropsFor<CreateRealtimeRuntimeProps>;
|
|
12
|
+
export interface CreateGetOrCreateGClickRealtimeRuntimeOptions {
|
|
13
13
|
runtimeFamily?: GClickRealtimeRuntimeFamily;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Create one typed
|
|
16
|
+
* Create one typed get-or-create helper for GClick-owned runtime factories.
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
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
|
|
20
|
+
* Dispose every cached GClick runtime family associated with the provided public runtime key.
|
|
21
21
|
*/
|
|
22
|
-
export declare function
|
|
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,
|
|
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 {
|
|
2
|
-
const
|
|
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
|
|
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
|
|
9
|
+
throw new Error("GClick realtime runtime requires a non-empty runtimeKey.");
|
|
10
10
|
return e;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return `gclick-realtime:${e}:${
|
|
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 =
|
|
18
|
-
} = e,
|
|
17
|
+
runtimeFamily: r = s
|
|
18
|
+
} = e, a = R(t);
|
|
19
19
|
return function(u) {
|
|
20
|
-
const {
|
|
21
|
-
return
|
|
20
|
+
const { runtimeKey: c, ...i } = u, n = m(c);
|
|
21
|
+
return a({
|
|
22
22
|
createProps: {
|
|
23
|
-
...
|
|
24
|
-
storeId:
|
|
23
|
+
...i,
|
|
24
|
+
storeId: i.storeId ?? n
|
|
25
25
|
},
|
|
26
|
-
runtimeKey:
|
|
27
|
-
|
|
26
|
+
runtimeKey: o(
|
|
27
|
+
n,
|
|
28
28
|
r
|
|
29
29
|
)
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function E(t) {
|
|
34
34
|
const e = t.trim();
|
|
35
|
-
e &&
|
|
35
|
+
e && C.forEach((r) => {
|
|
36
36
|
l(
|
|
37
|
-
|
|
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
|
|
46
|
-
|
|
45
|
+
I as createGetOrCreateGClickRealtimeRuntime,
|
|
46
|
+
E as disposeGClickRealtimeRuntime
|
|
47
47
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
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
|
|
5
|
+
* Lazily create or reuse one Atmosphere-only host-owned runtime for the requested runtime key.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
export {
|
|
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,
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
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
|
-
|
|
12
|
-
|
|
11
|
+
l as disposeGClickRealtimeRuntime,
|
|
12
|
+
i as getOrCreateGClickAtmosphereRealtimeRuntime
|
|
13
13
|
};
|