@teambit/component 0.0.832 → 0.0.835

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.
@@ -16,12 +16,19 @@ export declare type Filters = {
16
16
  /** provides data to component ui page, making sure both variables and return value are safely typed and memoized */
17
17
  export declare function useComponentQuery(componentId: string, host: string, filters?: Filters): {
18
18
  client: import("@apollo/client").ApolloClient<any>;
19
+ observable: import("@apollo/client").ObservableQuery<any, {
20
+ logType?: string | undefined;
21
+ logOffset?: number | undefined;
22
+ logLimit?: number | undefined;
23
+ logHead?: string | undefined;
24
+ logSort?: string | undefined;
25
+ id: string;
26
+ extensionId: string;
27
+ }>;
19
28
  previousData?: any;
20
29
  networkStatus: import("@apollo/client").NetworkStatus;
21
- called: true;
22
- startPolling: (pollInterval: number) => void;
23
- stopPolling: () => void;
24
- updateQuery: <TVars = {
30
+ called: boolean;
31
+ variables: {
25
32
  logType?: string | undefined;
26
33
  logOffset?: number | undefined;
27
34
  logLimit?: number | undefined;
@@ -29,8 +36,10 @@ export declare function useComponentQuery(componentId: string, host: string, fil
29
36
  logSort?: string | undefined;
30
37
  id: string;
31
38
  extensionId: string;
32
- }>(mapFn: (previousQueryResult: any, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, any>, "variables">) => any) => void;
33
- refetch: (variables?: Partial<{
39
+ } | undefined;
40
+ startPolling: (pollInterval: number) => void;
41
+ stopPolling: () => void;
42
+ updateQuery: <TVars = {
34
43
  logType?: string | undefined;
35
44
  logOffset?: number | undefined;
36
45
  logLimit?: number | undefined;
@@ -38,8 +47,8 @@ export declare function useComponentQuery(componentId: string, host: string, fil
38
47
  logSort?: string | undefined;
39
48
  id: string;
40
49
  extensionId: string;
41
- }> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
42
- variables: {
50
+ }>(mapFn: (previousQueryResult: any, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, any>, "variables">) => any) => void;
51
+ refetch: (variables?: Partial<{
43
52
  logType?: string | undefined;
44
53
  logOffset?: number | undefined;
45
54
  logLimit?: number | undefined;
@@ -47,8 +56,8 @@ export declare function useComponentQuery(componentId: string, host: string, fil
47
56
  logSort?: string | undefined;
48
57
  id: string;
49
58
  extensionId: string;
50
- } | undefined;
51
- fetchMore: (<K extends "id" | "extensionId" | "logType" | "logOffset" | "logLimit" | "logHead" | "logSort">(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<{
59
+ }> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
60
+ reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<{
52
61
  logType?: string | undefined;
53
62
  logOffset?: number | undefined;
54
63
  logLimit?: number | undefined;
@@ -56,7 +65,8 @@ export declare function useComponentQuery(componentId: string, host: string, fil
56
65
  logSort?: string | undefined;
57
66
  id: string;
58
67
  extensionId: string;
59
- }, K, any> & import("@apollo/client").FetchMoreOptions<any, {
68
+ }, any>> | undefined, newNetworkStatus?: import("@apollo/client").NetworkStatus | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
69
+ fetchMore: <TFetchData = any, TFetchVars = {
60
70
  logType?: string | undefined;
61
71
  logOffset?: number | undefined;
62
72
  logLimit?: number | undefined;
@@ -64,17 +74,12 @@ export declare function useComponentQuery(componentId: string, host: string, fil
64
74
  logSort?: string | undefined;
65
75
  id: string;
66
76
  extensionId: string;
67
- }>) => Promise<import("@apollo/client").ApolloQueryResult<any>>) & (<TData2, TVariables2, K_1 extends keyof TVariables2>(fetchMoreOptions: {
68
- query?: import("@apollo/client").DocumentNode | import("@graphql-typed-document-node/core").TypedDocumentNode<any, {
69
- logType?: string | undefined;
70
- logOffset?: number | undefined;
71
- logLimit?: number | undefined;
72
- logHead?: string | undefined;
73
- logSort?: string | undefined;
74
- id: string;
75
- extensionId: string;
76
- }> | undefined;
77
- } & import("@apollo/client").FetchMoreQueryOptions<TVariables2, K_1, any> & import("@apollo/client").FetchMoreOptions<TData2, TVariables2>) => Promise<import("@apollo/client").ApolloQueryResult<TData2>>);
77
+ }>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
78
+ updateQuery?: ((previousQueryResult: any, options: {
79
+ fetchMoreResult: TFetchData;
80
+ variables: TFetchVars;
81
+ }) => any) | undefined;
82
+ }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
78
83
  componentDescriptor: ComponentDescriptor | undefined;
79
84
  component: ComponentModel | undefined;
80
85
  error: ComponentError | undefined;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component",
3
- "version": "0.0.832",
3
+ "version": "0.0.835",
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.832"
9
+ "version": "0.0.835"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/any-fs": "0.0.5",
@@ -29,47 +29,47 @@
29
29
  "@teambit/base-ui.layout.breakpoints": "1.0.0",
30
30
  "@teambit/design.elements.icon": "1.0.5",
31
31
  "@teambit/design.inputs.dropdown": "0.0.7",
32
- "@teambit/component-id": "0.0.406",
33
- "@teambit/aspect-loader": "0.0.832",
34
- "@teambit/legacy-bit-id": "0.0.403",
35
- "@teambit/cli": "0.0.557",
36
- "@teambit/express": "0.0.655",
37
- "@teambit/graphql": "0.0.832",
38
- "@teambit/bit-error": "0.0.395",
39
- "@teambit/command-bar": "0.0.832",
40
- "@teambit/pubsub": "0.0.832",
41
- "@teambit/ui-foundation.ui.main-dropdown": "0.0.488",
42
- "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.491",
43
- "@teambit/ui": "0.0.832",
44
- "@teambit/component-issues": "0.0.61",
45
- "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.491",
46
- "@teambit/lanes.hooks.use-lanes": "0.0.11",
47
- "@teambit/component-descriptor": "0.0.120",
48
- "@teambit/ui-foundation.ui.full-loader": "0.0.487",
49
- "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.117",
50
- "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.489",
51
- "@teambit/deprecation": "0.0.832",
52
- "@teambit/envs": "0.0.832",
53
- "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.489",
54
- "@teambit/toolbox.path.match-patterns": "0.0.2",
55
- "@teambit/toolbox.string.capitalize": "0.0.484",
56
- "@teambit/component.ui.deprecation-icon": "0.0.495",
57
- "@teambit/preview": "0.0.832",
58
- "@teambit/react-router": "0.0.832",
59
- "@teambit/ui-foundation.ui.is-browser": "0.0.487",
60
- "@teambit/ui-foundation.ui.use-box.menu": "0.0.117",
61
- "@teambit/cli-table": "0.0.35",
62
- "@teambit/ui-foundation.ui.react-router.use-query": "0.0.488",
63
- "@teambit/design.ui.empty-box": "0.0.355",
64
- "@teambit/harmony.ui.aspect-box": "0.0.487",
65
- "@teambit/design.ui.pages.not-found": "0.0.358",
66
- "@teambit/design.ui.pages.server-error": "0.0.358",
67
- "@teambit/design.ui.styles.ellipsis": "0.0.348",
68
- "@teambit/envs.ui.env-icon": "0.0.487",
69
- "@teambit/component.ui.version-dropdown": "0.0.614",
70
- "@teambit/lanes.ui.models": "0.0.10",
71
- "@teambit/legacy-component-log": "0.0.393",
72
- "@teambit/compositions": "0.0.832"
32
+ "@teambit/component-id": "0.0.409",
33
+ "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.492",
34
+ "@teambit/aspect-loader": "0.0.835",
35
+ "@teambit/legacy-bit-id": "0.0.406",
36
+ "@teambit/toolbox.path.match-patterns": "0.0.5",
37
+ "@teambit/toolbox.string.capitalize": "0.0.487",
38
+ "@teambit/cli": "0.0.560",
39
+ "@teambit/express": "0.0.658",
40
+ "@teambit/graphql": "0.0.835",
41
+ "@teambit/bit-error": "0.0.398",
42
+ "@teambit/command-bar": "0.0.835",
43
+ "@teambit/component.ui.deprecation-icon": "0.0.498",
44
+ "@teambit/preview": "0.0.835",
45
+ "@teambit/pubsub": "0.0.835",
46
+ "@teambit/react-router": "0.0.835",
47
+ "@teambit/ui-foundation.ui.is-browser": "0.0.490",
48
+ "@teambit/ui-foundation.ui.main-dropdown": "0.0.491",
49
+ "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.494",
50
+ "@teambit/ui-foundation.ui.use-box.menu": "0.0.120",
51
+ "@teambit/ui": "0.0.835",
52
+ "@teambit/component-issues": "0.0.64",
53
+ "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.494",
54
+ "@teambit/cli-table": "0.0.38",
55
+ "@teambit/lanes.hooks.use-lanes": "0.0.14",
56
+ "@teambit/component-descriptor": "0.0.123",
57
+ "@teambit/ui-foundation.ui.react-router.use-query": "0.0.491",
58
+ "@teambit/design.ui.empty-box": "0.0.358",
59
+ "@teambit/harmony.ui.aspect-box": "0.0.490",
60
+ "@teambit/design.ui.pages.not-found": "0.0.361",
61
+ "@teambit/design.ui.pages.server-error": "0.0.361",
62
+ "@teambit/compositions": "0.0.835",
63
+ "@teambit/deprecation": "0.0.835",
64
+ "@teambit/envs": "0.0.835",
65
+ "@teambit/legacy-component-log": "0.0.396",
66
+ "@teambit/design.ui.styles.ellipsis": "0.0.351",
67
+ "@teambit/envs.ui.env-icon": "0.0.490",
68
+ "@teambit/component.ui.version-dropdown": "0.0.617",
69
+ "@teambit/lanes.ui.models": "0.0.13",
70
+ "@teambit/ui-foundation.ui.full-loader": "0.0.490",
71
+ "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.120",
72
+ "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.492"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/react": "^17.0.8",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "peerDependencies": {
89
89
  "react-router-dom": "^6.0.0",
90
- "@apollo/client": "^3.0.0",
91
- "@teambit/legacy": "1.0.340",
90
+ "@apollo/client": "^3.6.0",
91
+ "@teambit/legacy": "1.0.342",
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.832/dist/component.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.832/dist/component.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.835/dist/component.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.835/dist/component.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];