@teambit/component.ui.component-drawer 0.0.412 → 0.0.414
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/component-drawer.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useContext, ReactNode, useMemo } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { ComponentTree } from '@teambit/ui-foundation.ui.side-bar';
|
|
4
4
|
import type { PayloadType } from '@teambit/ui-foundation.ui.side-bar';
|
|
@@ -90,93 +90,156 @@ export class ComponentsDrawer implements DrawerType {
|
|
|
90
90
|
return <Composer components={combinedContexts}>{children}</Composer>;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const filters = useMemo(
|
|
98
|
-
() =>
|
|
99
|
-
(filterPlugins &&
|
|
100
|
-
flatten(
|
|
101
|
-
filterPlugins.toArray().map(([key, filtersByKey]) => {
|
|
102
|
-
return filtersByKey.map((filter) => ({ ...filter, key: `${key}-${filter.id}` }));
|
|
103
|
-
})
|
|
104
|
-
).sort((a, b) => (a.order ?? 0) - (b.order ?? 0))) ||
|
|
105
|
-
[],
|
|
106
|
-
[filterPlugins]
|
|
107
|
-
);
|
|
93
|
+
setWidgets = (widgets?: DrawerWidgetSlot) => {
|
|
94
|
+
this.widgets = flatten(widgets?.values());
|
|
95
|
+
};
|
|
108
96
|
|
|
97
|
+
render = () => {
|
|
98
|
+
const { useComponents, useLanes: useLanesFromInstance, emptyMessage, plugins, transformTree, useHost, id } = this;
|
|
109
99
|
return (
|
|
110
|
-
<
|
|
111
|
-
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
</div>
|
|
100
|
+
<ComponentsDrawerContent
|
|
101
|
+
useComponents={useComponents}
|
|
102
|
+
useLanes={useLanesFromInstance}
|
|
103
|
+
emptyMessage={emptyMessage}
|
|
104
|
+
plugins={plugins}
|
|
105
|
+
transformTree={transformTree}
|
|
106
|
+
useHost={useHost}
|
|
107
|
+
id={id}
|
|
108
|
+
/>
|
|
120
109
|
);
|
|
121
110
|
};
|
|
111
|
+
}
|
|
122
112
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
113
|
+
function ComponentsDrawerContent({
|
|
114
|
+
useComponents,
|
|
115
|
+
useLanes: useLanesFromProps,
|
|
116
|
+
emptyMessage,
|
|
117
|
+
plugins,
|
|
118
|
+
transformTree,
|
|
119
|
+
useHost,
|
|
120
|
+
id,
|
|
121
|
+
}: {
|
|
122
|
+
useComponents: () => { components: ComponentModel[]; loading?: boolean };
|
|
123
|
+
useLanes: () => { lanesModel?: LanesModel; loading?: boolean };
|
|
124
|
+
emptyMessage: ReactNode;
|
|
125
|
+
plugins: ComponentsDrawerPlugins;
|
|
126
|
+
transformTree?: TransformTreeFn;
|
|
127
|
+
useHost?: () => ScopeModel | WorkspaceModel;
|
|
128
|
+
id: string;
|
|
129
|
+
}) {
|
|
130
|
+
const { loading: loadingComponents, components } = useComponents();
|
|
131
|
+
const { lanesModel: lanes, loading: loadingLanesModel } = useLanesFromProps();
|
|
132
|
+
const componentFiltersContext = useContext(ComponentFilterContext);
|
|
133
|
+
const filters = componentFiltersContext?.filters || [];
|
|
134
|
+
const host = useHost?.();
|
|
126
135
|
|
|
127
|
-
|
|
128
|
-
|
|
136
|
+
const filteredComponents = useMemo(() => {
|
|
137
|
+
if (!filters.length) return components;
|
|
138
|
+
return runAllFilters(filters, { components, lanes });
|
|
139
|
+
}, [filters, components.length, lanes?.lanes.length, lanes?.viewedLane?.id.toString(), loadingLanesModel]);
|
|
129
140
|
|
|
130
|
-
|
|
141
|
+
const Filters = <ComponentsDrawerRenderFilters components={components} lanes={lanes} plugins={plugins} />;
|
|
131
142
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
</div>
|
|
142
|
-
);
|
|
143
|
-
};
|
|
143
|
+
const Tree = (
|
|
144
|
+
<ComponentsDrawerRenderTree
|
|
145
|
+
components={filteredComponents}
|
|
146
|
+
host={host}
|
|
147
|
+
plugins={plugins}
|
|
148
|
+
transformTree={transformTree}
|
|
149
|
+
lanesModel={lanes}
|
|
150
|
+
/>
|
|
151
|
+
);
|
|
144
152
|
|
|
145
|
-
|
|
146
|
-
this.widgets = flatten(widgets?.values());
|
|
147
|
-
};
|
|
153
|
+
const emptyDrawer = <span className={classNames(mutedItalic, ellipsis, styles.emptyDrawer)}>{emptyMessage}</span>;
|
|
148
154
|
|
|
149
|
-
|
|
150
|
-
const { loading, components } = this.useComponents();
|
|
151
|
-
const { lanesModel: lanes } = this.useLanes();
|
|
152
|
-
const componentFiltersContext = useContext(ComponentFilterContext);
|
|
155
|
+
const loading = loadingComponents || loadingLanesModel || !lanes || !components;
|
|
153
156
|
|
|
154
|
-
|
|
157
|
+
if (loading) return <ComponentTreeLoader />;
|
|
155
158
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
return (
|
|
160
|
+
<div key={id} className={styles.drawerContainer}>
|
|
161
|
+
{Filters}
|
|
162
|
+
{Tree}
|
|
163
|
+
{filteredComponents.length === 0 && emptyDrawer}
|
|
164
|
+
</div>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
160
167
|
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
function ComponentsDrawerRenderFilters({
|
|
169
|
+
components,
|
|
170
|
+
lanes,
|
|
171
|
+
plugins,
|
|
172
|
+
}: {
|
|
173
|
+
components: ComponentModel[];
|
|
174
|
+
lanes?: LanesModel;
|
|
175
|
+
plugins: ComponentsDrawerPlugins;
|
|
176
|
+
}) {
|
|
177
|
+
const { filterWidgetOpen } = useContext(ComponentFilterWidgetContext);
|
|
178
|
+
const filterPlugins = plugins.filters;
|
|
163
179
|
|
|
164
|
-
|
|
180
|
+
const filters = useMemo(
|
|
181
|
+
() =>
|
|
182
|
+
(filterPlugins &&
|
|
183
|
+
flatten(
|
|
184
|
+
filterPlugins.toArray().map(([key, filtersByKey]) => {
|
|
185
|
+
return filtersByKey.map((filter) => ({ ...filter, key: `${key}-${filter.id}` }));
|
|
186
|
+
})
|
|
187
|
+
).sort((a, b) => (a.order ?? 0) - (b.order ?? 0))) ||
|
|
188
|
+
[],
|
|
189
|
+
[filterPlugins?.map.size, filterPlugins?.values()?.length]
|
|
190
|
+
);
|
|
165
191
|
|
|
166
|
-
|
|
167
|
-
<span className={classNames(mutedItalic, ellipsis, styles.emptyDrawer)}>{this.emptyMessage}</span>
|
|
168
|
-
);
|
|
192
|
+
if (!filters.length) return null;
|
|
169
193
|
|
|
170
|
-
|
|
194
|
+
return (
|
|
195
|
+
<div className={classNames(styles.filtersContainer, filterWidgetOpen && styles.open)}>
|
|
196
|
+
{filters.map((filter) => (
|
|
197
|
+
<filter.render
|
|
198
|
+
key={filter.key}
|
|
199
|
+
components={components}
|
|
200
|
+
lanes={lanes}
|
|
201
|
+
className={classNames(styles.filter, filterWidgetOpen && styles.open)}
|
|
202
|
+
/>
|
|
203
|
+
))}
|
|
204
|
+
</div>
|
|
205
|
+
);
|
|
206
|
+
}
|
|
171
207
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
208
|
+
function ComponentsDrawerRenderTree({
|
|
209
|
+
components,
|
|
210
|
+
host,
|
|
211
|
+
plugins,
|
|
212
|
+
transformTree,
|
|
213
|
+
lanesModel,
|
|
214
|
+
}: {
|
|
215
|
+
components: ComponentModel[];
|
|
216
|
+
host?: ScopeModel | WorkspaceModel;
|
|
217
|
+
plugins: ComponentsDrawerPlugins;
|
|
218
|
+
transformTree?: TransformTreeFn;
|
|
219
|
+
lanesModel?: LanesModel;
|
|
220
|
+
}) {
|
|
221
|
+
const { collapsed } = useContext(ComponentTreeContext);
|
|
222
|
+
const { tree } = plugins;
|
|
223
|
+
|
|
224
|
+
const TreeNode = useMemo(() => {
|
|
225
|
+
return tree?.customRenderer && tree.customRenderer(tree.widgets, host);
|
|
226
|
+
}, [tree?.customRenderer, tree?.widgets.map.size, tree?.widgets.values().length]);
|
|
227
|
+
|
|
228
|
+
const isVisible = components.length > 0;
|
|
229
|
+
|
|
230
|
+
if (!isVisible) return null;
|
|
231
|
+
|
|
232
|
+
return (
|
|
233
|
+
<div className={styles.drawerTreeContainer}>
|
|
234
|
+
<ComponentTree
|
|
235
|
+
transformTree={transformTree ? transformTree(host) : undefined}
|
|
236
|
+
components={components}
|
|
237
|
+
isCollapsed={collapsed}
|
|
238
|
+
TreeNode={TreeNode}
|
|
239
|
+
lanesModel={lanesModel}
|
|
240
|
+
/>
|
|
241
|
+
</div>
|
|
242
|
+
);
|
|
180
243
|
}
|
|
181
244
|
|
|
182
245
|
export function TreeToggleWidget() {
|
|
@@ -59,14 +59,6 @@ export declare class ComponentsDrawer implements DrawerType {
|
|
|
59
59
|
Context: ({ children }: {
|
|
60
60
|
children: any;
|
|
61
61
|
}) => React.JSX.Element;
|
|
62
|
-
renderFilters: ({ components, lanes }: {
|
|
63
|
-
components: ComponentModel[];
|
|
64
|
-
lanes?: LanesModel;
|
|
65
|
-
}) => React.JSX.Element;
|
|
66
|
-
renderTree: ({ components, host }: {
|
|
67
|
-
components: ComponentModel[];
|
|
68
|
-
host?: ScopeModel | WorkspaceModel;
|
|
69
|
-
}) => React.JSX.Element;
|
|
70
62
|
setWidgets: (widgets?: DrawerWidgetSlot) => void;
|
|
71
63
|
render: () => React.JSX.Element;
|
|
72
64
|
}
|
package/dist/component-drawer.js
CHANGED
|
@@ -53,48 +53,12 @@ class ComponentsDrawer {
|
|
|
53
53
|
];
|
|
54
54
|
return react_1.default.createElement(base_ui_utils_composer_1.Composer, { components: combinedContexts }, children);
|
|
55
55
|
};
|
|
56
|
-
this.renderFilters = ({ components, lanes }) => {
|
|
57
|
-
const { filterWidgetOpen } = (0, react_1.useContext)(component_drawer_filter_widget_context_1.ComponentFilterWidgetContext);
|
|
58
|
-
const filterPlugins = this.plugins.filters;
|
|
59
|
-
const filters = (0, react_1.useMemo)(() => (filterPlugins &&
|
|
60
|
-
(0, lodash_flatten_1.default)(filterPlugins.toArray().map(([key, filtersByKey]) => {
|
|
61
|
-
return filtersByKey.map((filter) => (Object.assign(Object.assign({}, filter), { key: `${key}-${filter.id}` })));
|
|
62
|
-
})).sort((a, b) => { var _a, _b; return ((_a = a.order) !== null && _a !== void 0 ? _a : 0) - ((_b = b.order) !== null && _b !== void 0 ? _b : 0); })) ||
|
|
63
|
-
[], [filterPlugins]);
|
|
64
|
-
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(component_drawer_module_scss_1.default.filtersContainer, filterWidgetOpen && component_drawer_module_scss_1.default.open) }, filters.map((filter) => (react_1.default.createElement(filter.render, { key: filter.key, components: components, lanes: lanes, className: (0, classnames_1.default)(component_drawer_module_scss_1.default.filter, filterWidgetOpen && component_drawer_module_scss_1.default.open) })))));
|
|
65
|
-
};
|
|
66
|
-
this.renderTree = ({ components, host }) => {
|
|
67
|
-
const { collapsed } = (0, react_1.useContext)(component_drawer_tree_widget_context_1.ComponentTreeContext);
|
|
68
|
-
const { tree } = this.plugins;
|
|
69
|
-
const TreeNode = (tree === null || tree === void 0 ? void 0 : tree.customRenderer) && (0, react_1.useCallback)(tree.customRenderer(tree.widgets, host), [tree.widgets]);
|
|
70
|
-
const isVisible = components.length > 0;
|
|
71
|
-
if (!isVisible)
|
|
72
|
-
return null;
|
|
73
|
-
return (react_1.default.createElement("div", { className: component_drawer_module_scss_1.default.drawerTreeContainer },
|
|
74
|
-
react_1.default.createElement(ui_foundation_ui_side_bar_1.ComponentTree, { transformTree: this.transformTree ? this.transformTree(host) : undefined, components: components, isCollapsed: collapsed,
|
|
75
|
-
// assumeScopeInUrl={this.assumeScopeInUrl}
|
|
76
|
-
TreeNode: TreeNode })));
|
|
77
|
-
};
|
|
78
56
|
this.setWidgets = (widgets) => {
|
|
79
57
|
this.widgets = (0, lodash_flatten_1.default)(widgets === null || widgets === void 0 ? void 0 : widgets.values());
|
|
80
58
|
};
|
|
81
59
|
this.render = () => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const { lanesModel: lanes } = this.useLanes();
|
|
85
|
-
const componentFiltersContext = (0, react_1.useContext)(component_ui_component_filters_component_filter_context_1.ComponentFilterContext);
|
|
86
|
-
const filters = (componentFiltersContext === null || componentFiltersContext === void 0 ? void 0 : componentFiltersContext.filters) || [];
|
|
87
|
-
const filteredComponents = (0, react_1.useMemo)(() => (0, component_ui_component_filters_component_filter_context_1.runAllFilters)(filters, { components, lanes }), [filters, components, lanes]);
|
|
88
|
-
const Filters = this.renderFilters({ components, lanes });
|
|
89
|
-
const host = (_a = this.useHost) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
90
|
-
const Tree = this.renderTree({ components: filteredComponents, host });
|
|
91
|
-
const emptyDrawer = (react_1.default.createElement("span", { className: (0, classnames_1.default)(design_ui_styles_muted_italic_1.mutedItalic, design_ui_styles_ellipsis_1.ellipsis, component_drawer_module_scss_1.default.emptyDrawer) }, this.emptyMessage));
|
|
92
|
-
if (loading)
|
|
93
|
-
return react_1.default.createElement(design_ui_skeletons_sidebar_loader_1.ComponentTreeLoader, null);
|
|
94
|
-
return (react_1.default.createElement("div", { key: this.id, className: component_drawer_module_scss_1.default.drawerContainer },
|
|
95
|
-
Filters,
|
|
96
|
-
Tree,
|
|
97
|
-
filteredComponents.length === 0 && emptyDrawer));
|
|
60
|
+
const { useComponents, useLanes: useLanesFromInstance, emptyMessage, plugins, transformTree, useHost, id } = this;
|
|
61
|
+
return (react_1.default.createElement(ComponentsDrawerContent, { useComponents: useComponents, useLanes: useLanesFromInstance, emptyMessage: emptyMessage, plugins: plugins, transformTree: transformTree, useHost: useHost, id: id }));
|
|
98
62
|
};
|
|
99
63
|
Object.assign(this, props);
|
|
100
64
|
this.useComponents = props.useComponents;
|
|
@@ -108,6 +72,54 @@ class ComponentsDrawer {
|
|
|
108
72
|
}
|
|
109
73
|
}
|
|
110
74
|
exports.ComponentsDrawer = ComponentsDrawer;
|
|
75
|
+
function ComponentsDrawerContent({ useComponents, useLanes: useLanesFromProps, emptyMessage, plugins, transformTree, useHost, id, }) {
|
|
76
|
+
var _a;
|
|
77
|
+
const { loading: loadingComponents, components } = useComponents();
|
|
78
|
+
const { lanesModel: lanes, loading: loadingLanesModel } = useLanesFromProps();
|
|
79
|
+
const componentFiltersContext = (0, react_1.useContext)(component_ui_component_filters_component_filter_context_1.ComponentFilterContext);
|
|
80
|
+
const filters = (componentFiltersContext === null || componentFiltersContext === void 0 ? void 0 : componentFiltersContext.filters) || [];
|
|
81
|
+
const host = useHost === null || useHost === void 0 ? void 0 : useHost();
|
|
82
|
+
const filteredComponents = (0, react_1.useMemo)(() => {
|
|
83
|
+
if (!filters.length)
|
|
84
|
+
return components;
|
|
85
|
+
return (0, component_ui_component_filters_component_filter_context_1.runAllFilters)(filters, { components, lanes });
|
|
86
|
+
}, [filters, components.length, lanes === null || lanes === void 0 ? void 0 : lanes.lanes.length, (_a = lanes === null || lanes === void 0 ? void 0 : lanes.viewedLane) === null || _a === void 0 ? void 0 : _a.id.toString(), loadingLanesModel]);
|
|
87
|
+
const Filters = react_1.default.createElement(ComponentsDrawerRenderFilters, { components: components, lanes: lanes, plugins: plugins });
|
|
88
|
+
const Tree = (react_1.default.createElement(ComponentsDrawerRenderTree, { components: filteredComponents, host: host, plugins: plugins, transformTree: transformTree, lanesModel: lanes }));
|
|
89
|
+
const emptyDrawer = react_1.default.createElement("span", { className: (0, classnames_1.default)(design_ui_styles_muted_italic_1.mutedItalic, design_ui_styles_ellipsis_1.ellipsis, component_drawer_module_scss_1.default.emptyDrawer) }, emptyMessage);
|
|
90
|
+
const loading = loadingComponents || loadingLanesModel || !lanes || !components;
|
|
91
|
+
if (loading)
|
|
92
|
+
return react_1.default.createElement(design_ui_skeletons_sidebar_loader_1.ComponentTreeLoader, null);
|
|
93
|
+
return (react_1.default.createElement("div", { key: id, className: component_drawer_module_scss_1.default.drawerContainer },
|
|
94
|
+
Filters,
|
|
95
|
+
Tree,
|
|
96
|
+
filteredComponents.length === 0 && emptyDrawer));
|
|
97
|
+
}
|
|
98
|
+
function ComponentsDrawerRenderFilters({ components, lanes, plugins, }) {
|
|
99
|
+
var _a;
|
|
100
|
+
const { filterWidgetOpen } = (0, react_1.useContext)(component_drawer_filter_widget_context_1.ComponentFilterWidgetContext);
|
|
101
|
+
const filterPlugins = plugins.filters;
|
|
102
|
+
const filters = (0, react_1.useMemo)(() => (filterPlugins &&
|
|
103
|
+
(0, lodash_flatten_1.default)(filterPlugins.toArray().map(([key, filtersByKey]) => {
|
|
104
|
+
return filtersByKey.map((filter) => (Object.assign(Object.assign({}, filter), { key: `${key}-${filter.id}` })));
|
|
105
|
+
})).sort((a, b) => { var _a, _b; return ((_a = a.order) !== null && _a !== void 0 ? _a : 0) - ((_b = b.order) !== null && _b !== void 0 ? _b : 0); })) ||
|
|
106
|
+
[], [filterPlugins === null || filterPlugins === void 0 ? void 0 : filterPlugins.map.size, (_a = filterPlugins === null || filterPlugins === void 0 ? void 0 : filterPlugins.values()) === null || _a === void 0 ? void 0 : _a.length]);
|
|
107
|
+
if (!filters.length)
|
|
108
|
+
return null;
|
|
109
|
+
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(component_drawer_module_scss_1.default.filtersContainer, filterWidgetOpen && component_drawer_module_scss_1.default.open) }, filters.map((filter) => (react_1.default.createElement(filter.render, { key: filter.key, components: components, lanes: lanes, className: (0, classnames_1.default)(component_drawer_module_scss_1.default.filter, filterWidgetOpen && component_drawer_module_scss_1.default.open) })))));
|
|
110
|
+
}
|
|
111
|
+
function ComponentsDrawerRenderTree({ components, host, plugins, transformTree, lanesModel, }) {
|
|
112
|
+
const { collapsed } = (0, react_1.useContext)(component_drawer_tree_widget_context_1.ComponentTreeContext);
|
|
113
|
+
const { tree } = plugins;
|
|
114
|
+
const TreeNode = (0, react_1.useMemo)(() => {
|
|
115
|
+
return (tree === null || tree === void 0 ? void 0 : tree.customRenderer) && tree.customRenderer(tree.widgets, host);
|
|
116
|
+
}, [tree === null || tree === void 0 ? void 0 : tree.customRenderer, tree === null || tree === void 0 ? void 0 : tree.widgets.map.size, tree === null || tree === void 0 ? void 0 : tree.widgets.values().length]);
|
|
117
|
+
const isVisible = components.length > 0;
|
|
118
|
+
if (!isVisible)
|
|
119
|
+
return null;
|
|
120
|
+
return (react_1.default.createElement("div", { className: component_drawer_module_scss_1.default.drawerTreeContainer },
|
|
121
|
+
react_1.default.createElement(ui_foundation_ui_side_bar_1.ComponentTree, { transformTree: transformTree ? transformTree(host) : undefined, components: components, isCollapsed: collapsed, TreeNode: TreeNode, lanesModel: lanesModel })));
|
|
122
|
+
}
|
|
111
123
|
function TreeToggleWidget() {
|
|
112
124
|
const { collapsed, setCollapsed } = (0, react_1.useContext)(component_drawer_tree_widget_context_1.ComponentTreeContext);
|
|
113
125
|
const icon = collapsed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-drawer.js","sourceRoot":"","sources":["../component-drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"component-drawer.js","sourceRoot":"","sources":["../component-drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA8D;AAC9D,4DAAoC;AACpC,kFAAmE;AAInE,0FAAqE;AACrE,kFAA8D;AAG9D,4EAA2E;AAC3E,oEAAqC;AACrC,8IAK0E;AAC1E,0EAA0D;AAK1D,oGAAkF;AAClF,qGAAuH;AACvH,iGAAqG;AAErG,kGAAoD;AA4BpD,MAAa,gBAAgB;IAe3B,YAAY,KAA4B;;QAYxC,Y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AAI,CAAC;QACtE,uCAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,GAAI,CACvD,CACP,CAAC;AACJ,CAAC;AAVD,4CAUC;AAED,SAAgB,YAAY;IAC1B,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,IAAA,kBAAU,EAAC,qEAA4B,CAAC,CAAC;IACvF,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,sCAAM,CAAC,UAAU,EAAE,sCAAM,CAAC,YAAY,EAAE,gBAAgB,IAAI,sCAAM,CAAC,IAAI,CAAC;QACjG,uCAAK,GAAG,EAAC,6CAA6C,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,GAAI,CACxG,CACP,CAAC;AACJ,CAAC;AAPD,oCAOC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component.ui.component-drawer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.414",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/ui/component-drawer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "ui/component-drawer",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.414"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"@teambit/harmony": "0.4.6",
|
|
21
21
|
"@teambit/lanes.ui.models.lanes-model": "0.0.221",
|
|
22
22
|
"@teambit/ui-foundation.ui.tree.drawer": "0.0.518",
|
|
23
|
-
"@teambit/
|
|
24
|
-
"@teambit/
|
|
25
|
-
"@teambit/
|
|
26
|
-
"@teambit/
|
|
23
|
+
"@teambit/component.ui.component-filters.component-filter-context": "0.0.229",
|
|
24
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.274",
|
|
25
|
+
"@teambit/scope.models.scope-model": "0.0.515",
|
|
26
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.886"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/react": "^17.0.8",
|
|
File without changes
|