@micro-lc/preview 0.5.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +28 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2 -0
- package/package.json +24 -11
- package/website/.vite/manifest.json +18 -0
- package/website/assets/errors-xGUFKyGs.js +1 -0
- package/website/assets/index-AYPpxqPP.css +1 -0
- package/website/assets/index-R8L7d4ZR.js +95 -0
- package/website/development/.vite/manifest.json +18 -0
- package/website/development/assets/errors-PsWGnPGW.js +23 -0
- package/website/development/assets/index--zmXJhVL.js +68630 -0
- package/website/development/assets/index-NQ4PJ7wv.css +96 -0
- package/website/development/index.html +2 -2
- package/website/development/service-worker.js +54 -54
- package/website/index.html +2 -2
- package/website/service-worker.js +2 -2
- package/website/assets/errors-af3a2945.js +0 -1
- package/website/assets/index-51922652.js +0 -19
- package/website/development/assets/errors-5a0ccde7.js +0 -23
- package/website/development/assets/index-d2f4fff8.js +0 -6785
- package/website/development/manifest.json +0 -15
- package/website/manifest.json +0 -15
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
+
## [0.7.0] - 2024-07-09
|
4
|
+
|
5
|
+
### Added
|
6
|
+
|
7
|
+
- Components Explorer
|
8
|
+
- Navigator language overwrite
|
9
|
+
|
10
|
+
## [0.6.1] - 2024-06-27
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Translation of new tag field `descriptionLong`
|
15
|
+
|
16
|
+
## [0.6.0] - 2024-06-21
|
17
|
+
|
18
|
+
### Added
|
19
|
+
|
20
|
+
- Added `unload` message
|
21
|
+
|
22
|
+
### Changed
|
23
|
+
|
24
|
+
- All tags are retrieved from sources, not just the used ones
|
25
|
+
|
26
|
+
### Versioning
|
27
|
+
|
28
|
+
- `es-module-shims` to `^1.8.2`
|
29
|
+
- Dev dependencies updated
|
30
|
+
|
3
31
|
## [0.5.2] - 2023-09-08
|
4
32
|
|
5
33
|
### Added
|
package/dist/index.d.ts
CHANGED
@@ -9,9 +9,15 @@ type SourceMapItems = Record<`${string}/`, UrlMatchPair>;
|
|
9
9
|
interface TagInfo {
|
10
10
|
definitions?: Record<string, unknown>;
|
11
11
|
description?: string;
|
12
|
+
descriptionLong?: string;
|
12
13
|
docLink?: string;
|
14
|
+
example?: string;
|
15
|
+
iconSrc?: string;
|
13
16
|
label?: string;
|
17
|
+
libraryName?: string;
|
18
|
+
previewImage?: string;
|
14
19
|
properties?: Manifest['properties'];
|
20
|
+
source: string;
|
15
21
|
type?: Manifest['type'];
|
16
22
|
}
|
17
23
|
type OverlayMode = 0 | 'interact' | 'select';
|
@@ -29,6 +35,7 @@ interface StyledElementContent extends ElementContent {
|
|
29
35
|
interface OptionMessage {
|
30
36
|
content: {
|
31
37
|
disableOverlay?: boolean;
|
38
|
+
language?: string;
|
32
39
|
redirectTo?: string;
|
33
40
|
run?: boolean;
|
34
41
|
timeout?: number;
|
@@ -78,6 +85,11 @@ declare enum DebugMessage {
|
|
78
85
|
Skip = 1
|
79
86
|
}
|
80
87
|
type RegisteredMessages = {
|
88
|
+
content: {
|
89
|
+
visible: boolean;
|
90
|
+
};
|
91
|
+
type: 'toggle-components-explorer';
|
92
|
+
} | {
|
81
93
|
content: ReducedMouseEvent;
|
82
94
|
type: 'mousedown' | 'mousemove';
|
83
95
|
} | {
|
@@ -88,6 +100,9 @@ type RegisteredMessages = {
|
|
88
100
|
mode: OverlayMode;
|
89
101
|
};
|
90
102
|
type: 'ctrl-space';
|
103
|
+
} | {
|
104
|
+
content: Record<string, never>;
|
105
|
+
type: 'unload';
|
91
106
|
} | {
|
92
107
|
content: InfoEntry[];
|
93
108
|
type: 'tag-info';
|
package/dist/index.js
CHANGED
@@ -18,6 +18,8 @@ const keys = {
|
|
18
18
|
'request-resource': DebugMessage.Default,
|
19
19
|
'set-source-map': DebugMessage.Default,
|
20
20
|
'tag-info': DebugMessage.Default,
|
21
|
+
'toggle-components-explorer': DebugMessage.Skip,
|
22
|
+
unload: DebugMessage.Default,
|
21
23
|
update: DebugMessage.Default,
|
22
24
|
updated: DebugMessage.Default,
|
23
25
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@micro-lc/preview",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.7.0",
|
4
4
|
"module": "./dist/index.js",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"files": [
|
@@ -22,21 +22,34 @@
|
|
22
22
|
"preview": "vite preview"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@
|
26
|
-
"@micro-lc/
|
27
|
-
"
|
25
|
+
"@mia-platform-internal/reactord": "^10.2.0",
|
26
|
+
"@micro-lc/composer": "^2.1.0",
|
27
|
+
"@micro-lc/post-channel": "0.1.1",
|
28
|
+
"antd": "3.26.20",
|
29
|
+
"es-module-shims": "^1.8.2",
|
30
|
+
"react": "^18.3.1",
|
31
|
+
"react-copy-to-clipboard": "^5.1.0",
|
32
|
+
"react-dom": "^18.3.1",
|
33
|
+
"react-json-view": "^1.21.3",
|
34
|
+
"react-markdown": "^9.0.1",
|
35
|
+
"remark-gfm": "^4.0.0",
|
28
36
|
"rxjs": "^7.8.1"
|
29
37
|
},
|
30
38
|
"devDependencies": {
|
31
|
-
"@micro-lc/compose-toolkit": "^0.1.
|
39
|
+
"@micro-lc/compose-toolkit": "^0.1.3",
|
32
40
|
"@micro-lc/interfaces": "^1.1.0",
|
33
|
-
"@playwright/test": "^1.
|
34
|
-
"@types/node": "^20.
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
41
|
+
"@playwright/test": "^1.41.2",
|
42
|
+
"@types/node": "^20.11.16",
|
43
|
+
"@types/react": "^18",
|
44
|
+
"@types/react-copy-to-clipboard": "^5",
|
45
|
+
"@types/react-dom": "^18",
|
46
|
+
"@vitejs/plugin-react": "^4.3.1",
|
47
|
+
"typescript": "^5.3.3",
|
48
|
+
"vite": "^5.0.12",
|
49
|
+
"vite-plugin-mkcert": "^1.17.3",
|
50
|
+
"vite-plugin-svgr": "^4.2.0"
|
38
51
|
},
|
39
52
|
"engines": {
|
40
|
-
"node": ">=
|
53
|
+
"node": ">=v18"
|
41
54
|
}
|
42
55
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js": {
|
3
|
+
"file": "assets/errors-xGUFKyGs.js",
|
4
|
+
"isDynamicEntry": true,
|
5
|
+
"src": "../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
|
6
|
+
},
|
7
|
+
"index.html": {
|
8
|
+
"css": [
|
9
|
+
"assets/index-AYPpxqPP.css"
|
10
|
+
],
|
11
|
+
"dynamicImports": [
|
12
|
+
"../../node_modules/@micro-lc/composer/dist/lib/logger/errors.js"
|
13
|
+
],
|
14
|
+
"file": "assets/index-R8L7d4ZR.js",
|
15
|
+
"isEntry": true,
|
16
|
+
"src": "index.html"
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
var c=(n=>(n.DynamicImportError="0",n.InvalidJSONError="20",n.DigestError="40",n.LexerAnalysisEndedInNormalMode="41",n.InterpolationContextError="42",n.InterpolationJSONError="43",n))(c||{});const t="[micro-lc][composer]",a={0:(n,o)=>"".concat(t,": Dynamic import error while importing ").concat(n," - ").concat(o),20:n=>"".concat(t,": Provided JSON is invalid / Wrong 'Content-Type' was provided - ").concat(n),40:(n,o)=>"".concat(t,": Something went wrong while hashing content ").concat(n," - ").concat(o),41:(n,o)=>"".concat(t,": Lexer could not parse content ").concat(n,' due to unexpected char "}" at position ').concat(o),42:n=>"".concat(t,": Invalid interpolation sequence of keys on input ").concat(n),43:n=>"".concat(t,": Invalid interpolation sequence while parsing a JSON input - ").concat(n)};var e=a;export{c as ErrorCodes,e as default};
|