@teambit/scope 0.0.591 → 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.
@@ -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: () => /*#__PURE__*/_react().default.createElement(_uiFoundationUiUseBox2().Menu, {
123
+ Menu: /*#__PURE__*/_react().default.createElement(_uiFoundationUiUseBox2().Menu, {
124
124
  scopeName: scope.name
125
125
  })
126
126
  });
@@ -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;AACE,IAAA,QAAQ,EAAC,YADX;AAEE,IAAA,SAAS,EAAEJ,sBAAOK,MAFpB;AAGE,IAAA,IAAI,EAAE,mBAAM,+BAAC,6BAAD;AAAiB,MAAA,SAAS,EAAEF,KAAK,CAACG;AAAlC;AAHd,IADF;AAOD","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\n position=\"bottom-end\"\n className={styles.useBox}\n Menu={() => <ScopeUseBoxMenu scopeName={scope.name} />}\n />\n );\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.591",
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.591"
9
+ "version": "0.0.595"
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.93",
27
- "@teambit/scope.ui.hooks.scope-context": "0.0.93",
28
- "@teambit/component": "0.0.591",
29
- "@teambit/logger": "0.0.494",
30
- "@teambit/aspect-loader": "0.0.591",
31
- "@teambit/builder": "0.0.591",
32
- "@teambit/cli": "0.0.406",
33
- "@teambit/compiler": "0.0.591",
34
- "@teambit/config": "0.0.418",
35
- "@teambit/envs": "0.0.591",
36
- "@teambit/express": "0.0.498",
37
- "@teambit/graphql": "0.0.591",
38
- "@teambit/harmony.modules.requireable-component": "0.0.481",
39
- "@teambit/isolator": "0.0.591",
40
- "@teambit/legacy-bit-id": "0.0.395",
41
- "@teambit/ui": "0.0.591",
42
- "@teambit/workspace.modules.match-pattern": "0.0.485",
43
- "@teambit/command-bar": "0.0.591",
44
- "@teambit/component-tree": "0.0.392",
26
+ "@teambit/scope.models.scope-model": "0.0.95",
27
+ "@teambit/scope.ui.hooks.scope-context": "0.0.95",
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
+ "@teambit/harmony.modules.requireable-component": "0.0.483",
39
+ "@teambit/isolator": "0.0.595",
40
+ "@teambit/legacy-bit-id": "0.0.397",
41
+ "@teambit/ui": "0.0.595",
42
+ "@teambit/workspace.modules.match-pattern": "0.0.487",
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.591",
47
- "@teambit/sidebar": "0.0.591",
48
- "@teambit/ui-foundation.ui.main-dropdown": "0.0.483",
49
- "@teambit/ui-foundation.ui.menu": "0.0.483",
50
- "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.485",
51
- "@teambit/bit-error": "0.0.392",
52
- "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.484",
53
- "@teambit/scope.ui.hooks.use-scope": "0.0.94",
54
- "@teambit/ui-foundation.ui.buttons.collapser": "0.0.189",
55
- "@teambit/ui-foundation.ui.corner": "0.0.490",
56
- "@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.176",
57
- "@teambit/ui-foundation.ui.top-bar": "0.0.486",
46
+ "@teambit/react-router": "0.0.595",
47
+ "@teambit/sidebar": "0.0.595",
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",
58
58
  "@teambit/design.ui.styles.ellipsis": "0.0.346",
59
59
  "@teambit/design.ui.styles.muted-italic": "0.0.35",
60
- "@teambit/ui-foundation.ui.full-loader": "0.0.483",
61
- "@teambit/ui-foundation.ui.side-bar": "0.0.489",
62
- "@teambit/ui-foundation.ui.tree.drawer": "0.0.483",
63
- "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.104",
64
- "@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.104",
65
- "@teambit/explorer.ui.gallery.component-card": "0.0.487",
66
- "@teambit/explorer.ui.gallery.component-grid": "0.0.483",
67
- "@teambit/preview.ui.preview-placeholder": "0.0.483",
68
- "@teambit/scope.ui.empty-scope": "0.0.486",
69
- "@teambit/scope.ui.scope-details": "0.0.492"
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.192",
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.192",
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
@@ -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
  }