@kong-ui-public/entities-plugins 9.265.1-pr.3728.a2f06df6f.0 → 9.265.1
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/filler/cypress/index.js +1 -1
- package/dist/filler/{field-walker-C98yyxw9.js → field-walker-Bkq_C6jB.js} +12 -13
- package/dist/filler/playwright/index.js +1 -1
- package/package.json +18 -18
- package/dist/types/utils/lua-schema-to-zod/index.d.ts +0 -22
- package/dist/types/utils/lua-schema-to-zod/index.d.ts.map +0 -1
- package/dist/types/utils/lua-schema-to-zod/lua-pattern.d.ts +0 -17
- package/dist/types/utils/lua-schema-to-zod/lua-pattern.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as a, i as w, c as S, g as k, w as v, a as A, b as B, d as F } from "../field-walker-
|
|
1
|
+
import { s as a, i as w, c as S, g as k, w as v, a as A, b as B, d as F } from "../field-walker-Bkq_C6jB.js";
|
|
2
2
|
const f = { scrollBehavior: "center" };
|
|
3
3
|
function p(r) {
|
|
4
4
|
cy.get(r).then((n) => {
|
|
@@ -6881,9 +6881,9 @@ const f0 = [
|
|
|
6881
6881
|
},
|
|
6882
6882
|
{
|
|
6883
6883
|
name: "--kui-color-background-inverse",
|
|
6884
|
-
description: "Inverse background color for containers (
|
|
6884
|
+
description: "Inverse background color for containers (gray.100)",
|
|
6885
6885
|
category: "color",
|
|
6886
|
-
value: "#
|
|
6886
|
+
value: "#0d0e14"
|
|
6887
6887
|
},
|
|
6888
6888
|
{
|
|
6889
6889
|
name: "--kui-color-background-neutral",
|
|
@@ -6929,9 +6929,9 @@ const f0 = [
|
|
|
6929
6929
|
},
|
|
6930
6930
|
{
|
|
6931
6931
|
name: "--kui-color-background-overlay",
|
|
6932
|
-
description: "Overlay background color (rgba(
|
|
6932
|
+
description: "Overlay background color (rgba(13, 14, 20, 0.6))",
|
|
6933
6933
|
category: "color",
|
|
6934
|
-
value: "rgba(
|
|
6934
|
+
value: "rgba(13, 14, 20, 0.6)"
|
|
6935
6935
|
},
|
|
6936
6936
|
{
|
|
6937
6937
|
name: "--kui-color-background-primary",
|
|
@@ -7235,9 +7235,9 @@ const f0 = [
|
|
|
7235
7235
|
},
|
|
7236
7236
|
{
|
|
7237
7237
|
name: "--kui-color-text",
|
|
7238
|
-
description: "Default text color (
|
|
7238
|
+
description: "Default text color (gray.100).",
|
|
7239
7239
|
category: "color",
|
|
7240
|
-
value: "#
|
|
7240
|
+
value: "#0d0e14"
|
|
7241
7241
|
},
|
|
7242
7242
|
{
|
|
7243
7243
|
name: "--kui-color-text-accent",
|
|
@@ -11133,10 +11133,9 @@ Example usage:
|
|
|
11133
11133
|
</template>
|
|
11134
11134
|
</KToggle>
|
|
11135
11135
|
`), (i, l) => i.$slots.default ? ie(i.$slots, "default", {
|
|
11136
|
-
key: 0,
|
|
11137
11136
|
isToggled: r[0],
|
|
11138
11137
|
toggle: a
|
|
11139
|
-
}) : de("", !0);
|
|
11138
|
+
}, void 0, void 0) : de("", !0);
|
|
11140
11139
|
}
|
|
11141
11140
|
});
|
|
11142
11141
|
var Vg = /* @__PURE__ */ ((e) => (e.Date = "date", e.Time = "time", e.Datetime = "dateTime", e.Relative = "relative", e.RelativeDate = "relativeDate", e.RelativeDateTime = "relativeDateTime", e))(Vg || {});
|
|
@@ -12633,7 +12632,7 @@ const pk = {
|
|
|
12633
12632
|
to: e.target
|
|
12634
12633
|
}, [
|
|
12635
12634
|
ie(t.$slots, "default")
|
|
12636
|
-
], 8, ["to"])) : ie(t.$slots, "default", {
|
|
12635
|
+
], 8, ["to"])) : ie(t.$slots, "default", {}, void 0, void 0);
|
|
12637
12636
|
}
|
|
12638
12637
|
}), hk = typeof window < "u" && typeof document < "u";
|
|
12639
12638
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -12920,7 +12919,7 @@ const Sr = (e) => {
|
|
|
12920
12919
|
ie(r.$slots, "default")
|
|
12921
12920
|
]),
|
|
12922
12921
|
_: 3
|
|
12923
|
-
}, 16, ["max-width", "offset", "placement", "z-index"])) : ie(r.$slots, "default", {
|
|
12922
|
+
}, 16, ["max-width", "offset", "placement", "z-index"])) : ie(r.$slots, "default", {}, void 0, void 0);
|
|
12924
12923
|
}
|
|
12925
12924
|
}), Dk = { class: "k-card" }, $k = {
|
|
12926
12925
|
key: 0,
|
|
@@ -15626,7 +15625,7 @@ const oc = 15, U1 = {
|
|
|
15626
15625
|
key: 1,
|
|
15627
15626
|
decorative: ""
|
|
15628
15627
|
}))
|
|
15629
|
-
], 40, bw)) : ie(M.$slots, "after", {
|
|
15628
|
+
], 40, bw)) : ie(M.$slots, "after", {}, void 0, !0)
|
|
15630
15629
|
], 512)) : de("", !0)
|
|
15631
15630
|
], 2),
|
|
15632
15631
|
re(Cg, {
|
|
@@ -15639,9 +15638,9 @@ const oc = 15, U1 = {
|
|
|
15639
15638
|
key: String(s.value),
|
|
15640
15639
|
class: "help-text"
|
|
15641
15640
|
}, [
|
|
15642
|
-
D() ? ie(M.$slots, "help", {
|
|
15641
|
+
D() ? ie(M.$slots, "help", {}, () => [
|
|
15643
15642
|
Ke($e($.value), 1)
|
|
15644
|
-
], !0) : (E(), L(tt, { key: 1 }, [
|
|
15643
|
+
], !0, 0) : (E(), L(tt, { key: 1 }, [
|
|
15645
15644
|
Ke($e($.value), 1)
|
|
15646
15645
|
], 64))
|
|
15647
15646
|
], 8, kw)) : de("", !0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as w, i as k, c as p, g as b, w as S, a as v, b as F, d as A } from "../field-walker-
|
|
1
|
+
import { s as w, i as k, c as p, g as b, w as S, a as v, b as F, d as A } from "../field-walker-Bkq_C6jB.js";
|
|
2
2
|
async function C(e) {
|
|
3
3
|
const { page: a, fieldKey: n, value: t } = e, o = w.field(n), i = a.locator(o);
|
|
4
4
|
await i.clear(), t != null && t !== "" && await i.fill(String(t));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-plugins",
|
|
3
|
-
"version": "9.265.1
|
|
3
|
+
"version": "9.265.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-plugins.umd.js",
|
|
6
6
|
"module": "./dist/entities-plugins.es.js",
|
|
@@ -55,9 +55,9 @@
|
|
|
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.63.
|
|
59
|
-
"@kong-ui-public/
|
|
60
|
-
"@kong-ui-public/
|
|
58
|
+
"@kong-ui-public/entities-shared": "^3.63.1",
|
|
59
|
+
"@kong-ui-public/i18n": "^2.5.1",
|
|
60
|
+
"@kong-ui-public/monaco-editor": "^0.24.14"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"@playwright/test": {
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@dagrejs/dagre": "^3.1.0",
|
|
72
|
-
"@kong/design-tokens": "3.2.
|
|
72
|
+
"@kong/design-tokens": "3.2.10",
|
|
73
73
|
"@kong/icons": "^1.62.1",
|
|
74
|
-
"@kong/kongponents": "9.64.
|
|
74
|
+
"@kong/kongponents": "9.64.10",
|
|
75
75
|
"@peculiar/x509": "^2.0.0",
|
|
76
76
|
"@playwright/experimental-ct-vue": "^1.62.1",
|
|
77
77
|
"@playwright/test": "^1.62.1",
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"vue": "^3.5.35",
|
|
92
92
|
"vue-router": "^5.2.0",
|
|
93
93
|
"zod": "^4.4.3",
|
|
94
|
-
"@kong-ui-public/entities-
|
|
95
|
-
"@kong-ui-public/
|
|
96
|
-
"@kong-ui-public/monaco-editor": "^0.24.
|
|
97
|
-
"@kong-ui-public/
|
|
94
|
+
"@kong-ui-public/entities-shared": "^3.63.1",
|
|
95
|
+
"@kong-ui-public/entities-vaults": "^4.16.26",
|
|
96
|
+
"@kong-ui-public/monaco-editor": "^0.24.14",
|
|
97
|
+
"@kong-ui-public/i18n": "^2.5.1"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|
|
100
100
|
"type": "git",
|
|
@@ -114,15 +114,15 @@
|
|
|
114
114
|
"dompurify": "^3.4.12",
|
|
115
115
|
"lodash-es": "^4.18.1",
|
|
116
116
|
"marked": "^14.1.4",
|
|
117
|
-
"@kong-ui-public/entities-consumer-groups": "^4.7.
|
|
118
|
-
"@kong-ui-public/entities-
|
|
119
|
-
"@kong-ui-public/entities-gateway-services": "^3.27.0",
|
|
120
|
-
"@kong-ui-public/entities-plugins-metadata": "^1.15.1",
|
|
121
|
-
"@kong-ui-public/entities-redis-configurations": "^1.18.23",
|
|
117
|
+
"@kong-ui-public/entities-consumer-groups": "^4.7.24",
|
|
118
|
+
"@kong-ui-public/entities-gateway-services": "^3.27.1",
|
|
122
119
|
"@kong-ui-public/entities-plugins-icon": "^1.7.2",
|
|
123
|
-
"@kong-ui-public/entities-
|
|
124
|
-
"@kong-ui-public/
|
|
125
|
-
"@kong-ui-public/entities-
|
|
120
|
+
"@kong-ui-public/entities-consumers": "^4.7.21",
|
|
121
|
+
"@kong-ui-public/entities-plugins-metadata": "^1.15.1",
|
|
122
|
+
"@kong-ui-public/entities-redis-configurations": "^1.18.24",
|
|
123
|
+
"@kong-ui-public/entities-routes": "^3.26.17",
|
|
124
|
+
"@kong-ui-public/entities-vaults": "^4.16.26",
|
|
125
|
+
"@kong-ui-public/forms": "^4.33.26"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
128
|
"dev": "cross-env USE_SANDBOX=true vite",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* A Kong plugin config field, as dumped by the Admin API. Deliberately typed
|
|
4
|
-
* loosely (not as the stricter `FormSchema`/`UnionFieldSchema` in
|
|
5
|
-
* `../../types/plugins/form-schema`): this compiler consumes live
|
|
6
|
-
* `JSON.parse()`'d Admin API output, which was never going to satisfy a
|
|
7
|
-
* hand-maintained literal-union type at the TS level anyway, and the DSL has
|
|
8
|
-
* more optional keys (e.g. `uuid`, `gt`, `starts_with`) than that type
|
|
9
|
-
* currently models.
|
|
10
|
-
*/
|
|
11
|
-
type LuaField = Record<string, any> & {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
type LuaNamedField = Record<string, LuaField | undefined>;
|
|
15
|
-
type LuaFormSchema = {
|
|
16
|
-
fields: LuaNamedField[];
|
|
17
|
-
};
|
|
18
|
-
export declare function compileField(field: LuaField): z.ZodTypeAny;
|
|
19
|
-
/** Compile a full plugin config schema (the Admin API's root schema shape) into a Zod object schema. */
|
|
20
|
-
export declare function luaSchemaToZod(schema: LuaFormSchema): z.ZodObject<any>;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/lua-schema-to-zod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;;;GAQG;AACH,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAGtD,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;AACzD,KAAK,aAAa,GAAG;IAAE,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CAAA;AA2OhD,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,CAAC,CAAC,UAAU,CA6C1D;AAED,wGAAwG;AACxG,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAEtE"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Best-effort translator from Kong's Lua pattern syntax (used in `match` /
|
|
3
|
-
* `match_all` / `match_none` / `match_any`) to a JS RegExp.
|
|
4
|
-
*
|
|
5
|
-
* Lua patterns are NOT PCRE/JS regex: no alternation (`|`), no `{n,m}` bounded
|
|
6
|
-
* repetition, `-` after an item is a *lazy* "0 or more" quantifier (unlike
|
|
7
|
-
* JS's greedy `*`), and character classes use `%d %a %s %w ...` instead of
|
|
8
|
-
* `\d \w \s`. A naive `new RegExp(pattern)` on a Lua pattern can silently
|
|
9
|
-
* validate the wrong thing, which is worse than not validating at all.
|
|
10
|
-
*
|
|
11
|
-
* This translator only handles constructs it can map with confidence and
|
|
12
|
-
* returns `null` for anything else (bare `-` quantifiers outside `[...]`,
|
|
13
|
-
* `%b`/`%f`, unknown `%x` escapes). Callers should skip the check client-side
|
|
14
|
-
* when `null` comes back, and rely on the server's real (Lua) validation.
|
|
15
|
-
*/
|
|
16
|
-
export declare function translateLuaPattern(pattern: string): RegExp | null;
|
|
17
|
-
//# sourceMappingURL=lua-pattern.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lua-pattern.d.ts","sourceRoot":"","sources":["../../../../src/utils/lua-schema-to-zod/lua-pattern.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuBH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkElE"}
|