@teambit/preview 1.0.969 → 1.0.971
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/bundler/create-peer-link.spec.ts +24 -2
- package/bundler/create-peers-link.ts +21 -1
- package/dist/bundler/create-peer-link.spec.js +23 -2
- package/dist/bundler/create-peer-link.spec.js.map +1 -1
- package/dist/bundler/create-peers-link.js +21 -1
- package/dist/bundler/create-peers-link.js.map +1 -1
- package/dist/{preview-1777488239091.js → preview-1777558806286.js} +2 -2
- package/package.json +20 -20
|
@@ -10,6 +10,26 @@ const guardSnapshot = `function guard(property, expected) {
|
|
|
10
10
|
throw new Error('[expose-peers] "' + property + '" already exists in the global scope, cannot overwrite');
|
|
11
11
|
}`;
|
|
12
12
|
|
|
13
|
+
const exposeNamespaceSnapshot = `function exposeNamespace(ns) {
|
|
14
|
+
// when a consumer is bundled as ESM and does \`import x from 'pkg'\` then \`x()\`,
|
|
15
|
+
// webpack may emit a direct call on the external value with no interop helper.
|
|
16
|
+
// the namespace object isn't callable, so wrap it in a function that proxies
|
|
17
|
+
// to the default export while preserving named exports, \`default\`, and the
|
|
18
|
+
// \`__esModule\` flag (so consumers that DO use interop still get the default).
|
|
19
|
+
if (!ns || typeof ns !== 'object') return ns;
|
|
20
|
+
var def = ns.default;
|
|
21
|
+
if (typeof def !== 'function') return ns;
|
|
22
|
+
var wrapper = function () { return def.apply(this, arguments); };
|
|
23
|
+
for (var k in ns) {
|
|
24
|
+
if (k !== 'default') {
|
|
25
|
+
try { wrapper[k] = ns[k]; } catch (e) { /* readonly key, ignore */ }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
wrapper.default = def;
|
|
29
|
+
wrapper.__esModule = true;
|
|
30
|
+
return wrapper;
|
|
31
|
+
}`;
|
|
32
|
+
|
|
13
33
|
const snapshot = `// @ts-nocheck
|
|
14
34
|
import * as FooBar from "foo-bar";
|
|
15
35
|
import * as BuzQux from "@buz/qux";
|
|
@@ -19,8 +39,10 @@ const globalObj = window;
|
|
|
19
39
|
guard("FooBar", FooBar);
|
|
20
40
|
guard("BuzQux", BuzQux);
|
|
21
41
|
|
|
22
|
-
globalObj["FooBar"] = FooBar;
|
|
23
|
-
globalObj["BuzQux"] = BuzQux;
|
|
42
|
+
globalObj["FooBar"] = exposeNamespace(FooBar);
|
|
43
|
+
globalObj["BuzQux"] = exposeNamespace(BuzQux);
|
|
44
|
+
|
|
45
|
+
${exposeNamespaceSnapshot}
|
|
24
46
|
|
|
25
47
|
${guardSnapshot}
|
|
26
48
|
`;
|
|
@@ -30,7 +30,27 @@ const globalObj = window;
|
|
|
30
30
|
|
|
31
31
|
${links.map(({ varName: localName }) => `guard("${localName}", ${localName})`).join(';\n')};
|
|
32
32
|
|
|
33
|
-
${links.map((x) => `globalObj["${x.varName}"] = ${x.varName}`).join(';\n')};
|
|
33
|
+
${links.map((x) => `globalObj["${x.varName}"] = exposeNamespace(${x.varName})`).join(';\n')};
|
|
34
|
+
|
|
35
|
+
function exposeNamespace(ns) {
|
|
36
|
+
// when a consumer is bundled as ESM and does \`import x from 'pkg'\` then \`x()\`,
|
|
37
|
+
// webpack may emit a direct call on the external value with no interop helper.
|
|
38
|
+
// the namespace object isn't callable, so wrap it in a function that proxies
|
|
39
|
+
// to the default export while preserving named exports, \`default\`, and the
|
|
40
|
+
// \`__esModule\` flag (so consumers that DO use interop still get the default).
|
|
41
|
+
if (!ns || typeof ns !== 'object') return ns;
|
|
42
|
+
var def = ns.default;
|
|
43
|
+
if (typeof def !== 'function') return ns;
|
|
44
|
+
var wrapper = function () { return def.apply(this, arguments); };
|
|
45
|
+
for (var k in ns) {
|
|
46
|
+
if (k !== 'default') {
|
|
47
|
+
try { wrapper[k] = ns[k]; } catch (e) { /* readonly key, ignore */ }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
wrapper.default = def;
|
|
51
|
+
wrapper.__esModule = true;
|
|
52
|
+
return wrapper;
|
|
53
|
+
}
|
|
34
54
|
|
|
35
55
|
function guard(property, expected) {
|
|
36
56
|
var existing = globalObj[property];
|
|
@@ -22,6 +22,25 @@ const guardSnapshot = `function guard(property, expected) {
|
|
|
22
22
|
else if (existing !== undefined)
|
|
23
23
|
throw new Error('[expose-peers] "' + property + '" already exists in the global scope, cannot overwrite');
|
|
24
24
|
}`;
|
|
25
|
+
const exposeNamespaceSnapshot = `function exposeNamespace(ns) {
|
|
26
|
+
// when a consumer is bundled as ESM and does \`import x from 'pkg'\` then \`x()\`,
|
|
27
|
+
// webpack may emit a direct call on the external value with no interop helper.
|
|
28
|
+
// the namespace object isn't callable, so wrap it in a function that proxies
|
|
29
|
+
// to the default export while preserving named exports, \`default\`, and the
|
|
30
|
+
// \`__esModule\` flag (so consumers that DO use interop still get the default).
|
|
31
|
+
if (!ns || typeof ns !== 'object') return ns;
|
|
32
|
+
var def = ns.default;
|
|
33
|
+
if (typeof def !== 'function') return ns;
|
|
34
|
+
var wrapper = function () { return def.apply(this, arguments); };
|
|
35
|
+
for (var k in ns) {
|
|
36
|
+
if (k !== 'default') {
|
|
37
|
+
try { wrapper[k] = ns[k]; } catch (e) { /* readonly key, ignore */ }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
wrapper.default = def;
|
|
41
|
+
wrapper.__esModule = true;
|
|
42
|
+
return wrapper;
|
|
43
|
+
}`;
|
|
25
44
|
const snapshot = `// @ts-nocheck
|
|
26
45
|
import * as FooBar from "foo-bar";
|
|
27
46
|
import * as BuzQux from "@buz/qux";
|
|
@@ -31,8 +50,10 @@ const globalObj = window;
|
|
|
31
50
|
guard("FooBar", FooBar);
|
|
32
51
|
guard("BuzQux", BuzQux);
|
|
33
52
|
|
|
34
|
-
globalObj["FooBar"] = FooBar;
|
|
35
|
-
globalObj["BuzQux"] = BuzQux;
|
|
53
|
+
globalObj["FooBar"] = exposeNamespace(FooBar);
|
|
54
|
+
globalObj["BuzQux"] = exposeNamespace(BuzQux);
|
|
55
|
+
|
|
56
|
+
${exposeNamespaceSnapshot}
|
|
36
57
|
|
|
37
58
|
${guardSnapshot}
|
|
38
59
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chai","data","require","_createPeersLink","guardSnapshot","snapshot","describe","it","result","generatePeerLink","expect","to","equal"],"sources":["create-peer-link.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { generatePeerLink } from './create-peers-link';\n\nconst guardSnapshot = `function guard(property, expected) {\n var existing = globalObj[property];\n\n if (existing === expected && expected !== undefined)\n console.warn('[expose-peers] \"' + property + '\" already exists in global scope, but with correct value');\n else if (existing !== undefined)\n throw new Error('[expose-peers] \"' + property + '\" already exists in the global scope, cannot overwrite');\n}`;\n\nconst snapshot = `// @ts-nocheck\nimport * as FooBar from \"foo-bar\";\nimport * as BuzQux from \"@buz/qux\";\n\nconst globalObj = window;\n\nguard(\"FooBar\", FooBar);\nguard(\"BuzQux\", BuzQux);\n\nglobalObj[\"FooBar\"] = FooBar;\nglobalObj[\"BuzQux\"] = BuzQux;\n\n${guardSnapshot}\n`;\n\ndescribe('peers link', () => {\n it('should output snapshot', () => {\n const result = generatePeerLink(['foo-bar', '@buz/qux']);\n\n expect(result).to.equal(snapshot);\n });\n});\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,iBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,gBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAMG,aAAa,GAAG;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AAEF,MAAMC,QAAQ,GAAG;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAED,aAAa;AACf,CAAC;
|
|
1
|
+
{"version":3,"names":["_chai","data","require","_createPeersLink","guardSnapshot","exposeNamespaceSnapshot","snapshot","describe","it","result","generatePeerLink","expect","to","equal"],"sources":["create-peer-link.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { generatePeerLink } from './create-peers-link';\n\nconst guardSnapshot = `function guard(property, expected) {\n var existing = globalObj[property];\n\n if (existing === expected && expected !== undefined)\n console.warn('[expose-peers] \"' + property + '\" already exists in global scope, but with correct value');\n else if (existing !== undefined)\n throw new Error('[expose-peers] \"' + property + '\" already exists in the global scope, cannot overwrite');\n}`;\n\nconst exposeNamespaceSnapshot = `function exposeNamespace(ns) {\n // when a consumer is bundled as ESM and does \\`import x from 'pkg'\\` then \\`x()\\`,\n // webpack may emit a direct call on the external value with no interop helper.\n // the namespace object isn't callable, so wrap it in a function that proxies\n // to the default export while preserving named exports, \\`default\\`, and the\n // \\`__esModule\\` flag (so consumers that DO use interop still get the default).\n if (!ns || typeof ns !== 'object') return ns;\n var def = ns.default;\n if (typeof def !== 'function') return ns;\n var wrapper = function () { return def.apply(this, arguments); };\n for (var k in ns) {\n if (k !== 'default') {\n try { wrapper[k] = ns[k]; } catch (e) { /* readonly key, ignore */ }\n }\n }\n wrapper.default = def;\n wrapper.__esModule = true;\n return wrapper;\n}`;\n\nconst snapshot = `// @ts-nocheck\nimport * as FooBar from \"foo-bar\";\nimport * as BuzQux from \"@buz/qux\";\n\nconst globalObj = window;\n\nguard(\"FooBar\", FooBar);\nguard(\"BuzQux\", BuzQux);\n\nglobalObj[\"FooBar\"] = exposeNamespace(FooBar);\nglobalObj[\"BuzQux\"] = exposeNamespace(BuzQux);\n\n${exposeNamespaceSnapshot}\n\n${guardSnapshot}\n`;\n\ndescribe('peers link', () => {\n it('should output snapshot', () => {\n const result = generatePeerLink(['foo-bar', '@buz/qux']);\n\n expect(result).to.equal(snapshot);\n });\n});\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,iBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,gBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAMG,aAAa,GAAG;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AAEF,MAAMC,uBAAuB,GAAG;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AAEF,MAAMC,QAAQ,GAAG;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAED,uBAAuB;AACzB;AACA,EAAED,aAAa;AACf,CAAC;AAEDG,QAAQ,CAAC,YAAY,EAAE,MAAM;EAC3BC,EAAE,CAAC,wBAAwB,EAAE,MAAM;IACjC,MAAMC,MAAM,GAAG,IAAAC,mCAAgB,EAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAExD,IAAAC,cAAM,EAACF,MAAM,CAAC,CAACG,EAAE,CAACC,KAAK,CAACP,QAAQ,CAAC;EACnC,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -59,7 +59,27 @@ ${links.map(({
|
|
|
59
59
|
varName: localName
|
|
60
60
|
}) => `guard("${localName}", ${localName})`).join(';\n')};
|
|
61
61
|
|
|
62
|
-
${links.map(x => `globalObj["${x.varName}"] = ${x.varName}`).join(';\n')};
|
|
62
|
+
${links.map(x => `globalObj["${x.varName}"] = exposeNamespace(${x.varName})`).join(';\n')};
|
|
63
|
+
|
|
64
|
+
function exposeNamespace(ns) {
|
|
65
|
+
// when a consumer is bundled as ESM and does \`import x from 'pkg'\` then \`x()\`,
|
|
66
|
+
// webpack may emit a direct call on the external value with no interop helper.
|
|
67
|
+
// the namespace object isn't callable, so wrap it in a function that proxies
|
|
68
|
+
// to the default export while preserving named exports, \`default\`, and the
|
|
69
|
+
// \`__esModule\` flag (so consumers that DO use interop still get the default).
|
|
70
|
+
if (!ns || typeof ns !== 'object') return ns;
|
|
71
|
+
var def = ns.default;
|
|
72
|
+
if (typeof def !== 'function') return ns;
|
|
73
|
+
var wrapper = function () { return def.apply(this, arguments); };
|
|
74
|
+
for (var k in ns) {
|
|
75
|
+
if (k !== 'default') {
|
|
76
|
+
try { wrapper[k] = ns[k]; } catch (e) { /* readonly key, ignore */ }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
wrapper.default = def;
|
|
80
|
+
wrapper.__esModule = true;
|
|
81
|
+
return wrapper;
|
|
82
|
+
}
|
|
63
83
|
|
|
64
84
|
function guard(property, expected) {
|
|
65
85
|
var existing = globalObj[property];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_path","data","require","_fsExtra","_camelcase","_interopRequireDefault","_objectHash","e","__esModule","default","writePeerLink","peers","workdir","content","generatePeerLink","fullpath","join","hash","writeFile","links","map","p","packageName","varName","toVarName","x","localName","camelcase","replace","pascalCase"],"sources":["create-peers-link.ts"],"sourcesContent":["import { join } from 'path';\nimport { writeFile } from 'fs-extra';\nimport camelcase from 'camelcase';\nimport hash from 'object-hash';\n\nexport async function writePeerLink(peers: string[], workdir: string) {\n const content = generatePeerLink(peers);\n const fullpath = join(workdir, `peers-link.${hash(content)}.js`);\n\n await writeFile(fullpath, content);\n\n return fullpath;\n}\n\n// TODO - this exposes the packages in the \"window\" strategy,\n// should use a better strategy like umd, systemjs, or jsonp\n\nexport function generatePeerLink(peers: string[]) {\n if (!peers) return '';\n\n const links = peers.map((p) => ({\n packageName: p,\n varName: toVarName(p),\n }));\n\n return `// @ts-nocheck\n${links.map((x) => `import * as ${x.varName} from \"${x.packageName}\"`).join(';\\n')};\n\nconst globalObj = window;\n\n${links.map(({ varName: localName }) => `guard(\"${localName}\", ${localName})`).join(';\\n')};\n\n${links.map((x) => `globalObj[\"${x.varName}\"] = ${x.varName}`).join(';\\n')};\n\nfunction guard(property, expected) {\n var existing = globalObj[property];\n\n if (existing === expected && expected !== undefined)\n console.warn('[expose-peers] \"' + property + '\" already exists in global scope, but with correct value');\n else if (existing !== undefined)\n throw new Error('[expose-peers] \"' + property + '\" already exists in the global scope, cannot overwrite');\n}\n`;\n}\n\nfunction toVarName(packageName: string) {\n return camelcase(packageName.replace('@', '__').replace('/', '_'), { pascalCase: true });\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,YAAA;EAAA,MAAAL,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAI,WAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA+B,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAExB,eAAeG,aAAaA,CAACC,KAAe,EAAEC,OAAe,EAAE;EACpE,MAAMC,OAAO,GAAGC,gBAAgB,CAACH,KAAK,CAAC;EACvC,MAAMI,QAAQ,GAAG,IAAAC,YAAI,EAACJ,OAAO,EAAE,cAAc,IAAAK,qBAAI,EAACJ,OAAO,CAAC,KAAK,CAAC;EAEhE,MAAM,IAAAK,oBAAS,EAACH,QAAQ,EAAEF,OAAO,CAAC;EAElC,OAAOE,QAAQ;AACjB;;AAEA;AACA;;AAEO,SAASD,gBAAgBA,CAACH,KAAe,EAAE;EAChD,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,MAAMQ,KAAK,GAAGR,KAAK,CAACS,GAAG,CAAEC,CAAC,KAAM;IAC9BC,WAAW,EAAED,CAAC;IACdE,OAAO,EAAEC,SAAS,CAACH,CAAC;EACtB,CAAC,CAAC,CAAC;EAEH,OAAO;AACT,EAAEF,KAAK,CAACC,GAAG,CAAEK,CAAC,IAAK,eAAeA,CAAC,CAACF,OAAO,UAAUE,CAAC,CAACH,WAAW,GAAG,CAAC,CAACN,IAAI,CAAC,KAAK,CAAC;AAClF;AACA;AACA;AACA,EAAEG,KAAK,CAACC,GAAG,CAAC,CAAC;IAAEG,OAAO,EAAEG;EAAU,CAAC,KAAK,UAAUA,SAAS,MAAMA,SAAS,GAAG,CAAC,CAACV,IAAI,CAAC,KAAK,CAAC;AAC1F;AACA,EAAEG,KAAK,CAACC,GAAG,CAAEK,CAAC,IAAK,cAAcA,CAAC,CAACF,OAAO,
|
|
1
|
+
{"version":3,"names":["_path","data","require","_fsExtra","_camelcase","_interopRequireDefault","_objectHash","e","__esModule","default","writePeerLink","peers","workdir","content","generatePeerLink","fullpath","join","hash","writeFile","links","map","p","packageName","varName","toVarName","x","localName","camelcase","replace","pascalCase"],"sources":["create-peers-link.ts"],"sourcesContent":["import { join } from 'path';\nimport { writeFile } from 'fs-extra';\nimport camelcase from 'camelcase';\nimport hash from 'object-hash';\n\nexport async function writePeerLink(peers: string[], workdir: string) {\n const content = generatePeerLink(peers);\n const fullpath = join(workdir, `peers-link.${hash(content)}.js`);\n\n await writeFile(fullpath, content);\n\n return fullpath;\n}\n\n// TODO - this exposes the packages in the \"window\" strategy,\n// should use a better strategy like umd, systemjs, or jsonp\n\nexport function generatePeerLink(peers: string[]) {\n if (!peers) return '';\n\n const links = peers.map((p) => ({\n packageName: p,\n varName: toVarName(p),\n }));\n\n return `// @ts-nocheck\n${links.map((x) => `import * as ${x.varName} from \"${x.packageName}\"`).join(';\\n')};\n\nconst globalObj = window;\n\n${links.map(({ varName: localName }) => `guard(\"${localName}\", ${localName})`).join(';\\n')};\n\n${links.map((x) => `globalObj[\"${x.varName}\"] = exposeNamespace(${x.varName})`).join(';\\n')};\n\nfunction exposeNamespace(ns) {\n // when a consumer is bundled as ESM and does \\`import x from 'pkg'\\` then \\`x()\\`,\n // webpack may emit a direct call on the external value with no interop helper.\n // the namespace object isn't callable, so wrap it in a function that proxies\n // to the default export while preserving named exports, \\`default\\`, and the\n // \\`__esModule\\` flag (so consumers that DO use interop still get the default).\n if (!ns || typeof ns !== 'object') return ns;\n var def = ns.default;\n if (typeof def !== 'function') return ns;\n var wrapper = function () { return def.apply(this, arguments); };\n for (var k in ns) {\n if (k !== 'default') {\n try { wrapper[k] = ns[k]; } catch (e) { /* readonly key, ignore */ }\n }\n }\n wrapper.default = def;\n wrapper.__esModule = true;\n return wrapper;\n}\n\nfunction guard(property, expected) {\n var existing = globalObj[property];\n\n if (existing === expected && expected !== undefined)\n console.warn('[expose-peers] \"' + property + '\" already exists in global scope, but with correct value');\n else if (existing !== undefined)\n throw new Error('[expose-peers] \"' + property + '\" already exists in the global scope, cannot overwrite');\n}\n`;\n}\n\nfunction toVarName(packageName: string) {\n return camelcase(packageName.replace('@', '__').replace('/', '_'), { pascalCase: true });\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,YAAA;EAAA,MAAAL,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAI,WAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA+B,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAExB,eAAeG,aAAaA,CAACC,KAAe,EAAEC,OAAe,EAAE;EACpE,MAAMC,OAAO,GAAGC,gBAAgB,CAACH,KAAK,CAAC;EACvC,MAAMI,QAAQ,GAAG,IAAAC,YAAI,EAACJ,OAAO,EAAE,cAAc,IAAAK,qBAAI,EAACJ,OAAO,CAAC,KAAK,CAAC;EAEhE,MAAM,IAAAK,oBAAS,EAACH,QAAQ,EAAEF,OAAO,CAAC;EAElC,OAAOE,QAAQ;AACjB;;AAEA;AACA;;AAEO,SAASD,gBAAgBA,CAACH,KAAe,EAAE;EAChD,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,MAAMQ,KAAK,GAAGR,KAAK,CAACS,GAAG,CAAEC,CAAC,KAAM;IAC9BC,WAAW,EAAED,CAAC;IACdE,OAAO,EAAEC,SAAS,CAACH,CAAC;EACtB,CAAC,CAAC,CAAC;EAEH,OAAO;AACT,EAAEF,KAAK,CAACC,GAAG,CAAEK,CAAC,IAAK,eAAeA,CAAC,CAACF,OAAO,UAAUE,CAAC,CAACH,WAAW,GAAG,CAAC,CAACN,IAAI,CAAC,KAAK,CAAC;AAClF;AACA;AACA;AACA,EAAEG,KAAK,CAACC,GAAG,CAAC,CAAC;IAAEG,OAAO,EAAEG;EAAU,CAAC,KAAK,UAAUA,SAAS,MAAMA,SAAS,GAAG,CAAC,CAACV,IAAI,CAAC,KAAK,CAAC;AAC1F;AACA,EAAEG,KAAK,CAACC,GAAG,CAAEK,CAAC,IAAK,cAAcA,CAAC,CAACF,OAAO,wBAAwBE,CAAC,CAACF,OAAO,GAAG,CAAC,CAACP,IAAI,CAAC,KAAK,CAAC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AAEA,SAASQ,SAASA,CAACF,WAAmB,EAAE;EACtC,OAAO,IAAAK,oBAAS,EAACL,WAAW,CAACM,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAACA,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;IAAEC,UAAU,EAAE;EAAK,CAAC,CAAC;AAC1F","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.971/dist/preview.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.preview_preview@1.0.971/dist/preview.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.971",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/preview/preview",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.preview",
|
|
8
8
|
"name": "preview",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.971"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"mime": "2.5.2",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"graphql-tag": "2.12.1",
|
|
23
23
|
"filenamify": "4.2.0",
|
|
24
24
|
"lodash.compact": "3.0.1",
|
|
25
|
+
"graphql-request": "6.1.0",
|
|
25
26
|
"@mdx-js/loader": "^3.1.1",
|
|
26
27
|
"resolve-url-loader": "5.0.0",
|
|
27
28
|
"rspack-manifest-plugin": "^5.2.1",
|
|
28
29
|
"sass-loader": "13.3.2",
|
|
29
|
-
"graphql-request": "6.1.0",
|
|
30
30
|
"@teambit/express": "0.0.1419",
|
|
31
31
|
"@teambit/logger": "0.0.1413",
|
|
32
32
|
"@teambit/ui-foundation.ui.pages.static-error": "0.0.110",
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
"@teambit/preview.cli.webpack-events-listener": "0.0.178",
|
|
49
49
|
"@teambit/mdx.modules.mdx-v3-options": "0.0.2",
|
|
50
50
|
"@teambit/rspack.modules.generate-asset-manifest": "0.0.3",
|
|
51
|
-
"@teambit/builder": "1.0.
|
|
52
|
-
"@teambit/bundler": "1.0.
|
|
53
|
-
"@teambit/component": "1.0.
|
|
54
|
-
"@teambit/aspect-loader": "1.0.
|
|
55
|
-
"@teambit/dependency-resolver": "1.0.
|
|
56
|
-
"@teambit/envs": "1.0.
|
|
57
|
-
"@teambit/ui": "1.0.
|
|
58
|
-
"@teambit/isolator": "1.0.
|
|
59
|
-
"@teambit/graphql": "1.0.
|
|
60
|
-
"@teambit/pkg": "1.0.
|
|
61
|
-
"@teambit/pubsub": "1.0.
|
|
62
|
-
"@teambit/scope": "1.0.
|
|
63
|
-
"@teambit/watcher": "1.0.
|
|
64
|
-
"@teambit/workspace": "1.0.
|
|
65
|
-
"@teambit/compiler": "1.0.
|
|
66
|
-
"@teambit/react": "1.0.
|
|
67
|
-
"@teambit/webpack": "1.0.
|
|
51
|
+
"@teambit/builder": "1.0.971",
|
|
52
|
+
"@teambit/bundler": "1.0.971",
|
|
53
|
+
"@teambit/component": "1.0.971",
|
|
54
|
+
"@teambit/aspect-loader": "1.0.971",
|
|
55
|
+
"@teambit/dependency-resolver": "1.0.971",
|
|
56
|
+
"@teambit/envs": "1.0.971",
|
|
57
|
+
"@teambit/ui": "1.0.971",
|
|
58
|
+
"@teambit/isolator": "1.0.971",
|
|
59
|
+
"@teambit/graphql": "1.0.971",
|
|
60
|
+
"@teambit/pkg": "1.0.971",
|
|
61
|
+
"@teambit/pubsub": "1.0.971",
|
|
62
|
+
"@teambit/scope": "1.0.971",
|
|
63
|
+
"@teambit/watcher": "1.0.971",
|
|
64
|
+
"@teambit/workspace": "1.0.971",
|
|
65
|
+
"@teambit/compiler": "1.0.971",
|
|
66
|
+
"@teambit/react": "1.0.971",
|
|
67
|
+
"@teambit/webpack": "1.0.971"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/mime": "2.0.3",
|