@teambit/scope 0.0.593 → 0.0.597
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/ui/menu/menu.js
CHANGED
|
@@ -120,7 +120,7 @@ function ScopeUseBox() {
|
|
|
120
120
|
return /*#__PURE__*/_react().default.createElement(_uiFoundationUiUseBox().UseBoxDropdown, {
|
|
121
121
|
position: "bottom-end",
|
|
122
122
|
className: _menuModule().default.useBox,
|
|
123
|
-
Menu:
|
|
123
|
+
Menu: /*#__PURE__*/_react().default.createElement(_uiFoundationUiUseBox2().Menu, {
|
|
124
124
|
scopeName: scope.name
|
|
125
125
|
})
|
|
126
126
|
});
|
package/dist/ui/menu/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["menu.tsx"],"names":["ScopeMenu","className","rest","styles","scopMenu","ScopeUseBox","scope","ScopeContext","useBox","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;AAEA;AACA;AACA;AACO,SAASA,SAAT,OAAsD;AAAA,MAAnC;AAAEC,IAAAA;AAAF,GAAmC;AAAA,MAAnBC,IAAmB;AAC3D,sBAAO,+BAAC,sBAAD,+BAAUA,IAAV;AAAgB,IAAA,SAAS,EAAE,2BAAWC,sBAAOC,QAAlB,EAA4BH,SAA5B;AAA3B,KAAP;AACD;;AAEM,SAASI,WAAT,GAAuB;AAC5B,QAAMC,KAAK,GAAG,yBAAWC,4BAAX,CAAd;AACA,sBACE,+BAAC,sCAAD;
|
|
1
|
+
{"version":3,"sources":["menu.tsx"],"names":["ScopeMenu","className","rest","styles","scopMenu","ScopeUseBox","scope","ScopeContext","useBox","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;AAEA;AACA;AACA;AACO,SAASA,SAAT,OAAsD;AAAA,MAAnC;AAAEC,IAAAA;AAAF,GAAmC;AAAA,MAAnBC,IAAmB;AAC3D,sBAAO,+BAAC,sBAAD,+BAAUA,IAAV;AAAgB,IAAA,SAAS,EAAE,2BAAWC,sBAAOC,QAAlB,EAA4BH,SAA5B;AAA3B,KAAP;AACD;;AAEM,SAASI,WAAT,GAAuB;AAC5B,QAAMC,KAAK,GAAG,yBAAWC,4BAAX,CAAd;AACA,sBACE,+BAAC,sCAAD;AAAgB,IAAA,QAAQ,EAAC,YAAzB;AAAsC,IAAA,SAAS,EAAEJ,sBAAOK,MAAxD;AAAgE,IAAA,IAAI,eAAE,+BAAC,6BAAD;AAAiB,MAAA,SAAS,EAAEF,KAAK,CAACG;AAAlC;AAAtE,IADF;AAGD","sourcesContent":["import { Menu, MenuProps } from '@teambit/ui-foundation.ui.menu';\nimport { ScopeContext } from '@teambit/scope.ui.hooks.scope-context';\nimport classNames from 'classnames';\nimport React, { useContext } from 'react';\nimport { UseBoxDropdown } from '@teambit/ui-foundation.ui.use-box.dropdown';\nimport { Menu as ScopeUseBoxMenu } from '@teambit/ui-foundation.ui.use-box.scope-menu';\nimport styles from './menu.module.scss';\n\n/**\n * scope menu.\n */\nexport function ScopeMenu({ className, ...rest }: MenuProps) {\n return <Menu {...rest} className={classNames(styles.scopMenu, className)} />;\n}\n\nexport function ScopeUseBox() {\n const scope = useContext(ScopeContext);\n return (\n <UseBoxDropdown position=\"bottom-end\" className={styles.useBox} Menu={<ScopeUseBoxMenu scopeName={scope.name} />} />\n );\n}\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/scope",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.597",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/scope/scope",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.scope",
|
|
8
8
|
"name": "scope",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.597"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"semver": "7.3.4",
|
|
@@ -23,50 +23,50 @@
|
|
|
23
23
|
"@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
|
|
24
24
|
"@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
|
|
25
25
|
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
26
|
-
"@teambit/scope.models.scope-model": "0.0.
|
|
27
|
-
"@teambit/scope.ui.hooks.scope-context": "0.0.
|
|
28
|
-
"@teambit/component": "0.0.
|
|
29
|
-
"@teambit/logger": "0.0.
|
|
30
|
-
"@teambit/aspect-loader": "0.0.
|
|
31
|
-
"@teambit/builder": "0.0.
|
|
32
|
-
"@teambit/cli": "0.0.
|
|
33
|
-
"@teambit/compiler": "0.0.
|
|
34
|
-
"@teambit/config": "0.0.
|
|
35
|
-
"@teambit/envs": "0.0.
|
|
36
|
-
"@teambit/express": "0.0.
|
|
37
|
-
"@teambit/graphql": "0.0.
|
|
38
|
-
"@teambit/harmony.modules.requireable-component": "0.0.
|
|
39
|
-
"@teambit/isolator": "0.0.
|
|
40
|
-
"@teambit/legacy-bit-id": "0.0.
|
|
41
|
-
"@teambit/ui": "0.0.
|
|
42
|
-
"@teambit/workspace.modules.match-pattern": "0.0.
|
|
43
|
-
"@teambit/command-bar": "0.0.
|
|
44
|
-
"@teambit/component-tree": "0.0.
|
|
26
|
+
"@teambit/scope.models.scope-model": "0.0.95",
|
|
27
|
+
"@teambit/scope.ui.hooks.scope-context": "0.0.95",
|
|
28
|
+
"@teambit/component": "0.0.597",
|
|
29
|
+
"@teambit/logger": "0.0.498",
|
|
30
|
+
"@teambit/aspect-loader": "0.0.597",
|
|
31
|
+
"@teambit/builder": "0.0.597",
|
|
32
|
+
"@teambit/cli": "0.0.410",
|
|
33
|
+
"@teambit/compiler": "0.0.597",
|
|
34
|
+
"@teambit/config": "0.0.422",
|
|
35
|
+
"@teambit/envs": "0.0.597",
|
|
36
|
+
"@teambit/express": "0.0.502",
|
|
37
|
+
"@teambit/graphql": "0.0.597",
|
|
38
|
+
"@teambit/harmony.modules.requireable-component": "0.0.483",
|
|
39
|
+
"@teambit/isolator": "0.0.597",
|
|
40
|
+
"@teambit/legacy-bit-id": "0.0.397",
|
|
41
|
+
"@teambit/ui": "0.0.597",
|
|
42
|
+
"@teambit/workspace.modules.match-pattern": "0.0.487",
|
|
43
|
+
"@teambit/command-bar": "0.0.597",
|
|
44
|
+
"@teambit/component-tree": "0.0.396",
|
|
45
45
|
"@teambit/design.ui.surfaces.menu.link-item": "0.0.374",
|
|
46
|
-
"@teambit/react-router": "0.0.
|
|
47
|
-
"@teambit/sidebar": "0.0.
|
|
48
|
-
"@teambit/ui-foundation.ui.main-dropdown": "0.0.
|
|
49
|
-
"@teambit/ui-foundation.ui.menu": "0.0.
|
|
50
|
-
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.
|
|
51
|
-
"@teambit/bit-error": "0.0.
|
|
52
|
-
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.
|
|
53
|
-
"@teambit/scope.ui.hooks.use-scope": "0.0.
|
|
54
|
-
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.
|
|
55
|
-
"@teambit/ui-foundation.ui.corner": "0.0.
|
|
56
|
-
"@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.
|
|
57
|
-
"@teambit/ui-foundation.ui.top-bar": "0.0.
|
|
58
|
-
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.105",
|
|
59
|
-
"@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.105",
|
|
60
|
-
"@teambit/explorer.ui.gallery.component-card": "0.0.488",
|
|
61
|
-
"@teambit/explorer.ui.gallery.component-grid": "0.0.484",
|
|
62
|
-
"@teambit/preview.ui.preview-placeholder": "0.0.484",
|
|
63
|
-
"@teambit/scope.ui.empty-scope": "0.0.487",
|
|
64
|
-
"@teambit/scope.ui.scope-details": "0.0.493",
|
|
46
|
+
"@teambit/react-router": "0.0.597",
|
|
47
|
+
"@teambit/sidebar": "0.0.597",
|
|
48
|
+
"@teambit/ui-foundation.ui.main-dropdown": "0.0.485",
|
|
49
|
+
"@teambit/ui-foundation.ui.menu": "0.0.485",
|
|
50
|
+
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.487",
|
|
51
|
+
"@teambit/bit-error": "0.0.394",
|
|
52
|
+
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.486",
|
|
53
|
+
"@teambit/scope.ui.hooks.use-scope": "0.0.96",
|
|
54
|
+
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.191",
|
|
55
|
+
"@teambit/ui-foundation.ui.corner": "0.0.492",
|
|
56
|
+
"@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.178",
|
|
57
|
+
"@teambit/ui-foundation.ui.top-bar": "0.0.488",
|
|
65
58
|
"@teambit/design.ui.styles.ellipsis": "0.0.346",
|
|
66
59
|
"@teambit/design.ui.styles.muted-italic": "0.0.35",
|
|
67
|
-
"@teambit/ui-foundation.ui.full-loader": "0.0.
|
|
68
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
69
|
-
"@teambit/ui-foundation.ui.tree.drawer": "0.0.
|
|
60
|
+
"@teambit/ui-foundation.ui.full-loader": "0.0.485",
|
|
61
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.491",
|
|
62
|
+
"@teambit/ui-foundation.ui.tree.drawer": "0.0.485",
|
|
63
|
+
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.107",
|
|
64
|
+
"@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.107",
|
|
65
|
+
"@teambit/explorer.ui.gallery.component-card": "0.0.489",
|
|
66
|
+
"@teambit/explorer.ui.gallery.component-grid": "0.0.485",
|
|
67
|
+
"@teambit/preview.ui.preview-placeholder": "0.0.485",
|
|
68
|
+
"@teambit/scope.ui.empty-scope": "0.0.488",
|
|
69
|
+
"@teambit/scope.ui.scope-details": "0.0.494"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/semver": "7.3.4",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@types/node": "12.20.4"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@teambit/legacy": "1.0.
|
|
85
|
+
"@teambit/legacy": "1.0.197",
|
|
86
86
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
87
87
|
"react": "^16.8.0 || ^17.0.0"
|
|
88
88
|
},
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"react": "-"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
|
-
"@teambit/legacy": "1.0.
|
|
113
|
+
"@teambit/legacy": "1.0.197",
|
|
114
114
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
115
115
|
"react": "^16.8.0 || ^17.0.0"
|
|
116
116
|
}
|
package/ui/menu/menu.tsx
CHANGED
|
@@ -16,10 +16,6 @@ export function ScopeMenu({ className, ...rest }: MenuProps) {
|
|
|
16
16
|
export function ScopeUseBox() {
|
|
17
17
|
const scope = useContext(ScopeContext);
|
|
18
18
|
return (
|
|
19
|
-
<UseBoxDropdown
|
|
20
|
-
position="bottom-end"
|
|
21
|
-
className={styles.useBox}
|
|
22
|
-
Menu={() => <ScopeUseBoxMenu scopeName={scope.name} />}
|
|
23
|
-
/>
|
|
19
|
+
<UseBoxDropdown position="bottom-end" className={styles.useBox} Menu={<ScopeUseBoxMenu scopeName={scope.name} />} />
|
|
24
20
|
);
|
|
25
21
|
}
|
|
Binary file
|