@teambit/scope 0.0.594 → 0.0.595

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.
@@ -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"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/scope",
3
- "version": "0.0.594",
3
+ "version": "0.0.595",
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.594"
9
+ "version": "0.0.595"
10
10
  },
11
11
  "dependencies": {
12
12
  "semver": "7.3.4",
@@ -25,26 +25,26 @@
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.594",
29
- "@teambit/logger": "0.0.496",
30
- "@teambit/aspect-loader": "0.0.594",
31
- "@teambit/builder": "0.0.594",
32
- "@teambit/cli": "0.0.408",
33
- "@teambit/compiler": "0.0.594",
34
- "@teambit/config": "0.0.420",
35
- "@teambit/envs": "0.0.594",
36
- "@teambit/express": "0.0.500",
37
- "@teambit/graphql": "0.0.594",
28
+ "@teambit/component": "0.0.595",
29
+ "@teambit/logger": "0.0.497",
30
+ "@teambit/aspect-loader": "0.0.595",
31
+ "@teambit/builder": "0.0.595",
32
+ "@teambit/cli": "0.0.409",
33
+ "@teambit/compiler": "0.0.595",
34
+ "@teambit/config": "0.0.421",
35
+ "@teambit/envs": "0.0.595",
36
+ "@teambit/express": "0.0.501",
37
+ "@teambit/graphql": "0.0.595",
38
38
  "@teambit/harmony.modules.requireable-component": "0.0.483",
39
- "@teambit/isolator": "0.0.594",
39
+ "@teambit/isolator": "0.0.595",
40
40
  "@teambit/legacy-bit-id": "0.0.397",
41
- "@teambit/ui": "0.0.594",
41
+ "@teambit/ui": "0.0.595",
42
42
  "@teambit/workspace.modules.match-pattern": "0.0.487",
43
- "@teambit/command-bar": "0.0.594",
44
- "@teambit/component-tree": "0.0.394",
43
+ "@teambit/command-bar": "0.0.595",
44
+ "@teambit/component-tree": "0.0.395",
45
45
  "@teambit/design.ui.surfaces.menu.link-item": "0.0.374",
46
- "@teambit/react-router": "0.0.594",
47
- "@teambit/sidebar": "0.0.594",
46
+ "@teambit/react-router": "0.0.595",
47
+ "@teambit/sidebar": "0.0.595",
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",
@@ -60,8 +60,8 @@
60
60
  "@teambit/ui-foundation.ui.full-loader": "0.0.485",
61
61
  "@teambit/ui-foundation.ui.side-bar": "0.0.491",
62
62
  "@teambit/ui-foundation.ui.tree.drawer": "0.0.485",
63
- "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.106",
64
- "@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.106",
63
+ "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.107",
64
+ "@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.107",
65
65
  "@teambit/explorer.ui.gallery.component-card": "0.0.489",
66
66
  "@teambit/explorer.ui.gallery.component-grid": "0.0.485",
67
67
  "@teambit/preview.ui.preview-placeholder": "0.0.485",
@@ -82,7 +82,7 @@
82
82
  "@types/node": "12.20.4"
83
83
  },
84
84
  "peerDependencies": {
85
- "@teambit/legacy": "1.0.195",
85
+ "@teambit/legacy": "1.0.196",
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.195",
113
+ "@teambit/legacy": "1.0.196",
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
@@ -18,4 +18,4 @@ export function ScopeUseBox() {
18
18
  return (
19
19
  <UseBoxDropdown position="bottom-end" className={styles.useBox} Menu={<ScopeUseBoxMenu scopeName={scope.name} />} />
20
20
  );
21
- }
21
+ }