@gravitee/ui-components 3.32.0-renovate-node-16-x-7a4750d → 3.33.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 +5 -5
- package/src/lib/text-format.d.ts +0 -1
- package/src/lib/text-format.js +24 -15
- package/src/lib/text-format.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/ui-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"description": "Gravitee.io UI Components library, based on Web Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@babel/preset-typescript": "7.16.7",
|
|
76
76
|
"@commitlint/cli": "16.2.3",
|
|
77
77
|
"@commitlint/config-conventional": "16.2.1",
|
|
78
|
-
"@highcharts/map-collection": "
|
|
78
|
+
"@highcharts/map-collection": "2.0.0",
|
|
79
79
|
"@semantic-release/changelog": "6.0.1",
|
|
80
80
|
"@semantic-release/git": "10.0.1",
|
|
81
81
|
"@storybook/addon-a11y": "6.4.19",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"fs-extra": "10.0.1",
|
|
103
103
|
"github-markdown-css": "4.0.0",
|
|
104
104
|
"glob": "7.2.0",
|
|
105
|
-
"highcharts": "
|
|
105
|
+
"highcharts": "10.0.0",
|
|
106
106
|
"highlight.js": "11.5.0",
|
|
107
107
|
"html-to-react": "1.4.8",
|
|
108
108
|
"husky": "7.0.4",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"@asciidoctor/core": "^2.2.4",
|
|
133
|
-
"@highcharts/map-collection": "^1.0.0",
|
|
133
|
+
"@highcharts/map-collection": "^1.0.0 || ^2.0.0",
|
|
134
134
|
"asciidoctor": "^2.2.4",
|
|
135
135
|
"asciidoctor-highlight.js": "^0.3.0 || ^0.4.0",
|
|
136
|
-
"highcharts": "^8.0.0 || ^9.0.0",
|
|
136
|
+
"highcharts": "^8.0.0 || ^9.0.0 || ^10.0.0",
|
|
137
137
|
"highlight.js": "^10.7.0 || ^11.1.0"
|
|
138
138
|
},
|
|
139
139
|
"peerDependenciesMeta": {
|
package/src/lib/text-format.d.ts
CHANGED
package/src/lib/text-format.js
CHANGED
|
@@ -13,22 +13,31 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
16
25
|
export function loadAsciiDoctor() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
let _gvAsciidoctor = window._gvAsciidoctor;
|
|
28
|
+
// Load asciidoctor if is not already loaded
|
|
29
|
+
if (_gvAsciidoctor == null) {
|
|
30
|
+
_gvAsciidoctor = yield import('asciidoctor');
|
|
31
|
+
window._gvAsciidoctor = _gvAsciidoctor.default();
|
|
32
|
+
}
|
|
33
|
+
// Load asciidoctor highlight if is not already loaded
|
|
34
|
+
if (window._gvAsciidoctorHighlight == null) {
|
|
35
|
+
const highlightJsExt = yield import('asciidoctor-highlight.js');
|
|
36
|
+
highlightJsExt.default.register(_gvAsciidoctor.Extensions);
|
|
37
|
+
window._gvAsciidoctorHighlight = true;
|
|
38
|
+
}
|
|
39
|
+
return _gvAsciidoctor;
|
|
40
|
+
});
|
|
32
41
|
}
|
|
33
42
|
export function toDom(text, type = 'adoc', small = false) {
|
|
34
43
|
return loadAsciiDoctor().then((asciidoctor) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-format.js","sourceRoot":"","sources":["../../../src/lib/text-format.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"text-format.js","sourceRoot":"","sources":["../../../src/lib/text-format.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,MAAM,UAAgB,eAAe;;QACnC,IAAI,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAE3C,4CAA4C;QAC5C,IAAI,cAAc,IAAI,IAAI,EAAE;YAC1B,cAAc,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;YAC7C,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;SAClD;QAED,sDAAsD;QACtD,IAAI,MAAM,CAAC,uBAAuB,IAAI,IAAI,EAAE;YAC1C,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC;YAChE,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;YAC3D,MAAM,CAAC,uBAAuB,GAAG,IAAI,CAAC;SACvC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CAAA;AAED,MAAM,UAAU,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,GAAG,KAAK;IACtD,OAAO,eAAe,EAAE,CAAC,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