@kong-ui-public/spec-renderer 2.8.20-pr.3761.04b54f14d.0 → 2.8.21

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 (28) hide show
  1. package/dist/spec-renderer.es.js +48439 -0
  2. package/dist/spec-renderer.umd.js +288 -0
  3. package/dist/style.css +1 -0
  4. package/dist/types/components/SpecDetails.vue.d.ts +94 -0
  5. package/dist/types/components/SpecDetails.vue.d.ts.map +1 -0
  6. package/dist/types/components/SpecOperationsList.vue.d.ts +102 -0
  7. package/dist/types/components/SpecOperationsList.vue.d.ts.map +1 -0
  8. package/dist/types/components/SpecRenderer.vue.d.ts +74 -0
  9. package/dist/types/components/SpecRenderer.vue.d.ts.map +1 -0
  10. package/dist/types/components/operations-list/OperationsListItem.vue.d.ts +41 -0
  11. package/dist/types/components/operations-list/OperationsListItem.vue.d.ts.map +1 -0
  12. package/dist/types/components/operations-list/OperationsListSectionHeader.vue.d.ts +44 -0
  13. package/dist/types/components/operations-list/OperationsListSectionHeader.vue.d.ts.map +1 -0
  14. package/dist/types/composables/index.d.ts +8 -0
  15. package/dist/types/composables/index.d.ts.map +1 -0
  16. package/dist/types/composables/useI18n.d.ts +9 -0
  17. package/dist/types/composables/useI18n.d.ts.map +1 -0
  18. package/dist/types/composables/useUtilities.d.ts +5 -0
  19. package/dist/types/composables/useUtilities.d.ts.map +1 -0
  20. package/dist/types/constants.d.ts +2 -0
  21. package/dist/types/constants.d.ts.map +1 -0
  22. package/dist/types/index.d.ts +7 -0
  23. package/dist/types/index.d.ts.map +1 -0
  24. package/dist/types/types/index.d.ts +2 -0
  25. package/dist/types/types/index.d.ts.map +1 -0
  26. package/dist/types/types/spec-renderer.d.ts +39 -0
  27. package/dist/types/types/spec-renderer.d.ts.map +1 -0
  28. package/package.json +5 -5
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .kong-public-ui-spec-details[data-v-60f0dff7]{color:#0d0e14;color:var(--kong-ui-portal-spec-details-text-color, var(--kui-color-text, #0d0e14));font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-portal-spec-details-font-family-default, var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif));font-size:16px;font-size:var(--kong-ui-portal-spec-details-font-size, var(--kui-font-size-40, 16px))}main{--kui-operation-summary-path-display: block;--kui-operation-summary-path-overflow: hidden;--kui-operation-summary-path-text-overflow: ellipsis;--kui-operation-summary-path-white-space: nowrap;--kui-operation-summary-path-word-wrap: normal;--kui-operation-summary-path-max-width: 30ch}@media screen and (min-width:768px){main{--kui-operation-summary-path-max-width: 40ch}}@media screen and (min-width:1536px){main{--kui-operation-summary-path-max-width: 100ch}}.header[data-v-0db40bb4]{align-items:center;appearance:none;background:transparent;background:var(--kong-ui-spec-renderer-operations-list-section-background, transparent);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kong-ui-spec-renderer-operations-list-section-border-color, var(--kui-color-border-disabled, #e0e4ea));border-top-left-radius:4px;border-top-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, var(--kui-border-radius-20, 4px));border-top-right-radius:4px;border-top-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, var(--kui-border-radius-20, 4px));color:currentColor;cursor:pointer;display:flex;padding:8px;padding:var(--kong-ui-spec-renderer-operations-list-section-padding, var(--kui-space-40, 8px));width:100%}.header--collapsed[data-v-0db40bb4]{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, var(--kui-border-radius-20, 4px));border-bottom-right-radius:4px;border-bottom-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, var(--kui-border-radius-20, 4px))}.label[data-v-0db40bb4]{color:currentColor;color:var(--kong-ui-spec-renderer-operations-list-section-label-text-color, currentColor);font-family:inherit;font-size:16px;font-size:var(--kong-ui-spec-renderer-operations-list-section-label-font-size, var(--kui-font-size-40, 16px));font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0 8px 0 0;margin:var(--kui-space-0, 0px) var(--kui-space-40, 8px) var(--kui-space-0, 0px) var(--kui-space-0, 0px)}.label[data-v-0db40bb4]:first-letter{text-transform:capitalize}.header--collapsed .label[data-v-0db40bb4]{color:#3a3f51;color:var(--kong-ui-spec-renderer-operations-list-section-label-text-color-collapsed, var(--kui-color-text-neutral-stronger, #3a3f51))}.description[data-v-0db40bb4]{font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-spec-renderer-operations-list-section-description-font-family, var(--kong-ui-spec-renderer-font-monospace, var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace)));line-height:1;margin-left:auto;margin-left:var(--kui-space-auto, auto);max-width:65%}.icon-wrapper[data-v-0db40bb4]{height:18px;margin-right:8px;margin-right:var(--kui-space-40, 8px)}.truncated[data-v-0db40bb4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spec-operations-list-item[data-v-1e6a7ff8]{appearance:none;background:transparent;border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kong-ui-spec-renderer-operations-list-item-border-color, var(--kui-color-border, #e0e4ea));cursor:pointer;display:block;padding:8px 16px;padding:var(--kong-ui-spec-renderer-operations-list-item-padding, var(--kui-space-40, 8px) var(--kui-space-60, 16px));position:relative;text-align:left;width:100%}.spec-operations-list-item.disabled[data-v-1e6a7ff8]{cursor:default}.spec-operations-list-item[data-v-1e6a7ff8]:hover{background:#f9fafb;background:var(--kong-ui-spec-renderer-operations-list-item-background-hover, var(--kui-color-background-neutral-weakest, #f9fafb))}.spec-operations-list-item:hover .summary[data-v-1e6a7ff8],.spec-operations-list-item:hover .path[data-v-1e6a7ff8]{color:#0d0e14;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-hover, var(--kui-color-text, #0d0e14))}.spec-operations-list-item[data-v-1e6a7ff8]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, var(--kui-border-radius-20, 4px));border-bottom-right-radius:4px;border-bottom-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, var(--kui-border-radius-20, 4px))}.item--selected[data-v-1e6a7ff8]{background:#eefaff;background:var(--kong-ui-spec-renderer-operations-list-item-background-selected, var(--kui-color-background-primary-weakest, #eefaff))}.item--selected[data-v-1e6a7ff8]:before{background:#0044f4;background:var(--kong-ui-spec-renderer-operations-list-item-selected-bar-background, var(--kui-color-background-primary, #0044f4));bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px;width:var(--kong-ui-spec-renderer-operations-list-item-selected-bar-width, 4px)}.item--selected .summary[data-v-1e6a7ff8],.item--selected .path[data-v-1e6a7ff8]{color:#0b172d;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-selected, #0B172D)}.item--method-get[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-get, var(--kui-method-color-text-get, #0044f4));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-get, var(--kui-method-color-background-get, #eefaff))}.item--method-post[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-post, var(--kui-method-color-text-post, #007d60));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-post, var(--kui-method-color-background-post, #ecfffb))}.item--method-put[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-put, var(--kui-method-color-text-put, #995c00));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-put, var(--kui-method-color-background-put, #fffce0))}.item--method-patch[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-patch, var(--kui-method-color-text-patch, #00819d));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-patch, var(--kui-method-color-background-patch, #ecfcff))}.item--method-delete[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-delete, var(--kui-method-color-text-delete, #d60027));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-delete, var(--kui-method-color-background-delete, #ffe5e5))}.item--method-options[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-options, var(--kui-method-color-text-options, #52596e));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-options, var(--kui-method-color-background-options, #e0e4ea))}.item--method-head[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-head, var(--kui-method-color-text-head, #e0e4ea));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-head, var(--kui-method-color-background-head, #52596e))}.item--method-connect[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-connect, var(--kui-method-color-text-connect, #6f28ff));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-connect, var(--kui-method-color-background-connect, #f1f0ff))}.item--method-trace[data-v-1e6a7ff8]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-trace, var(--kui-method-color-text-trace, #d60067));--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-trace, var(--kui-method-color-background-trace, #fff0f7))}.summary[data-v-1e6a7ff8]{color:#0d0e14;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color, var(--kui-color-text, #0d0e14));font-family:inherit;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);margin:0 0 4px;margin:var(--kui-space-0, 0px) var(--kui-space-0, 0px) var(--kui-space-20, 4px)}.details[data-v-1e6a7ff8]{display:flex}.truncated[data-v-1e6a7ff8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.method-badge[data-v-1e6a7ff8]{font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.path[data-v-1e6a7ff8]{align-self:center;color:#3a3f51;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color, var(--kui-color-text-neutral-stronger, #3a3f51));font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-spec-renderer-operations-list-item-path-font-family, var(--kong-ui-spec-renderer-font-family-monospace, var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace)));font-size:12px;font-size:var(--kui-font-size-20, 12px)}.kong-ui-public-spec-operations-list[data-v-07b7e996]{color:#0d0e14;color:var(--kong-ui-kong-spec-renderer-operations-list-text-color, var(--kong-ui-spec-renderer-text-color, var(--kui-color-text, #0d0e14)));font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-spec-renderer-operations-list-font-family, var(--kong-ui-spec-renderer-font-family, var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)));font-size:16px;font-size:var(--kong-ui-spec-renderer-operations-list-font-size, var(--kong-ui-spec-renderer-font-size, var(--kui-font-size-40, 16px)))}.kong-ui-public-spec-operations-list .filter-wrapper[data-v-07b7e996]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);position:relative}.kong-ui-public-spec-operations-list .filter-input[data-v-07b7e996]{width:100%}.kong-ui-public-spec-operations-list .filter-input[data-v-07b7e996] .input{padding-left:32px;padding-left:var(--kui-space-90, 32px)}.kong-ui-public-spec-operations-list .section-wrapper[data-v-07b7e996]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-spec-operations-list .section-wrapper[data-v-07b7e996]:last-of-type{margin-bottom:0}.kong-ui-public-spec-operations-list .center[data-v-07b7e996]{text-align:center}.kong-ui-public-spec-operations-list[data-v-07b7e996] .k-collapse .k-collapse-heading{margin:0!important;margin:var(--kui-space-0, 0px)!important}.kong-ui-public-spec-renderer .spec-container[data-v-4cfc670e]{display:flex}.kong-ui-public-spec-renderer .spec-renderer-details[data-v-4cfc670e]{position:relative;width:100%}
@@ -0,0 +1,94 @@
1
+ import '@kong-ui-public/swagger-ui-web-component';
2
+ import type { SwaggerUIElement } from '@kong-ui-public/swagger-ui-web-component';
3
+ import type { PropType } from 'vue';
4
+ import type { SpecDocument, OperationListItem } from '../types';
5
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ document: {
7
+ type: PropType<SpecDocument>;
8
+ default: null;
9
+ };
10
+ url: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ hasSidebar: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ relativeSidebar: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ themeOverrides: {
23
+ type: ObjectConstructor;
24
+ default: null;
25
+ };
26
+ essentialsOnly: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ activeOperation: {
31
+ type: PropType<OperationListItem>;
32
+ default: null;
33
+ };
34
+ applicationRegistrationEnabled: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ currentVersion: {
39
+ type: StringConstructor;
40
+ default: () => undefined;
41
+ };
42
+ }>, {
43
+ swaggerInstance: import("vue").Ref<SwaggerUIElement | null, SwaggerUIElement | null>;
44
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ document: {
46
+ type: PropType<SpecDocument>;
47
+ default: null;
48
+ };
49
+ url: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ hasSidebar: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ relativeSidebar: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ themeOverrides: {
62
+ type: ObjectConstructor;
63
+ default: null;
64
+ };
65
+ essentialsOnly: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ activeOperation: {
70
+ type: PropType<OperationListItem>;
71
+ default: null;
72
+ };
73
+ applicationRegistrationEnabled: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ currentVersion: {
78
+ type: StringConstructor;
79
+ default: () => undefined;
80
+ };
81
+ }>> & Readonly<{}>, {
82
+ url: string;
83
+ document: SpecDocument;
84
+ hasSidebar: boolean;
85
+ relativeSidebar: boolean;
86
+ themeOverrides: Record<string, any>;
87
+ essentialsOnly: boolean;
88
+ activeOperation: OperationListItem;
89
+ applicationRegistrationEnabled: boolean;
90
+ currentVersion: string;
91
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ declare const _default: typeof __VLS_export;
93
+ export default _default;
94
+ //# sourceMappingURL=SpecDetails.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecDetails.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecDetails.vue"],"names":[],"mappings":"AAmJA,OAAO,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AA8J/D,QAAA,MAAM,YAAY;;cAIE,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;;;;cAxB3B,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;4EAY7C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,102 @@
1
+ import type { PropType } from 'vue';
2
+ import type { OperationListFilterFunction, Operation, OperationListItem, Tag } from '../types';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ operations: {
7
+ type: PropType<Operation[]>;
8
+ required: true;
9
+ validator: (items: Operation[]) => boolean;
10
+ };
11
+ tags: {
12
+ type: PropType<Tag[]>;
13
+ default: () => never[];
14
+ validator: (items: Tag[]) => boolean;
15
+ };
16
+ isFilterable: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ filterFunction: {
21
+ type: PropType<OperationListFilterFunction>;
22
+ default: OperationListFilterFunction;
23
+ validator: (maybeFunc: unknown) => maybeFunc is Function;
24
+ };
25
+ deselect: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ disableSelection: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ width: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
+ selected: (...args: any[]) => void;
39
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ operations: {
41
+ type: PropType<Operation[]>;
42
+ required: true;
43
+ validator: (items: Operation[]) => boolean;
44
+ };
45
+ tags: {
46
+ type: PropType<Tag[]>;
47
+ default: () => never[];
48
+ validator: (items: Tag[]) => boolean;
49
+ };
50
+ isFilterable: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ filterFunction: {
55
+ type: PropType<OperationListFilterFunction>;
56
+ default: OperationListFilterFunction;
57
+ validator: (maybeFunc: unknown) => maybeFunc is Function;
58
+ };
59
+ deselect: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ disableSelection: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ width: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ }>> & Readonly<{
72
+ onSelected?: ((...args: any[]) => any) | undefined;
73
+ }>, {
74
+ tags: Tag[];
75
+ disableSelection: boolean;
76
+ isFilterable: boolean;
77
+ filterFunction: OperationListFilterFunction;
78
+ deselect: boolean;
79
+ width: string;
80
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
81
+ item?: (props: {
82
+ item: OperationListItem;
83
+ section: string;
84
+ select: () => void;
85
+ }) => any;
86
+ } & {
87
+ 'untagged-item'?: (props: {
88
+ item: OperationListItem;
89
+ section: "default";
90
+ select: () => void;
91
+ }) => any;
92
+ } & {
93
+ 'empty-state'?: (props: {}) => any;
94
+ } & {
95
+ 'error-state'?: (props: {}) => any;
96
+ }>;
97
+ type __VLS_WithSlots<T, S> = T & {
98
+ new (): {
99
+ $slots: S;
100
+ };
101
+ };
102
+ //# sourceMappingURL=SpecOperationsList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecOperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecOperationsList.vue"],"names":[],"mappings":"AAiWA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,2BAA2B,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;wBAYzE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;cAodC,QAAQ,CAAC,SAAS,EAAE,CAAC;;2BAEjB,SAAS,EAAE,KAAG,OAAO;;;cAGzB,QAAQ,CAAC,GAAG,EAAE,CAAC;;2BAEX,GAAG,EAAE,KAAG,OAAO;;;;;;;cAOhB,QAAQ,CAAC,2BAA2B,CAAC;iBAKjD,2BAA2B;;;;;;;;;;;;;;;;;;;cAnBlB,QAAQ,CAAC,SAAS,EAAE,CAAC;;2BAEjB,SAAS,EAAE,KAAG,OAAO;;;cAGzB,QAAQ,CAAC,GAAG,EAAE,CAAC;;2BAEX,GAAG,EAAE,KAAG,OAAO;;;;;;;cAOhB,QAAQ,CAAC,2BAA2B,CAAC;iBAKjD,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;WA/B1B,CAAC,KAAK;;;;KAAiB,KAAK,GAAG;;sBACpB,CAAC,KAAK;;;;KAAiB,KAAK,GAAG;;oBACjC,CAAC,KAAK,IAAiB,KAAK,GAAG;;oBAC/B,CAAC,KAAK,IAAiB,KAAK,GAAG;EA8C/C,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,74 @@
1
+ import type { PropType } from 'vue';
2
+ import type { SpecDocument, Operation, Tag } from '../types';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ spec: {
7
+ type: PropType<SpecDocument>;
8
+ required: true;
9
+ };
10
+ essentialsOnly: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ operationsList: {
15
+ type: PropType<Operation[]>;
16
+ required: true;
17
+ validator: (items: Operation[]) => boolean;
18
+ };
19
+ tags: {
20
+ type: PropType<Tag[]>;
21
+ default: () => never[];
22
+ validator: (items: Tag[]) => boolean;
23
+ };
24
+ navWidth: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ deselect: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
+ spec: {
34
+ type: PropType<SpecDocument>;
35
+ required: true;
36
+ };
37
+ essentialsOnly: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ operationsList: {
42
+ type: PropType<Operation[]>;
43
+ required: true;
44
+ validator: (items: Operation[]) => boolean;
45
+ };
46
+ tags: {
47
+ type: PropType<Tag[]>;
48
+ default: () => never[];
49
+ validator: (items: Tag[]) => boolean;
50
+ };
51
+ navWidth: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ deselect: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ }>> & Readonly<{}>, {
60
+ tags: Tag[];
61
+ essentialsOnly: boolean;
62
+ deselect: boolean;
63
+ navWidth: string;
64
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
65
+ 'ops-list-empty-state'?: (props: {}) => any;
66
+ } & {
67
+ 'error-state'?: (props: {}) => any;
68
+ }>;
69
+ type __VLS_WithSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
74
+ //# sourceMappingURL=SpecRenderer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecRenderer.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAqB,GAAG,EAAE,MAAM,UAAU,CAAA;wBAQ1D,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;cA+KE,QAAQ,CAAC,YAAY,CAAC;;;;;;;;cAQvB,QAAQ,CAAC,SAAS,EAAE,CAAC;;2BAEjB,SAAS,EAAE,KAAG,OAAO;;;cAGzB,QAAQ,CAAC,GAAG,EAAE,CAAC;;2BAEX,GAAG,EAAE,KAAG,OAAO;;;;;;;;;;;;cAflB,QAAQ,CAAC,YAAY,CAAC;;;;;;;;cAQvB,QAAQ,CAAC,SAAS,EAAE,CAAC;;2BAEjB,SAAS,EAAE,KAAG,OAAO;;;cAGzB,QAAQ,CAAC,GAAG,EAAE,CAAC;;2BAEX,GAAG,EAAE,KAAG,OAAO;;;;;;;;;;;;;;;;6BAxBT,CAAC,KAAK,IAAiB,KAAK,GAAG;;oBACxC,CAAC,KAAK,IAAiB,KAAK,GAAG;EAoC/C,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { PropType } from 'vue';
2
+ import type { OperationListItem } from '../../types';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ item: {
5
+ type: PropType<OperationListItem>;
6
+ required: true;
7
+ validator: (item: Record<string, unknown>) => boolean;
8
+ };
9
+ isSelected: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ disableSelection: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ click: (...args: any[]) => void;
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ item: {
21
+ type: PropType<OperationListItem>;
22
+ required: true;
23
+ validator: (item: Record<string, unknown>) => boolean;
24
+ };
25
+ isSelected: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ disableSelection: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }>> & Readonly<{
34
+ onClick?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ isSelected: boolean;
37
+ disableSelection: boolean;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ //# sourceMappingURL=OperationsListItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/operations-list/OperationsListItem.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAkJpD,QAAA,MAAM,YAAY;;cAIE,QAAQ,CAAC,iBAAiB,CAAC;;0BAGzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO;;;;;;;;;;;;;;cAHnC,QAAQ,CAAC,iBAAiB,CAAC;;0BAGzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO;;;;;;;;;;;;;;;4EAerD,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,44 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ isCollapsed: {
3
+ type: BooleanConstructor;
4
+ required: true;
5
+ };
6
+ name: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ description: {
11
+ type: StringConstructor;
12
+ default: undefined;
13
+ };
14
+ contentElementId: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ toggle: (...args: any[]) => void;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ isCollapsed: {
22
+ type: BooleanConstructor;
23
+ required: true;
24
+ };
25
+ name: {
26
+ type: StringConstructor;
27
+ required: true;
28
+ };
29
+ description: {
30
+ type: StringConstructor;
31
+ default: undefined;
32
+ };
33
+ contentElementId: {
34
+ type: StringConstructor;
35
+ required: true;
36
+ };
37
+ }>> & Readonly<{
38
+ onToggle?: ((...args: any[]) => any) | undefined;
39
+ }>, {
40
+ description: string;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
+ declare const _default: typeof __VLS_export;
43
+ export default _default;
44
+ //# sourceMappingURL=OperationsListSectionHeader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsListSectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/operations-list/OperationsListSectionHeader.vue"],"names":[],"mappings":"AAwQA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoBhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,8 @@
1
+ import useI18n from './useI18n';
2
+ import useUtilities from './useUtilities';
3
+ declare const _default: {
4
+ useI18n: typeof useI18n;
5
+ useUtilities: typeof useUtilities;
6
+ };
7
+ export default _default;
8
+ //# 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;AAC/B,OAAO,YAAY,MAAM,gBAAgB,CAAA;;;;;AAGzC,wBAGC"}
@@ -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,5 @@
1
+ export default function useUtilities(): {
2
+ getSizeFromString: (sizeStr: string) => string;
3
+ hasRequiredProps: (items: object[], requiredProps: string[]) => boolean;
4
+ };
5
+ //# sourceMappingURL=useUtilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUtilities.d.ts","sourceRoot":"","sources":["../../../src/composables/useUtilities.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY;iCAME,MAAM,KAAG,MAAM;8BAWlB,MAAM,EAAE,iBAAiB,MAAM,EAAE,KAAG,OAAO;EAkB7E"}
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_UNTAGGED_SECTION_NAME = "default";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,YAAY,CAAA"}
@@ -0,0 +1,7 @@
1
+ import SpecRenderer from './components/SpecRenderer.vue';
2
+ import SpecDetails from './components/SpecDetails.vue';
3
+ import SpecOperationsList from './components/SpecOperationsList.vue';
4
+ export { SpecRenderer, SpecDetails, SpecOperationsList, };
5
+ export * from './types';
6
+ export * from './constants';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,+BAA+B,CAAA;AACxD,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AAEpE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,GACnB,CAAA;AAED,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './spec-renderer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAKA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { OpenAPI } from 'openapi-types';
2
+ /**
3
+ * OpenAPI specification document supporting OpenAPI v2 and v3 formats
4
+ */
5
+ export type SpecDocument = OpenAPI.Document;
6
+ /**
7
+ * HTTP Method string
8
+ */
9
+ export type MethodString = 'get' | 'put' | 'post' | 'delete' | 'patch' | 'options' | 'head' | 'connect' | 'trace';
10
+ export interface Operation {
11
+ path: string;
12
+ method: MethodString;
13
+ operationId: string | null;
14
+ summary: string | null;
15
+ deprecated: boolean;
16
+ tags?: string[];
17
+ }
18
+ /**
19
+ * Operation details object.
20
+ */
21
+ export interface OperationListItem extends Omit<Operation, 'tags'> {
22
+ tag: string | null;
23
+ }
24
+ interface ExternalDocumentation {
25
+ description?: string;
26
+ url: string;
27
+ }
28
+ export interface Tag {
29
+ name: string;
30
+ description?: string;
31
+ externalDocs?: ExternalDocumentation;
32
+ }
33
+ export interface OperationListFilterFunctionParams {
34
+ items: OperationListItem[];
35
+ query: string;
36
+ }
37
+ export type OperationListFilterFunction = (params: OperationListFilterFunctionParams) => OperationListItem[];
38
+ export {};
39
+ //# sourceMappingURL=spec-renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-renderer.d.ts","sourceRoot":"","sources":["../../../src/types/spec-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAA;AAE3C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AAEjH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;IAChE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CACnB;AAED,UAAU,qBAAqB;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,qBAAqB,CAAA;CACrC;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,iBAAiB,EAAE,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE,iCAAiC,KAAK,iBAAiB,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/spec-renderer",
3
- "version": "2.8.20-pr.3761.04b54f14d.0",
3
+ "version": "2.8.21",
4
4
  "type": "module",
5
5
  "main": "./dist/spec-renderer.umd.js",
6
6
  "module": "./dist/spec-renderer.es.js",
@@ -27,17 +27,17 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@kong-ui-public/i18n": "^2.5.1",
30
- "@kong/design-tokens": "3.3.0",
31
- "@kong/kongponents": "9.64.10",
30
+ "@kong/design-tokens": "3.3.1",
31
+ "@kong/kongponents": "9.64.14",
32
32
  "@types/lodash.clonedeep": "^4.5.9",
33
33
  "openapi-types": "^12.1.3",
34
34
  "vue": "^3.5.41"
35
35
  },
36
36
  "dependencies": {
37
- "@kong-ui-public/swagger-ui-web-component": "^0.12.30-pr.3761.04b54f14d.0",
37
+ "@kong-ui-public/swagger-ui-web-component": "^0.12.29",
38
38
  "@kong/icons": "^1.62.1",
39
39
  "lodash.clonedeep": "^4.5.0",
40
- "uuid": "^14.0.1"
40
+ "uuid": "^14.0.2"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",