@teambit/compositions 1.0.1127 → 1.0.1128
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/composition.section.tsx +7 -3
- package/compositions.ui.runtime.tsx +9 -0
- package/dist/composition.section.d.ts +5 -2
- package/dist/composition.section.js +16 -3
- package/dist/composition.section.js.map +1 -1
- package/dist/compositions.ui.runtime.js +4 -0
- package/dist/compositions.ui.runtime.js.map +1 -1
- package/dist/{preview-1787250962708.js → preview-1787260228106.js} +2 -2
- package/package.json +16 -16
package/composition.section.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Section } from '@teambit/component';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { MenuWidgetIcon } from '@teambit/ui-foundation.ui.menu-widget-icon';
|
|
3
4
|
import { Compositions } from './compositions';
|
|
4
5
|
import type {
|
|
5
6
|
CompositionsUI,
|
|
@@ -20,12 +21,15 @@ export class CompositionsSection implements Section {
|
|
|
20
21
|
private options: Options,
|
|
21
22
|
private emptyStateSlot: EmptyStateSlot,
|
|
22
23
|
private usePreviewSandboxSlot: UsePreviewSandboxSlot,
|
|
23
|
-
private usePreviewPropsSlot: UsePreviewPropsSlot
|
|
24
|
+
private usePreviewPropsSlot: UsePreviewPropsSlot,
|
|
25
|
+
private pinned = false
|
|
24
26
|
) {}
|
|
25
27
|
|
|
26
28
|
navigationLink = {
|
|
27
29
|
href: '~compositions',
|
|
28
|
-
children: 'Preview',
|
|
30
|
+
children: this.pinned ? <MenuWidgetIcon icon="preview" tooltipContent="Preview" /> : 'Preview',
|
|
31
|
+
displayName: 'Preview',
|
|
32
|
+
hideInMinimalMode: !this.pinned,
|
|
29
33
|
};
|
|
30
34
|
|
|
31
35
|
route = {
|
|
@@ -41,5 +45,5 @@ export class CompositionsSection implements Section {
|
|
|
41
45
|
),
|
|
42
46
|
};
|
|
43
47
|
|
|
44
|
-
order = 20;
|
|
48
|
+
order = this.pinned ? 10 : 20;
|
|
45
49
|
}
|
|
@@ -99,9 +99,18 @@ export class CompositionsUI {
|
|
|
99
99
|
usePreviewSandboxSlot,
|
|
100
100
|
usePreviewPropsSlot
|
|
101
101
|
);
|
|
102
|
+
const pinnedSection = new CompositionsSection(
|
|
103
|
+
compositions,
|
|
104
|
+
{ menuBarWidgetSlot: compositions.menuBarWidgetSlot },
|
|
105
|
+
emptyStateSlot,
|
|
106
|
+
usePreviewSandboxSlot,
|
|
107
|
+
usePreviewPropsSlot,
|
|
108
|
+
true
|
|
109
|
+
);
|
|
102
110
|
const compositionCompare = new CompositionCompareSection(compositions);
|
|
103
111
|
component.registerRoute(section.route);
|
|
104
112
|
component.registerNavigation(section.navigationLink, section.order);
|
|
113
|
+
component.registerPinnedWidget(pinnedSection.navigationLink, pinnedSection.order);
|
|
105
114
|
componentCompare.registerNavigation(compositionCompare);
|
|
106
115
|
componentCompare.registerRoutes([compositionCompare.route]);
|
|
107
116
|
// Inline preview tab for the redesigned ComponentComparePage / lane-compare. Owned by the
|
|
@@ -13,14 +13,17 @@ export declare class CompositionsSection implements Section {
|
|
|
13
13
|
private emptyStateSlot;
|
|
14
14
|
private usePreviewSandboxSlot;
|
|
15
15
|
private usePreviewPropsSlot;
|
|
16
|
+
private pinned;
|
|
16
17
|
constructor(
|
|
17
18
|
/**
|
|
18
19
|
* simulations ui extension.
|
|
19
20
|
*/
|
|
20
|
-
compositions: CompositionsUI, options: Options, emptyStateSlot: EmptyStateSlot, usePreviewSandboxSlot: UsePreviewSandboxSlot, usePreviewPropsSlot: UsePreviewPropsSlot);
|
|
21
|
+
compositions: CompositionsUI, options: Options, emptyStateSlot: EmptyStateSlot, usePreviewSandboxSlot: UsePreviewSandboxSlot, usePreviewPropsSlot: UsePreviewPropsSlot, pinned?: boolean);
|
|
21
22
|
navigationLink: {
|
|
22
23
|
href: string;
|
|
23
|
-
children: string;
|
|
24
|
+
children: string | React.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
hideInMinimalMode: boolean;
|
|
24
27
|
};
|
|
25
28
|
route: {
|
|
26
29
|
path: string;
|
|
@@ -11,6 +11,13 @@ function _react() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
+
function _uiFoundationUi() {
|
|
15
|
+
const data = require("@teambit/ui-foundation.ui.menu-widget-icon");
|
|
16
|
+
_uiFoundationUi = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
14
21
|
function _compositions() {
|
|
15
22
|
const data = require("./compositions");
|
|
16
23
|
_compositions = function () {
|
|
@@ -27,15 +34,21 @@ class CompositionsSection {
|
|
|
27
34
|
/**
|
|
28
35
|
* simulations ui extension.
|
|
29
36
|
*/
|
|
30
|
-
compositions, options, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot) {
|
|
37
|
+
compositions, options, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot, pinned = false) {
|
|
31
38
|
this.compositions = compositions;
|
|
32
39
|
this.options = options;
|
|
33
40
|
this.emptyStateSlot = emptyStateSlot;
|
|
34
41
|
this.usePreviewSandboxSlot = usePreviewSandboxSlot;
|
|
35
42
|
this.usePreviewPropsSlot = usePreviewPropsSlot;
|
|
43
|
+
this.pinned = pinned;
|
|
36
44
|
_defineProperty(this, "navigationLink", {
|
|
37
45
|
href: '~compositions',
|
|
38
|
-
children:
|
|
46
|
+
children: this.pinned ? /*#__PURE__*/_react().default.createElement(_uiFoundationUi().MenuWidgetIcon, {
|
|
47
|
+
icon: "preview",
|
|
48
|
+
tooltipContent: "Preview"
|
|
49
|
+
}) : 'Preview',
|
|
50
|
+
displayName: 'Preview',
|
|
51
|
+
hideInMinimalMode: !this.pinned
|
|
39
52
|
});
|
|
40
53
|
_defineProperty(this, "route", {
|
|
41
54
|
path: '~compositions/*',
|
|
@@ -47,7 +60,7 @@ class CompositionsSection {
|
|
|
47
60
|
enableLiveControls: true
|
|
48
61
|
})
|
|
49
62
|
});
|
|
50
|
-
_defineProperty(this, "order", 20);
|
|
63
|
+
_defineProperty(this, "order", this.pinned ? 10 : 20);
|
|
51
64
|
}
|
|
52
65
|
}
|
|
53
66
|
exports.CompositionsSection = CompositionsSection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_compositions","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompositionsSection","constructor","compositions","options","emptyStateSlot","usePreviewSandboxSlot","usePreviewPropsSlot","href","children","
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","_uiFoundationUi","_compositions","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompositionsSection","constructor","compositions","options","emptyStateSlot","usePreviewSandboxSlot","usePreviewPropsSlot","pinned","href","children","createElement","MenuWidgetIcon","icon","tooltipContent","displayName","hideInMinimalMode","path","element","Compositions","menuBarWidgets","menuBarWidgetSlot","emptyState","enableLiveControls","exports"],"sources":["composition.section.tsx"],"sourcesContent":["import type { Section } from '@teambit/component';\nimport React from 'react';\nimport { MenuWidgetIcon } from '@teambit/ui-foundation.ui.menu-widget-icon';\nimport { Compositions } from './compositions';\nimport type {\n CompositionsUI,\n CompositionsMenuSlot,\n EmptyStateSlot,\n UsePreviewSandboxSlot,\n UsePreviewPropsSlot,\n} from './compositions.ui.runtime';\n\ntype Options = { menuBarWidgetSlot: CompositionsMenuSlot };\n\nexport class CompositionsSection implements Section {\n constructor(\n /**\n * simulations ui extension.\n */\n private compositions: CompositionsUI,\n private options: Options,\n private emptyStateSlot: EmptyStateSlot,\n private usePreviewSandboxSlot: UsePreviewSandboxSlot,\n private usePreviewPropsSlot: UsePreviewPropsSlot,\n private pinned = false\n ) {}\n\n navigationLink = {\n href: '~compositions',\n children: this.pinned ? <MenuWidgetIcon icon=\"preview\" tooltipContent=\"Preview\" /> : 'Preview',\n displayName: 'Preview',\n hideInMinimalMode: !this.pinned,\n };\n\n route = {\n path: '~compositions/*',\n element: (\n <Compositions\n menuBarWidgets={this.options.menuBarWidgetSlot}\n emptyState={this.emptyStateSlot}\n usePreviewSandboxSlot={this.usePreviewSandboxSlot}\n usePreviewPropsSlot={this.usePreviewPropsSlot}\n enableLiveControls\n />\n ),\n };\n\n order = this.pinned ? 10 : 20;\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,cAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,aAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8C,SAAAC,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA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AAe;QAChCC,qBAAqB,EAAE,IAAI,CAACA,qBAAsB;QAClDC,mBAAmB,EAAE,IAAI,CAACA,mBAAoB;QAC9CgB,kBAAkB;MAAA,CACnB;IAEL,CAAC;IAAAxC,eAAA,gBAEO,IAAI,CAACyB,MAAM,GAAG,EAAE,GAAG,EAAE;EAtB1B;AAuBL;AAACgB,OAAA,CAAAvB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -134,9 +134,13 @@ class CompositionsUI {
|
|
|
134
134
|
const section = new (_composition().CompositionsSection)(compositions, {
|
|
135
135
|
menuBarWidgetSlot: compositions.menuBarWidgetSlot
|
|
136
136
|
}, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot);
|
|
137
|
+
const pinnedSection = new (_composition().CompositionsSection)(compositions, {
|
|
138
|
+
menuBarWidgetSlot: compositions.menuBarWidgetSlot
|
|
139
|
+
}, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot, true);
|
|
137
140
|
const compositionCompare = new (_compositionsUi().CompositionCompareSection)(compositions);
|
|
138
141
|
component.registerRoute(section.route);
|
|
139
142
|
component.registerNavigation(section.navigationLink, section.order);
|
|
143
|
+
component.registerPinnedWidget(pinnedSection.navigationLink, pinnedSection.order);
|
|
140
144
|
componentCompare.registerNavigation(compositionCompare);
|
|
141
145
|
componentCompare.registerRoutes([compositionCompare.route]);
|
|
142
146
|
// Inline preview tab for the redesigned ComponentComparePage / lane-compare. Owned by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_harmony","_component","_ui","_compositionsUi","_compositionsUi2","_previewUi","_componentCompare","_composition","_compositions","_compositions2","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_defineProperty","_toPropertyKey","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","CompositionsUI","constructor","menuBarWidgetSlot","emptyStateSlot","usePreviewSandboxSlot","usePreviewPropsSlot","createElement","CompositionCompare","emptyState","PreviewView","compositionProps","CompositionContent","fullContentHeight","forceHeight","registerEmptyState","emptyStateComponent","register","registerMenuWidget","widget","registerPreviewSandbox","useSandboxPermission","registerPreviewProps","usePreviewProps","provider","component","componentCompare","config","compositionMenuSlot","compositions","section","CompositionsSection","compositionCompare","CompositionCompareSection","registerRoute","route","registerNavigation","navigationLink","order","registerRoutes","registerCompareTab","id","displayName","element","InlinePreviewCompare","lazy","manager","componentModel","host","add","set","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","_default","CompositionsAspect","addRuntime"],"sources":["compositions.ui.runtime.tsx"],"sourcesContent":["import type { ReactNode, ComponentType } from 'react';\nimport React from 'react';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { Slot } from '@teambit/harmony';\nimport type { ComponentUI } from '@teambit/component';\nimport { ComponentAspect } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CompositionCompareSection } from '@teambit/compositions.ui.composition-compare-section';\nimport { CompositionCompare } from '@teambit/compositions.ui.composition-compare';\nimport { InlinePreviewCompare } from '@teambit/preview.ui.inline-preview-compare';\nimport type { ComponentCompareUI } from '@teambit/component-compare';\nimport { ComponentCompareAspect } from '@teambit/component-compare';\nimport type { UsePreviewProps, UseSandboxPermission } from '@teambit/preview.ui.component-preview';\nimport { CompositionsSection } from './composition.section';\nimport { CompositionsAspect } from './compositions.aspect';\nimport type { MenuBarWidget } from './compositions';\nimport { CompositionContent } from './compositions';\n\nexport type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\nexport type UsePreviewSandboxSlot = SlotRegistry<UseSandboxPermission>;\nexport type UsePreviewPropsSlot = SlotRegistry<UsePreviewProps>;\n\nexport class CompositionsUI {\n constructor(\n private menuBarWidgetSlot: CompositionsMenuSlot,\n private emptyStateSlot: EmptyStateSlot,\n private usePreviewSandboxSlot: UsePreviewSandboxSlot,\n private usePreviewPropsSlot: UsePreviewPropsSlot\n ) {}\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n registerMenuWidget(...widget: MenuBarWidget[]) {\n this.menuBarWidgetSlot.register(widget);\n }\n\n registerPreviewSandbox(useSandboxPermission: UseSandboxPermission) {\n this.usePreviewSandboxSlot.register(useSandboxPermission);\n }\n\n /**\n * register a per-component resolver for iframe attributes on the composition preview\n * (`allow`, `referrerPolicy`, ...). The resolver runs at render time with the current\n * `ComponentModel`; results from multiple resolvers merge with later keys winning. Use\n * this to grant a specific subset of components extra Permissions Policy capabilities\n * (e.g. `fullscreen` for chart/video components) without loosening the default for all\n * components.\n */\n registerPreviewProps(usePreviewProps: UsePreviewProps) {\n this.usePreviewPropsSlot.register(usePreviewProps);\n }\n\n getCompositionsCompare = () => {\n return (\n <CompositionCompare\n emptyState={this.emptyStateSlot}\n PreviewView={(compositionProps) => {\n return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;\n }}\n />\n );\n };\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<ReactNode>(),\n Slot.withType<ComponentType>(),\n Slot.withType<UseSandboxPermission>(),\n Slot.withType<UsePreviewProps>(),\n ];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: {},\n [compositionMenuSlot, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot]: [\n CompositionsMenuSlot,\n EmptyStateSlot,\n UsePreviewSandboxSlot,\n UsePreviewPropsSlot,\n ]\n ) {\n const compositions = new CompositionsUI(\n compositionMenuSlot,\n emptyStateSlot,\n usePreviewSandboxSlot,\n usePreviewPropsSlot\n );\n const section = new CompositionsSection(\n compositions,\n { menuBarWidgetSlot: compositions.menuBarWidgetSlot },\n emptyStateSlot,\n usePreviewSandboxSlot,\n usePreviewPropsSlot\n );\n const compositionCompare = new CompositionCompareSection(compositions);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation(compositionCompare);\n componentCompare.registerRoutes([compositionCompare.route]);\n // Inline preview tab for the redesigned ComponentComparePage / lane-compare. Owned by the\n // compositions aspect (owner of the preview/composition compare integration) instead of being\n // hardcoded in component-compare, so component-compare stays decoupled from preview UI.\n // lazy: the preview panel mounts base+compare composition iframes, each pulling the full env\n // preview bundle on mount (even under `display: none`) — in a large lane compare that's hundreds\n // of MB of hidden-iframe traffic starving the visible view.\n componentCompare.registerCompareTab({\n id: 'inline-preview',\n order: 2,\n displayName: 'Preview',\n element: <InlinePreviewCompare />,\n lazy: true,\n });\n compositions.registerPreviewSandbox((manager, componentModel) => {\n if (componentModel?.host === 'teambit.scope/scope') {\n manager.add('allow-scripts');\n manager.add('allow-same-origin');\n }\n });\n // Default Permissions Policy: allow clipboard writes so copy-to-clipboard buttons in\n // compositions work. Clipboard-read, camera, mic, geolocation, etc. remain denied. Other\n // aspects may layer on (e.g. `fullscreen` for chart/video components).\n compositions.registerPreviewProps((manager) => {\n manager.set('allow', 'clipboard-write');\n });\n return compositions;\n }\n}\n\nexport default CompositionsUI;\n\nCompositionsAspect.addRuntime(CompositionsUI);\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,IAA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E,eAAA,CA9CpDc,cAAc,aA+CRqD,eAAS;AAAAnE,eAAA,CA/Cfc,cAAc,WAgDV,CACbsD,eAAI,CAACC,QAAQ,CAAY,CAAC,EAC1BD,eAAI,CAACC,QAAQ,CAAgB,CAAC,EAC9BD,eAAI,CAACC,QAAQ,CAAuB,CAAC,EACrCD,eAAI,CAACC,QAAQ,CAAkB,CAAC,CACjC;AAAA,IAAAC,QAAA,GAAAN,OAAA,CAAA7E,OAAA,GA2DY2B,cAAc;AAE7ByD,kCAAkB,CAACC,UAAU,CAAC1D,cAAc,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","_harmony","_component","_ui","_compositionsUi","_compositionsUi2","_previewUi","_componentCompare","_composition","_compositions","_compositions2","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_defineProperty","_toPropertyKey","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","CompositionsUI","constructor","menuBarWidgetSlot","emptyStateSlot","usePreviewSandboxSlot","usePreviewPropsSlot","createElement","CompositionCompare","emptyState","PreviewView","compositionProps","CompositionContent","fullContentHeight","forceHeight","registerEmptyState","emptyStateComponent","register","registerMenuWidget","widget","registerPreviewSandbox","useSandboxPermission","registerPreviewProps","usePreviewProps","provider","component","componentCompare","config","compositionMenuSlot","compositions","section","CompositionsSection","pinnedSection","compositionCompare","CompositionCompareSection","registerRoute","route","registerNavigation","navigationLink","order","registerPinnedWidget","registerRoutes","registerCompareTab","id","displayName","element","InlinePreviewCompare","lazy","manager","componentModel","host","add","set","exports","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","_default","CompositionsAspect","addRuntime"],"sources":["compositions.ui.runtime.tsx"],"sourcesContent":["import type { ReactNode, ComponentType } from 'react';\nimport React from 'react';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { Slot } from '@teambit/harmony';\nimport type { ComponentUI } from '@teambit/component';\nimport { ComponentAspect } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CompositionCompareSection } from '@teambit/compositions.ui.composition-compare-section';\nimport { CompositionCompare } from '@teambit/compositions.ui.composition-compare';\nimport { InlinePreviewCompare } from '@teambit/preview.ui.inline-preview-compare';\nimport type { ComponentCompareUI } from '@teambit/component-compare';\nimport { ComponentCompareAspect } from '@teambit/component-compare';\nimport type { UsePreviewProps, UseSandboxPermission } from '@teambit/preview.ui.component-preview';\nimport { CompositionsSection } from './composition.section';\nimport { CompositionsAspect } from './compositions.aspect';\nimport type { MenuBarWidget } from './compositions';\nimport { CompositionContent } from './compositions';\n\nexport type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\nexport type UsePreviewSandboxSlot = SlotRegistry<UseSandboxPermission>;\nexport type UsePreviewPropsSlot = SlotRegistry<UsePreviewProps>;\n\nexport class CompositionsUI {\n constructor(\n private menuBarWidgetSlot: CompositionsMenuSlot,\n private emptyStateSlot: EmptyStateSlot,\n private usePreviewSandboxSlot: UsePreviewSandboxSlot,\n private usePreviewPropsSlot: UsePreviewPropsSlot\n ) {}\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n registerMenuWidget(...widget: MenuBarWidget[]) {\n this.menuBarWidgetSlot.register(widget);\n }\n\n registerPreviewSandbox(useSandboxPermission: UseSandboxPermission) {\n this.usePreviewSandboxSlot.register(useSandboxPermission);\n }\n\n /**\n * register a per-component resolver for iframe attributes on the composition preview\n * (`allow`, `referrerPolicy`, ...). The resolver runs at render time with the current\n * `ComponentModel`; results from multiple resolvers merge with later keys winning. Use\n * this to grant a specific subset of components extra Permissions Policy capabilities\n * (e.g. `fullscreen` for chart/video components) without loosening the default for all\n * components.\n */\n registerPreviewProps(usePreviewProps: UsePreviewProps) {\n this.usePreviewPropsSlot.register(usePreviewProps);\n }\n\n getCompositionsCompare = () => {\n return (\n <CompositionCompare\n emptyState={this.emptyStateSlot}\n PreviewView={(compositionProps) => {\n return <CompositionContent {...compositionProps} fullContentHeight forceHeight={'100%'} />;\n }}\n />\n );\n };\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<ReactNode>(),\n Slot.withType<ComponentType>(),\n Slot.withType<UseSandboxPermission>(),\n Slot.withType<UsePreviewProps>(),\n ];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: {},\n [compositionMenuSlot, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot]: [\n CompositionsMenuSlot,\n EmptyStateSlot,\n UsePreviewSandboxSlot,\n UsePreviewPropsSlot,\n ]\n ) {\n const compositions = new CompositionsUI(\n compositionMenuSlot,\n emptyStateSlot,\n usePreviewSandboxSlot,\n usePreviewPropsSlot\n );\n const section = new CompositionsSection(\n compositions,\n { menuBarWidgetSlot: compositions.menuBarWidgetSlot },\n emptyStateSlot,\n usePreviewSandboxSlot,\n usePreviewPropsSlot\n );\n const pinnedSection = new CompositionsSection(\n compositions,\n { menuBarWidgetSlot: compositions.menuBarWidgetSlot },\n emptyStateSlot,\n usePreviewSandboxSlot,\n usePreviewPropsSlot,\n true\n );\n const compositionCompare = new CompositionCompareSection(compositions);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n component.registerPinnedWidget(pinnedSection.navigationLink, pinnedSection.order);\n componentCompare.registerNavigation(compositionCompare);\n componentCompare.registerRoutes([compositionCompare.route]);\n // Inline preview tab for the redesigned ComponentComparePage / lane-compare. Owned by the\n // compositions aspect (owner of the preview/composition compare integration) instead of being\n // hardcoded in component-compare, so component-compare stays decoupled from preview UI.\n // lazy: the preview panel mounts base+compare composition iframes, each pulling the full env\n // preview bundle on mount (even under `display: none`) — in a large lane compare that's hundreds\n // of MB of hidden-iframe traffic starving the visible view.\n componentCompare.registerCompareTab({\n id: 'inline-preview',\n order: 2,\n displayName: 'Preview',\n element: <InlinePreviewCompare />,\n lazy: true,\n });\n compositions.registerPreviewSandbox((manager, componentModel) => {\n if (componentModel?.host === 'teambit.scope/scope') {\n manager.add('allow-scripts');\n manager.add('allow-same-origin');\n }\n });\n // Default Permissions Policy: allow clipboard writes so copy-to-clipboard buttons in\n // compositions work. Clipboard-read, camera, mic, geolocation, etc. remain denied. Other\n // aspects may layer on (e.g. `fullscreen` for chart/video components).\n compositions.registerPreviewProps((manager) => {\n manager.set('allow', 'clipboard-write');\n });\n return compositions;\n }\n}\n\nexport default CompositionsUI;\n\nCompositionsAspect.addRuntime(CompositionsUI);\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,IAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,GAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,gBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,eAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,iBAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,gBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAC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BD,eAAI,CAACC,QAAQ,CAAgB,CAAC,EAC9BD,eAAI,CAACC,QAAQ,CAAuB,CAAC,EACrCD,eAAI,CAACC,QAAQ,CAAkB,CAAC,CACjC;AAAA,IAAAC,QAAA,GAAAN,OAAA,CAAA/E,OAAA,GAoEY2B,cAAc;AAE7B2D,kCAAkB,CAACC,UAAU,CAAC5D,cAAc,CAAC","ignoreList":[]}
|
|
@@ -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.1128/dist/compositions.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1128/dist/compositions.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/compositions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1128",
|
|
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.1128"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"classnames": "^2.5.1",
|
|
15
15
|
"lodash.head": "4.0.1",
|
|
16
16
|
"query-string": "7.0.0",
|
|
17
|
+
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
|
|
17
18
|
"@teambit/compositions.model.composition-id": "0.0.507",
|
|
18
19
|
"@teambit/harmony": "0.4.12",
|
|
19
20
|
"@teambit/cli": "0.0.1375",
|
|
@@ -42,9 +43,11 @@
|
|
|
42
43
|
"@teambit/preview.ui.component-preview": "1.0.36",
|
|
43
44
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.235",
|
|
44
45
|
"@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.200",
|
|
46
|
+
"@teambit/compositions.ui.composition-compare-section": "0.0.111",
|
|
47
|
+
"@teambit/compositions.ui.composition-compare": "0.0.269",
|
|
48
|
+
"@teambit/preview.ui.inline-preview-compare": "0.0.4",
|
|
45
49
|
"@teambit/api-reference.hooks.use-api": "0.0.57",
|
|
46
50
|
"@teambit/workspace.ui.use-workspace-mode": "0.0.3",
|
|
47
|
-
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
|
|
48
51
|
"@teambit/design.inputs.date-picker": "0.0.3",
|
|
49
52
|
"@teambit/design.inputs.dropdown": "1.3.3",
|
|
50
53
|
"@teambit/design.inputs.input-text": "1.1.6",
|
|
@@ -53,19 +56,16 @@
|
|
|
53
56
|
"@teambit/design.inputs.toggle-switch": "0.0.9",
|
|
54
57
|
"@teambit/design.ui.input.color-picker": "0.0.56",
|
|
55
58
|
"@teambit/base-ui.loaders.skeleton": "1.0.2",
|
|
56
|
-
"@teambit/component": "1.0.
|
|
57
|
-
"@teambit/graphql": "1.0.
|
|
58
|
-
"@teambit/dev-files": "1.0.
|
|
59
|
-
"@teambit/envs": "1.0.
|
|
60
|
-
"@teambit/preview": "1.0.
|
|
61
|
-
"@teambit/schema": "1.0.
|
|
62
|
-
"@teambit/scope": "1.0.
|
|
63
|
-
"@teambit/workspace": "1.0.
|
|
64
|
-
"@teambit/component-compare": "1.0.
|
|
65
|
-
"@teambit/
|
|
66
|
-
"@teambit/compositions.ui.composition-compare": "0.0.269",
|
|
67
|
-
"@teambit/preview.ui.inline-preview-compare": "0.0.4",
|
|
68
|
-
"@teambit/ui": "1.0.1127"
|
|
59
|
+
"@teambit/component": "1.0.1128",
|
|
60
|
+
"@teambit/graphql": "1.0.1128",
|
|
61
|
+
"@teambit/dev-files": "1.0.1128",
|
|
62
|
+
"@teambit/envs": "1.0.1128",
|
|
63
|
+
"@teambit/preview": "1.0.1128",
|
|
64
|
+
"@teambit/schema": "1.0.1128",
|
|
65
|
+
"@teambit/scope": "1.0.1128",
|
|
66
|
+
"@teambit/workspace": "1.0.1128",
|
|
67
|
+
"@teambit/component-compare": "1.0.1128",
|
|
68
|
+
"@teambit/ui": "1.0.1128"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/lodash": "4.14.165",
|