api-console 6.0.4 → 6.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "api-console",
3
3
  "description": "The API Console to automatically generate API documentation from RAML and OAS files.",
4
- "version": "6.0.4",
4
+ "version": "6.0.8",
5
5
  "license": "CPAL-1.0",
6
6
  "main": "api-console.js",
7
7
  "keywords": [
@@ -29,14 +29,14 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@advanced-rest-client/arc-icons": "^3.0.5",
32
- "@advanced-rest-client/oauth-authorization": "^3.0.1",
32
+ "@advanced-rest-client/oauth-authorization": "^5.0.6",
33
33
  "@advanced-rest-client/xhr-simple-request": "^3.0.0",
34
34
  "@anypoint-web-components/anypoint-button": "^1.0.14",
35
35
  "@api-components/amf-helper-mixin": "^4.0.18",
36
36
  "@api-components/api-console-ext-comm": "^3.0.0",
37
- "@api-components/api-documentation": "^4.0.5",
37
+ "@api-components/api-documentation": "^5.1.2",
38
38
  "@api-components/api-navigation": "^4.0.3",
39
- "@api-components/api-request-panel": "^4.0.1",
39
+ "@api-components/api-request-panel": "^5.1.1",
40
40
  "@api-components/raml-aware": "^3.0.0",
41
41
  "@polymer/app-layout": "^3.1.0",
42
42
  "@polymer/iron-media-query": "^3.0.0",
@@ -48,7 +48,6 @@
48
48
  "devDependencies": {
49
49
  "@advanced-rest-client/eslint-config": "^1.1.4",
50
50
  "@advanced-rest-client/prettier-config": "^0.1.0",
51
- "@advanced-rest-client/testing-karma-sl": "^1.2.0",
52
51
  "@anypoint-web-components/anypoint-dropdown": "^1.0.1",
53
52
  "@anypoint-web-components/anypoint-item": "^1.0.5",
54
53
  "@anypoint-web-components/anypoint-listbox": "^1.0.4",
@@ -57,11 +56,13 @@
57
56
  "@api-components/api-model-generator": "^0.2.5",
58
57
  "@commitlint/cli": "^8.3.5",
59
58
  "@commitlint/config-conventional": "^8.3.4",
60
- "@open-wc/building-rollup": "^0.20.2",
61
- "@open-wc/testing": "^2.5.1",
62
- "@open-wc/testing-karma": "^3.2.32",
59
+ "@open-wc/building-rollup": "^0.20.6",
60
+ "@open-wc/eslint-config": "^4.3.0",
61
+ "@open-wc/testing": "^2.5.33",
63
62
  "@polymer/gen-typescript-declarations": "^1.6.2",
64
63
  "@polymer/iron-test-helpers": "^3.0.0",
64
+ "@web/test-runner": "^0.13.17",
65
+ "@web/test-runner-playwright": "^0.8.8",
65
66
  "amf-client-js": "^4.0.4",
66
67
  "body-parser": "^1.19.0",
67
68
  "deepmerge": "^4.2.1",
@@ -70,7 +71,6 @@
70
71
  "express": "^4.17.1",
71
72
  "fs-extra": "^8.1.0",
72
73
  "husky": "^4.2.1",
73
- "karma": "^4.4.1",
74
74
  "lint-staged": "^10.0.6",
75
75
  "multer": "^1.4.2",
76
76
  "node-cache": "^5.1.0",
@@ -97,13 +97,8 @@
97
97
  "format:prettier": "prettier \"**/*.js\" --write --ignore-path .gitignore",
98
98
  "lint": "npm run lint:eslint && npm run lint:prettier",
99
99
  "format": "npm run format:eslint && npm run format:prettier",
100
- "test": "karma start --coverage",
101
- "test:watch": "karma start --auto-watch=true --single-run=false",
102
- "test:update-snapshots": "karma start --update-snapshots",
103
- "test:prune-snapshots": "karma start --prune-snapshots",
104
- "test:compatibility": "karma start --compatibility auto --coverage",
105
- "test:compatibility:watch": "karma start --compatibility auto --auto-watch=true --single-run=false",
106
- "test:sl": "karma start karma.sl.config.js --compatibility auto --coverage",
100
+ "test": "web-test-runner test/**/*.test.js --coverage --node-resolve --playwright --browsers chromium firefox webkit",
101
+ "test:watch": "web-test-runner test/**/*.test.js --node-resolve --watch",
107
102
  "build": "rimraf dist && rollup -c rollup.config.js",
108
103
  "prepare": "node tasks/prepare.js"
109
104
  },
package/src/ApiConsole.js CHANGED
@@ -248,7 +248,8 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
248
248
  redirectUri,
249
249
  eventsTarget,
250
250
  baseUri,
251
- noDocs
251
+ noDocs,
252
+ urlLabel,
252
253
  } = this;
253
254
  return html`<api-request-panel
254
255
  .amf="${amf}"
@@ -256,6 +257,7 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
256
257
  ?narrow="${narrow}"
257
258
  ?outlined="${outlined}"
258
259
  ?compatibility="${compatibility}"
260
+ ?urlLabel="${urlLabel}"
259
261
  .noUrlEditor="${noUrlEditor}"
260
262
  .redirectUri="${redirectUri}"
261
263
  .scrollTarget="${scrollTarget}"
@@ -549,6 +551,12 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
549
551
  * **This is an experimental option and may dissapear without warning.**
550
552
  */
551
553
  rearrangeEndpoints: { type: Boolean },
554
+ /**
555
+ * When set it renders a label with the computed URL.
556
+ * This intended to be used with `noUrlEditor` set to true.
557
+ * This way it replaces the editor with a simple label.
558
+ */
559
+ urlLabel: { type: Boolean },
552
560
  };
553
561
  }
554
562
 
@@ -159,6 +159,12 @@ export class ApiConsoleApp extends ApiConsole {
159
159
  _renderInlineTyit: { type: Boolean },
160
160
 
161
161
  _noTryItValue: { type: Boolean },
162
+ /**
163
+ * When set it renders a label with the computed URL.
164
+ * This intended to be used with `noUrlEditor` set to true.
165
+ * This way it replaces the editor with a simple label.
166
+ */
167
+ urlLabel: { type: Boolean },
162
168
  };
163
169
  }
164
170