@teambit/preview.ui.preview-placeholder 0.0.484 → 0.0.487
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/__preview-1646018619726.js +1 -0
- package/dist/preview-placeholder.d.ts +1 -0
- package/dist/preview-placeholder.js +1 -1
- package/dist/preview-placeholder.js.map +1 -1
- package/package-tar/teambit-preview.ui.preview-placeholder-0.0.487.tgz +0 -0
- package/package.json +4 -6
- package/preview-placeholder.tsx +1 -1
- package/package-tar/teambit-preview.ui.preview-placeholder-0.0.484.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -39,7 +39,7 @@ function PreviewPlaceholder({ component, shouldShowPreview, }) {
|
|
|
39
39
|
react_1.default.createElement(evangelist_elements_icon_1.Icon, { of: "Ripple-processing" }),
|
|
40
40
|
react_1.default.createElement("div", null, "Processing preview")));
|
|
41
41
|
if (shouldShowPreview) {
|
|
42
|
-
return react_1.default.createElement(compositions_1.ComponentComposition, { component: component,
|
|
42
|
+
return react_1.default.createElement(compositions_1.ComponentComposition, { component: component, composition: selectedPreview, pubsub: false });
|
|
43
43
|
}
|
|
44
44
|
return (react_1.default.createElement("div", { className: preview_placeholder_module_scss_1.default.previewPlaceholder, "data-tip": "", "data-for": name },
|
|
45
45
|
react_1.default.createElement(evangelist_elements_icon_1.Icon, { of: "img" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-placeholder.js","sourceRoot":"","sources":["../preview-placeholder.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AACvC,wDAA6D;AAC7D,gFAAyD;AAEzD,wGAAuD;AAEvD,SAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,iBAAiB,GAIlB;IACC,MAAM,eAAe,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACnC,IAAI,CAAC,iBAAiB;YAAE,OAAO,SAAS,CAAC;QACzC,OAAO,w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AoB,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,GAAI,CAAC;KACpG;IAED,OAAO,CACL,uCAAK,SAAS,EAAE,yCAAM,CAAC,kBAAkB,cAAW,EAAE,cAAW,IAAI;QACnE,8BAAC,+BAAI,IAAC,EAAE,EAAC,KAAK,GAAG;QACjB,kEAA+B,CAC3B,CACP,CAAC;AACJ,CAAC;AA/BD,gDA+BC;AAED,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAE7C,SAAS,wBAAwB,CAAC,SAAyB;IACzD,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IAEnC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/preview.ui.preview-placeholder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.487",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/preview/ui/preview-placeholder",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.preview",
|
|
8
8
|
"name": "ui/preview-placeholder",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.487"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/react": "^17.0.8",
|
|
17
|
-
"@types/mocha": "
|
|
17
|
+
"@types/mocha": "9.1.0",
|
|
18
18
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
19
19
|
"@babel/runtime": "7.12.18",
|
|
20
20
|
"@types/jest": "^26.0.0",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"@types/node": "12.20.4"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@teambit/legacy": "1.0.193",
|
|
26
25
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
27
26
|
"react": "^16.8.0 || ^17.0.0"
|
|
28
27
|
},
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@teambit/legacy": "-",
|
|
42
|
-
"@types/mocha": "
|
|
41
|
+
"@types/mocha": "9.1.0",
|
|
43
42
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
44
43
|
"@babel/runtime": "7.12.18",
|
|
45
44
|
"@types/jest": "^26.0.0",
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
"react": "-"
|
|
51
50
|
},
|
|
52
51
|
"peerDependencies": {
|
|
53
|
-
"@teambit/legacy": "1.0.193",
|
|
54
52
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
55
53
|
"react": "^16.8.0 || ^17.0.0"
|
|
56
54
|
}
|
package/preview-placeholder.tsx
CHANGED
|
@@ -26,7 +26,7 @@ export function PreviewPlaceholder({
|
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
if (shouldShowPreview) {
|
|
29
|
-
return <ComponentComposition component={component}
|
|
29
|
+
return <ComponentComposition component={component} composition={selectedPreview} pubsub={false} />;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
return (
|
|
Binary file
|