@teambit/component 0.0.828 → 0.0.831

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.
@@ -19,7 +19,9 @@ export declare function useComponentQuery(componentId: string, host: string, fil
19
19
  previousData?: any;
20
20
  networkStatus: import("@apollo/client").NetworkStatus;
21
21
  called: true;
22
- variables: {
22
+ startPolling: (pollInterval: number) => void;
23
+ stopPolling: () => void;
24
+ updateQuery: <TVars = {
23
25
  logType?: string | undefined;
24
26
  logOffset?: number | undefined;
25
27
  logLimit?: number | undefined;
@@ -27,10 +29,8 @@ export declare function useComponentQuery(componentId: string, host: string, fil
27
29
  logSort?: string | undefined;
28
30
  id: string;
29
31
  extensionId: string;
30
- } | undefined;
31
- startPolling: (pollInterval: number) => void;
32
- stopPolling: () => void;
33
- updateQuery: <TVars = {
32
+ }>(mapFn: (previousQueryResult: any, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, any>, "variables">) => any) => void;
33
+ refetch: (variables?: Partial<{
34
34
  logType?: string | undefined;
35
35
  logOffset?: number | undefined;
36
36
  logLimit?: number | undefined;
@@ -38,8 +38,8 @@ export declare function useComponentQuery(componentId: string, host: string, fil
38
38
  logSort?: string | undefined;
39
39
  id: string;
40
40
  extensionId: string;
41
- }>(mapFn: (previousQueryResult: any, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, any>, "variables">) => any) => void;
42
- refetch: (variables?: Partial<{
41
+ }> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
42
+ variables: {
43
43
  logType?: string | undefined;
44
44
  logOffset?: number | undefined;
45
45
  logLimit?: number | undefined;
@@ -47,8 +47,8 @@ export declare function useComponentQuery(componentId: string, host: string, fil
47
47
  logSort?: string | undefined;
48
48
  id: string;
49
49
  extensionId: string;
50
- }> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
51
- fetchMore: ((fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<{
50
+ } | undefined;
51
+ fetchMore: (<K extends "id" | "extensionId" | "logType" | "logOffset" | "logLimit" | "logHead" | "logSort">(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<{
52
52
  logType?: string | undefined;
53
53
  logOffset?: number | undefined;
54
54
  logLimit?: number | undefined;
@@ -56,7 +56,7 @@ export declare function useComponentQuery(componentId: string, host: string, fil
56
56
  logSort?: string | undefined;
57
57
  id: string;
58
58
  extensionId: string;
59
- }, any> & import("@apollo/client").FetchMoreOptions<any, {
59
+ }, K, any> & import("@apollo/client").FetchMoreOptions<any, {
60
60
  logType?: string | undefined;
61
61
  logOffset?: number | undefined;
62
62
  logLimit?: number | undefined;
@@ -64,7 +64,7 @@ export declare function useComponentQuery(componentId: string, host: string, fil
64
64
  logSort?: string | undefined;
65
65
  id: string;
66
66
  extensionId: string;
67
- }>) => Promise<import("@apollo/client").ApolloQueryResult<any>>) & (<TData2, TVariables2>(fetchMoreOptions: {
67
+ }>) => Promise<import("@apollo/client").ApolloQueryResult<any>>) & (<TData2, TVariables2, K_1 extends keyof TVariables2>(fetchMoreOptions: {
68
68
  query?: import("@apollo/client").DocumentNode | import("@graphql-typed-document-node/core").TypedDocumentNode<any, {
69
69
  logType?: string | undefined;
70
70
  logOffset?: number | undefined;
@@ -74,7 +74,7 @@ export declare function useComponentQuery(componentId: string, host: string, fil
74
74
  id: string;
75
75
  extensionId: string;
76
76
  }> | undefined;
77
- } & import("@apollo/client").FetchMoreQueryOptions<TVariables2, any> & import("@apollo/client").FetchMoreOptions<TData2, TVariables2>) => Promise<import("@apollo/client").ApolloQueryResult<TData2>>);
77
+ } & import("@apollo/client").FetchMoreQueryOptions<TVariables2, K_1, any> & import("@apollo/client").FetchMoreOptions<TData2, TVariables2>) => Promise<import("@apollo/client").ApolloQueryResult<TData2>>);
78
78
  componentDescriptor: ComponentDescriptor | undefined;
79
79
  component: ComponentModel | undefined;
80
80
  error: ComponentError | undefined;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component",
3
- "version": "0.0.828",
3
+ "version": "0.0.831",
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.828"
9
+ "version": "0.0.831"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/any-fs": "0.0.5",
@@ -30,43 +30,43 @@
30
30
  "@teambit/design.elements.icon": "1.0.5",
31
31
  "@teambit/design.inputs.dropdown": "0.0.7",
32
32
  "@teambit/component-id": "0.0.405",
33
+ "@teambit/aspect-loader": "0.0.831",
34
+ "@teambit/cli": "0.0.556",
35
+ "@teambit/express": "0.0.654",
36
+ "@teambit/graphql": "0.0.831",
37
+ "@teambit/bit-error": "0.0.394",
38
+ "@teambit/cli-table": "0.0.34",
39
+ "@teambit/envs": "0.0.831",
33
40
  "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.488",
34
- "@teambit/aspect-loader": "0.0.828",
35
41
  "@teambit/legacy-bit-id": "0.0.402",
36
42
  "@teambit/toolbox.path.match-patterns": "0.0.1",
37
43
  "@teambit/toolbox.string.capitalize": "0.0.483",
38
- "@teambit/cli": "0.0.555",
39
- "@teambit/express": "0.0.653",
40
- "@teambit/graphql": "0.0.828",
41
- "@teambit/bit-error": "0.0.394",
42
- "@teambit/command-bar": "0.0.828",
44
+ "@teambit/command-bar": "0.0.831",
43
45
  "@teambit/component.ui.deprecation-icon": "0.0.494",
44
- "@teambit/preview": "0.0.828",
45
- "@teambit/pubsub": "0.0.828",
46
- "@teambit/react-router": "0.0.828",
46
+ "@teambit/preview": "0.0.831",
47
+ "@teambit/pubsub": "0.0.831",
48
+ "@teambit/react-router": "0.0.831",
47
49
  "@teambit/ui-foundation.ui.is-browser": "0.0.486",
48
50
  "@teambit/ui-foundation.ui.main-dropdown": "0.0.487",
49
51
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.490",
50
52
  "@teambit/ui-foundation.ui.use-box.menu": "0.0.116",
51
- "@teambit/ui": "0.0.828",
53
+ "@teambit/ui": "0.0.831",
52
54
  "@teambit/component-issues": "0.0.60",
53
- "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.489",
54
- "@teambit/cli-table": "0.0.34",
55
- "@teambit/lanes.hooks.use-lanes": "0.0.8",
56
- "@teambit/component-descriptor": "0.0.118",
55
+ "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.490",
56
+ "@teambit/lanes.hooks.use-lanes": "0.0.10",
57
+ "@teambit/component-descriptor": "0.0.119",
57
58
  "@teambit/ui-foundation.ui.react-router.use-query": "0.0.487",
59
+ "@teambit/design.ui.pages.not-found": "0.0.357",
60
+ "@teambit/design.ui.pages.server-error": "0.0.357",
58
61
  "@teambit/design.ui.empty-box": "0.0.354",
59
62
  "@teambit/harmony.ui.aspect-box": "0.0.486",
60
- "@teambit/compositions": "0.0.828",
61
- "@teambit/deprecation": "0.0.828",
62
- "@teambit/envs": "0.0.828",
63
+ "@teambit/compositions": "0.0.831",
64
+ "@teambit/deprecation": "0.0.831",
63
65
  "@teambit/legacy-component-log": "0.0.392",
64
- "@teambit/design.ui.pages.not-found": "0.0.357",
65
- "@teambit/design.ui.pages.server-error": "0.0.357",
66
66
  "@teambit/design.ui.styles.ellipsis": "0.0.347",
67
67
  "@teambit/envs.ui.env-icon": "0.0.486",
68
- "@teambit/component.ui.version-dropdown": "0.0.612",
69
- "@teambit/lanes.ui.models": "0.0.8",
68
+ "@teambit/component.ui.version-dropdown": "0.0.613",
69
+ "@teambit/lanes.ui.models": "0.0.9",
70
70
  "@teambit/ui-foundation.ui.full-loader": "0.0.486",
71
71
  "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.116",
72
72
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.488"
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "react-router-dom": "^6.0.0",
90
- "@apollo/client": "^3.4.0",
91
- "@teambit/legacy": "1.0.338",
90
+ "@apollo/client": "^3.0.0",
91
+ "@teambit/legacy": "1.0.339",
92
92
  "react-dom": "^16.8.0 || ^17.0.0",
93
93
  "react": "^16.8.0 || ^17.0.0"
94
94
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.828/dist/component.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.828/dist/component.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.831/dist/component.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.831/dist/component.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];