@teambit/lanes.hooks.use-lane-components 0.0.9 → 0.0.12

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.
@@ -1,6 +1,8 @@
1
- import { QueryResult } from '@apollo/client';
1
+ import { DataQueryResult } from '@teambit/ui-foundation.ui.hooks.use-data-query';
2
2
  import { LaneModel, LanesQuery } from '@teambit/lanes.ui.models';
3
3
  import { ComponentModel } from '@teambit/component';
4
4
  export declare function useLaneComponents(lane: LaneModel): {
5
5
  components?: Array<ComponentModel>;
6
- } & Omit<QueryResult<LanesQuery>, 'data'>;
6
+ } & Omit<DataQueryResult<LanesQuery, {
7
+ ids: string[];
8
+ }>, 'data'>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-lane-components.js","sourceRoot":"","sources":["../use-lane-components.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0GAA8E;AAC9E,2CAAkD;AAElD,kDAA6E;AAE7E,MAAM,mBAAmB,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;IAoB3B,mCAAuB;CAC1B,CAAC;AAEF,SAAgB,iBAAiB,CAAC,IAAe;IAG/C,MAAM,KAAoB,IAAA,oDAAY,EAAC,mBAAmB,EAAE;QAC1D,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;KAChC,CAAC,EAFI,EAAE,IAAI,OAEV,EAFe,IAAI,cAAf,QAAiB,CAErB,CAAC;IAEH,MAAM,UAAU,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAClE,MAAM,cAAc,GAAG,0BAAc,CAAC,IAAI,iCAAM,SAAS,KAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAG,CAAC;QACpF,OAAO,cAAc,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,uCACK,IAAI,KACP,UAAU,IACV;AACJ,CAAC;AAhBD,8CAgBC"}
1
+ {"version":3,"file":"use-lane-components.js","sourceRoot":"","sources":["../use-lane-components.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0GAA+F;AAC/F,2CAAqC;AAErC,kDAA6E;AAE7E,MAAM,mBAAmB,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;IAoB3B,mCAAuB;CAC1B,CAAC;AAEF,SAAgB,iBAAiB,CAAC,IAAe;IAG/C,MAAM,KAAoB,IAAA,oDAAY,EAAC,mBAAmB,EAAE;QAC1D,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;KAChC,CAAC,EAFI,EAAE,IAAI,OAEV,EAFe,IAAI,cAAf,QAAiB,CAErB,CAAC;IAEH,MAAM,UAAU,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAClE,MAAM,cAAc,GAAG,0BAAc,CAAC,IAAI,iCAAM,SAAS,KAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAG,CAAC;QACpF,OAAO,cAAc,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,uCACK,IAAI,KACP,UAAU,IACV;AACJ,CAAC;AAhBD,8CAgBC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@teambit/lanes.hooks.use-lane-components",
3
- "version": "0.0.9",
3
+ "version": "0.0.12",
4
4
  "homepage": "https://bit.dev/teambit/lanes/hooks/use-lane-components",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.lanes",
8
8
  "name": "hooks/use-lane-components",
9
- "version": "0.0.9"
9
+ "version": "0.0.12"
10
10
  },
11
11
  "dependencies": {
12
- "@teambit/lanes.ui.models": "0.0.8",
13
- "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.490"
12
+ "@teambit/lanes.ui.models": "0.0.11",
13
+ "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.492"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mocha": "9.1.0",
@@ -19,7 +19,7 @@
19
19
  "@types/jest": "26.0.20"
20
20
  },
21
21
  "peerDependencies": {
22
- "@apollo/client": "^3.0.0"
22
+ "@apollo/client": "^3.6.0"
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "private": false,
@@ -38,8 +38,6 @@
38
38
  "react",
39
39
  "react-components",
40
40
  "angular",
41
- "angular-components",
42
- "vue",
43
- "vue-components"
41
+ "angular-components"
44
42
  ]
45
43
  }
@@ -1,5 +1,5 @@
1
- import { useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';
2
- import { gql, QueryResult } from '@apollo/client';
1
+ import { useDataQuery, DataQueryResult } from '@teambit/ui-foundation.ui.hooks.use-data-query';
2
+ import { gql } from '@apollo/client';
3
3
  import { LaneModel, LanesQuery } from '@teambit/lanes.ui.models';
4
4
  import { ComponentModel, componentOverviewFields } from '@teambit/component';
5
5
 
@@ -28,7 +28,7 @@ const GET_LANE_COMPONENTS = gql`
28
28
 
29
29
  export function useLaneComponents(lane: LaneModel): {
30
30
  components?: Array<ComponentModel>;
31
- } & Omit<QueryResult<LanesQuery>, 'data'> {
31
+ } & Omit<DataQueryResult<LanesQuery, { ids: string[] }>, 'data'> {
32
32
  const { data, ...rest } = useDataQuery(GET_LANE_COMPONENTS, {
33
33
  variables: { ids: [lane.name] },
34
34
  });