@kong-ui-public/expressions 1.3.42-pr.2710.393e46981.0 → 1.3.42

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.
Files changed (39) hide show
  1. package/dist/expressions.es.js +2 -0
  2. package/dist/style.css +1 -0
  3. package/dist/types/components/ExpressionsEditor.vue.d.ts +33 -0
  4. package/dist/types/components/ExpressionsEditor.vue.d.ts.map +1 -0
  5. package/dist/types/components/MonacoEditor.vue.d.ts +47 -0
  6. package/dist/types/components/MonacoEditor.vue.d.ts.map +1 -0
  7. package/dist/types/components/PageHeader.vue.d.ts +24 -0
  8. package/dist/types/components/PageHeader.vue.d.ts.map +1 -0
  9. package/dist/types/components/RequestCard.vue.d.ts +20 -0
  10. package/dist/types/components/RequestCard.vue.d.ts.map +1 -0
  11. package/dist/types/components/RequestImportModal.vue.d.ts +14 -0
  12. package/dist/types/components/RequestImportModal.vue.d.ts.map +1 -0
  13. package/dist/types/components/RequestModal.vue.d.ts +15 -0
  14. package/dist/types/components/RequestModal.vue.d.ts.map +1 -0
  15. package/dist/types/components/RouterPlayground.vue.d.ts +34 -0
  16. package/dist/types/components/RouterPlayground.vue.d.ts.map +1 -0
  17. package/dist/types/components/RouterPlaygroundModal.vue.d.ts +24 -0
  18. package/dist/types/components/RouterPlaygroundModal.vue.d.ts.map +1 -0
  19. package/dist/types/components/SupportText.vue.d.ts +14 -0
  20. package/dist/types/components/SupportText.vue.d.ts.map +1 -0
  21. package/dist/types/composables/index.d.ts +6 -0
  22. package/dist/types/composables/index.d.ts.map +1 -0
  23. package/dist/types/composables/useI18n.d.ts +9 -0
  24. package/dist/types/composables/useI18n.d.ts.map +1 -0
  25. package/dist/types/definitions.d.ts +24 -0
  26. package/dist/types/definitions.d.ts.map +1 -0
  27. package/dist/types/external-links.d.ts +5 -0
  28. package/dist/types/external-links.d.ts.map +1 -0
  29. package/dist/types/index.d.ts +10 -0
  30. package/dist/types/index.d.ts.map +1 -0
  31. package/dist/types/monaco.d.ts +118 -0
  32. package/dist/types/monaco.d.ts.map +1 -0
  33. package/dist/types/schema.d.ts +23 -0
  34. package/dist/types/schema.d.ts.map +1 -0
  35. package/dist/types/types.d.ts +8 -0
  36. package/dist/types/types.d.ts.map +1 -0
  37. package/dist/types/utils.d.ts +9 -0
  38. package/dist/types/utils.d.ts.map +1 -0
  39. package/package.json +6 -6
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .expression-editor[data-v-1bfe7f23]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-1bfe7f23]{border-color:#d60027}.page-header h1[data-v-dc31e237],h2[data-v-dc31e237],h3[data-v-dc31e237],h4[data-v-dc31e237],h5[data-v-dc31e237],h6[data-v-dc31e237]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-dc31e237],h2 .title[data-v-dc31e237],h3 .title[data-v-dc31e237],h4 .title[data-v-dc31e237],h5 .title[data-v-dc31e237],h6 .title[data-v-dc31e237]{word-break:break-all}.row[data-v-dc31e237]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-dc31e237]{line-height:36px}h1[data-v-dc31e237],h2[data-v-dc31e237],h3[data-v-dc31e237],h4[data-v-dc31e237],h5[data-v-dc31e237],h6[data-v-dc31e237],nav[data-v-dc31e237]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-dc31e237]{margin:0!important}.operations[data-v-dc31e237]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-48794e33]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-48794e33]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-48794e33]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-48794e33]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-48794e33]{display:block!important}.request-card .badges[data-v-48794e33]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-48794e33]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-48794e33]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-48794e33],.request-card .headers .header ul[data-v-48794e33]{margin:0;padding:0}.request-card .headers .header li[data-v-48794e33]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-48794e33]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-48794e33]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-48794e33]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-48794e33]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-48794e33]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-48794e33]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-48794e33]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-48794e33]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-8c069d07]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-8c069d07]{margin-top:16px}.import-requests-modal .json-editor[data-v-8c069d07]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-8c069d07]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-1ee3ba9d]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-1ee3ba9d]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-1ee3ba9d]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-1ee3ba9d]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-1ee3ba9d]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-1ee3ba9d]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-1ee3ba9d]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-1ee3ba9d]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-1ee3ba9d]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-1ee3ba9d]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-1ee3ba9d]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-1ee3ba9d]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-1ee3ba9d]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-1ee3ba9d]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-1ee3ba9d],.router-playground-wrapper .router-playground .export-button[data-v-1ee3ba9d]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-1ee3ba9d]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-1ee3ba9d]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-1ee3ba9d]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
@@ -0,0 +1,33 @@
1
+ import type { ParseResult } from '@kong/atc-router';
2
+ import * as monaco from 'monaco-editor';
3
+ import { type Schema } from '../schema';
4
+ import type { RhsValueCompletion } from '../types';
5
+ type __VLS_Props = {
6
+ schema: Schema;
7
+ parseDebounce?: number;
8
+ inactiveUntilFocused?: boolean;
9
+ allowEmptyInput?: boolean;
10
+ defaultShowDetails?: boolean;
11
+ editorOptions?: monaco.editor.IEditorOptions;
12
+ rhsValueCompletion?: RhsValueCompletion;
13
+ };
14
+ type __VLS_ModelProps = {
15
+ modelValue: string;
16
+ };
17
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
19
+ editor: import("vue").ShallowRef<monaco.editor.IStandaloneCodeEditor | undefined, monaco.editor.IStandaloneCodeEditor | undefined>;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "parse-result-update": (result: ParseResult) => any;
22
+ "update:modelValue": (value: string) => any;
23
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onParse-result-update"?: ((result: ParseResult) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
+ }>, {
27
+ parseDebounce: number;
28
+ editorOptions: monaco.editor.IEditorOptions;
29
+ rhsValueCompletion: RhsValueCompletion;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ //# sourceMappingURL=ExpressionsEditor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressionsEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ExpressionsEditor.vue"],"names":[],"mappings":"AA6WA,OAAO,KAAK,EAAgC,WAAW,EAAiB,MAAM,kBAAkB,CAAA;AAEhG,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,KAAK,EAA0B,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAQ1E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAA;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;CACxC,CAAC;AAgUF,KAAK,gBAAgB,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;AAUF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA8BxD,QAAA,MAAM,YAAY;;;;;;;;;mBAhXA,MAAM;mBAIN,MAAM,CAAC,MAAM,CAAC,cAAc;wBACvB,kBAAkB;6EAgXvC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,47 @@
1
+ import * as monaco from 'monaco-editor';
2
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ modelValue: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ theme: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ language: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ options: {
16
+ type: ObjectConstructor;
17
+ default: () => {};
18
+ };
19
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
+ "update:modelValue": (value: string, event: monaco.editor.IModelContentChangedEvent) => any;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ modelValue: {
23
+ type: StringConstructor;
24
+ required: true;
25
+ };
26
+ theme: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ language: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ options: {
35
+ type: ObjectConstructor;
36
+ default: () => {};
37
+ };
38
+ }>> & Readonly<{
39
+ "onUpdate:modelValue"?: ((value: string, event: monaco.editor.IModelContentChangedEvent) => any) | undefined;
40
+ }>, {
41
+ theme: string;
42
+ options: Record<string, any>;
43
+ language: string;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ //# sourceMappingURL=MonacoEditor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MonacoEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/MonacoEditor.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAmGvC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoBhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ size: number;
4
+ hideTitle?: boolean;
5
+ noMargin?: boolean;
6
+ };
7
+ declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
8
+ type __VLS_Slots = {} & {
9
+ 'title-logo'?: (props: typeof __VLS_7) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_9) => any;
12
+ } & {
13
+ 'below-title'?: (props: typeof __VLS_11) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
24
+ //# sourceMappingURL=PageHeader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader.vue"],"names":[],"mappings":"AA8EA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA8DF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAChE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKtD,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ active?: boolean;
3
+ protocol: string;
4
+ host: string;
5
+ port?: number;
6
+ path?: string;
7
+ method?: string;
8
+ headers?: {
9
+ [k: string]: string | string[];
10
+ };
11
+ sni?: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ remove: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onRemove?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ //# sourceMappingURL=RequestCard.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RequestCard.vue"],"names":[],"mappings":"AAwQA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AA6MF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,14 @@
1
+ import type { Request } from '../definitions';
2
+ type __VLS_Props = {
3
+ visible: boolean;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ import: (requests: Request[]) => any;
7
+ dismiss: (completed: boolean) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onImport?: ((requests: Request[]) => any) | undefined;
10
+ onDismiss?: ((completed: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ //# sourceMappingURL=RequestImportModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestImportModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RequestImportModal.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAM7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAC;AAgPF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,15 @@
1
+ import { type Request } from '../definitions';
2
+ import '@kong-ui-public/forms/dist/style.css';
3
+ type __VLS_Props = {
4
+ visible: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ addRequest: (request: Request) => any;
8
+ dismiss: (completed: boolean) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onAddRequest?: ((request: Request) => any) | undefined;
11
+ onDismiss?: ((completed: boolean) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ //# sourceMappingURL=RequestModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RequestModal.vue"],"names":[],"mappings":"AAAA,OAgNO,EAA0D,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAKrG,OAAO,sCAAsC,CAAA;AAsF7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAC;AAmMF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,34 @@
1
+ export type Props = {
2
+ /**
3
+ * @default 'kong-manager-router-playground-requests'
4
+ */
5
+ localstorageKey?: string;
6
+ hideEditorActions?: boolean;
7
+ initialExpression?: string;
8
+ };
9
+ export type Emits = {
10
+ change: [expression: string];
11
+ commit: [expression: string];
12
+ notify: [{
13
+ message: string;
14
+ type: string;
15
+ }];
16
+ };
17
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ change: (expression: string) => any;
19
+ commit: (expression: string) => any;
20
+ notify: (args_0: {
21
+ message: string;
22
+ type: string;
23
+ }) => any;
24
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
25
+ onChange?: ((expression: string) => any) | undefined;
26
+ onCommit?: ((expression: string) => any) | undefined;
27
+ onNotify?: ((args_0: {
28
+ message: string;
29
+ type: string;
30
+ }) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ //# sourceMappingURL=RouterPlayground.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterPlayground.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouterPlayground.vue"],"names":[],"mappings":"AAyhBA,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IAC5B,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IAC5B,MAAM,EAAE,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC5C,CAAA;AAmxBD,QAAA,MAAM,YAAY;;;;iBApxBI,MAAM;cAAQ,MAAM;;;;;;iBAApB,MAAM;cAAQ,MAAM;;kFAuxBxC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,24 @@
1
+ import type { Props as RouterPlaygroudProps } from './RouterPlayground.vue';
2
+ type __VLS_Props = {
3
+ isVisible: boolean;
4
+ } & RouterPlaygroudProps;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ cancel: () => any;
7
+ change: (expression: string) => any;
8
+ commit: (expression: string) => any;
9
+ notify: (args_0: {
10
+ message: string;
11
+ type: string;
12
+ }) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onCancel?: (() => any) | undefined;
15
+ onChange?: ((expression: string) => any) | undefined;
16
+ onCommit?: ((expression: string) => any) | undefined;
17
+ onNotify?: ((args_0: {
18
+ message: string;
19
+ type: string;
20
+ }) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ //# sourceMappingURL=RouterPlaygroundModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterPlaygroundModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouterPlaygroundModal.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EACV,KAAK,IAAI,oBAAoB,EAE9B,MAAM,wBAAwB,CAAA;AAM/B,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,OAAO,CAAA;CACnB,GAAG,oBAAoB,CAAC;AA8HzB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,14 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
14
+ //# sourceMappingURL=SupportText.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupportText.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SupportText.vue"],"names":[],"mappings":"AAuCA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import useI18n from './useI18n';
2
+ declare const _default: {
3
+ useI18n: typeof useI18n;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAG/B,wBAEC"}
@@ -0,0 +1,9 @@
1
+ import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
2
+ import english from '../locales/en.json';
3
+ interface UseI18nReturn {
4
+ i18n: ReturnType<typeof createI18n<typeof english>>;
5
+ i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
6
+ }
7
+ export default function useI18n(): UseI18nReturn;
8
+ export {};
9
+ //# sourceMappingURL=useI18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
@@ -0,0 +1,24 @@
1
+ export type Request = {
2
+ id: string;
3
+ protocol: string;
4
+ host: string;
5
+ port: number;
6
+ path: string;
7
+ method?: string;
8
+ headers?: {
9
+ [k: string]: string | string[];
10
+ };
11
+ sni?: string;
12
+ };
13
+ export declare const DEFAULT_PROTOCOL_PORTS: {
14
+ http: number;
15
+ https: number;
16
+ grpc: number;
17
+ grpcs: number;
18
+ ws: number;
19
+ wss: number;
20
+ };
21
+ export declare const HTTP_PROTOCOLS: Set<string>;
22
+ export declare const SECURED_PROTOCOLS: Set<string>;
23
+ export declare const SUPPORTED_PROTOCOLS: Set<string>;
24
+ //# sourceMappingURL=definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAA;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAA;AAED,eAAO,MAAM,cAAc,aAA6B,CAAA;AAExD,eAAO,MAAM,iBAAiB,aAAqC,CAAA;AAEnE,eAAO,MAAM,mBAAmB,aAA+C,CAAA"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ expressionsLanguageDoc: string;
3
+ };
4
+ export default _default;
5
+ //# sourceMappingURL=external-links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-links.d.ts","sourceRoot":"","sources":["../../src/external-links.ts"],"names":[],"mappings":";;;AAAA,wBAEC"}
@@ -0,0 +1,10 @@
1
+ import ExpressionsEditor from './components/ExpressionsEditor.vue';
2
+ import RouterPlaygroundModal from './components/RouterPlaygroundModal.vue';
3
+ export * as Atc from '@kong/atc-router';
4
+ export * from './schema';
5
+ export * from './types';
6
+ export * from './monaco';
7
+ export { ExpressionsEditor, RouterPlaygroundModal };
8
+ declare const asyncInit: Promise<any>;
9
+ export { asyncInit };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,oCAAoC,CAAA;AAClE,OAAO,qBAAqB,MAAM,wCAAwC,CAAA;AAE1E,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAA;AACvC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAA;AAEnD,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -0,0 +1,118 @@
1
+ import * as monaco from 'monaco-editor';
2
+ import type { Schema } from './schema';
3
+ import type { ProvideCompletionItems } from './types';
4
+ export declare const theme = "kong-expr-theme";
5
+ export declare const buildLanguageId: (schema: Schema) => string;
6
+ export declare const TokenType: {
7
+ IDENT: string;
8
+ OPERATOR: string;
9
+ QUOTE_OPEN: string;
10
+ QUOTE_CLOSE: string;
11
+ STR_LITERAL: string;
12
+ STR_ESCAPE: string;
13
+ STR_INVALID_ESCAPE: string;
14
+ RAW_STR_OPEN: string;
15
+ RAW_STR_CLOSE: string;
16
+ IP_V4: string;
17
+ IP_V6: string;
18
+ NUMBER: string;
19
+ WHITESPACE: string;
20
+ FUNC_NAME: string;
21
+ PAREN_OPEN: string;
22
+ PAREN_CLOSE: string;
23
+ };
24
+ export declare const registerTheme: () => void;
25
+ export interface Token extends monaco.Token {
26
+ shortType: string;
27
+ lineIndex: number;
28
+ flatIndex: number;
29
+ flatOffset: number;
30
+ }
31
+ /**
32
+ * Token names are suffixed with the language ID (e.g., `identifier.kong-expressions-http`).
33
+ *
34
+ * This function removes the language ID suffix from the token type and returns the shortened token
35
+ * type. You can find a list of short token types in the {@link TokenType} object.
36
+ *
37
+ * @param languageId the language ID
38
+ * @param fullType the full token type
39
+ * @returns the shortened type or the full type if the full type does not end with the language ID
40
+ */
41
+ export declare const shortenTokenType: (languageId: string, fullType: string) => string;
42
+ /**
43
+ * Locate the token that includes the given offset on the given line.
44
+ *
45
+ * Time complexity = O(log n)
46
+ *
47
+ * @param nestedTokens
48
+ * @param lineIndex
49
+ * @param offset
50
+ * @returns
51
+ */
52
+ export declare const locateToken: (nestedTokens: Token[][], lineIndex: number, offset: number) => Token | undefined;
53
+ export declare const transformTokens: (model: monaco.editor.ITextModel, tokens: monaco.Token[][]) => [Token[], Token[][]];
54
+ /**
55
+ * Get the range for the given tokens.
56
+ *
57
+ * Time complexity = O(1)
58
+ *
59
+ * @param model the text model
60
+ * @param tokens the tokens to get the range from (1D array)
61
+ * @param fromIndex the index of the first TOKEN (inclusive)
62
+ * @param toIndex the index of the last TOKEN (exclusive)
63
+ * @returns
64
+ */
65
+ export declare const getTokensRange: (model: monaco.editor.ITextModel, tokens: Token[], fromIndex: number, toIndex: number) => monaco.Range;
66
+ /**
67
+ * Scan forward (right) until the token that satisfies the condition is found.
68
+ *
69
+ * Time complexity = O(n)
70
+ *
71
+ * @param tokens the tokens to scan (1D array)
72
+ * @param fromIndex the index of the TOKEN to start scanning from (exclusive)
73
+ * @param until the condition to stop scanning
74
+ * @returns the index of the TOKEN that satisfies the condition or the length of the tokens if not found
75
+ */
76
+ export declare const scanTokenForward: (tokens: Token[], fromIndex: number, until: (token: Token) => boolean) => number;
77
+ /**
78
+ * Scan backward (left) until the token that satisfies the condition is found.
79
+ *
80
+ * Time complexity = O(n)
81
+ *
82
+ * @param tokens the tokens to scan (1D array)
83
+ * @param fromIndex the index of the TOKEN to start scanning from (exclusive)
84
+ * @param until the condition to stop scanning
85
+ * @returns the index of the TOKEN that satisfies the condition or `-1` if not found
86
+ */
87
+ export declare const scanTokenBackward: (tokens: Token[], fromIndex: number, until: (token: Token) => boolean) => number;
88
+ /**
89
+ * Scan the consecutive tokens from the given index backward (left) and forward (right) until the
90
+ * condition is met. The consecutive tokens DO NOT include the tokens met by the condition on both
91
+ * sides.
92
+ *
93
+ * Time complexity = O(n)
94
+ *
95
+ * @param model the text model
96
+ * @param tokens the tokens to scan (1D array)
97
+ * @param fromIndex the index to start scanning from (exclusive)
98
+ * @param until the condition to stop scanning
99
+ * @returns the range of the tokens and the index of the first token in the range
100
+ */
101
+ export declare const scanTokensBidirectional: (model: monaco.editor.ITextModel, tokens: Token[], fromIndex: number, until: (token: Token) => boolean) => [monaco.Range, number];
102
+ /**
103
+ * Locate the nearest IDENT token in the possible LHS of the given token.
104
+ * Note: This implementation is NOT OPTIMAL and only works on a best-effort basis.
105
+ *
106
+ * Time complexity = O(n)
107
+ *
108
+ * @param tokens the tokens to locate the LHS from (1D array)
109
+ * @param fromIndex the index of the string tokens (STR_LITERAL, STR_ESCAPE, STR_INVALID_ESCAPE)
110
+ * @returns the index of the LHS or `-1` if not found
111
+ */
112
+ export declare const locateStringLhsIdent: (tokens: Token[], fromIndex: number) => number;
113
+ export declare const languageDisposables: Record<string, () => void>;
114
+ export declare const registerLanguage: (languageId: string, provideCompletionItems?: ProvideCompletionItems) => {
115
+ languageId: string;
116
+ };
117
+ export declare const tokenize: typeof monaco.editor.tokenize;
118
+ //# sourceMappingURL=monaco.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monaco.d.ts","sourceRoot":"","sources":["../../src/monaco.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAMrD,eAAO,MAAM,KAAK,oBAAoB,CAAA;AAEtC,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,WAAsC,CAAA;AAEpF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAiBrB,CAAA;AAED,eAAO,MAAM,aAAa,YAuBzB,CAAA;AAED,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,KAAK;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,WAKpE,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,cAAc,KAAK,EAAE,EAAE,EAAE,WAAW,MAAM,EAAE,QAAQ,MAAM,sBA8BrF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,MAAM,CAAC,KAAK,EAAE,EAAE,KAAG,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,CAsB9G,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,KAAK,EAAE,EAAE,WAAW,MAAM,EAAE,SAAS,MAAM,KAAG,MAAM,CAAC,KAU5H,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,KAAK,EAAE,EAAE,WAAW,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,KAAG,MAQvG,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,KAAK,EAAE,EAAE,WAAW,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,KAAG,MAQxG,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,KAAK,EAAE,EAAE,WAAW,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,KAAG,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAKpK,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,KAAK,EAAE,EAAE,WAAW,MAAM,KAAG,MA0DzE,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAM,CAAA;AAEjE,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,EAAE,yBAAyB,sBAAsB;;CA2GnG,CAAA;AAED,eAAO,MAAM,QAAQ,+BAAyB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { Schema as AtcSchema, type AstType } from '@kong/atc-router';
2
+ export type SchemaDefinition = {
3
+ [K in AstType]?: string[];
4
+ };
5
+ export interface Schema {
6
+ /**
7
+ * Codename of the schema. Should conform to `[a-zA-Z0-9-]+`.
8
+ */
9
+ name: string;
10
+ definition: SchemaDefinition;
11
+ /**
12
+ * Names of the functions that can be used in the expressions
13
+ */
14
+ functions?: string[];
15
+ documentation?: Record<string, string>;
16
+ }
17
+ export declare const createSchema: (definition: SchemaDefinition) => AtcSchema;
18
+ export declare const HTTP_SCHEMA_DEFINITION: SchemaDefinition;
19
+ export declare const STREAM_SCHEMA_DEFINITION: SchemaDefinition;
20
+ export declare const HTTP_BASED_PROTOCOLS: string[];
21
+ export declare const STREAM_BASED_PROTOCOLS: string[];
22
+ export declare const PROTOCOL_TO_SCHEMA: Record<string, Schema>;
23
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAEpE,MAAM,MAAM,gBAAgB,GAAG;KAC5B,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE;CAC1B,CAAA;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,gBAAgB,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,gBAAgB,cAUxD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAapC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,gBAItC,CAAA;AAED,eAAO,MAAM,oBAAoB,UAAkD,CAAA;AACnF,eAAO,MAAM,sBAAsB,UAA2C,CAAA;AAE9E,eAAO,MAAM,kBAAkB,wBAY3B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type * as monaco from 'monaco-editor';
2
+ export type ProvideCompletionItems = monaco.languages.CompletionItemProvider['provideCompletionItems'];
3
+ export type ProvideRhsValueCompletion = (lhsValue: string, rhsValueValue: string, lhsRange: monaco.Range, rhsValueRange: monaco.Range) => Promise<monaco.languages.CompletionList | undefined>;
4
+ export interface RhsValueCompletion {
5
+ provide: ProvideRhsValueCompletion;
6
+ shouldProvide: (lhsIdentValue: string) => boolean;
7
+ }
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,wBAAwB,CAAC,CAAA;AAEtG,MAAM,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,CAAC,KAAK,KAAK,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,CAAA;AAE9L,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,yBAAyB,CAAA;IAClC,aAAa,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAO,CAAA;CAClD"}
@@ -0,0 +1,9 @@
1
+ import { type Request } from './definitions';
2
+ export declare const validateRequest: (request: Request) => void;
3
+ /**
4
+ * Transforms and checks if the request is valid
5
+ * @param request
6
+ * @returns
7
+ */
8
+ export declare const transformCheckRequest: (request: Partial<Request>) => string | undefined;
9
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAC2E,KAAK,OAAO,EAC7F,MAAM,eAAe,CAAA;AAGtB,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,SAE/C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,CAAC,OAAO,CAAC,KAAG,MAAM,GAAG,SAwD1E,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/expressions",
3
- "version": "1.3.42-pr.2710.393e46981.0",
3
+ "version": "1.3.42",
4
4
  "type": "module",
5
5
  "module": "./dist/expressions.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  "@kong/atc-router": "1.6.0-rc.1",
23
23
  "@kong/design-tokens": "1.18.2",
24
- "@kong/kongponents": "9.48.7",
24
+ "@kong/kongponents": "9.48.8",
25
25
  "@types/uuid": "^11.0.0",
26
26
  "monaco-editor": "^0.55.1",
27
27
  "vite-plugin-monaco-editor": "^1.1.0",
@@ -47,17 +47,17 @@
47
47
  "errorLimit": "2048KB"
48
48
  },
49
49
  "peerDependencies": {
50
- "@kong/kongponents": "^9.48.7",
50
+ "@kong/kongponents": "^9.48.8",
51
51
  "monaco-editor": "^0.55.1",
52
52
  "vue": "^3.5.26",
53
- "@kong-ui-public/forms": "^4.20.17-pr.2710.393e46981.0"
53
+ "@kong-ui-public/forms": "^4.20.17"
54
54
  },
55
55
  "dependencies": {
56
56
  "@kong/icons": "^1.41.0",
57
57
  "uuid": "^11.1.0",
58
+ "@kong-ui-public/forms": "^4.20.17",
58
59
  "@kong-ui-public/core": "^1.11.9",
59
- "@kong-ui-public/i18n": "^2.4.5",
60
- "@kong-ui-public/forms": "^4.20.17-pr.2710.393e46981.0"
60
+ "@kong-ui-public/i18n": "^2.4.5"
61
61
  },
62
62
  "scripts": {
63
63
  "dev": "cross-env USE_SANDBOX=true vite",