@teambit/workspace 0.0.1147 → 0.0.1148

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.
@@ -28,27 +28,28 @@ class PatternCommand {
28
28
  (0, _defineProperty2().default)(this, "alias", '');
29
29
  (0, _defineProperty2().default)(this, "description", 'list the component ids matching the given pattern');
30
30
  (0, _defineProperty2().default)(this, "extendedDescription", `this command helps validating a pattern before using it in other commands.
31
- a pattern can be a simple component-id or component-name. e.g. "ui/button".
32
- a pattern can be used with wildcards for multiple component ids, e.g. "org.scope/utils/**" or "**/utils/**" to capture all org/scopes.
33
- to enter multiple patterns, separate them by a comma, e.g. "ui/*, lib/*"
34
- to exclude, use "!". e.g. "ui/**, !ui/button"
35
- always wrap the pattern with quotes to avoid collision with shell commands.
31
+ a pattern can be a simple component-id or component-name. e.g. 'ui/button'.
32
+ a pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.
33
+ to enter multiple patterns, separate them by a comma, e.g. 'ui/*, lib/*'
34
+ to exclude, use '!'. e.g. 'ui/**, !ui/button'
35
+ always wrap the pattern with single quotes to avoid collision with shell commands.
36
36
  the matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch)
37
+ NOTE: always wrap the pattern with single quotes '' and not double "" to avoid collision with shell commands
37
38
  `);
38
39
  (0, _defineProperty2().default)(this, "examples", [{
39
- cmd: 'bit pattern "**"',
40
+ cmd: "bit pattern '**'",
40
41
  description: 'matches all components'
41
42
  }, {
42
- cmd: 'bit pattern "*/ui/*"',
43
+ cmd: "bit pattern '*/ui/*'",
43
44
  description: 'matches components with any scope-name and the "ui" namespace. e.g. "ui/button" but not "ui/elements/button"'
44
45
  }, {
45
- cmd: 'bit pattern "*/ui/**"',
46
+ cmd: "bit pattern '*/ui/**'",
46
47
  description: 'matches components whose namespace starts with "ui/" e.g. "ui/button", "ui/elements/button"'
47
48
  }, {
48
- cmd: 'bit pattern "bar, foo"',
49
+ cmd: "bit pattern 'bar, foo'",
49
50
  description: 'matches two components: bar and foo'
50
51
  }, {
51
- cmd: 'bit pattern "my-scope.org/**"',
52
+ cmd: "bit pattern 'my-scope.org/**'",
52
53
  description: 'matches all components of the scope "my-scope.org"'
53
54
  }]);
54
55
  (0, _defineProperty2().default)(this, "group", 'development');
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","PatternCommand","constructor","workspace","_defineProperty2","default","cmd","description","report","pattern","ids","json","title","chalk","green","bold","length","toString","join","idsByPattern","exports"],"sources":["pattern.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { Workspace } from './workspace';\n\nexport class PatternCommand implements Command {\n name = 'pattern <pattern>';\n alias = '';\n description = 'list the component ids matching the given pattern';\n extendedDescription = `this command helps validating a pattern before using it in other commands.\na pattern can be a simple component-id or component-name. e.g. \"ui/button\".\na pattern can be used with wildcards for multiple component ids, e.g. \"org.scope/utils/**\" or \"**/utils/**\" to capture all org/scopes.\nto enter multiple patterns, separate them by a comma, e.g. \"ui/*, lib/*\"\nto exclude, use \"!\". e.g. \"ui/**, !ui/button\"\nalways wrap the pattern with quotes to avoid collision with shell commands.\nthe matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch)\n`;\n examples = [\n { cmd: 'bit pattern \"**\"', description: 'matches all components' },\n {\n cmd: 'bit pattern \"*/ui/*\"',\n description:\n 'matches components with any scope-name and the \"ui\" namespace. e.g. \"ui/button\" but not \"ui/elements/button\"',\n },\n {\n cmd: 'bit pattern \"*/ui/**\"',\n description: 'matches components whose namespace starts with \"ui/\" e.g. \"ui/button\", \"ui/elements/button\"',\n },\n { cmd: 'bit pattern \"bar, foo\"', description: 'matches two components: bar and foo' },\n { cmd: 'bit pattern \"my-scope.org/**\"', description: 'matches all components of the scope \"my-scope.org\"' },\n ];\n group = 'development';\n private = false;\n options = [['j', 'json', 'return the output as JSON']] as CommandOptions;\n\n constructor(private workspace: Workspace) {}\n\n async report([pattern]: [string]) {\n const ids = await this.json([pattern]);\n const title = chalk.green(`found ${chalk.bold(ids.length.toString())} components matching the pattern`);\n return `${title}\\n${ids.join('\\n')}`;\n }\n\n async json([pattern]: [string]) {\n return this.workspace.idsByPattern(pattern, false);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAMG,cAAc,CAAoB;EA8B7CC,WAAWA,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBA7BjC,mBAAmB;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBAClB,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBACI,mDAAmD;IAAA,IAAAD,gBAAA,GAAAC,OAAA,+BAC1C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACY,CACT;MAAEC,GAAG,EAAE,kBAAkB;MAAEC,WAAW,EAAE;IAAyB,CAAC,EAClE;MACED,GAAG,EAAE,sBAAsB;MAC3BC,WAAW,EACT;IACJ,CAAC,EACD;MACED,GAAG,EAAE,uBAAuB;MAC5BC,WAAW,EAAE;IACf,CAAC,EACD;MAAED,GAAG,EAAE,wBAAwB;MAAEC,WAAW,EAAE;IAAsC,CAAC,EACrF;MAAED,GAAG,EAAE,+BAA+B;MAAEC,WAAW,EAAE;IAAqD,CAAC,CAC5G;IAAA,IAAAH,gBAAA,GAAAC,OAAA,iBACO,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACX,KAAK;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACL,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAAC;EAEX;EAE3C,MAAMG,MAAMA,CAAC,CAACC,OAAO,CAAW,EAAE;IAChC,MAAMC,GAAG,GAAG,MAAM,IAAI,CAACC,IAAI,CAAC,CAACF,OAAO,CAAC,CAAC;IACtC,MAAMG,KAAK,GAAGC,gBAAK,CAACC,KAAK,CAAE,SAAQD,gBAAK,CAACE,IAAI,CAACL,GAAG,CAACM,MAAM,CAACC,QAAQ,CAAC,CAAC,CAAE,kCAAiC,CAAC;IACvG,OAAQ,GAAEL,KAAM,KAAIF,GAAG,CAACQ,IAAI,CAAC,IAAI,CAAE,EAAC;EACtC;EAEA,MAAMP,IAAIA,CAAC,CAACF,OAAO,CAAW,EAAE;IAC9B,OAAO,IAAI,CAACN,SAAS,CAACgB,YAAY,CAACV,OAAO,EAAE,KAAK,CAAC;EACpD;AACF;AAACW,OAAA,CAAAnB,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","PatternCommand","constructor","workspace","_defineProperty2","default","cmd","description","report","pattern","ids","json","title","chalk","green","bold","length","toString","join","idsByPattern","exports"],"sources":["pattern.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { Workspace } from './workspace';\n\nexport class PatternCommand implements Command {\n name = 'pattern <pattern>';\n alias = '';\n description = 'list the component ids matching the given pattern';\n extendedDescription = `this command helps validating a pattern before using it in other commands.\na pattern can be a simple component-id or component-name. e.g. 'ui/button'.\na pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.\nto enter multiple patterns, separate them by a comma, e.g. 'ui/*, lib/*'\nto exclude, use '!'. e.g. 'ui/**, !ui/button'\nalways wrap the pattern with single quotes to avoid collision with shell commands.\nthe matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch)\nNOTE: always wrap the pattern with single quotes '' and not double \"\" to avoid collision with shell commands\n`;\n examples = [\n { cmd: \"bit pattern '**'\", description: 'matches all components' },\n {\n cmd: \"bit pattern '*/ui/*'\",\n description:\n 'matches components with any scope-name and the \"ui\" namespace. e.g. \"ui/button\" but not \"ui/elements/button\"',\n },\n {\n cmd: \"bit pattern '*/ui/**'\",\n description: 'matches components whose namespace starts with \"ui/\" e.g. \"ui/button\", \"ui/elements/button\"',\n },\n { cmd: \"bit pattern 'bar, foo'\", description: 'matches two components: bar and foo' },\n { cmd: \"bit pattern 'my-scope.org/**'\", description: 'matches all components of the scope \"my-scope.org\"' },\n ];\n group = 'development';\n private = false;\n options = [['j', 'json', 'return the output as JSON']] as CommandOptions;\n\n constructor(private workspace: Workspace) {}\n\n async report([pattern]: [string]) {\n const ids = await this.json([pattern]);\n const title = chalk.green(`found ${chalk.bold(ids.length.toString())} components matching the pattern`);\n return `${title}\\n${ids.join('\\n')}`;\n }\n\n async json([pattern]: [string]) {\n return this.workspace.idsByPattern(pattern, false);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAMG,cAAc,CAAoB;EA+B7CC,WAAWA,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBA9BjC,mBAAmB;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBAClB,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBACI,mDAAmD;IAAA,IAAAD,gBAAA,GAAAC,OAAA,+BAC1C;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,oBACY,CACT;MAAEC,GAAG,EAAE,kBAAkB;MAAEC,WAAW,EAAE;IAAyB,CAAC,EAClE;MACED,GAAG,EAAE,sBAAsB;MAC3BC,WAAW,EACT;IACJ,CAAC,EACD;MACED,GAAG,EAAE,uBAAuB;MAC5BC,WAAW,EAAE;IACf,CAAC,EACD;MAAED,GAAG,EAAE,wBAAwB;MAAEC,WAAW,EAAE;IAAsC,CAAC,EACrF;MAAED,GAAG,EAAE,+BAA+B;MAAEC,WAAW,EAAE;IAAqD,CAAC,CAC5G;IAAA,IAAAH,gBAAA,GAAAC,OAAA,iBACO,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACX,KAAK;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACL,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAAC;EAEX;EAE3C,MAAMG,MAAMA,CAAC,CAACC,OAAO,CAAW,EAAE;IAChC,MAAMC,GAAG,GAAG,MAAM,IAAI,CAACC,IAAI,CAAC,CAACF,OAAO,CAAC,CAAC;IACtC,MAAMG,KAAK,GAAGC,gBAAK,CAACC,KAAK,CAAE,SAAQD,gBAAK,CAACE,IAAI,CAACL,GAAG,CAACM,MAAM,CAACC,QAAQ,CAAC,CAAC,CAAE,kCAAiC,CAAC;IACvG,OAAQ,GAAEL,KAAM,KAAIF,GAAG,CAACQ,IAAI,CAAC,IAAI,CAAE,EAAC;EACtC;EAEA,MAAMP,IAAIA,CAAC,CAACF,OAAO,CAAW,EAAE;IAC9B,OAAO,IAAI,CAACN,SAAS,CAACgB,YAAY,CAACV,OAAO,EAAE,KAAK,CAAC;EACpD;AACF;AAACW,OAAA,CAAAnB,cAAA,GAAAA,cAAA"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.1147/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.1147/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.1148/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.1148/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace",
3
- "version": "0.0.1147",
3
+ "version": "0.0.1148",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/workspace",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "workspace",
9
- "version": "0.0.1147"
9
+ "version": "0.0.1148"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -36,53 +36,53 @@
36
36
  "@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
37
37
  "@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
38
38
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
39
- "@teambit/component": "0.0.1147",
40
- "@teambit/dependency-resolver": "0.0.1147",
41
- "@teambit/envs": "0.0.1147",
39
+ "@teambit/component": "0.0.1148",
40
+ "@teambit/dependency-resolver": "0.0.1148",
41
+ "@teambit/envs": "0.0.1148",
42
42
  "@teambit/bit-error": "0.0.402",
43
- "@teambit/lane-id": "0.0.281",
44
- "@teambit/logger": "0.0.859",
45
- "@teambit/scope": "0.0.1147",
46
- "@teambit/graph": "0.0.1147",
47
- "@teambit/cli": "0.0.766",
48
- "@teambit/isolator": "0.0.1147",
49
- "@teambit/component-tree": "0.0.935",
43
+ "@teambit/lane-id": "0.0.282",
44
+ "@teambit/logger": "0.0.860",
45
+ "@teambit/scope": "0.0.1148",
46
+ "@teambit/graph": "0.0.1148",
47
+ "@teambit/cli": "0.0.767",
48
+ "@teambit/isolator": "0.0.1148",
49
+ "@teambit/component-tree": "0.0.936",
50
50
  "@teambit/component.ui.component-status-resolver": "0.0.505",
51
51
  "@teambit/harmony.modules.resolved-component": "0.0.491",
52
- "@teambit/compiler": "0.0.1147",
53
- "@teambit/aspect-loader": "0.0.1147",
54
- "@teambit/config": "0.0.781",
55
- "@teambit/global-config": "0.0.768",
52
+ "@teambit/compiler": "0.0.1148",
53
+ "@teambit/aspect-loader": "0.0.1148",
54
+ "@teambit/config": "0.0.782",
55
+ "@teambit/global-config": "0.0.769",
56
56
  "@teambit/harmony.modules.requireable-component": "0.0.491",
57
57
  "@teambit/toolbox.modules.module-resolver": "0.0.1",
58
- "@teambit/workspace.modules.node-modules-linker": "0.0.108",
59
- "@teambit/graphql": "0.0.1147",
60
- "@teambit/bundler": "0.0.1147",
61
- "@teambit/pubsub": "0.0.1147",
62
- "@teambit/ui": "0.0.1147",
63
- "@teambit/variants": "0.0.873",
58
+ "@teambit/workspace.modules.node-modules-linker": "0.0.109",
59
+ "@teambit/graphql": "0.0.1148",
60
+ "@teambit/bundler": "0.0.1148",
61
+ "@teambit/pubsub": "0.0.1148",
62
+ "@teambit/ui": "0.0.1148",
63
+ "@teambit/variants": "0.0.874",
64
64
  "@teambit/component-issues": "0.0.95",
65
65
  "@teambit/component-version": "1.0.0",
66
66
  "@teambit/dependencies.modules.packages-excluder": "1.0.2",
67
67
  "@teambit/workspace.modules.match-pattern": "0.0.498",
68
- "@teambit/component.ui.component-drawer": "0.0.324",
69
- "@teambit/lanes.hooks.use-lane-components": "0.0.227",
70
- "@teambit/lanes.hooks.use-lanes": "0.0.228",
71
- "@teambit/lanes.ui.models.lanes-model": "0.0.181",
72
- "@teambit/ui-foundation.ui.side-bar": "0.0.841",
73
- "@teambit/command-bar": "0.0.1147",
74
- "@teambit/component.ui.component-filters.component-filter-context": "0.0.188",
75
- "@teambit/component.ui.component-filters.deprecate-filter": "0.0.188",
76
- "@teambit/component.ui.component-filters.env-filter": "0.0.194",
77
- "@teambit/component.ui.component-filters.show-main-filter": "0.0.181",
78
- "@teambit/sidebar": "0.0.1147",
68
+ "@teambit/component.ui.component-drawer": "0.0.325",
69
+ "@teambit/lanes.hooks.use-lane-components": "0.0.228",
70
+ "@teambit/lanes.hooks.use-lanes": "0.0.229",
71
+ "@teambit/lanes.ui.models.lanes-model": "0.0.182",
72
+ "@teambit/ui-foundation.ui.side-bar": "0.0.842",
73
+ "@teambit/command-bar": "0.0.1148",
74
+ "@teambit/component.ui.component-filters.component-filter-context": "0.0.189",
75
+ "@teambit/component.ui.component-filters.deprecate-filter": "0.0.189",
76
+ "@teambit/component.ui.component-filters.env-filter": "0.0.195",
77
+ "@teambit/component.ui.component-filters.show-main-filter": "0.0.182",
78
+ "@teambit/sidebar": "0.0.1148",
79
79
  "@teambit/ui-foundation.ui.main-dropdown": "0.0.497",
80
80
  "@teambit/ui-foundation.ui.menu": "0.0.497",
81
81
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.501",
82
82
  "@teambit/ui-foundation.ui.tree.drawer": "0.0.512",
83
83
  "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.500",
84
- "@teambit/component-descriptor": "0.0.333",
85
- "@teambit/deprecation": "0.0.1147",
84
+ "@teambit/component-descriptor": "0.0.334",
85
+ "@teambit/deprecation": "0.0.1148",
86
86
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.499",
87
87
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.207",
88
88
  "@teambit/ui-foundation.ui.corner": "0.0.510",
@@ -110,7 +110,7 @@
110
110
  "peerDependencies": {
111
111
  "@apollo/client": "^3.6.0",
112
112
  "react-router-dom": "^6.0.0",
113
- "@teambit/legacy": "1.0.551",
113
+ "@teambit/legacy": "1.0.552",
114
114
  "react": "^16.8.0 || ^17.0.0",
115
115
  "react-dom": "^16.8.0 || ^17.0.0"
116
116
  },