@teambit/component 0.0.702 → 0.0.705

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.
@@ -84,6 +84,11 @@ export interface ComponentFactory {
84
84
  * this is relevant for component from the workspace, where it can be locally changed. on the scope it's always false
85
85
  */
86
86
  isModified(component: Component): Promise<boolean>;
87
+ /**
88
+ * write the component to the filesystem when applicable (no-op for scope).
89
+ * to change the component-path, specify the "rootPath", which should be a relative path inside the workspace.
90
+ */
91
+ write(component: Component, rootPath?: string): Promise<void>;
87
92
  /**
88
93
  * determine whether host should be the prior one in case multiple hosts persist.
89
94
  */
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component",
3
- "version": "0.0.702",
3
+ "version": "0.0.705",
4
4
  "homepage": "https://bit.dev/teambit/component/component",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component",
9
- "version": "0.0.702"
9
+ "version": "0.0.705"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/any-fs": "0.0.5",
@@ -32,41 +32,41 @@
32
32
  "@teambit/design.inputs.dropdown": "0.0.7",
33
33
  "@teambit/component-id": "0.0.402",
34
34
  "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.488",
35
- "@teambit/aspect-loader": "0.0.702",
35
+ "@teambit/aspect-loader": "0.0.705",
36
36
  "@teambit/legacy-bit-id": "0.0.399",
37
37
  "@teambit/toolbox.string.capitalize": "0.0.483",
38
- "@teambit/cli": "0.0.466",
39
- "@teambit/config": "0.0.479",
40
- "@teambit/express": "0.0.562",
41
- "@teambit/graphql": "0.0.702",
38
+ "@teambit/cli": "0.0.469",
39
+ "@teambit/config": "0.0.482",
40
+ "@teambit/express": "0.0.565",
41
+ "@teambit/graphql": "0.0.705",
42
42
  "@teambit/bit-error": "0.0.394",
43
- "@teambit/command-bar": "0.0.702",
44
- "@teambit/preview": "0.0.702",
45
- "@teambit/pubsub": "0.0.702",
43
+ "@teambit/command-bar": "0.0.705",
44
+ "@teambit/preview": "0.0.705",
45
+ "@teambit/pubsub": "0.0.705",
46
46
  "@teambit/ui-foundation.ui.is-browser": "0.0.486",
47
47
  "@teambit/ui-foundation.ui.main-dropdown": "0.0.486",
48
48
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.488",
49
49
  "@teambit/ui-foundation.ui.use-box.menu": "0.0.114",
50
- "@teambit/ui": "0.0.702",
50
+ "@teambit/ui": "0.0.705",
51
51
  "@teambit/component-issues": "0.0.50",
52
52
  "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.487",
53
53
  "@teambit/cli-table": "0.0.33",
54
- "@teambit/component-descriptor": "0.0.30",
55
- "@teambit/lanes.ui.lanes": "0.0.32",
54
+ "@teambit/component-descriptor": "0.0.33",
55
+ "@teambit/lanes.ui.lanes": "0.0.35",
56
56
  "@teambit/ui-foundation.ui.react-router.use-query": "0.0.486",
57
57
  "@teambit/design.ui.empty-box": "0.0.353",
58
58
  "@teambit/harmony.ui.aspect-box": "0.0.486",
59
59
  "@teambit/design.ui.pages.not-found": "0.0.354",
60
60
  "@teambit/design.ui.pages.server-error": "0.0.354",
61
- "@teambit/component.ui.version-dropdown": "0.0.517",
61
+ "@teambit/compositions": "0.0.705",
62
+ "@teambit/deprecation": "0.0.705",
63
+ "@teambit/envs": "0.0.705",
62
64
  "@teambit/legacy-component-log": "0.0.392",
65
+ "@teambit/component.ui.version-dropdown": "0.0.520",
63
66
  "@teambit/ui-foundation.ui.full-loader": "0.0.486",
64
67
  "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.114",
65
68
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.487",
66
- "@teambit/ui-foundation.ui.react-router.extend-path": "0.0.486",
67
- "@teambit/compositions": "0.0.702",
68
- "@teambit/deprecation": "0.0.702",
69
- "@teambit/envs": "0.0.702"
69
+ "@teambit/ui-foundation.ui.react-router.extend-path": "0.0.486"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/react": "^17.0.8",
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@apollo/client": "^3.0.0",
88
- "@teambit/legacy": "1.0.244",
88
+ "@teambit/legacy": "1.0.247",
89
89
  "react-dom": "^16.8.0 || ^17.0.0",
90
90
  "react": "^16.8.0 || ^17.0.0"
91
91
  },
@@ -113,7 +113,7 @@
113
113
  "react": "-"
114
114
  },
115
115
  "peerDependencies": {
116
- "@teambit/legacy": "1.0.244",
116
+ "@teambit/legacy": "1.0.247",
117
117
  "react-dom": "^16.8.0 || ^17.0.0",
118
118
  "react": "^16.8.0 || ^17.0.0"
119
119
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.702/dist/component.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.702/dist/component.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.705/dist/component.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.705/dist/component.docs.mdx')]