@teambit/compositions 1.0.1002 → 1.0.1003
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/composition.section.d.ts +2 -1
- package/dist/compositions.composition.d.ts +2 -1
- package/dist/compositions.d.ts +3 -2
- package/dist/compositions.ui.runtime.d.ts +2 -1
- package/dist/{preview-1780084871933.js → preview-1780507494169.js} +2 -2
- package/dist/ui/composition-preview.d.ts +2 -1
- package/dist/ui/compositions-panel/compositions-panel.d.ts +1 -1
- package/dist/ui/compositions-panel/live-control-input.d.ts +1 -1
- package/dist/ui/compositions-panel/live-control-panel.d.ts +1 -1
- package/dist/ui/compositions-panel/live-controls-diff-panel.d.ts +2 -1
- package/dist/ui/compositions-panel/live-controls-renderer.d.ts +2 -1
- package/dist/ui/compositions-panel-node/compositions-panel-node.d.ts +1 -1
- package/package.json +16 -16
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Section } from '@teambit/component';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { CompositionsUI, CompositionsMenuSlot, EmptyStateSlot, UsePreviewSandboxSlot, UsePreviewPropsSlot } from './compositions.ui.runtime';
|
|
3
4
|
type Options = {
|
|
4
5
|
menuBarWidgetSlot: CompositionsMenuSlot;
|
|
@@ -23,7 +24,7 @@ export declare class CompositionsSection implements Section {
|
|
|
23
24
|
};
|
|
24
25
|
route: {
|
|
25
26
|
path: string;
|
|
26
|
-
element:
|
|
27
|
+
element: React.JSX.Element;
|
|
27
28
|
};
|
|
28
29
|
order: number;
|
|
29
30
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Logo: () => React.JSX.Element;
|
package/dist/compositions.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { ComponentModel } from '@teambit/component';
|
|
3
4
|
import type { EmptyStateSlot, CompositionsMenuSlot, UsePreviewSandboxSlot, UsePreviewPropsSlot } from './compositions.ui.runtime';
|
|
4
5
|
import type { Composition } from './composition';
|
|
@@ -20,11 +21,11 @@ export type CompositionsProp = {
|
|
|
20
21
|
usePreviewPropsSlot?: UsePreviewPropsSlot;
|
|
21
22
|
enableLiveControls?: boolean;
|
|
22
23
|
};
|
|
23
|
-
export declare function Compositions({ menuBarWidgets, emptyState, usePreviewSandboxSlot, usePreviewPropsSlot, enableLiveControls, }: CompositionsProp):
|
|
24
|
+
export declare function Compositions({ menuBarWidgets, emptyState, usePreviewSandboxSlot, usePreviewPropsSlot, enableLiveControls, }: CompositionsProp): React.JSX.Element;
|
|
24
25
|
export type CompositionContentProps = {
|
|
25
26
|
component: ComponentModel;
|
|
26
27
|
selected?: Composition;
|
|
27
28
|
queryParams?: string | string[];
|
|
28
29
|
emptyState?: EmptyStateSlot;
|
|
29
30
|
} & ComponentCompositionProps;
|
|
30
|
-
export declare function CompositionContent({ component, selected, queryParams, emptyState, sandbox, ...componentCompositionProps }: CompositionContentProps):
|
|
31
|
+
export declare function CompositionContent({ component, selected, queryParams, emptyState, sandbox, ...componentCompositionProps }: CompositionContentProps): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode, ComponentType } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { SlotRegistry } from '@teambit/harmony';
|
|
3
4
|
import type { ComponentUI } from '@teambit/component';
|
|
4
5
|
import type { ComponentCompareUI } from '@teambit/component-compare';
|
|
@@ -29,7 +30,7 @@ export declare class CompositionsUI {
|
|
|
29
30
|
* components.
|
|
30
31
|
*/
|
|
31
32
|
registerPreviewProps(usePreviewProps: UsePreviewProps): void;
|
|
32
|
-
getCompositionsCompare: () =>
|
|
33
|
+
getCompositionsCompare: () => React.JSX.Element;
|
|
33
34
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
34
35
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
35
36
|
static slots: (((registerFn: () => string) => SlotRegistry<UseSandboxPermission>) | ((registerFn: () => string) => SlotRegistry<UsePreviewProps>) | ((registerFn: () => string) => SlotRegistry<ComponentType>) | ((registerFn: () => string) => SlotRegistry<ReactNode>))[];
|
|
@@ -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.1003/dist/compositions.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compositions_compositions@1.0.1003/dist/compositions.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ComponentPreviewProps } from '@teambit/preview.ui.component-preview';
|
|
2
3
|
import type { Composition } from '../composition';
|
|
3
4
|
export type ComponentCompositionProps = {
|
|
@@ -6,4 +7,4 @@ export type ComponentCompositionProps = {
|
|
|
6
7
|
*/
|
|
7
8
|
composition?: Composition;
|
|
8
9
|
} & ComponentPreviewProps;
|
|
9
|
-
export declare function ComponentComposition({ composition, component, queryParams, ...rest }: ComponentCompositionProps):
|
|
10
|
+
export declare function ComponentComposition({ composition, component, queryParams, ...rest }: ComponentCompositionProps): React.JSX.Element;
|
|
@@ -12,4 +12,4 @@ export type CompositionsPanelProps = {
|
|
|
12
12
|
includesEnvTemplate?: boolean;
|
|
13
13
|
useNameParam?: boolean;
|
|
14
14
|
} & React.HTMLAttributes<HTMLUListElement>;
|
|
15
|
-
export declare function CompositionsPanel({ url, compositions, isScaling, onSelectComposition: onSelect, onToggleLiveControls, hasLiveControls, liveControlsActive, active, includesEnvTemplate, useNameParam, className, ...rest }: CompositionsPanelProps):
|
|
15
|
+
export declare function CompositionsPanel({ url, compositions, isScaling, onSelectComposition: onSelect, onToggleLiveControls, hasLiveControls, liveControlsActive, active, includesEnvTemplate, useNameParam, className, ...rest }: CompositionsPanelProps): React.JSX.Element;
|
|
@@ -6,6 +6,6 @@ type InputComponentProps = {
|
|
|
6
6
|
meta?: any;
|
|
7
7
|
};
|
|
8
8
|
type InputComponent = React.FC<InputComponentProps>;
|
|
9
|
-
export declare function SelectInput({ value, onChange, meta }: InputComponentProps):
|
|
9
|
+
export declare function SelectInput({ value, onChange, meta }: InputComponentProps): React.JSX.Element;
|
|
10
10
|
export declare function getInputComponent(type: string): InputComponent;
|
|
11
11
|
export {};
|
|
@@ -5,4 +5,4 @@ export declare function LiveControls({ defs, values, onChange, renderLabel, }: {
|
|
|
5
5
|
values: Record<string, any>;
|
|
6
6
|
onChange: (key: string, value: any) => void;
|
|
7
7
|
renderLabel?: (field: Control) => React.ReactNode;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type PanelStatus = 'loading' | 'available' | 'empty';
|
|
2
3
|
export type LiveControlsDiffPanelProps = {
|
|
3
4
|
resetKey?: string;
|
|
@@ -9,5 +10,5 @@ export type LiveControlsDiffPanelProps = {
|
|
|
9
10
|
showEmptyState?: boolean;
|
|
10
11
|
onStatusChange?: (status: PanelStatus) => void;
|
|
11
12
|
};
|
|
12
|
-
export declare function LiveControlsDiffPanel({ resetKey, baseChannel, compareChannel, commonLabel, baseLabel, compareLabel, showEmptyState, onStatusChange, }: LiveControlsDiffPanelProps):
|
|
13
|
+
export declare function LiveControlsDiffPanel({ resetKey, baseChannel, compareChannel, commonLabel, baseLabel, compareLabel, showEmptyState, onStatusChange, }: LiveControlsDiffPanelProps): React.JSX.Element | null;
|
|
13
14
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function LiveControlsRenderer(): React.JSX.Element | null;
|
|
@@ -4,4 +4,4 @@ export type CompositionsPanelNodeProps = {
|
|
|
4
4
|
onClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
} & React.HTMLAttributes<HTMLLIElement>;
|
|
7
|
-
export declare function CompositionsPanelNode({ name, onClick, isActive, ...rest }: CompositionsPanelNodeProps):
|
|
7
|
+
export declare function CompositionsPanelNode({ name, onClick, isActive, ...rest }: CompositionsPanelNodeProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compositions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1003",
|
|
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.1003"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
"@teambit/design.inputs.toggle-switch": "0.0.9",
|
|
52
52
|
"@teambit/design.ui.input.color-picker": "0.0.56",
|
|
53
53
|
"@teambit/base-ui.loaders.skeleton": "1.0.2",
|
|
54
|
-
"@teambit/component": "1.0.
|
|
55
|
-
"@teambit/graphql": "1.0.
|
|
56
|
-
"@teambit/cli": "0.0.
|
|
57
|
-
"@teambit/component.sources": "0.0.
|
|
58
|
-
"@teambit/dev-files": "1.0.
|
|
59
|
-
"@teambit/envs": "1.0.
|
|
60
|
-
"@teambit/legacy.consumer-component": "0.0.
|
|
61
|
-
"@teambit/preview": "1.0.
|
|
62
|
-
"@teambit/schema": "1.0.
|
|
63
|
-
"@teambit/scope": "1.0.
|
|
64
|
-
"@teambit/workspace": "1.0.
|
|
65
|
-
"@teambit/panels": "0.0.
|
|
66
|
-
"@teambit/component-compare": "1.0.
|
|
67
|
-
"@teambit/ui": "1.0.
|
|
54
|
+
"@teambit/component": "1.0.1003",
|
|
55
|
+
"@teambit/graphql": "1.0.1003",
|
|
56
|
+
"@teambit/cli": "0.0.1330",
|
|
57
|
+
"@teambit/component.sources": "0.0.172",
|
|
58
|
+
"@teambit/dev-files": "1.0.1003",
|
|
59
|
+
"@teambit/envs": "1.0.1003",
|
|
60
|
+
"@teambit/legacy.consumer-component": "0.0.121",
|
|
61
|
+
"@teambit/preview": "1.0.1003",
|
|
62
|
+
"@teambit/schema": "1.0.1003",
|
|
63
|
+
"@teambit/scope": "1.0.1003",
|
|
64
|
+
"@teambit/workspace": "1.0.1003",
|
|
65
|
+
"@teambit/panels": "0.0.1333",
|
|
66
|
+
"@teambit/component-compare": "1.0.1003",
|
|
67
|
+
"@teambit/ui": "1.0.1003"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/lodash": "4.14.165",
|