@teambit/preview.ui.preview-placeholder 0.0.486 → 0.0.489

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.
@@ -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, hotReload: false, composition: selectedPreview });
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,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAEnC,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IACrC,IAAI,SAAS,CAAC,WAAW,KAAK,SAAS;QACrC,OAAO,CACL,uCAAK,SAAS,EAAE,yCAAM,CAAC,kBAAkB,cAAW,EAAE,cAAW,IAAI;YACnE,8BAAC,+BAAI,IAAC,EAAE,EAAC,mBAA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AM,CAAC,kBAAkB,cAAW,EAAE,cAAW,IAAI;YACnE,8BAAC,+BAAI,IAAC,EAAE,EAAC,mBAAmB,GAAG;YAC/B,gEAA6B,CACzB,CACP,CAAC;IAEJ,IAAI,iBAAiB,EAAE;QACrB,OAAO,8BAAC,mCAAoB,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"}
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": [
4
+ "es2019",
5
+ "DOM",
6
+ "ES6",
7
+ "DOM.Iterable"
8
+ ],
9
+ "target": "es2015",
10
+ "module": "CommonJS",
11
+ "jsx": "react",
12
+ "allowJs": true,
13
+ "composite": true,
14
+ "declaration": true,
15
+ "sourceMap": true,
16
+ "skipLibCheck": true,
17
+ "experimentalDecorators": true,
18
+ "outDir": "dist",
19
+ "moduleResolution": "node",
20
+ "esModuleInterop": true,
21
+ "rootDir": ".",
22
+ "resolveJsonModule": true
23
+ },
24
+ "exclude": [
25
+ "dist",
26
+ "package.json"
27
+ ],
28
+ "include": [
29
+ "**/*",
30
+ "**/*.json"
31
+ ]
32
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/preview.ui.preview-placeholder",
3
- "version": "0.0.486",
3
+ "version": "0.0.489",
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.486"
9
+ "version": "0.0.489"
10
10
  },
11
11
  "dependencies": {
12
12
  "core-js": "^3.0.0",
@@ -26,34 +26,6 @@
26
26
  "react": "^16.8.0 || ^17.0.0"
27
27
  },
28
28
  "license": "Apache-2.0",
29
- "bit": {
30
- "bindingPrefix": "@teambit",
31
- "env": {},
32
- "overrides": {
33
- "dependencies": {
34
- "@teambit/legacy": "-",
35
- "core-js": "^3.0.0",
36
- "react-dom": "-",
37
- "react": "-"
38
- },
39
- "devDependencies": {
40
- "@teambit/legacy": "-",
41
- "@types/mocha": "9.1.0",
42
- "@types/testing-library__jest-dom": "5.9.5",
43
- "@babel/runtime": "7.12.18",
44
- "@types/jest": "^26.0.0",
45
- "@types/react-dom": "^17.0.5",
46
- "@types/react": "^17.0.8",
47
- "@types/node": "12.20.4",
48
- "react-dom": "-",
49
- "react": "-"
50
- },
51
- "peerDependencies": {
52
- "react-dom": "^16.8.0 || ^17.0.0",
53
- "react": "^16.8.0 || ^17.0.0"
54
- }
55
- }
56
- },
57
29
  "private": false,
58
30
  "engines": {
59
31
  "node": ">=12.22.0"
@@ -70,8 +42,6 @@
70
42
  "react",
71
43
  "react-components",
72
44
  "angular",
73
- "angular-components",
74
- "vue",
75
- "vue-components"
45
+ "angular-components"
76
46
  ]
77
47
  }
@@ -0,0 +1,5 @@
1
+ ;
2
+ ;
3
+
4
+ export const compositions = [];
5
+ export const overview = [];
@@ -26,7 +26,7 @@ export function PreviewPlaceholder({
26
26
  );
27
27
 
28
28
  if (shouldShowPreview) {
29
- return <ComponentComposition component={component} hotReload={false} composition={selectedPreview} />;
29
+ return <ComponentComposition component={component} composition={selectedPreview} pubsub={false} />;
30
30
  }
31
31
 
32
32
  return (
package/tsconfig.json CHANGED
@@ -7,13 +7,14 @@
7
7
  "DOM.Iterable"
8
8
  ],
9
9
  "target": "es2015",
10
- "module": "commonjs",
10
+ "module": "CommonJS",
11
11
  "jsx": "react",
12
12
  "allowJs": true,
13
13
  "composite": true,
14
14
  "declaration": true,
15
15
  "sourceMap": true,
16
16
  "skipLibCheck": true,
17
+ "experimentalDecorators": true,
17
18
  "outDir": "dist",
18
19
  "moduleResolution": "node",
19
20
  "esModuleInterop": true,
@@ -21,6 +22,11 @@
21
22
  "resolveJsonModule": true
22
23
  },
23
24
  "exclude": [
24
- "dist"
25
+ "dist",
26
+ "package.json"
27
+ ],
28
+ "include": [
29
+ "**/*",
30
+ "**/*.json"
25
31
  ]
26
32
  }
@@ -1 +0,0 @@
1
-