@teambit/component 0.0.832 → 0.0.833
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:
|
|
22
|
-
|
|
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
|
-
}
|
|
33
|
-
|
|
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
|
-
}>
|
|
42
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
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
|
-
}>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.833",
|
|
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.
|
|
9
|
+
"version": "0.0.833"
|
|
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.
|
|
33
|
-
"@teambit/aspect-loader": "0.0.
|
|
34
|
-
"@teambit/legacy-bit-id": "0.0.
|
|
35
|
-
"@teambit/cli": "0.0.
|
|
36
|
-
"@teambit/express": "0.0.
|
|
37
|
-
"@teambit/graphql": "0.0.
|
|
38
|
-
"@teambit/bit-error": "0.0.
|
|
39
|
-
"@teambit/command-bar": "0.0.
|
|
40
|
-
"@teambit/pubsub": "0.0.
|
|
41
|
-
"@teambit/ui-foundation.ui.main-dropdown": "0.0.
|
|
42
|
-
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.
|
|
43
|
-
"@teambit/ui": "0.0.
|
|
44
|
-
"@teambit/component-issues": "0.0.
|
|
45
|
-
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.
|
|
46
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
|
47
|
-
"@teambit/component-descriptor": "0.0.
|
|
48
|
-
"@teambit/
|
|
49
|
-
"@teambit/
|
|
50
|
-
"@teambit/ui-foundation.ui.
|
|
51
|
-
"@teambit/
|
|
52
|
-
"@teambit/
|
|
53
|
-
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.
|
|
54
|
-
"@teambit/toolbox.path.match-patterns": "0.0.
|
|
55
|
-
"@teambit/toolbox.string.capitalize": "0.0.
|
|
56
|
-
"@teambit/component.ui.deprecation-icon": "0.0.
|
|
57
|
-
"@teambit/preview": "0.0.
|
|
58
|
-
"@teambit/react-router": "0.0.
|
|
59
|
-
"@teambit/ui-foundation.ui.is-browser": "0.0.
|
|
60
|
-
"@teambit/ui-foundation.ui.use-box.menu": "0.0.
|
|
61
|
-
"@teambit/cli-table": "0.0.
|
|
62
|
-
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.
|
|
63
|
-
"@teambit/design.ui.empty-box": "0.0.
|
|
64
|
-
"@teambit/harmony.ui.aspect-box": "0.0.
|
|
65
|
-
"@teambit/design.ui.pages.not-found": "0.0.
|
|
66
|
-
"@teambit/design.ui.pages.server-error": "0.0.
|
|
67
|
-
"@teambit/
|
|
68
|
-
"@teambit/
|
|
69
|
-
"@teambit/
|
|
70
|
-
"@teambit/
|
|
71
|
-
"@teambit/
|
|
72
|
-
"@teambit/
|
|
32
|
+
"@teambit/component-id": "0.0.407",
|
|
33
|
+
"@teambit/aspect-loader": "0.0.833",
|
|
34
|
+
"@teambit/legacy-bit-id": "0.0.404",
|
|
35
|
+
"@teambit/cli": "0.0.558",
|
|
36
|
+
"@teambit/express": "0.0.656",
|
|
37
|
+
"@teambit/graphql": "0.0.833",
|
|
38
|
+
"@teambit/bit-error": "0.0.396",
|
|
39
|
+
"@teambit/command-bar": "0.0.833",
|
|
40
|
+
"@teambit/pubsub": "0.0.833",
|
|
41
|
+
"@teambit/ui-foundation.ui.main-dropdown": "0.0.489",
|
|
42
|
+
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.492",
|
|
43
|
+
"@teambit/ui": "0.0.833",
|
|
44
|
+
"@teambit/component-issues": "0.0.62",
|
|
45
|
+
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.492",
|
|
46
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.12",
|
|
47
|
+
"@teambit/component-descriptor": "0.0.121",
|
|
48
|
+
"@teambit/deprecation": "0.0.833",
|
|
49
|
+
"@teambit/envs": "0.0.833",
|
|
50
|
+
"@teambit/ui-foundation.ui.full-loader": "0.0.488",
|
|
51
|
+
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.118",
|
|
52
|
+
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.490",
|
|
53
|
+
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.490",
|
|
54
|
+
"@teambit/toolbox.path.match-patterns": "0.0.3",
|
|
55
|
+
"@teambit/toolbox.string.capitalize": "0.0.485",
|
|
56
|
+
"@teambit/component.ui.deprecation-icon": "0.0.496",
|
|
57
|
+
"@teambit/preview": "0.0.833",
|
|
58
|
+
"@teambit/react-router": "0.0.833",
|
|
59
|
+
"@teambit/ui-foundation.ui.is-browser": "0.0.488",
|
|
60
|
+
"@teambit/ui-foundation.ui.use-box.menu": "0.0.118",
|
|
61
|
+
"@teambit/cli-table": "0.0.36",
|
|
62
|
+
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.489",
|
|
63
|
+
"@teambit/design.ui.empty-box": "0.0.356",
|
|
64
|
+
"@teambit/harmony.ui.aspect-box": "0.0.488",
|
|
65
|
+
"@teambit/design.ui.pages.not-found": "0.0.359",
|
|
66
|
+
"@teambit/design.ui.pages.server-error": "0.0.359",
|
|
67
|
+
"@teambit/compositions": "0.0.833",
|
|
68
|
+
"@teambit/legacy-component-log": "0.0.394",
|
|
69
|
+
"@teambit/design.ui.styles.ellipsis": "0.0.349",
|
|
70
|
+
"@teambit/envs.ui.env-icon": "0.0.488",
|
|
71
|
+
"@teambit/component.ui.version-dropdown": "0.0.615",
|
|
72
|
+
"@teambit/lanes.ui.models": "0.0.11"
|
|
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.
|
|
91
|
-
"@teambit/legacy": "1.0.
|
|
90
|
+
"@apollo/client": "^3.6.0",
|
|
91
|
+
"@teambit/legacy": "1.0.341",
|
|
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.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.833/dist/component.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@0.0.833/dist/component.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|