@teambit/scope 0.0.594 → 0.0.598
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.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;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}"]}
|
|
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.598",
|
|
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.598"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"semver": "7.3.4",
|
|
@@ -25,48 +25,48 @@
|
|
|
25
25
|
"@teambit/base-ui.graph.tree.recursive-tree": "1.0.0",
|
|
26
26
|
"@teambit/scope.models.scope-model": "0.0.95",
|
|
27
27
|
"@teambit/scope.ui.hooks.scope-context": "0.0.95",
|
|
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.
|
|
28
|
+
"@teambit/component": "0.0.598",
|
|
29
|
+
"@teambit/logger": "0.0.499",
|
|
30
|
+
"@teambit/aspect-loader": "0.0.598",
|
|
31
|
+
"@teambit/builder": "0.0.598",
|
|
32
|
+
"@teambit/cli": "0.0.410",
|
|
33
|
+
"@teambit/compiler": "0.0.598",
|
|
34
|
+
"@teambit/config": "0.0.422",
|
|
35
|
+
"@teambit/envs": "0.0.598",
|
|
36
|
+
"@teambit/express": "0.0.503",
|
|
37
|
+
"@teambit/graphql": "0.0.598",
|
|
38
38
|
"@teambit/harmony.modules.requireable-component": "0.0.483",
|
|
39
|
-
"@teambit/isolator": "0.0.
|
|
39
|
+
"@teambit/isolator": "0.0.598",
|
|
40
40
|
"@teambit/legacy-bit-id": "0.0.397",
|
|
41
|
-
"@teambit/ui": "0.0.
|
|
41
|
+
"@teambit/ui": "0.0.598",
|
|
42
42
|
"@teambit/workspace.modules.match-pattern": "0.0.487",
|
|
43
|
-
"@teambit/command-bar": "0.0.
|
|
44
|
-
"@teambit/component-tree": "0.0.
|
|
43
|
+
"@teambit/command-bar": "0.0.598",
|
|
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.
|
|
46
|
+
"@teambit/react-router": "0.0.598",
|
|
47
|
+
"@teambit/sidebar": "0.0.598",
|
|
48
48
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.485",
|
|
49
49
|
"@teambit/ui-foundation.ui.menu": "0.0.485",
|
|
50
50
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.487",
|
|
51
51
|
"@teambit/bit-error": "0.0.394",
|
|
52
52
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.486",
|
|
53
53
|
"@teambit/scope.ui.hooks.use-scope": "0.0.96",
|
|
54
|
-
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.
|
|
55
|
-
"@teambit/ui-foundation.ui.corner": "0.0.
|
|
54
|
+
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.192",
|
|
55
|
+
"@teambit/ui-foundation.ui.corner": "0.0.493",
|
|
56
56
|
"@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.178",
|
|
57
57
|
"@teambit/ui-foundation.ui.top-bar": "0.0.488",
|
|
58
|
-
"@teambit/design.ui.styles.ellipsis": "0.0.
|
|
58
|
+
"@teambit/design.ui.styles.ellipsis": "0.0.347",
|
|
59
59
|
"@teambit/design.ui.styles.muted-italic": "0.0.35",
|
|
60
60
|
"@teambit/ui-foundation.ui.full-loader": "0.0.485",
|
|
61
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
62
|
-
"@teambit/ui-foundation.ui.tree.drawer": "0.0.
|
|
63
|
-
"@teambit/
|
|
64
|
-
"@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.106",
|
|
65
|
-
"@teambit/explorer.ui.gallery.component-card": "0.0.489",
|
|
61
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.492",
|
|
62
|
+
"@teambit/ui-foundation.ui.tree.drawer": "0.0.486",
|
|
63
|
+
"@teambit/explorer.ui.gallery.component-card": "0.0.490",
|
|
66
64
|
"@teambit/explorer.ui.gallery.component-grid": "0.0.485",
|
|
67
65
|
"@teambit/preview.ui.preview-placeholder": "0.0.485",
|
|
68
|
-
"@teambit/scope.ui.empty-scope": "0.0.
|
|
69
|
-
"@teambit/scope.ui.scope-details": "0.0.
|
|
66
|
+
"@teambit/scope.ui.empty-scope": "0.0.489",
|
|
67
|
+
"@teambit/scope.ui.scope-details": "0.0.495",
|
|
68
|
+
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.108",
|
|
69
|
+
"@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.108"
|
|
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
|
Binary file
|