@teambit/docs 0.0.1136 → 0.0.1137
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/dist/overview/overview.d.ts +3 -1
- package/dist/overview/overview.js +31 -4
- package/dist/overview/overview.js.map +1 -1
- package/dist/{preview-1692415056433.js → preview-1692674301863.js} +2 -2
- package/overview/overview.tsx +16 -3
- package/package-tar/teambit-docs-0.0.1137.tgz +0 -0
- package/package.json +20 -20
- package/package-tar/teambit-docs-0.0.1136.tgz +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import type { SlotRegistry } from '@teambit/harmony';
|
|
3
|
+
import { ComponentPreviewProps } from '@teambit/preview.ui.component-preview';
|
|
3
4
|
export declare enum BadgePosition {
|
|
4
5
|
Title = 0,
|
|
5
6
|
SubTitle = 1,
|
|
@@ -19,5 +20,6 @@ export declare type OverviewOptionsSlot = SlotRegistry<OverviewOptions>;
|
|
|
19
20
|
export declare type OverviewProps = {
|
|
20
21
|
titleBadges: TitleBadgeSlot;
|
|
21
22
|
overviewOptions: OverviewOptionsSlot;
|
|
23
|
+
previewProps?: ComponentPreviewProps;
|
|
22
24
|
};
|
|
23
|
-
export declare function Overview({ titleBadges, overviewOptions }: OverviewProps): JSX.Element;
|
|
25
|
+
export declare function Overview({ titleBadges, overviewOptions, previewProps }: OverviewProps): JSX.Element;
|
|
@@ -8,6 +8,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
});
|
|
9
9
|
exports.BadgePosition = void 0;
|
|
10
10
|
exports.Overview = Overview;
|
|
11
|
+
function _extends2() {
|
|
12
|
+
const data = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
_extends2 = function () {
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
16
|
+
return data;
|
|
17
|
+
}
|
|
18
|
+
function _objectWithoutProperties2() {
|
|
19
|
+
const data = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
20
|
+
_objectWithoutProperties2 = function () {
|
|
21
|
+
return data;
|
|
22
|
+
};
|
|
23
|
+
return data;
|
|
24
|
+
}
|
|
11
25
|
function _react() {
|
|
12
26
|
const data = _interopRequireWildcard(require("react"));
|
|
13
27
|
_react = function () {
|
|
@@ -93,7 +107,8 @@ let BadgePosition = /*#__PURE__*/function (BadgePosition) {
|
|
|
93
107
|
exports.BadgePosition = BadgePosition;
|
|
94
108
|
function Overview({
|
|
95
109
|
titleBadges,
|
|
96
|
-
overviewOptions
|
|
110
|
+
overviewOptions,
|
|
111
|
+
previewProps
|
|
97
112
|
}) {
|
|
98
113
|
var _component$preview, _component$preview2, _component$preview3, _component$preview4, _component$preview5;
|
|
99
114
|
const component = (0, _react().useContext)(_component().ComponentContext);
|
|
@@ -118,6 +133,18 @@ function Overview({
|
|
|
118
133
|
const isScaling = (_component$preview2 = component.preview) === null || _component$preview2 === void 0 ? void 0 : _component$preview2.isScaling;
|
|
119
134
|
const iframeQueryParams = `skipIncludes=${((_component$preview3 = component.preview) === null || _component$preview3 === void 0 ? void 0 : _component$preview3.skipIncludes) || 'false'}`;
|
|
120
135
|
const overviewPropsValues = overviewProps && overviewProps();
|
|
136
|
+
|
|
137
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
138
|
+
const _ref = previewProps || {},
|
|
139
|
+
{
|
|
140
|
+
onLoad,
|
|
141
|
+
style
|
|
142
|
+
} = _ref,
|
|
143
|
+
rest = (0, _objectWithoutProperties2().default)(_ref, ["onLoad", "style"]);
|
|
144
|
+
const onPreviewLoad = _react().default.useCallback((e, props) => {
|
|
145
|
+
setLoading(false);
|
|
146
|
+
onLoad === null || onLoad === void 0 ? void 0 : onLoad(e, props);
|
|
147
|
+
}, [onLoad]);
|
|
121
148
|
return /*#__PURE__*/_react().default.createElement("div", {
|
|
122
149
|
className: _overviewModule().default.overviewWrapper
|
|
123
150
|
}, showHeader && /*#__PURE__*/_react().default.createElement(_componentUi().ComponentOverview, {
|
|
@@ -132,8 +159,8 @@ function Overview({
|
|
|
132
159
|
component: component
|
|
133
160
|
}), /*#__PURE__*/_react().default.createElement("div", {
|
|
134
161
|
className: _overviewModule().default.readme
|
|
135
|
-
}, /*#__PURE__*/_react().default.createElement(_previewUi().ComponentPreview, {
|
|
136
|
-
onLoad:
|
|
162
|
+
}, /*#__PURE__*/_react().default.createElement(_previewUi().ComponentPreview, (0, _extends2().default)({
|
|
163
|
+
onLoad: onPreviewLoad,
|
|
137
164
|
component: component,
|
|
138
165
|
style: {
|
|
139
166
|
width: '100%',
|
|
@@ -146,7 +173,7 @@ function Overview({
|
|
|
146
173
|
viewport: null,
|
|
147
174
|
fullContentHeight: true,
|
|
148
175
|
disableScroll: true
|
|
149
|
-
}), ((_component$preview4 = component.preview) === null || _component$preview4 === void 0 ? void 0 : _component$preview4.skipIncludes) && /*#__PURE__*/_react().default.createElement(_compositionsPanels().CompositionGallery, {
|
|
176
|
+
}, rest)), ((_component$preview4 = component.preview) === null || _component$preview4 === void 0 ? void 0 : _component$preview4.skipIncludes) && /*#__PURE__*/_react().default.createElement(_compositionsPanels().CompositionGallery, {
|
|
150
177
|
isLoading: isLoading,
|
|
151
178
|
component: component
|
|
152
179
|
}), ((_component$preview5 = component.preview) === null || _component$preview5 === void 0 ? void 0 : _component$preview5.skipIncludes) && /*#__PURE__*/_react().default.createElement(_reactUiDocs().PropertiesTable, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_lodash","_reactUiDocs","_component","_previewUi","_designUiSurfaces","_componentUi","_compositionsPanels","_overviewModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BadgePosition","exports","Overview","titleBadges","overviewOptions","_component$preview","_component$preview2","_component$preview3","_component$preview4","_component$preview5","component","useContext","ComponentContext","componentDescriptor","useComponentDescriptor","overviewProps","flatten","values","showHeader","preview","legacyHeader","isLoading","setLoading","useState","buildStatus","host","createElement","StatusMessageCard","style","margin","status","title","isScaling","iframeQueryParams","skipIncludes","overviewPropsValues","className","styles","overviewWrapper","ComponentOverview","classNames","componentOverviewBlock","legacyPreview","displayName","version","abstract","description","labels","packageName","readme","ComponentPreview","onLoad","width","height","minHeight","undefined","previewName","pubsub","queryParams","viewport","fullContentHeight","disableScroll","CompositionGallery","PropertiesTable","overviewPropsTable","componentId","id","toString"],"sources":["overview.tsx"],"sourcesContent":["import React, { useContext, ComponentType, useState } from 'react';\nimport classNames from 'classnames';\nimport { flatten } from 'lodash';\n// import { Icon } from '@teambit/design.elements.icon';\nimport { PropertiesTable } from '@teambit/react.ui.docs.properties-table';\n// import { LinkedHeading } from '@teambit/documenter.ui.linked-heading';\nimport { ComponentContext, useComponentDescriptor } from '@teambit/component';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { ComponentPreview } from '@teambit/preview.ui.component-preview';\nimport { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';\nimport { ComponentOverview } from '@teambit/component.ui.component-meta';\nimport { CompositionGallery } from '@teambit/compositions.panels.composition-gallery';\n// import { ReadmeSkeleton } from './readme-skeleton';\nimport styles from './overview.module.scss';\n\nexport enum BadgePosition {\n Title,\n SubTitle,\n Labels,\n Package,\n}\n\nexport type TitleBadge = {\n component: ComponentType<any>;\n weight?: number;\n position?: BadgePosition;\n};\n\nexport type TitleBadgeSlot = SlotRegistry<TitleBadge[]>;\n\nexport type OverviewOptions = () => { queryParams?: string };\n\nexport type OverviewOptionsSlot = SlotRegistry<OverviewOptions>;\n\nexport type OverviewProps = {\n titleBadges: TitleBadgeSlot;\n overviewOptions: OverviewOptionsSlot;\n};\n\nexport function Overview({ titleBadges, overviewOptions }: OverviewProps) {\n const component = useContext(ComponentContext);\n const componentDescriptor = useComponentDescriptor();\n const overviewProps = flatten(overviewOptions.values())[0];\n const showHeader = !component.preview?.legacyHeader;\n const [isLoading, setLoading] = useState(true);\n\n if (component?.buildStatus === 'pending' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard style={{ margin: 'auto' }} status=\"PROCESSING\" title=\"component preview pending\">\n this might take some time\n </StatusMessageCard>\n );\n\n if (component?.buildStatus === 'failed' && component?.host === 'teambit.scope/scope')\n return <StatusMessageCard style={{ margin: 'auto' }} status=\"FAILURE\" title=\"failed to get component preview \" />;\n\n const isScaling = component.preview?.isScaling;\n\n const iframeQueryParams = `skipIncludes=${component.preview?.skipIncludes || 'false'}`;\n\n const overviewPropsValues = overviewProps && overviewProps();\n\n return (\n <div className={styles.overviewWrapper}>\n {showHeader && (\n <ComponentOverview\n className={classNames(styles.componentOverviewBlock, !isScaling && styles.legacyPreview)}\n displayName={component.displayName}\n version={component.version}\n abstract={component.description}\n labels={component.labels}\n packageName={component.packageName}\n titleBadges={flatten(titleBadges.values())}\n componentDescriptor={componentDescriptor}\n component={component}\n />\n )}\n\n {/* TODO - @oded replace with new panel card same for compositions. */}\n\n {/* <LinkedHeading size=\"xs\" className={styles.title}>\n <Icon of=\"text\" /> <span>README</span>\n </LinkedHeading> */}\n <div className={styles.readme}>\n {/* {isLoading && <ReadmeSkeleton />} */}\n <ComponentPreview\n onLoad={() => setLoading(false)}\n component={component}\n style={{ width: '100%', height: '100%', minHeight: !isScaling ? 500 : undefined }}\n previewName=\"overview\"\n pubsub={true}\n queryParams={[iframeQueryParams, overviewPropsValues?.queryParams || '']}\n viewport={null}\n fullContentHeight\n disableScroll={true}\n />\n {component.preview?.skipIncludes && <CompositionGallery isLoading={isLoading} component={component} />}\n {component.preview?.skipIncludes && (\n <PropertiesTable className={styles.overviewPropsTable} componentId={component.id.toString()} />\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,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,CAACrD,UAAA,GAAA6E,gBAAgB;IACfC,MAAM,EAAEA,CAAA,KAAM7B,UAAU,CAAC,KAAK,CAAE;IAChCZ,SAAS,EAAEA,SAAU;IACrBkB,KAAK,EAAE;MAAEwB,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE,MAAM;MAAEC,SAAS,EAAE,CAACtB,SAAS,GAAG,GAAG,GAAGuB;IAAU,CAAE;IAClFC,WAAW,EAAC,UAAU;IACtBC,MAAM,EAAE,IAAK;IACbC,WAAW,EAAE,CAACzB,iBAAiB,EAAE,CAAAE,mBAAmB,aAAnBA,mBAAmB,uBAAnBA,mBAAmB,CAAEuB,WAAW,KAAI,EAAE,CAAE;IACzEC,QAAQ,EAAE,IAAK;IACfC,iBAAiB;IACjBC,aAAa,EAAE;EAAK,CACrB,CAAC,EACD,EAAArD,mBAAA,GAAAE,SAAS,CAACS,OAAO,cAAAX,mBAAA,uBAAjBA,mBAAA,CAAmB0B,YAAY,kBAAItE,MAAA,GAAAqB,OAAA,CAAAyC,aAAA,CAAClD,mBAAA,GAAAsF,kBAAkB;IAACzC,SAAS,EAAEA,SAAU;IAACX,SAAS,EAAEA;EAAU,CAAE,CAAC,EACrG,EAAAD,mBAAA,GAAAC,SAAS,CAACS,OAAO,cAAAV,mBAAA,uBAAjBA,mBAAA,CAAmByB,YAAY,kBAC9BtE,MAAA,GAAAqB,OAAA,CAAAyC,aAAA,CAACvD,YAAA,GAAA4F,eAAe;IAAC3B,SAAS,EAAEC,yBAAM,CAAC2B,kBAAmB;IAACC,WAAW,EAAEvD,SAAS,CAACwD,EAAE,CAACC,QAAQ,CAAC;EAAE,CAAE,CAE7F,CACF,CAAC;AAEV"}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_lodash","_reactUiDocs","_component","_previewUi","_designUiSurfaces","_componentUi","_compositionsPanels","_overviewModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BadgePosition","exports","Overview","titleBadges","overviewOptions","previewProps","_component$preview","_component$preview2","_component$preview3","_component$preview4","_component$preview5","component","useContext","ComponentContext","componentDescriptor","useComponentDescriptor","overviewProps","flatten","values","showHeader","preview","legacyHeader","isLoading","setLoading","useState","buildStatus","host","createElement","StatusMessageCard","style","margin","status","title","isScaling","iframeQueryParams","skipIncludes","overviewPropsValues","_ref","onLoad","rest","_objectWithoutProperties2","onPreviewLoad","React","useCallback","e","props","className","styles","overviewWrapper","ComponentOverview","classNames","componentOverviewBlock","legacyPreview","displayName","version","abstract","description","labels","packageName","readme","ComponentPreview","_extends2","width","height","minHeight","undefined","previewName","pubsub","queryParams","viewport","fullContentHeight","disableScroll","CompositionGallery","PropertiesTable","overviewPropsTable","componentId","id","toString"],"sources":["overview.tsx"],"sourcesContent":["import React, { useContext, ComponentType, useState } from 'react';\nimport classNames from 'classnames';\nimport { flatten } from 'lodash';\n// import { Icon } from '@teambit/design.elements.icon';\nimport { PropertiesTable } from '@teambit/react.ui.docs.properties-table';\n// import { LinkedHeading } from '@teambit/documenter.ui.linked-heading';\nimport { ComponentContext, useComponentDescriptor } from '@teambit/component';\nimport type { SlotRegistry } from '@teambit/harmony';\nimport { ComponentPreview, ComponentPreviewProps } from '@teambit/preview.ui.component-preview';\nimport { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';\nimport { ComponentOverview } from '@teambit/component.ui.component-meta';\nimport { CompositionGallery } from '@teambit/compositions.panels.composition-gallery';\n// import { ReadmeSkeleton } from './readme-skeleton';\nimport styles from './overview.module.scss';\n\nexport enum BadgePosition {\n Title,\n SubTitle,\n Labels,\n Package,\n}\n\nexport type TitleBadge = {\n component: ComponentType<any>;\n weight?: number;\n position?: BadgePosition;\n};\n\nexport type TitleBadgeSlot = SlotRegistry<TitleBadge[]>;\n\nexport type OverviewOptions = () => { queryParams?: string };\n\nexport type OverviewOptionsSlot = SlotRegistry<OverviewOptions>;\n\nexport type OverviewProps = {\n titleBadges: TitleBadgeSlot;\n overviewOptions: OverviewOptionsSlot;\n previewProps?: ComponentPreviewProps;\n};\n\nexport function Overview({ titleBadges, overviewOptions, previewProps }: OverviewProps) {\n const component = useContext(ComponentContext);\n const componentDescriptor = useComponentDescriptor();\n const overviewProps = flatten(overviewOptions.values())[0];\n const showHeader = !component.preview?.legacyHeader;\n const [isLoading, setLoading] = useState(true);\n\n if (component?.buildStatus === 'pending' && component?.host === 'teambit.scope/scope')\n return (\n <StatusMessageCard style={{ margin: 'auto' }} status=\"PROCESSING\" title=\"component preview pending\">\n this might take some time\n </StatusMessageCard>\n );\n\n if (component?.buildStatus === 'failed' && component?.host === 'teambit.scope/scope')\n return <StatusMessageCard style={{ margin: 'auto' }} status=\"FAILURE\" title=\"failed to get component preview \" />;\n\n const isScaling = component.preview?.isScaling;\n\n const iframeQueryParams = `skipIncludes=${component.preview?.skipIncludes || 'false'}`;\n\n const overviewPropsValues = overviewProps && overviewProps();\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { onLoad, style, ...rest } = previewProps || {};\n\n const onPreviewLoad = React.useCallback(\n (e, props) => {\n setLoading(false);\n onLoad?.(e, props);\n },\n [onLoad]\n );\n\n return (\n <div className={styles.overviewWrapper}>\n {showHeader && (\n <ComponentOverview\n className={classNames(styles.componentOverviewBlock, !isScaling && styles.legacyPreview)}\n displayName={component.displayName}\n version={component.version}\n abstract={component.description}\n labels={component.labels}\n packageName={component.packageName}\n titleBadges={flatten(titleBadges.values())}\n componentDescriptor={componentDescriptor}\n component={component}\n />\n )}\n\n {/* TODO - @oded replace with new panel card same for compositions. */}\n\n {/* <LinkedHeading size=\"xs\" className={styles.title}>\n <Icon of=\"text\" /> <span>README</span>\n </LinkedHeading> */}\n <div className={styles.readme}>\n {/* {isLoading && <ReadmeSkeleton />} */}\n <ComponentPreview\n onLoad={onPreviewLoad}\n component={component}\n style={{ width: '100%', height: '100%', minHeight: !isScaling ? 500 : undefined }}\n previewName=\"overview\"\n pubsub={true}\n queryParams={[iframeQueryParams, overviewPropsValues?.queryParams || '']}\n viewport={null}\n fullContentHeight\n disableScroll={true}\n {...rest}\n />\n {component.preview?.skipIncludes && <CompositionGallery isLoading={isLoading} component={component} />}\n {component.preview?.skipIncludes && (\n <PropertiesTable className={styles.overviewPropsTable} componentId={component.id.toString()} />\n )}\n </div>\n </div>\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,YAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,aAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,YAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAQ,WAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,UAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,kBAAA;EAAA,MAAAT,IAAA,GAAAE,OAAA;EAAAO,iBAAA,YAAAA,CAAA;IAAA,OAAAT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AAE,CAAE;IACzEC,QAAQ,EAAE,IAAK;IACfC,iBAAiB;IACjBC,aAAa,EAAE;EAAK,GAChBhC,IAAI,CACT,CAAC,EACD,EAAA9B,mBAAA,GAAAE,SAAS,CAACS,OAAO,cAAAX,mBAAA,uBAAjBA,mBAAA,CAAmB0B,YAAY,kBAAIvE,MAAA,GAAAqB,OAAA,CAAA0C,aAAA,CAACnD,mBAAA,GAAAgG,kBAAkB;IAAClD,SAAS,EAAEA,SAAU;IAACX,SAAS,EAAEA;EAAU,CAAE,CAAC,EACrG,EAAAD,mBAAA,GAAAC,SAAS,CAACS,OAAO,cAAAV,mBAAA,uBAAjBA,mBAAA,CAAmByB,YAAY,kBAC9BvE,MAAA,GAAAqB,OAAA,CAAA0C,aAAA,CAACxD,YAAA,GAAAsG,eAAe;IAAC3B,SAAS,EAAEC,yBAAM,CAAC2B,kBAAmB;IAACC,WAAW,EAAEhE,SAAS,CAACiE,EAAE,CAACC,QAAQ,CAAC;EAAE,CAAE,CAE7F,CACF,CAAC;AAEV"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.docs_docs@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.docs_docs@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.docs_docs@0.0.1137/dist/docs.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.docs_docs@0.0.1137/dist/docs.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/overview/overview.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import { PropertiesTable } from '@teambit/react.ui.docs.properties-table';
|
|
|
6
6
|
// import { LinkedHeading } from '@teambit/documenter.ui.linked-heading';
|
|
7
7
|
import { ComponentContext, useComponentDescriptor } from '@teambit/component';
|
|
8
8
|
import type { SlotRegistry } from '@teambit/harmony';
|
|
9
|
-
import { ComponentPreview } from '@teambit/preview.ui.component-preview';
|
|
9
|
+
import { ComponentPreview, ComponentPreviewProps } from '@teambit/preview.ui.component-preview';
|
|
10
10
|
import { StatusMessageCard } from '@teambit/design.ui.surfaces.status-message-card';
|
|
11
11
|
import { ComponentOverview } from '@teambit/component.ui.component-meta';
|
|
12
12
|
import { CompositionGallery } from '@teambit/compositions.panels.composition-gallery';
|
|
@@ -35,9 +35,10 @@ export type OverviewOptionsSlot = SlotRegistry<OverviewOptions>;
|
|
|
35
35
|
export type OverviewProps = {
|
|
36
36
|
titleBadges: TitleBadgeSlot;
|
|
37
37
|
overviewOptions: OverviewOptionsSlot;
|
|
38
|
+
previewProps?: ComponentPreviewProps;
|
|
38
39
|
};
|
|
39
40
|
|
|
40
|
-
export function Overview({ titleBadges, overviewOptions }: OverviewProps) {
|
|
41
|
+
export function Overview({ titleBadges, overviewOptions, previewProps }: OverviewProps) {
|
|
41
42
|
const component = useContext(ComponentContext);
|
|
42
43
|
const componentDescriptor = useComponentDescriptor();
|
|
43
44
|
const overviewProps = flatten(overviewOptions.values())[0];
|
|
@@ -60,6 +61,17 @@ export function Overview({ titleBadges, overviewOptions }: OverviewProps) {
|
|
|
60
61
|
|
|
61
62
|
const overviewPropsValues = overviewProps && overviewProps();
|
|
62
63
|
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
65
|
+
const { onLoad, style, ...rest } = previewProps || {};
|
|
66
|
+
|
|
67
|
+
const onPreviewLoad = React.useCallback(
|
|
68
|
+
(e, props) => {
|
|
69
|
+
setLoading(false);
|
|
70
|
+
onLoad?.(e, props);
|
|
71
|
+
},
|
|
72
|
+
[onLoad]
|
|
73
|
+
);
|
|
74
|
+
|
|
63
75
|
return (
|
|
64
76
|
<div className={styles.overviewWrapper}>
|
|
65
77
|
{showHeader && (
|
|
@@ -84,7 +96,7 @@ export function Overview({ titleBadges, overviewOptions }: OverviewProps) {
|
|
|
84
96
|
<div className={styles.readme}>
|
|
85
97
|
{/* {isLoading && <ReadmeSkeleton />} */}
|
|
86
98
|
<ComponentPreview
|
|
87
|
-
onLoad={
|
|
99
|
+
onLoad={onPreviewLoad}
|
|
88
100
|
component={component}
|
|
89
101
|
style={{ width: '100%', height: '100%', minHeight: !isScaling ? 500 : undefined }}
|
|
90
102
|
previewName="overview"
|
|
@@ -93,6 +105,7 @@ export function Overview({ titleBadges, overviewOptions }: OverviewProps) {
|
|
|
93
105
|
viewport={null}
|
|
94
106
|
fullContentHeight
|
|
95
107
|
disableScroll={true}
|
|
108
|
+
{...rest}
|
|
96
109
|
/>
|
|
97
110
|
{component.preview?.skipIncludes && <CompositionGallery isLoading={isLoading} component={component} />}
|
|
98
111
|
{component.preview?.skipIncludes && (
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/docs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1137",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/docs/docs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.docs",
|
|
8
8
|
"name": "docs",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1137"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"@teambit/component-id": "0.0.427",
|
|
20
20
|
"@teambit/design.ui.surfaces.status-message-card": "0.0.17",
|
|
21
21
|
"@teambit/base-ui.loaders.skeleton": "1.0.1",
|
|
22
|
-
"@teambit/compiler": "0.0.
|
|
23
|
-
"@teambit/component": "0.0.
|
|
24
|
-
"@teambit/pkg": "0.0.
|
|
25
|
-
"@teambit/workspace": "0.0.
|
|
26
|
-
"@teambit/cli": "0.0.
|
|
27
|
-
"@teambit/dev-files": "0.0.
|
|
28
|
-
"@teambit/envs": "0.0.
|
|
29
|
-
"@teambit/graphql": "0.0.
|
|
30
|
-
"@teambit/logger": "0.0.
|
|
31
|
-
"@teambit/preview": "0.0.
|
|
32
|
-
"@teambit/component-compare": "0.0.
|
|
33
|
-
"@teambit/docs.ui.overview-compare-section": "0.0.
|
|
34
|
-
"@teambit/docs.ui.overview-compare": "0.0.
|
|
35
|
-
"@teambit/ui": "0.0.
|
|
36
|
-
"@teambit/pubsub": "0.0.
|
|
37
|
-
"@teambit/component.ui.component-meta": "0.0.
|
|
38
|
-
"@teambit/compositions.panels.composition-gallery": "0.0.
|
|
22
|
+
"@teambit/compiler": "0.0.1137",
|
|
23
|
+
"@teambit/component": "0.0.1137",
|
|
24
|
+
"@teambit/pkg": "0.0.1137",
|
|
25
|
+
"@teambit/workspace": "0.0.1137",
|
|
26
|
+
"@teambit/cli": "0.0.762",
|
|
27
|
+
"@teambit/dev-files": "0.0.1137",
|
|
28
|
+
"@teambit/envs": "0.0.1137",
|
|
29
|
+
"@teambit/graphql": "0.0.1137",
|
|
30
|
+
"@teambit/logger": "0.0.855",
|
|
31
|
+
"@teambit/preview": "0.0.1137",
|
|
32
|
+
"@teambit/component-compare": "0.0.385",
|
|
33
|
+
"@teambit/docs.ui.overview-compare-section": "0.0.69",
|
|
34
|
+
"@teambit/docs.ui.overview-compare": "0.0.282",
|
|
35
|
+
"@teambit/ui": "0.0.1137",
|
|
36
|
+
"@teambit/pubsub": "0.0.1137",
|
|
37
|
+
"@teambit/component.ui.component-meta": "0.0.327",
|
|
38
|
+
"@teambit/compositions.panels.composition-gallery": "0.0.122",
|
|
39
39
|
"@teambit/preview.ui.component-preview": "0.0.519",
|
|
40
40
|
"@teambit/react.ui.docs.properties-table": "0.0.13"
|
|
41
41
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@teambit/docs.content.docs-overview": "1.95.9"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@teambit/legacy": "1.0.
|
|
54
|
+
"@teambit/legacy": "1.0.546",
|
|
55
55
|
"react": "^16.8.0 || ^17.0.0",
|
|
56
56
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
57
57
|
},
|
|
Binary file
|