@teambit/ui-foundation.ui.side-bar 0.0.873 → 0.0.874
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-tree/component-tree.tsx +1 -1
- package/component-tree/component-view/component-view.tsx +36 -6
- package/dist/component-tree/component-tree.js +1 -1
- package/dist/component-tree/component-tree.js.map +1 -1
- package/dist/component-tree/component-view/component-view.js +31 -8
- package/dist/component-tree/component-view/component-view.js.map +1 -1
- package/dist/preview-1705406853442.js +7 -0
- package/package.json +17 -15
- package/tsconfig.json +32 -0
- package/types/asset.d.ts +29 -0
- package/types/style.d.ts +42 -0
- package/.bit-capsule-ready +0 -0
- package/package-tar/teambit-ui-foundation.ui.side-bar-0.0.873.tgz +0 -0
- package/schema.json +0 -1395
- package/static/css/teambit.ui-foundation/ui/side-bar.660f3253.css +0 -1
- package/teambit_ui_foundation_ui_side_bar-component.js +0 -994
- package/teambit_ui_foundation_ui_side_bar-preview.js +0 -1
|
@@ -28,7 +28,7 @@ export function ComponentTree({
|
|
|
28
28
|
const { pathname = '/' } = useLocation() || {};
|
|
29
29
|
// override default splat from location when viewing a lane component
|
|
30
30
|
const laneCompUrl = pathname.split(LanesModel.baseLaneComponentRoute.concat('/'))[1];
|
|
31
|
-
const idFromLocation = useIdFromLocation(laneCompUrl);
|
|
31
|
+
const idFromLocation = useIdFromLocation(laneCompUrl, true);
|
|
32
32
|
const activeComponent = useMemo(() => {
|
|
33
33
|
const active = components.find((x) => {
|
|
34
34
|
return idFromLocation && (idFromLocation === x.id.fullName || idFromLocation === x.id.toStringWithoutVersion());
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable complexity */
|
|
1
2
|
import { ComponentTreeSlot } from '@teambit/component-tree';
|
|
2
3
|
import { Link, useLocation } from '@teambit/base-react.navigation.link';
|
|
3
4
|
import { EnvIcon } from '@teambit/envs.ui.env-icon';
|
|
@@ -63,7 +64,7 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
63
64
|
</Link>
|
|
64
65
|
);
|
|
65
66
|
|
|
66
|
-
const href = lanesModel?.getLaneComponentUrlByVersion(component.id as any, lanesModel.viewedLane?.id);
|
|
67
|
+
const href = lanesModel?.getLaneComponentUrlByVersion(component.id as any, lanesModel.viewedLane?.id, !scope.name);
|
|
67
68
|
|
|
68
69
|
const viewingMainCompOnLane = React.useMemo(() => {
|
|
69
70
|
return (
|
|
@@ -90,24 +91,31 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
90
91
|
* - /<component-id>/~sub-route
|
|
91
92
|
* - /<component-id>/~sub-route/another-sub-route
|
|
92
93
|
* - /<component-id>/~sub-route?version=<version>
|
|
94
|
+
* - /<component-id>/~sub-route?scope=<scope>
|
|
95
|
+
* - /<component-id>?scope=<scope>
|
|
93
96
|
*
|
|
94
97
|
* 2. viewing a lane component
|
|
95
98
|
*
|
|
96
99
|
* - /~lane/<lane-id>/<component-id>/
|
|
100
|
+
* - /~lane/<lane-id>/<component-id>?scope=<scope>
|
|
97
101
|
* - /~lane/<lane-id>/<component-id>/~sub-route
|
|
98
102
|
* - /~lane/<lane-id>/<component-id>/~sub-route/another-sub-route
|
|
99
103
|
* - /~lane/<lane-id>/<component-id>/~sub-route?version=<version>
|
|
104
|
+
* - /~lane/<lane-id>/<component-id>/~sub-route?scope=<scope>
|
|
100
105
|
*
|
|
101
106
|
* 3. viewing a main component when on a lane
|
|
102
107
|
*
|
|
103
108
|
* - /?lane=<lane-id>/<component-id>/
|
|
109
|
+
* - /?lane=<lane-id>/<component-id>?scope=<scope>
|
|
104
110
|
* - /?lane=<lane-id>/<component-id>/~sub-route
|
|
105
111
|
* - /?lane=<lane-id>/<component-id>/~sub-route/another-sub-route
|
|
106
112
|
* - /?lane=<lane-id>/<component-id>/~sub-route?version=<version>
|
|
113
|
+
* - /?lane=<lane-id>/<component-id>/~sub-route?scope=<scope>
|
|
107
114
|
*
|
|
108
115
|
* 4. viewing currently checked out lane component on workspace
|
|
109
116
|
*
|
|
110
117
|
* - /<component-id-without-scope>/
|
|
118
|
+
* - /<component-id-without-scope>?scope=<scope>
|
|
111
119
|
*
|
|
112
120
|
* 5. viewing lane component from the same scope as the lane on a workspace
|
|
113
121
|
*
|
|
@@ -118,22 +126,33 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
118
126
|
const isActive = React.useMemo(() => {
|
|
119
127
|
if (!href || !location) return false;
|
|
120
128
|
|
|
129
|
+
const scopeFromQueryParams = location.search.split('scope=')[1];
|
|
130
|
+
|
|
121
131
|
const pathname = location.pathname.substring(1).split('?')[0];
|
|
122
132
|
const compIdStr = component.id.toStringWithoutVersion();
|
|
123
133
|
const compIdName = component.id.fullName;
|
|
134
|
+
const componentScope = component.id.scope;
|
|
135
|
+
const locationIncludesLaneId = location.pathname.includes(LanesModel.lanesPrefix);
|
|
124
136
|
|
|
125
137
|
const sanitizedHref = (href.startsWith('/') ? href.substring(1) : href).split('?')[0];
|
|
138
|
+
|
|
126
139
|
// if you are in a workspace, the componentId might not have a scopeId, if you are viewing
|
|
127
140
|
// a component on the checked out lane
|
|
128
141
|
const viewingCheckedOutLaneComp =
|
|
129
142
|
lanesModel?.currentLane && lanesModel.currentLane.id.toString() === lanesModel?.viewedLane?.id.toString();
|
|
130
143
|
|
|
131
|
-
if (
|
|
144
|
+
if (
|
|
145
|
+
!locationIncludesLaneId &&
|
|
146
|
+
(lanesModel?.viewedLane?.id.isDefault() || viewingMainCompOnLane || viewingCheckedOutLaneComp)
|
|
147
|
+
) {
|
|
132
148
|
// split out any sub routes if exist
|
|
133
149
|
const compUrl = pathname.split('/~')[0];
|
|
134
150
|
// may or may not contain scope
|
|
135
151
|
const scopeUrl = scope.name ? `${scope.name.replace('.', '/')}/` : '';
|
|
136
|
-
|
|
152
|
+
const compUrlWithoutScope = compUrl.replace(scopeUrl, '');
|
|
153
|
+
return !scopeFromQueryParams
|
|
154
|
+
? sanitizedHref === compUrlWithoutScope
|
|
155
|
+
: sanitizedHref === compUrl && componentScope === scopeFromQueryParams;
|
|
137
156
|
}
|
|
138
157
|
|
|
139
158
|
const laneCompUrlWithSubRoutes = pathname.split(LanesModel.baseLaneComponentRoute)[1] ?? '';
|
|
@@ -141,19 +160,30 @@ export function ComponentView(props: ComponentViewProps<PayloadType>) {
|
|
|
141
160
|
const _laneCompUrl = laneCompUrlWithSubRoutes.split('/~')[0] ?? '';
|
|
142
161
|
const laneCompUrl = _laneCompUrl.startsWith('/') ? _laneCompUrl.substring(1) : _laneCompUrl;
|
|
143
162
|
|
|
144
|
-
|
|
163
|
+
/**
|
|
164
|
+
* if the laneCompUrl doesn't have the scope as part of it and you are on a bare scope
|
|
165
|
+
* attach the bare scope to the laneCompUrl and parse it as a ComponentID
|
|
166
|
+
*/
|
|
167
|
+
const laneCompIdFromUrl =
|
|
168
|
+
ComponentID.tryFromString(laneCompUrl) ??
|
|
169
|
+
(scope.name ? ComponentID.tryFromString(`${scope.name}/${laneCompUrl}`) : undefined);
|
|
145
170
|
|
|
146
171
|
// viewing lane component from the same scope as the lane on a workspace
|
|
147
172
|
const laneAndCompFromSameScopeOnWs =
|
|
148
173
|
!scope.name && lanesModel?.viewedLane?.id && component.id.scope === lanesModel?.viewedLane?.id.scope;
|
|
149
174
|
|
|
150
175
|
if (laneAndCompFromSameScopeOnWs) {
|
|
151
|
-
return
|
|
176
|
+
return !scopeFromQueryParams
|
|
177
|
+
? compIdName === laneCompUrl
|
|
178
|
+
: compIdName === laneCompUrl && componentScope === scopeFromQueryParams;
|
|
152
179
|
}
|
|
153
180
|
|
|
154
181
|
if (!laneCompIdFromUrl) return false;
|
|
155
182
|
|
|
156
|
-
return
|
|
183
|
+
return !scopeFromQueryParams
|
|
184
|
+
? laneCompIdFromUrl?.toString() === compIdStr || laneCompIdFromUrl.fullName === compIdName
|
|
185
|
+
: laneCompIdFromUrl?.toString() === compIdStr ||
|
|
186
|
+
(laneCompIdFromUrl.fullName === compIdName && componentScope === scopeFromQueryParams);
|
|
157
187
|
}, [href, viewingMainCompOnLane, location?.pathname, component.id.toString(), scope]);
|
|
158
188
|
|
|
159
189
|
return (
|
|
@@ -40,7 +40,7 @@ TreeNode = default_tree_node_renderer_1.DefaultTreeNodeRenderer, }) {
|
|
|
40
40
|
const { pathname = '/' } = (0, base_react_navigation_link_1.useLocation)() || {};
|
|
41
41
|
// override default splat from location when viewing a lane component
|
|
42
42
|
const laneCompUrl = pathname.split(lanes_ui_models_lanes_model_1.LanesModel.baseLaneComponentRoute.concat('/'))[1];
|
|
43
|
-
const idFromLocation = (0, component_1.useIdFromLocation)(laneCompUrl);
|
|
43
|
+
const idFromLocation = (0, component_1.useIdFromLocation)(laneCompUrl, true);
|
|
44
44
|
const activeComponent = (0, react_1.useMemo)(() => {
|
|
45
45
|
const active = components.find((x) => {
|
|
46
46
|
return idFromLocation && (idFromLocation === x.id.fullName || idFromLocation === x.id.toStringWithoutVersion());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-tree.js","sourceRoot":"","sources":["../../component-tree/component-tree.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuE;AACvE,+CAAuC;AACvC,oFAAkE;AAClE,kFAAiE;AACjE,gGAAyF;AACzF,4DAA2F;AAC3F,sFAAkE;AAClE,8FAA+E;AAC/E,iDAA2D;AAC3D,6EAAuE;AAUvE,SAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa;AACb,4BAA4B;AAC5B,QAAQ,GAAG,oDAAuB,GACf;IACnB,MAAM,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,IAAA,wCAAW,GAAE,IAAI,EAAE,CAAC;IAC/C,qEAAqE;IACrE,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,wCAAU,CAAC,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrF,MAAM,cAAc,G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,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,2BAAY,EAAE,CAAC,CAAC,CAAC;IAE1E,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -65,7 +65,7 @@ function ComponentView(props) {
|
|
|
65
65
|
} },
|
|
66
66
|
react_1.default.createElement("div", { className: component_view_module_scss_1.default.componentEnvTitle }, "Environment"),
|
|
67
67
|
react_1.default.createElement("div", null, (_b = component.environment) === null || _b === void 0 ? void 0 : _b.id)));
|
|
68
|
-
const href = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.getLaneComponentUrlByVersion(component.id, (_c = lanesModel.viewedLane) === null || _c === void 0 ? void 0 : _c.id);
|
|
68
|
+
const href = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.getLaneComponentUrlByVersion(component.id, (_c = lanesModel.viewedLane) === null || _c === void 0 ? void 0 : _c.id, !scope.name);
|
|
69
69
|
const viewingMainCompOnLane = react_1.default.useMemo(() => {
|
|
70
70
|
var _a, _b, _c;
|
|
71
71
|
return (!((_a = component.status) === null || _a === void 0 ? void 0 : _a.isNew) &&
|
|
@@ -83,24 +83,31 @@ function ComponentView(props) {
|
|
|
83
83
|
* - /<component-id>/~sub-route
|
|
84
84
|
* - /<component-id>/~sub-route/another-sub-route
|
|
85
85
|
* - /<component-id>/~sub-route?version=<version>
|
|
86
|
+
* - /<component-id>/~sub-route?scope=<scope>
|
|
87
|
+
* - /<component-id>?scope=<scope>
|
|
86
88
|
*
|
|
87
89
|
* 2. viewing a lane component
|
|
88
90
|
*
|
|
89
91
|
* - /~lane/<lane-id>/<component-id>/
|
|
92
|
+
* - /~lane/<lane-id>/<component-id>?scope=<scope>
|
|
90
93
|
* - /~lane/<lane-id>/<component-id>/~sub-route
|
|
91
94
|
* - /~lane/<lane-id>/<component-id>/~sub-route/another-sub-route
|
|
92
95
|
* - /~lane/<lane-id>/<component-id>/~sub-route?version=<version>
|
|
96
|
+
* - /~lane/<lane-id>/<component-id>/~sub-route?scope=<scope>
|
|
93
97
|
*
|
|
94
98
|
* 3. viewing a main component when on a lane
|
|
95
99
|
*
|
|
96
100
|
* - /?lane=<lane-id>/<component-id>/
|
|
101
|
+
* - /?lane=<lane-id>/<component-id>?scope=<scope>
|
|
97
102
|
* - /?lane=<lane-id>/<component-id>/~sub-route
|
|
98
103
|
* - /?lane=<lane-id>/<component-id>/~sub-route/another-sub-route
|
|
99
104
|
* - /?lane=<lane-id>/<component-id>/~sub-route?version=<version>
|
|
105
|
+
* - /?lane=<lane-id>/<component-id>/~sub-route?scope=<scope>
|
|
100
106
|
*
|
|
101
107
|
* 4. viewing currently checked out lane component on workspace
|
|
102
108
|
*
|
|
103
109
|
* - /<component-id-without-scope>/
|
|
110
|
+
* - /<component-id-without-scope>?scope=<scope>
|
|
104
111
|
*
|
|
105
112
|
* 5. viewing lane component from the same scope as the lane on a workspace
|
|
106
113
|
*
|
|
@@ -109,35 +116,51 @@ function ComponentView(props) {
|
|
|
109
116
|
* @todo - move this logic to a util function
|
|
110
117
|
*/
|
|
111
118
|
const isActive = react_1.default.useMemo(() => {
|
|
112
|
-
var _a, _b, _c, _d, _e, _f;
|
|
119
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
113
120
|
if (!href || !location)
|
|
114
121
|
return false;
|
|
122
|
+
const scopeFromQueryParams = location.search.split('scope=')[1];
|
|
115
123
|
const pathname = location.pathname.substring(1).split('?')[0];
|
|
116
124
|
const compIdStr = component.id.toStringWithoutVersion();
|
|
117
125
|
const compIdName = component.id.fullName;
|
|
126
|
+
const componentScope = component.id.scope;
|
|
127
|
+
const locationIncludesLaneId = location.pathname.includes(lanes_ui_models_lanes_model_1.LanesModel.lanesPrefix);
|
|
118
128
|
const sanitizedHref = (href.startsWith('/') ? href.substring(1) : href).split('?')[0];
|
|
119
129
|
// if you are in a workspace, the componentId might not have a scopeId, if you are viewing
|
|
120
130
|
// a component on the checked out lane
|
|
121
131
|
const viewingCheckedOutLaneComp = (lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.currentLane) && lanesModel.currentLane.id.toString() === ((_a = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _a === void 0 ? void 0 : _a.id.toString());
|
|
122
|
-
if (
|
|
132
|
+
if (!locationIncludesLaneId &&
|
|
133
|
+
(((_b = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _b === void 0 ? void 0 : _b.id.isDefault()) || viewingMainCompOnLane || viewingCheckedOutLaneComp)) {
|
|
123
134
|
// split out any sub routes if exist
|
|
124
135
|
const compUrl = pathname.split('/~')[0];
|
|
125
136
|
// may or may not contain scope
|
|
126
137
|
const scopeUrl = scope.name ? `${scope.name.replace('.', '/')}/` : '';
|
|
127
|
-
|
|
138
|
+
const compUrlWithoutScope = compUrl.replace(scopeUrl, '');
|
|
139
|
+
return !scopeFromQueryParams
|
|
140
|
+
? sanitizedHref === compUrlWithoutScope
|
|
141
|
+
: sanitizedHref === compUrl && componentScope === scopeFromQueryParams;
|
|
128
142
|
}
|
|
129
143
|
const laneCompUrlWithSubRoutes = (_c = pathname.split(lanes_ui_models_lanes_model_1.LanesModel.baseLaneComponentRoute)[1]) !== null && _c !== void 0 ? _c : '';
|
|
130
144
|
const _laneCompUrl = (_d = laneCompUrlWithSubRoutes.split('/~')[0]) !== null && _d !== void 0 ? _d : '';
|
|
131
145
|
const laneCompUrl = _laneCompUrl.startsWith('/') ? _laneCompUrl.substring(1) : _laneCompUrl;
|
|
132
|
-
|
|
146
|
+
/**
|
|
147
|
+
* if the laneCompUrl doesn't have the scope as part of it and you are on a bare scope
|
|
148
|
+
* attach the bare scope to the laneCompUrl and parse it as a ComponentID
|
|
149
|
+
*/
|
|
150
|
+
const laneCompIdFromUrl = (_e = component_id_1.ComponentID.tryFromString(laneCompUrl)) !== null && _e !== void 0 ? _e : (scope.name ? component_id_1.ComponentID.tryFromString(`${scope.name}/${laneCompUrl}`) : undefined);
|
|
133
151
|
// viewing lane component from the same scope as the lane on a workspace
|
|
134
|
-
const laneAndCompFromSameScopeOnWs = !scope.name && ((
|
|
152
|
+
const laneAndCompFromSameScopeOnWs = !scope.name && ((_f = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _f === void 0 ? void 0 : _f.id) && component.id.scope === ((_g = lanesModel === null || lanesModel === void 0 ? void 0 : lanesModel.viewedLane) === null || _g === void 0 ? void 0 : _g.id.scope);
|
|
135
153
|
if (laneAndCompFromSameScopeOnWs) {
|
|
136
|
-
return
|
|
154
|
+
return !scopeFromQueryParams
|
|
155
|
+
? compIdName === laneCompUrl
|
|
156
|
+
: compIdName === laneCompUrl && componentScope === scopeFromQueryParams;
|
|
137
157
|
}
|
|
138
158
|
if (!laneCompIdFromUrl)
|
|
139
159
|
return false;
|
|
140
|
-
return
|
|
160
|
+
return !scopeFromQueryParams
|
|
161
|
+
? (laneCompIdFromUrl === null || laneCompIdFromUrl === void 0 ? void 0 : laneCompIdFromUrl.toString()) === compIdStr || laneCompIdFromUrl.fullName === compIdName
|
|
162
|
+
: (laneCompIdFromUrl === null || laneCompIdFromUrl === void 0 ? void 0 : laneCompIdFromUrl.toString()) === compIdStr ||
|
|
163
|
+
(laneCompIdFromUrl.fullName === compIdName && componentScope === scopeFromQueryParams);
|
|
141
164
|
}, [href, viewingMainCompOnLane, location === null || location === void 0 ? void 0 : location.pathname, component.id.toString(), scope]);
|
|
142
165
|
return (react_1.default.createElement(base_react_navigation_link_1.Link, { href: href, className: (0, classnames_1.default)(base_ui_graph_tree_indent_1.indentClass, component_view_module_scss_1.default.component, viewingMainCompOnLane && component_view_module_scss_1.default.mainOnly), activeClassName: component_view_module_scss_1.default.active, onClick: handleClick,
|
|
143
166
|
// exact={true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"component-view.js","sourceRoot":"","sources":["../../../component-tree/component-view/component-view.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oFAAwE;AACxE,gEAAoD;AACpD,0FAAyE;AACzE,4DAAoC;AACpC,wDAAoD;AACpD,kDAAoD;AACpD,8FAAwE;AACxE,+CAAuD;AACvD,kEAAqD;AACrD,8FAAuE;AACvE,kFAAiE;AAEjE,0EAA0D;AAC1D,sFAAkE;AAElE,gDAA4C;AAE5C,8FAAkD;AAQlD,SAAgB,aAAa,CAAC,KAAsC;;IAClE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAClC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;IAE/B,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,kBAAU,EAAC,6CAAW,CAAC,CAAC;IAC7C,MAAM,EAAE,UAAU,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,IAAI,gCAAQ,CAAC,EAAE,CAAC;IAEtD,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,CAAC,KAAsD,EAAE,EAAE;QACzD,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC,EACD,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CACpB,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAA,wCAAW,GAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAElC,IAAI,CAAC,CAAC,SAAS,YAAY,0BAAc,CAAC;QAAE,OAAO,IAAI,CAAC;IAExD,MAAM,KAAK,GAAG,0BAAW,CAAC,UAAU,CAAC,MAAA,SAAS,CAAC,WAAW,0CAAE,EAAY,CAAC,CAAC;IAE1E,MAAM,UAAU,GAAG,CACjB,8BAAC,iCAAI,I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5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "ui/side-bar",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.874"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
13
|
-
"core-js": "^3.0.0",
|
|
14
13
|
"react-animate-height": "2.0.23",
|
|
14
|
+
"core-js": "^3.0.0",
|
|
15
15
|
"@teambit/base-react.navigation.link": "2.0.27",
|
|
16
16
|
"@teambit/base-ui.graph.tree.indent": "1.0.0",
|
|
17
17
|
"@teambit/base-ui.graph.tree.inflate-paths": "1.0.0",
|
|
18
|
-
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
19
18
|
"@teambit/base-ui.graph.tree.tree-context": "1.0.0",
|
|
19
|
+
"@teambit/design.ui.tree": "0.0.15",
|
|
20
20
|
"@teambit/base-ui.theme.colors": "1.0.0",
|
|
21
|
-
"@teambit/
|
|
22
|
-
"@teambit/component
|
|
21
|
+
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
22
|
+
"@teambit/component-id": "1.2.0",
|
|
23
23
|
"@teambit/component.ui.deprecation-icon": "0.0.509",
|
|
24
|
-
"@teambit/design.ui.tooltip": "0.0.
|
|
25
|
-
"@teambit/design.ui.tree": "0.0.15",
|
|
26
|
-
"@teambit/envs.ui.env-icon": "0.0.500",
|
|
24
|
+
"@teambit/design.ui.tooltip": "0.0.361",
|
|
27
25
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
28
|
-
"@teambit/lanes.
|
|
29
|
-
"@teambit/
|
|
26
|
+
"@teambit/lanes.ui.models.lanes-model": "0.0.212",
|
|
27
|
+
"@teambit/component.modules.component-url": "0.0.167",
|
|
28
|
+
"@teambit/envs.ui.env-icon": "0.0.505",
|
|
29
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.258"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@
|
|
32
|
+
"@types/react": "^17.0.8",
|
|
33
33
|
"@types/classnames": "2.2.11",
|
|
34
|
-
"@types/jest": "^26.0.0",
|
|
35
34
|
"@types/mocha": "9.1.0",
|
|
36
35
|
"@types/node": "12.20.4",
|
|
37
|
-
"@types/react": "^17.0.8",
|
|
38
36
|
"@types/react-dom": "^17.0.5",
|
|
37
|
+
"@types/jest": "^26.0.0",
|
|
38
|
+
"@babel/runtime": "7.20.0",
|
|
39
39
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
44
44
|
},
|
|
45
45
|
"license": "Apache-2.0",
|
|
46
|
+
"optionalDependencies": {},
|
|
47
|
+
"peerDependenciesMeta": {},
|
|
46
48
|
"private": false,
|
|
47
49
|
"engines": {
|
|
48
50
|
"node": ">=12.22.0"
|
|
@@ -61,4 +63,4 @@
|
|
|
61
63
|
"angular",
|
|
62
64
|
"angular-components"
|
|
63
65
|
]
|
|
64
|
-
}
|
|
66
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": [
|
|
4
|
+
"es2019",
|
|
5
|
+
"DOM",
|
|
6
|
+
"ES6",
|
|
7
|
+
"DOM.Iterable"
|
|
8
|
+
],
|
|
9
|
+
"target": "es2015",
|
|
10
|
+
"module": "CommonJS",
|
|
11
|
+
"jsx": "react",
|
|
12
|
+
"allowJs": true,
|
|
13
|
+
"composite": true,
|
|
14
|
+
"declaration": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"experimentalDecorators": true,
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"moduleResolution": "node",
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"rootDir": ".",
|
|
22
|
+
"resolveJsonModule": true
|
|
23
|
+
},
|
|
24
|
+
"exclude": [
|
|
25
|
+
"dist",
|
|
26
|
+
"package.json"
|
|
27
|
+
],
|
|
28
|
+
"include": [
|
|
29
|
+
"**/*",
|
|
30
|
+
"**/*.json"
|
|
31
|
+
]
|
|
32
|
+
}
|
package/types/asset.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare module '*.png' {
|
|
2
|
+
const value: any;
|
|
3
|
+
export = value;
|
|
4
|
+
}
|
|
5
|
+
declare module '*.svg' {
|
|
6
|
+
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
|
+
|
|
8
|
+
export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
|
|
9
|
+
const src: string;
|
|
10
|
+
export default src;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// @TODO Gilad
|
|
14
|
+
declare module '*.jpg' {
|
|
15
|
+
const value: any;
|
|
16
|
+
export = value;
|
|
17
|
+
}
|
|
18
|
+
declare module '*.jpeg' {
|
|
19
|
+
const value: any;
|
|
20
|
+
export = value;
|
|
21
|
+
}
|
|
22
|
+
declare module '*.gif' {
|
|
23
|
+
const value: any;
|
|
24
|
+
export = value;
|
|
25
|
+
}
|
|
26
|
+
declare module '*.bmp' {
|
|
27
|
+
const value: any;
|
|
28
|
+
export = value;
|
|
29
|
+
}
|
package/types/style.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare module '*.module.css' {
|
|
2
|
+
const classes: { readonly [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
declare module '*.module.scss' {
|
|
6
|
+
const classes: { readonly [key: string]: string };
|
|
7
|
+
export default classes;
|
|
8
|
+
}
|
|
9
|
+
declare module '*.module.sass' {
|
|
10
|
+
const classes: { readonly [key: string]: string };
|
|
11
|
+
export default classes;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module '*.module.less' {
|
|
15
|
+
const classes: { readonly [key: string]: string };
|
|
16
|
+
export default classes;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module '*.less' {
|
|
20
|
+
const classes: { readonly [key: string]: string };
|
|
21
|
+
export default classes;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.css' {
|
|
25
|
+
const classes: { readonly [key: string]: string };
|
|
26
|
+
export default classes;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare module '*.sass' {
|
|
30
|
+
const classes: { readonly [key: string]: string };
|
|
31
|
+
export default classes;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare module '*.scss' {
|
|
35
|
+
const classes: { readonly [key: string]: string };
|
|
36
|
+
export default classes;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare module '*.mdx' {
|
|
40
|
+
const component: any;
|
|
41
|
+
export default component;
|
|
42
|
+
}
|
package/.bit-capsule-ready
DELETED
|
File without changes
|
|
Binary file
|