@kong-ui-public/spec-renderer 2.3.38-pr.2114.d6a8378f0.0 → 2.3.38

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 +47425 -0
  2. package/dist/spec-renderer.umd.js +283 -0
  3. package/dist/style.css +1 -0
  4. package/dist/types/components/SpecDetails.vue.d.ts +93 -0
  5. package/dist/types/components/SpecDetails.vue.d.ts.map +1 -0
  6. package/dist/types/components/SpecOperationsList.vue.d.ts +98 -0
  7. package/dist/types/components/SpecOperationsList.vue.d.ts.map +1 -0
  8. package/dist/types/components/SpecRenderer.vue.d.ts +72 -0
  9. package/dist/types/components/SpecRenderer.vue.d.ts.map +1 -0
  10. package/dist/types/components/operations-list/OperationsListItem.vue.d.ts +40 -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 +43 -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 +4 -4
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .kong-public-ui-spec-details[data-v-a1538e9b]{color:#000933;color:var(--kong-ui-portal-spec-details-text-color, #000933);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-portal-spec-details-font-family-default, "Inter", Roboto, Helvetica, sans-serif);font-size:16px;font-size:var(--kong-ui-portal-spec-details-font-size, 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-3f1b0d9c]{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;background:var(--kong-ui-spec-renderer-operations-list-section-background, transparent);border:1px solid #e0e4ea;border:1px solid var(--kong-ui-spec-renderer-operations-list-section-border-color, #e0e4ea);border-top-left-radius:4px;border-top-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);border-top-right-radius:4px;border-top-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);color:currentColor;cursor:pointer;display:flex;padding:8px;padding:var(--kong-ui-spec-renderer-operations-list-section-padding, 8px);width:100%}.header--collapsed[data-v-3f1b0d9c]{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px)}.label[data-v-3f1b0d9c]{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, 16px);font-weight:600;line-height:24px;margin:0 8px 0 0}.label[data-v-3f1b0d9c]:first-letter{text-transform:capitalize}.header--collapsed .label[data-v-3f1b0d9c]{color:#3a3f51;color:var(--kong-ui-spec-renderer-operations-list-section-label-text-color-collapsed, #3a3f51)}.description[data-v-3f1b0d9c]{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, "JetBrains Mono", Consolas, monospace));line-height:1;margin-left:auto;max-width:65%}.icon-wrapper[data-v-3f1b0d9c]{height:18px;margin-right:8px}.truncated[data-v-3f1b0d9c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spec-operations-list-item[data-v-1907b313]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid #e0e4ea;border:1px solid var(--kong-ui-spec-renderer-operations-list-item-border-color, #e0e4ea);cursor:pointer;display:block;padding:8px 16px;padding:var(--kong-ui-spec-renderer-operations-list-item-padding, 8px 16px);position:relative;text-align:left;width:100%}.spec-operations-list-item.disabled[data-v-1907b313]{cursor:default}.spec-operations-list-item[data-v-1907b313]:hover{background:#f9fafb;background:var(--kong-ui-spec-renderer-operations-list-item-background-hover, #f9fafb)}.spec-operations-list-item:hover .summary[data-v-1907b313],.spec-operations-list-item:hover .path[data-v-1907b313]{color:#000933;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-hover, #000933)}.spec-operations-list-item[data-v-1907b313]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px)}.item--selected[data-v-1907b313]{background:#eefaff;background:var(--kong-ui-spec-renderer-operations-list-item-background-selected, #eefaff)}.item--selected[data-v-1907b313]:before{background:#0044f4;background:var(--kong-ui-spec-renderer-operations-list-item-selected-bar-background, #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-1907b313],.item--selected .path[data-v-1907b313]{color:#0b172d;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-selected, #0B172D)}.item--method-get[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-get, #0044f4);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-get, #eefaff)}.item--method-post[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-post, #007d60);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-post, #ecfffb)}.item--method-put[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-put, #995c00);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-put, #fffce0)}.item--method-patch[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-patch, #00819d);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-patch, #ecfcff)}.item--method-delete[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-delete, #d60027);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-delete, #ffe5e5)}.item--method-options[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-options, #52596e);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-options, #e0e4ea)}.item--method-head[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-head, #e0e4ea);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-head, #52596e)}.item--method-connect[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-connect, #6f28ff);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-connect, #f1f0ff)}.item--method-trace[data-v-1907b313]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-trace, #d60067);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-trace, #fff0f7)}.summary[data-v-1907b313]{color:#000933;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color, #000933);font-family:inherit;font-size:12px;font-weight:700;margin:0 0 4px}.details[data-v-1907b313]{display:flex}.truncated[data-v-1907b313]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.method-badge[data-v-1907b313]{font-size:12px;margin-right:8px}.path[data-v-1907b313]{align-self:center;color:#3a3f51;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color, #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, "JetBrains Mono", Consolas, monospace));font-size:12px}.kong-ui-public-spec-operations-list[data-v-414f8e91]{color:#000933;color:var(--kong-ui-kong-spec-renderer-operations-list-text-color, var(--kong-ui-spec-renderer-text-color, #000933));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, "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, 16px))}.kong-ui-public-spec-operations-list .filter-wrapper[data-v-414f8e91]{margin-bottom:8px;position:relative}.kong-ui-public-spec-operations-list .filter-input[data-v-414f8e91]{width:100%}.kong-ui-public-spec-operations-list .filter-input[data-v-414f8e91] .input{padding-left:32px}.kong-ui-public-spec-operations-list .section-wrapper[data-v-414f8e91]{margin-bottom:8px}.kong-ui-public-spec-operations-list .section-wrapper[data-v-414f8e91]:last-of-type{margin-bottom:0}.kong-ui-public-spec-operations-list .center[data-v-414f8e91]{text-align:center}.kong-ui-public-spec-operations-list[data-v-414f8e91] .k-collapse .k-collapse-heading{margin:0!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,93 @@
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 _default: 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
+ export default _default;
93
+ //# 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":"AAkJA,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;;;cAsP3C,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;;;;cAxB3B,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAwBtB,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAhC/C,wBA4CG"}
@@ -0,0 +1,98 @@
1
+ import type { PropType } from 'vue';
2
+ import type { OperationListFilterFunction, Operation, OperationListItem, Tag } from '../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ operations: {
5
+ type: PropType<Operation[]>;
6
+ required: true;
7
+ validator: (items: Operation[]) => boolean;
8
+ };
9
+ tags: {
10
+ type: PropType<Tag[]>;
11
+ default: () => never[];
12
+ validator: (items: Tag[]) => boolean;
13
+ };
14
+ isFilterable: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ filterFunction: {
19
+ type: PropType<OperationListFilterFunction>;
20
+ default: OperationListFilterFunction;
21
+ validator: (maybeFunc: unknown) => maybeFunc is Function;
22
+ };
23
+ deselect: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ disableSelection: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ width: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ selected: (...args: any[]) => void;
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
+ operations: {
39
+ type: PropType<Operation[]>;
40
+ required: true;
41
+ validator: (items: Operation[]) => boolean;
42
+ };
43
+ tags: {
44
+ type: PropType<Tag[]>;
45
+ default: () => never[];
46
+ validator: (items: Tag[]) => boolean;
47
+ };
48
+ isFilterable: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ filterFunction: {
53
+ type: PropType<OperationListFilterFunction>;
54
+ default: OperationListFilterFunction;
55
+ validator: (maybeFunc: unknown) => maybeFunc is Function;
56
+ };
57
+ deselect: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ disableSelection: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ width: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ }>> & Readonly<{
70
+ onSelected?: ((...args: any[]) => any) | undefined;
71
+ }>, {
72
+ tags: Tag[];
73
+ disableSelection: boolean;
74
+ isFilterable: boolean;
75
+ filterFunction: OperationListFilterFunction;
76
+ deselect: boolean;
77
+ width: string;
78
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
79
+ item?(_: {
80
+ item: OperationListItem;
81
+ section: string;
82
+ select: () => void;
83
+ }): any;
84
+ "untagged-item"?(_: {
85
+ item: OperationListItem;
86
+ section: "default";
87
+ select: () => void;
88
+ }): any;
89
+ "empty-state"?(_: {}): any;
90
+ "error-state"?(_: {}): any;
91
+ }>;
92
+ export default _default;
93
+ type __VLS_WithTemplateSlots<T, S> = T & {
94
+ new (): {
95
+ $slots: S;
96
+ };
97
+ };
98
+ //# 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":"AAgWA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,2BAA2B,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;;;cA0e3E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAtGV,GAAG;;;;;QACQ,GAAG;2BACL,GAAG;2BACH,GAAG;;AA7YvC,wBAkgBK;AAIL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,72 @@
1
+ import type { PropType } from 'vue';
2
+ import type { SpecDocument, Operation, Tag } from '../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ spec: {
5
+ type: PropType<SpecDocument>;
6
+ required: true;
7
+ };
8
+ essentialsOnly: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ operationsList: {
13
+ type: PropType<Operation[]>;
14
+ required: true;
15
+ validator: (items: Operation[]) => boolean;
16
+ };
17
+ tags: {
18
+ type: PropType<Tag[]>;
19
+ default: () => never[];
20
+ validator: (items: Tag[]) => boolean;
21
+ };
22
+ navWidth: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ deselect: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ spec: {
32
+ type: PropType<SpecDocument>;
33
+ required: true;
34
+ };
35
+ essentialsOnly: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ operationsList: {
40
+ type: PropType<Operation[]>;
41
+ required: true;
42
+ validator: (items: Operation[]) => boolean;
43
+ };
44
+ tags: {
45
+ type: PropType<Tag[]>;
46
+ default: () => never[];
47
+ validator: (items: Tag[]) => boolean;
48
+ };
49
+ navWidth: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ deselect: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ }>> & Readonly<{}>, {
58
+ tags: Tag[];
59
+ essentialsOnly: boolean;
60
+ deselect: boolean;
61
+ navWidth: string;
62
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
63
+ "ops-list-empty-state"?(_: {}): any;
64
+ "error-state"?(_: {}): any;
65
+ }>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
72
+ //# 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":"AAuHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAqB,GAAG,EAAE,MAAM,UAAU,CAAA;;;cAwO3D,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;;;;;;;;;;;;;;;;oCA5EM,GAAG;2BACX,GAAG;;AAnKvC,wBA2PK;AAIL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { PropType } from 'vue';
2
+ import type { OperationListItem } from '../../types';
3
+ declare const _default: 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
+ export default _default;
40
+ //# 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":"AAkNA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;;;cA8LhC,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;;;;;;;;;;;;;;;;AAXvD,wBA0BG"}
@@ -0,0 +1,43 @@
1
+ declare const _default: 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
+ export default _default;
43
+ //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuSA,wBAwBG"}
@@ -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.3.38-pr.2114.d6a8378f0.0",
3
+ "version": "2.3.38",
4
4
  "type": "module",
5
5
  "main": "./dist/spec-renderer.umd.js",
6
6
  "module": "./dist/spec-renderer.es.js",
@@ -21,13 +21,13 @@
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
- "@kong/kongponents": "^9.30.0",
24
+ "@kong/kongponents": "^9.34.2",
25
25
  "vue": ">= 3.3.13 < 4",
26
26
  "@kong-ui-public/i18n": "^2.3.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@kong/design-tokens": "1.17.4",
30
- "@kong/kongponents": "9.32.6",
30
+ "@kong/kongponents": "9.34.2",
31
31
  "@modyfi/vite-plugin-yaml": "^1.1.0",
32
32
  "@types/lodash.clonedeep": "^4.5.9",
33
33
  "@types/uuid": "^10.0.0",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@kong-ui-public/swagger-ui-web-component": "^0.12.9",
40
- "@kong/icons": "^1.26.0",
40
+ "@kong/icons": "^1.31.0",
41
41
  "lodash.clonedeep": "^4.5.0",
42
42
  "uuid": "^10.0.0"
43
43
  },