@kong-ui-public/spec-renderer 0.2.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/LICENSE +201 -0
- package/README.md +105 -0
- package/dist/spec-renderer.es.js +36839 -0
- package/dist/spec-renderer.es.js.map +1 -0
- package/dist/spec-renderer.umd.js +166 -0
- package/dist/spec-renderer.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/SpecRenderer.vue.d.ts +54 -0
- package/dist/types/components/SpecRenderer.vue.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +57 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.kong-portal-spec-renderer[data-v-92e2c76f]{font-family:Roboto,Helvetica,sans-serif;font-family:var(--kong-portal-spec-renderer-font-family-default, Roboto, Helvetica, sans-serif);font-size:16px;font-size:var(--kong-portal-spec-renderer-font-size, 16px);color:#000;color:var(--kong-portal-spec-renderer-text-color, #000)}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import '@kong/swagger-ui-web-component';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Document } from '../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
document: {
|
|
6
|
+
type: PropType<Document>;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
url: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
hasSidebar: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
relativeSidebar: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
essentialsOnly: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
document: {
|
|
27
|
+
type: PropType<Document>;
|
|
28
|
+
default: null;
|
|
29
|
+
};
|
|
30
|
+
url: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
hasSidebar: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
relativeSidebar: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
essentialsOnly: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
}>>, {
|
|
47
|
+
url: string;
|
|
48
|
+
document: Document;
|
|
49
|
+
hasSidebar: boolean;
|
|
50
|
+
relativeSidebar: boolean;
|
|
51
|
+
essentialsOnly: boolean;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
54
|
+
//# sourceMappingURL=SpecRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecRenderer.vue.ts"],"names":[],"mappings":"AACA,OAAO,gCAAgC,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAY,MAAM,KAAK,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEnC,wBAoHc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,+BAA+B,CAAA;AAExD,eAAe,YAAY,CAAA;AAE3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACpD,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;CAC3B;AAED,MAAM,WAAW,QAAS,SAAQ,QAAQ,CAAC,UAAU,CAAC;IACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kong-ui-public/spec-renderer",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/spec-renderer.umd.js",
|
|
6
|
+
"module": "./dist/spec-renderer.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/spec-renderer.es.js",
|
|
14
|
+
"require": "./dist/spec-renderer.umd.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
"./dist/*": "./dist/*"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"vue": "^3.2.45"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
|
27
|
+
"vue": "^3.2.45"
|
|
28
|
+
},
|
|
29
|
+
"repository": "https://github.com/Kong/public-ui-components/tree/main/packages/portal/spec-renderer",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/Kong/public-ui-components/issues"
|
|
32
|
+
},
|
|
33
|
+
"author": "Kong, Inc.",
|
|
34
|
+
"license": "Apache-2.0",
|
|
35
|
+
"volta": {
|
|
36
|
+
"extends": "../../../package.json"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@kong/swagger-ui-web-component": "^1.0.17"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"dev": "cross-env USE_SANDBOX=true vite",
|
|
43
|
+
"build": "run-s typecheck build:package build:types",
|
|
44
|
+
"build:package": "vite build",
|
|
45
|
+
"build:types": "vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly",
|
|
46
|
+
"build:visualize": "BUILD_VISUALIZER='portal/spec-renderer' vite build -m production",
|
|
47
|
+
"preview:package": "vite preview --port 4173",
|
|
48
|
+
"preview": "cross-env USE_SANDBOX=true PREVIEW_SANDBOX=true run-s build:package preview:package",
|
|
49
|
+
"lint": "eslint '**/*.{js,jsx,ts,tsx,vue}' --ignore-path '../../../.eslintignore'",
|
|
50
|
+
"lint:fix": "eslint '**/*.{js,jsx,ts,tsx,vue}' --ignore-path '../../../.eslintignore' --fix",
|
|
51
|
+
"stylelint": "stylelint --allow-empty-input './src/**/*.{css,scss,sass,less,styl,vue}'",
|
|
52
|
+
"stylelint:fix": "stylelint --allow-empty-input './src/**/*.{css,scss,sass,less,styl,vue}' --fix",
|
|
53
|
+
"typecheck": "vue-tsc -p './tsconfig.build.json' --noEmit",
|
|
54
|
+
"test:component": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress run --component -b chrome --spec './src/**/*.cy.ts' --project '../../../.'",
|
|
55
|
+
"test:component:open": "BABEL_ENV=cypress cross-env FORCE_COLOR=1 cypress open --component -b chrome --project '../../../.'"
|
|
56
|
+
}
|
|
57
|
+
}
|