@kong-ui-public/analytics-config-store 2.0.6 → 2.0.7-pr.4013.959bfde39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AnalyticsConfigV2 } from '@kong-ui-public/analytics-utilities';
|
|
2
2
|
export type ConfigStoreState = null | AnalyticsConfigV2;
|
|
3
|
+
/**
|
|
4
|
+
* Caches the org's analytics config, which it gets from the injected `AnalyticsBridge.configFn`.
|
|
5
|
+
*
|
|
6
|
+
* The store calls `configFn` only once, when the store is first created. Pinia keeps the store
|
|
7
|
+
* for the life of the app, so the store never fetches again. Create the store only when the
|
|
8
|
+
* bridge can serve `configFn`: if the bridge's requests need host state that is set later in
|
|
9
|
+
* the app's lifecycle, wait for that state first. A failed fetch is not retried.
|
|
10
|
+
*/
|
|
3
11
|
export declare const useAnalyticsConfigStore: import("pinia").SetupStoreDefinition<"analytics-config", {
|
|
4
12
|
analyticsConfig: import("vue").Ref<{
|
|
5
13
|
analytics: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../../src/stores/analytics-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAU7F,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,iBAAiB,CAAA;AAEvD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"analytics-config.d.ts","sourceRoot":"","sources":["../../../src/stores/analytics-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAU7F,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,iBAAiB,CAAA;AAEvD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAsDd,OAAO,CAAC,IAAI,CAAC;;EAwCjC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/analytics-config-store",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7-pr.4013.959bfde39.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/vitals-config-store.umd.js",
|
|
6
6
|
"module": "./dist/vitals-config-store.es.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kong-ui-public/analytics-utilities": "^14.2.
|
|
24
|
+
"@kong-ui-public/analytics-utilities": "^14.2.4-pr.4013.959bfde39.0",
|
|
25
25
|
"pinia": "^4.1.0",
|
|
26
26
|
"vue": "^3.5.43"
|
|
27
27
|
},
|