@teambit/compositions 1.0.1219 → 1.0.1221

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.
@@ -21,15 +21,17 @@ export class CompositionsSection implements Section {
21
21
  private options: Options,
22
22
  private emptyStateSlot: EmptyStateSlot,
23
23
  private usePreviewSandboxSlot: UsePreviewSandboxSlot,
24
- private usePreviewPropsSlot: UsePreviewPropsSlot,
25
- private pinned = false
24
+ private usePreviewPropsSlot: UsePreviewPropsSlot
26
25
  ) {}
27
26
 
28
27
  navigationLink = {
29
28
  href: '~compositions',
30
- children: this.pinned ? <MenuWidgetIcon icon="preview" tooltipContent="Preview" /> : 'Preview',
29
+ children: 'Preview',
31
30
  displayName: 'Preview',
32
- hideInMinimalMode: !this.pinned,
31
+ // Preview is the most important view in minimal (Hope) mode: a text tab right after Overview on
32
+ // desktop, and on mobile an icon pinned next to the compact "More" menu that holds Overview.
33
+ primaryInMinimalMode: true,
34
+ minimalMobileChildren: <MenuWidgetIcon icon="preview" tooltipContent="Preview" />,
33
35
  };
34
36
 
35
37
  route = {
@@ -45,5 +47,5 @@ export class CompositionsSection implements Section {
45
47
  ),
46
48
  };
47
49
 
48
- order = this.pinned ? 10 : 20;
50
+ order = 20;
49
51
  }
@@ -99,18 +99,9 @@ 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
- );
110
102
  const compositionCompare = new CompositionCompareSection(compositions);
111
103
  component.registerRoute(section.route);
112
104
  component.registerNavigation(section.navigationLink, section.order);
113
- component.registerPinnedWidget(pinnedSection.navigationLink, pinnedSection.order);
114
105
  componentCompare.registerNavigation(compositionCompare);
115
106
  componentCompare.registerRoutes([compositionCompare.route]);
116
107
  // Inline preview tab for the redesigned ComponentComparePage / lane-compare. Owned by the
@@ -13,17 +13,17 @@ export declare class CompositionsSection implements Section {
13
13
  private emptyStateSlot;
14
14
  private usePreviewSandboxSlot;
15
15
  private usePreviewPropsSlot;
16
- private pinned;
17
16
  constructor(
18
17
  /**
19
18
  * simulations ui extension.
20
19
  */
21
- compositions: CompositionsUI, options: Options, emptyStateSlot: EmptyStateSlot, usePreviewSandboxSlot: UsePreviewSandboxSlot, usePreviewPropsSlot: UsePreviewPropsSlot, pinned?: boolean);
20
+ compositions: CompositionsUI, options: Options, emptyStateSlot: EmptyStateSlot, usePreviewSandboxSlot: UsePreviewSandboxSlot, usePreviewPropsSlot: UsePreviewPropsSlot);
22
21
  navigationLink: {
23
22
  href: string;
24
- children: string | React.JSX.Element;
23
+ children: string;
25
24
  displayName: string;
26
- hideInMinimalMode: boolean;
25
+ primaryInMinimalMode: boolean;
26
+ minimalMobileChildren: React.JSX.Element;
27
27
  };
28
28
  route: {
29
29
  path: string;
@@ -34,21 +34,23 @@ class CompositionsSection {
34
34
  /**
35
35
  * simulations ui extension.
36
36
  */
37
- compositions, options, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot, pinned = false) {
37
+ compositions, options, emptyStateSlot, usePreviewSandboxSlot, usePreviewPropsSlot) {
38
38
  this.compositions = compositions;
39
39
  this.options = options;
40
40
  this.emptyStateSlot = emptyStateSlot;
41
41
  this.usePreviewSandboxSlot = usePreviewSandboxSlot;
42
42
  this.usePreviewPropsSlot = usePreviewPropsSlot;
43
- this.pinned = pinned;
44
43
  _defineProperty(this, "navigationLink", {
45
44
  href: '~compositions',
46
- children: this.pinned ? /*#__PURE__*/_react().default.createElement(_uiFoundationUi().MenuWidgetIcon, {
45
+ children: 'Preview',
46
+ displayName: 'Preview',
47
+ // Preview is the most important view in minimal (Hope) mode: a text tab right after Overview on
48
+ // desktop, and on mobile an icon pinned next to the compact "More" menu that holds Overview.
49
+ primaryInMinimalMode: true,
50
+ minimalMobileChildren: /*#__PURE__*/_react().default.createElement(_uiFoundationUi().MenuWidgetIcon, {
47
51
  icon: "preview",
48
52
  tooltipContent: "Preview"
49
- }) : 'Preview',
50
- displayName: 'Preview',
51
- hideInMinimalMode: !this.pinned
53
+ })
52
54
  });
53
55
  _defineProperty(this, "route", {
54
56
  path: '~compositions/*',
@@ -60,7 +62,7 @@ class CompositionsSection {
60
62
  enableLiveControls: true
61
63
  })
62
64
  });
63
- _defineProperty(this, "order", this.pinned ? 10 : 20);
65
+ _defineProperty(this, "order", 20);
64
66
  }
65
67
  }
66
68
  exports.CompositionsSection = CompositionsSection;
@@ -1 +1 @@
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;AAAA,SAAAC,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AAqB,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":[]}
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","href","children","displayName","primaryInMinimalMode","minimalMobileChildren","createElement","MenuWidgetIcon","icon","tooltipContent","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 ) {}\n\n navigationLink = {\n href: '~compositions',\n children: 'Preview',\n displayName: 'Preview',\n // Preview is the most important view in minimal (Hope) mode: a text tab right after Overview on\n // desktop, and on mobile an icon pinned next to the compact \"More\" menu that holds Overview.\n primaryInMinimalMode: true,\n minimalMobileChildren: <MenuWidgetIcon icon=\"preview\" tooltipContent=\"Preview\" />,\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 = 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;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CA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,EAAE;EAzBP;AA0BL;AAACyC,OAAA,CAAAvB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -134,13 +134,9 @@ 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);
140
137
  const compositionCompare = new (_compositionsUi().CompositionCompareSection)(compositions);
141
138
  component.registerRoute(section.route);
142
139
  component.registerNavigation(section.navigationLink, section.order);
143
- component.registerPinnedWidget(pinnedSection.navigationLink, pinnedSection.order);
144
140
  componentCompare.registerNavigation(compositionCompare);
145
141
  componentCompare.registerRoutes([compositionCompare.route]);
146
142
  // Inline preview tab for the redesigned ComponentComparePage / lane-compare. Owned by the
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","_harmony","_component","_harmonyModules","_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/harmony.modules.runtimes';\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,gBAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,eAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAA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AC,CAAC;IACF,OAAOvB,YAAY;EACrB;AACF;AAACwB,OAAA,CAAApD,cAAA,GAAAA,cAAA;AAAAd,eAAA,CAvHYc,cAAc,kBA8CH,CAACqD,4BAAe,EAAEC,0CAAsB,CAAC;AAAApE,eAAA,CA9CpDc,cAAc,aA+CRuD,2BAAS;AAAArE,eAAA,CA/Cfc,cAAc,WAgDV,CACbwD,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,CAAA/E,OAAA,GAoEY2B,cAAc;AAE7B2D,kCAAkB,CAACC,UAAU,CAAC5D,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","data","_interopRequireDefault","require","_harmony","_component","_harmonyModules","_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/harmony.modules.runtimes';\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,gBAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,eAAA,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;AACA,SAAAQ,WAAA;EAA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* as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1219/dist/compositions.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1219/dist/compositions.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1221/dist/compositions.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1221/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.1219",
3
+ "version": "1.0.1221",
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.1219"
9
+ "version": "1.0.1221"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
@@ -18,9 +18,7 @@
18
18
  "@teambit/compositions.model.composition-type": "0.0.538",
19
19
  "@teambit/harmony": "0.4.12",
20
20
  "@teambit/graphql": "1.0.1205",
21
- "@teambit/component.sources": "0.0.233",
22
21
  "@teambit/harmony.modules.runtimes": "0.0.4",
23
- "@teambit/legacy.consumer-component": "0.0.182",
24
22
  "@teambit/toolbox.path.match-patterns": "0.0.37",
25
23
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.504",
26
24
  "@teambit/component-id": "1.2.5",
@@ -58,14 +56,16 @@
58
56
  "@teambit/design.inputs.toggle-switch": "0.0.9",
59
57
  "@teambit/design.ui.input.color-picker": "0.0.56",
60
58
  "@teambit/base-ui.loaders.skeleton": "1.0.2",
61
- "@teambit/component": "1.0.1218",
62
- "@teambit/dev-files": "1.0.1219",
63
- "@teambit/envs": "1.0.1218",
64
- "@teambit/preview": "1.0.1219",
65
- "@teambit/schema": "1.0.1219",
66
- "@teambit/scope": "1.0.1219",
67
- "@teambit/workspace": "1.0.1219",
68
- "@teambit/component-compare": "1.0.1219"
59
+ "@teambit/component": "1.0.1220",
60
+ "@teambit/component.sources": "0.0.234",
61
+ "@teambit/dev-files": "1.0.1221",
62
+ "@teambit/envs": "1.0.1220",
63
+ "@teambit/legacy.consumer-component": "0.0.183",
64
+ "@teambit/preview": "1.0.1221",
65
+ "@teambit/schema": "1.0.1221",
66
+ "@teambit/scope": "1.0.1221",
67
+ "@teambit/workspace": "1.0.1221",
68
+ "@teambit/component-compare": "1.0.1221"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/lodash": "4.14.165",