@kong-ui-public/entities-plugins 9.266.0 → 9.267.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/dist/entities-plugins.es.js +7017 -6965
- package/dist/entities-plugins.umd.js +85 -85
- package/dist/freeform/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/PluginConfigCard.vue.d.ts +3 -3
- package/dist/types/components/PluginConfigCard.vue.d.ts.map +1 -1
- package/dist/types/composables/index.d.ts +2 -0
- package/dist/types/composables/index.d.ts.map +1 -1
- package/dist/types/composables/useReferenceEntityNames.d.ts +15 -0
- package/dist/types/composables/useReferenceEntityNames.d.ts.map +1 -0
- package/dist/types/types/plugin-config-card.d.ts +14 -4
- package/dist/types/types/plugin-config-card.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -17,7 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
17
17
|
default: string;
|
|
18
18
|
required: false;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
showNameAsLink: {
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
@@ -66,7 +66,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
66
66
|
default: string;
|
|
67
67
|
required: false;
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
showNameAsLink: {
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
@@ -102,7 +102,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
102
102
|
"onNavigation-click"?: ((data: string, direction: "service" | "route" | "consumer" | "consumer_group" | "partial") => any) | undefined;
|
|
103
103
|
}>, {
|
|
104
104
|
configCardDoc: string;
|
|
105
|
-
|
|
105
|
+
showNameAsLink: boolean;
|
|
106
106
|
hideTitle: boolean;
|
|
107
107
|
scopedEntityType: string;
|
|
108
108
|
scopedEntityId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PluginConfigCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluginConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PluginConfigCard.vue"],"names":[],"mappings":"AAifA,OAAO,gDAAgD,CAAA;AAOvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AA8uBxF,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,yBAAyB,GAAG,6BAA6B,CAAC;;4BAE/D,yBAAyB,GAAG,6BAA6B,KAAG,OAAO;;IAQzF;;OAEG;;;;;;;;;;IAUH;;OAEG;;;;;IAKH,iEAAiE;;;;;;IAMjE,+DAA+D;;cAE7C,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;IAIzC,0CAA0C;;;;;;;;;;;;IA3C1C,oHAAoH;;cAElG,QAAQ,CAAC,yBAAyB,GAAG,6BAA6B,CAAC;;4BAE/D,yBAAyB,GAAG,6BAA6B,KAAG,OAAO;;IAQzF;;OAEG;;;;;;;;;;IAUH;;OAEG;;;;;IAKH,iEAAiE;;;;;;IAMjE,+DAA+D;;cAE7C,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;IAIzC,0CAA0C;;;;;;;;;;;;;;;;;;4EAM1C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,6 +2,7 @@ import useI18n from './useI18n';
|
|
|
2
2
|
import usePluginHelpers from './usePluginHelpers';
|
|
3
3
|
import { useExperimentalFreeForms, useProvideExperimentalFreeForms, useFreeFormResolver } from './useExperimentalFreeForms';
|
|
4
4
|
import { useCustomPluginApi } from './useCustomPluginApi';
|
|
5
|
+
import { useReferenceEntityNames } from './useReferenceEntityNames';
|
|
5
6
|
declare const _default: {
|
|
6
7
|
useI18n: typeof useI18n;
|
|
7
8
|
usePluginMetaData: () => {
|
|
@@ -61,6 +62,7 @@ declare const _default: {
|
|
|
61
62
|
useProvideExperimentalFreeForms: typeof useProvideExperimentalFreeForms;
|
|
62
63
|
useFreeFormResolver: typeof useFreeFormResolver;
|
|
63
64
|
useCustomPluginApi: typeof useCustomPluginApi;
|
|
65
|
+
useReferenceEntityNames: typeof useReferenceEntityNames;
|
|
64
66
|
};
|
|
65
67
|
export default _default;
|
|
66
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AAGjD,OAAO,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAC3H,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AAGjD,OAAO,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAC3H,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGnE,wBAUC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { KongManagerPluginEntityConfig, KonnectPluginEntityConfig } from '../types';
|
|
3
|
+
export type ReferenceField = 'service' | 'route' | 'consumer' | 'consumer_group';
|
|
4
|
+
interface UseReferenceEntityNamesOptions {
|
|
5
|
+
config: KonnectPluginEntityConfig | KongManagerPluginEntityConfig;
|
|
6
|
+
axiosInstance: AxiosInstance;
|
|
7
|
+
onError: (error: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function useReferenceEntityNames({ config, axiosInstance, onError }: UseReferenceEntityNamesOptions): {
|
|
10
|
+
resolveReferenceNames: (entity: Record<string, any>) => void;
|
|
11
|
+
getReferenceName: (field: ReferenceField) => string | undefined;
|
|
12
|
+
isReferenceNameLoading: (field: ReferenceField) => boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useReferenceEntityNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReferenceEntityNames.d.ts","sourceRoot":"","sources":["../../../src/composables/useReferenceEntityNames.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAIxF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,gBAAgB,CAAA;AAShF,UAAU,8BAA8B;IACtC,MAAM,EAAE,yBAAyB,GAAG,6BAA6B,CAAA;IACjE,aAAa,EAAE,aAAa,CAAA;IAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAC9B;AAED,wBAAgB,uBAAuB,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,8BAA8B;oCAkCjE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;8BAWhC,cAAc,KAAG,MAAM,GAAG,SAAS;oCAE7B,cAAc,KAAG,OAAO;EAOhE"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
1
2
|
import type { KonnectBaseEntityConfig, KongManagerBaseEntityConfig } from '@kong-ui-public/entities-shared';
|
|
2
|
-
|
|
3
|
-
export interface KonnectPluginEntityConfig extends KonnectBaseEntityConfig {
|
|
3
|
+
export interface BasePluginConfigCardConfig {
|
|
4
4
|
pluginType: string;
|
|
5
|
+
/** A function that returns the route for viewing the plugin's scoped service */
|
|
6
|
+
getServiceViewRoute?: (id: string) => RouteLocationRaw;
|
|
7
|
+
/** A function that returns the route for viewing the plugin's scoped route */
|
|
8
|
+
getRouteViewRoute?: (id: string) => RouteLocationRaw;
|
|
9
|
+
/** A function that returns the route for viewing the plugin's scoped consumer */
|
|
10
|
+
getConsumerViewRoute?: (id: string) => RouteLocationRaw;
|
|
11
|
+
/** A function that returns the route for viewing the plugin's scoped consumer group */
|
|
12
|
+
getConsumerGroupViewRoute?: (id: string) => RouteLocationRaw;
|
|
13
|
+
}
|
|
14
|
+
/** Konnect Plugin entity config */
|
|
15
|
+
export interface KonnectPluginEntityConfig extends KonnectBaseEntityConfig, BasePluginConfigCardConfig {
|
|
5
16
|
}
|
|
6
17
|
/** Kong Manager Plugin entity config */
|
|
7
|
-
export interface KongManagerPluginEntityConfig extends KongManagerBaseEntityConfig {
|
|
8
|
-
pluginType: string;
|
|
18
|
+
export interface KongManagerPluginEntityConfig extends KongManagerBaseEntityConfig, BasePluginConfigCardConfig {
|
|
9
19
|
}
|
|
10
20
|
//# sourceMappingURL=plugin-config-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/plugin-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAE3G,
|
|
1
|
+
{"version":3,"file":"plugin-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/plugin-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAE3G,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IACtD,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IACpD,iFAAiF;IACjF,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IACvD,uFAAuF;IACvF,yBAAyB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CAC7D;AAED,mCAAmC;AACnC,MAAM,WAAW,yBAA0B,SAAQ,uBAAuB,EAAE,0BAA0B;CAAG;AAEzG,wCAAwC;AACxC,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B,EAAE,0BAA0B;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-plugins",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.267.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-plugins.umd.js",
|
|
6
6
|
"module": "./dist/entities-plugins.es.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"vue": ">= 3.3.13 < 4",
|
|
56
56
|
"vue-router": "^4.6.4 || ^5.0.6",
|
|
57
57
|
"zod": ">= 4.1.3 < 5",
|
|
58
|
-
"@kong-ui-public/entities-shared": "^3.64.0",
|
|
59
58
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
59
|
+
"@kong-ui-public/entities-shared": "^3.65.0",
|
|
60
60
|
"@kong-ui-public/monaco-editor": "^0.24.16"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"vue": "^3.5.35",
|
|
92
92
|
"vue-router": "^5.2.0",
|
|
93
93
|
"zod": "^4.4.3",
|
|
94
|
-
"@kong-ui-public/entities-shared": "^3.64.0",
|
|
95
|
-
"@kong-ui-public/entities-vaults": "^4.16.30",
|
|
96
94
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
95
|
+
"@kong-ui-public/entities-vaults": "^4.16.31",
|
|
96
|
+
"@kong-ui-public/entities-shared": "^3.65.0",
|
|
97
97
|
"@kong-ui-public/monaco-editor": "^0.24.16"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
@@ -114,15 +114,15 @@
|
|
|
114
114
|
"dompurify": "^3.4.12",
|
|
115
115
|
"lodash-es": "^4.18.1",
|
|
116
116
|
"marked": "^18.0.9",
|
|
117
|
-
"@kong-ui-public/entities-consumer-groups": "^4.7.
|
|
118
|
-
"@kong-ui-public/entities-consumers": "^4.7.
|
|
119
|
-
"@kong-ui-public/entities-
|
|
117
|
+
"@kong-ui-public/entities-consumer-groups": "^4.7.29",
|
|
118
|
+
"@kong-ui-public/entities-consumers": "^4.7.26",
|
|
119
|
+
"@kong-ui-public/entities-gateway-services": "^3.27.6",
|
|
120
120
|
"@kong-ui-public/entities-plugins-icon": "^1.8.0",
|
|
121
|
-
"@kong-ui-public/entities-
|
|
122
|
-
"@kong-ui-public/entities-
|
|
123
|
-
"@kong-ui-public/entities-
|
|
124
|
-
"@kong-ui-public/
|
|
125
|
-
"@kong-ui-public/
|
|
121
|
+
"@kong-ui-public/entities-plugins-metadata": "^1.16.0",
|
|
122
|
+
"@kong-ui-public/entities-routes": "^3.26.22",
|
|
123
|
+
"@kong-ui-public/entities-redis-configurations": "^1.18.29",
|
|
124
|
+
"@kong-ui-public/forms": "^4.33.31",
|
|
125
|
+
"@kong-ui-public/entities-vaults": "^4.16.31"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
128
|
"dev": "cross-env USE_SANDBOX=true vite",
|