@kong-ui-public/spec-renderer 2.5.20 → 2.5.21-pr.2800.3190ac720.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/spec-renderer.es.js +0 -48744
- package/dist/spec-renderer.umd.js +0 -317
- package/dist/style.css +0 -1
- package/dist/types/components/SpecDetails.vue.d.ts +0 -94
- package/dist/types/components/SpecDetails.vue.d.ts.map +0 -1
- package/dist/types/components/SpecOperationsList.vue.d.ts +0 -102
- package/dist/types/components/SpecOperationsList.vue.d.ts.map +0 -1
- package/dist/types/components/SpecRenderer.vue.d.ts +0 -74
- package/dist/types/components/SpecRenderer.vue.d.ts.map +0 -1
- package/dist/types/components/operations-list/OperationsListItem.vue.d.ts +0 -41
- package/dist/types/components/operations-list/OperationsListItem.vue.d.ts.map +0 -1
- package/dist/types/components/operations-list/OperationsListSectionHeader.vue.d.ts +0 -44
- package/dist/types/components/operations-list/OperationsListSectionHeader.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -8
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useUtilities.d.ts +0 -5
- package/dist/types/composables/useUtilities.d.ts.map +0 -1
- package/dist/types/constants.d.ts +0 -2
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -2
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/spec-renderer.d.ts +0 -39
- package/dist/types/types/spec-renderer.d.ts.map +0 -1
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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-5aa4cc51]{-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-5aa4cc51]{cursor:default}.spec-operations-list-item[data-v-5aa4cc51]:hover{background:#f9fafb;background:var(--kong-ui-spec-renderer-operations-list-item-background-hover, #f9fafb)}.spec-operations-list-item:hover .summary[data-v-5aa4cc51],.spec-operations-list-item:hover .path[data-v-5aa4cc51]{color:#000933;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-hover, #000933)}.spec-operations-list-item[data-v-5aa4cc51]: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-5aa4cc51]{background:#eefaff;background:var(--kong-ui-spec-renderer-operations-list-item-background-selected, #eefaff)}.item--selected[data-v-5aa4cc51]: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-5aa4cc51],.item--selected .path[data-v-5aa4cc51]{color:#0b172d;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-selected, #0B172D)}.item--method-get[data-v-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{--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-5aa4cc51]{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-5aa4cc51]{display:flex}.truncated[data-v-5aa4cc51]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.method-badge[data-v-5aa4cc51]{font-size:12px;margin-right:8px}.path[data-v-5aa4cc51]{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%}
|
|
@@ -1,94 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,102 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;;cA0cC,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"}
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;;cA8KE,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"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListSectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/operations-list/OperationsListSectionHeader.vue"],"names":[],"mappings":"AAsQA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoBhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,YAAY,CAAA"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAKA,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|