@teambit/compositions 1.0.550 → 1.0.551
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.551/dist/compositions.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.551/dist/compositions.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireWildcard","require","_previewUi","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","o","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","ComponentComposition","_ref","composition","component","queryParams","rest","includesEnvTemplate","preview","isScaling","shouldAddNameParam","useNameParam","compositionParams","useMemo","identifier","concat","createElement","ComponentPreview","style","width","height","previewName"
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireWildcard","require","_previewUi","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","o","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","ComponentComposition","_ref","composition","component","queryParams","rest","includesEnvTemplate","preview","isScaling","shouldAddNameParam","useNameParam","compositionParams","useMemo","identifier","concat","createElement","ComponentPreview","style","width","height","previewName"],"sources":["composition-preview.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { ComponentPreview, ComponentPreviewProps } from '@teambit/preview.ui.component-preview';\n\nimport { Composition } from '../composition';\n\nexport type ComponentCompositionProps = {\n /**\n * composition to use for component rendering.\n */\n composition?: Composition;\n} & ComponentPreviewProps;\n\nexport function ComponentComposition({ composition, component, queryParams = [], ...rest }: ComponentCompositionProps) {\n const includesEnvTemplate = component.preview?.includesEnvTemplate;\n const isScaling = component.preview?.isScaling;\n const shouldAddNameParam = component.preview?.useNameParam || (isScaling && includesEnvTemplate === false);\n\n const compositionParams = useMemo(\n () =>\n (composition ? [shouldAddNameParam ? `name=${composition.identifier}` : composition.identifier] : []).concat(\n queryParams\n ),\n [composition?.identifier, queryParams]\n );\n\n return (\n <ComponentPreview\n {...rest}\n component={component}\n style={{ width: '100%', height: '100%' }}\n previewName=\"compositions\"\n queryParams={compositionParams}\n />\n );\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgG,MAAAI,SAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAA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,GAAG,CAACO,kBAAkB,GAAG,QAAQP,WAAW,CAACW,UAAU,EAAE,GAAGX,WAAW,CAACW,UAAU,CAAC,GAAG,EAAE,EAAEC,MAAM,CAC1GV,WACF,CAAC,EACH,CAACF,WAAW,EAAEW,UAAU,EAAET,WAAW,CACvC,CAAC;EAED,oBACE1C,MAAA,GAAAY,OAAA,CAAAyC,aAAA,CAACjD,UAAA,GAAAkD,gBAAgB,EAAA5B,QAAA,KACXiB,IAAI;IACRF,SAAS,EAAEA,SAAU;IACrBc,KAAK,EAAE;MAAEC,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAO,CAAE;IACzCC,WAAW,EAAC,cAAc;IAC1BhB,WAAW,EAAEO;EAAkB,EAChC,CAAC;AAEN","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compositions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.551",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/compositions/compositions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compositions",
|
|
8
8
|
"name": "compositions",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.551"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"@teambit/compositions.ui.composition-compare": "0.0.255",
|
|
35
35
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
36
36
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
|
|
37
|
-
"@teambit/component": "1.0.
|
|
37
|
+
"@teambit/component": "1.0.551",
|
|
38
38
|
"@teambit/compositions.model.composition-id": "0.0.505",
|
|
39
|
-
"@teambit/graphql": "1.0.
|
|
40
|
-
"@teambit/cli": "0.0.
|
|
41
|
-
"@teambit/component.sources": "0.0.
|
|
42
|
-
"@teambit/dev-files": "1.0.
|
|
43
|
-
"@teambit/envs": "1.0.
|
|
44
|
-
"@teambit/legacy.consumer-component": "0.0.
|
|
45
|
-
"@teambit/preview": "1.0.
|
|
46
|
-
"@teambit/schema": "1.0.
|
|
47
|
-
"@teambit/scope": "1.0.
|
|
39
|
+
"@teambit/graphql": "1.0.551",
|
|
40
|
+
"@teambit/cli": "0.0.1128",
|
|
41
|
+
"@teambit/component.sources": "0.0.87",
|
|
42
|
+
"@teambit/dev-files": "1.0.551",
|
|
43
|
+
"@teambit/envs": "1.0.551",
|
|
44
|
+
"@teambit/legacy.consumer-component": "0.0.36",
|
|
45
|
+
"@teambit/preview": "1.0.551",
|
|
46
|
+
"@teambit/schema": "1.0.551",
|
|
47
|
+
"@teambit/scope": "1.0.551",
|
|
48
48
|
"@teambit/toolbox.path.match-patterns": "0.0.19",
|
|
49
|
-
"@teambit/workspace": "1.0.
|
|
49
|
+
"@teambit/workspace": "1.0.551",
|
|
50
50
|
"@teambit/design.ui.tooltip": "0.0.374",
|
|
51
51
|
"@teambit/docs.ui.queries.get-docs": "0.0.509",
|
|
52
|
-
"@teambit/panels": "0.0.
|
|
52
|
+
"@teambit/panels": "0.0.1130",
|
|
53
53
|
"@teambit/preview.ui.component-preview": "1.0.21",
|
|
54
54
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.226",
|
|
55
|
-
"@teambit/component-compare": "1.0.
|
|
56
|
-
"@teambit/ui": "1.0.
|
|
55
|
+
"@teambit/component-compare": "1.0.551",
|
|
56
|
+
"@teambit/ui": "1.0.551"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/lodash": "4.14.165",
|
|
@@ -30,9 +30,6 @@ export function ComponentComposition({ composition, component, queryParams = [],
|
|
|
30
30
|
style={{ width: '100%', height: '100%' }}
|
|
31
31
|
previewName="compositions"
|
|
32
32
|
queryParams={compositionParams}
|
|
33
|
-
loading={'lazy'}
|
|
34
|
-
includeEnv={false}
|
|
35
|
-
viewport={1280}
|
|
36
33
|
/>
|
|
37
34
|
);
|
|
38
35
|
}
|