@kong-ui-public/portal-analytics-bridge 0.2.87 → 0.2.89-pr.2114.d6a8378f0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/portal-analytics-bridge",
3
- "version": "0.2.87",
3
+ "version": "0.2.89-pr.2114.d6a8378f0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/portal-vitals-bridge.umd.js",
6
6
  "module": "./dist/portal-vitals-bridge.es.js",
@@ -46,7 +46,7 @@
46
46
  "@kong/sdk-portal-js": "^2.16.0",
47
47
  "axios": "^1.7.7",
48
48
  "vue": "^3.5.13",
49
- "@kong-ui-public/analytics-utilities": "^9.6.0"
49
+ "@kong-ui-public/analytics-utilities": "^9.7.1-pr.2114.d6a8378f0.0"
50
50
  },
51
51
  "scripts": {
52
52
  "dev": "cross-env USE_SANDBOX=true vite",
@@ -1,26 +0,0 @@
1
- const s = "analytics-query-provider", y = {
2
- install(e, a) {
3
- const { apiClient: r } = a, i = {
4
- queryFn: async () => Promise.reject(new Error("queryFn is not yet connected")),
5
- configFn: async () => {
6
- const t = await r.getApplicationAnalyticsConfig();
7
- if (t.data) {
8
- const { data: n } = t;
9
- return {
10
- analytics: n.analytics ? {
11
- percentiles: n.analytics.percentiles,
12
- retention_ms: n.analytics.retention_ms
13
- } : null,
14
- requests: null
15
- };
16
- }
17
- throw new Error("Failed to retrieve analytics configuration");
18
- },
19
- evaluateFeatureFlagFn: (t, n) => n
20
- };
21
- e.provide(s, i);
22
- }
23
- };
24
- export {
25
- y as default
26
- };
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["kong-ui-public-portal-vitals-bridge"]={}))})(this,function(e){"use strict";const t="analytics-query-provider",a={install(o,r){const{apiClient:s}=r,l={queryFn:async()=>Promise.reject(new Error("queryFn is not yet connected")),configFn:async()=>{const i=await s.getApplicationAnalyticsConfig();if(i.data){const{data:n}=i;return{analytics:n.analytics?{percentiles:n.analytics.percentiles,retention_ms:n.analytics.retention_ms}:null,requests:null}}throw new Error("Failed to retrieve analytics configuration")},evaluateFeatureFlagFn:(i,n)=>n};o.provide(t,l)}};e.default=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,4 +0,0 @@
1
- import analyticsQueryProvider from './portal-analytics-bridge';
2
- export default analyticsQueryProvider;
3
- export * from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;AAE9D,eAAe,sBAAsB,CAAA;AAErC,cAAc,SAAS,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { Plugin } from 'vue';
2
- import type { ProviderOptions } from './types';
3
- declare const portalAnalyticsBridge: Plugin<ProviderOptions>;
4
- export default portalAnalyticsBridge;
5
- //# sourceMappingURL=portal-analytics-bridge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-analytics-bridge.d.ts","sourceRoot":"","sources":["../../src/portal-analytics-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAW9C,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAAC,eAAe,CAuClD,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './provider-options';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { ApplicationAnalyticsApi } from '@kong/sdk-portal-js';
2
- export interface ProviderOptions {
3
- apiClient: ApplicationAnalyticsApi;
4
- }
5
- //# sourceMappingURL=provider-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-options.d.ts","sourceRoot":"","sources":["../../../src/types/provider-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAElE,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,uBAAuB,CAAA;CACnC"}