@teambit/lanes.hooks.use-lane-components 0.0.254 → 0.0.256

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.
@@ -0,0 +1,7 @@
1
+ ;
2
+ ;
3
+
4
+ export const compositions = [];
5
+ export const overview = [];
6
+
7
+ export const compositions_metadata = {"compositions":[]};
@@ -1,7 +1,9 @@
1
1
  import { ComponentModel } from '@teambit/component';
2
2
  import { LaneId } from '@teambit/lane-id';
3
+ import { ComponentDescriptor } from '@teambit/component-descriptor';
3
4
  export declare type UseLaneComponentsResult = {
4
5
  components?: Array<ComponentModel>;
6
+ componentDescriptors?: Array<ComponentDescriptor>;
5
7
  loading?: boolean;
6
8
  };
7
9
  export declare function useLaneComponents(laneId?: LaneId): UseLaneComponentsResult;
@@ -4,6 +4,8 @@ exports.useLaneComponents = void 0;
4
4
  const ui_foundation_ui_hooks_use_data_query_1 = require("@teambit/ui-foundation.ui.hooks.use-data-query");
5
5
  const client_1 = require("@apollo/client");
6
6
  const component_1 = require("@teambit/component");
7
+ const component_descriptor_1 = require("@teambit/component-descriptor");
8
+ const lodash_1 = require("lodash");
7
9
  const GET_LANE_COMPONENTS = (0, client_1.gql) `
8
10
  query LaneComponent($ids: [String!], $extensionId: String, $skipList: Boolean!) {
9
11
  lanes {
@@ -39,7 +41,7 @@ const GET_LANE_COMPONENTS = (0, client_1.gql) `
39
41
  ${component_1.componentOverviewFields}
40
42
  `;
41
43
  function useLaneComponents(laneId) {
42
- var _a;
44
+ var _a, _b;
43
45
  const { data, loading } = (0, ui_foundation_ui_hooks_use_data_query_1.useDataQuery)(GET_LANE_COMPONENTS, {
44
46
  variables: { ids: [laneId === null || laneId === void 0 ? void 0 : laneId.toString()], skipList: laneId === null || laneId === void 0 ? void 0 : laneId.isDefault() },
45
47
  skip: !laneId,
@@ -49,9 +51,19 @@ function useLaneComponents(laneId) {
49
51
  const componentModel = component_1.ComponentModel.from(Object.assign(Object.assign({}, component), { host: data.getHost.id }));
50
52
  return componentModel;
51
53
  });
54
+ const componentDescriptors = (0, lodash_1.compact)((_b = rawComps === null || rawComps === void 0 ? void 0 : rawComps.components) === null || _b === void 0 ? void 0 : _b.map((rawComponent) => {
55
+ const id = rawComponent ? component_1.ComponentID.fromObject(rawComponent.id) : undefined;
56
+ const aspectList = {
57
+ entries: rawComponent === null || rawComponent === void 0 ? void 0 : rawComponent.aspects.map((aspectObject) => {
58
+ return Object.assign(Object.assign({}, aspectObject), { aspectId: aspectObject.id, aspectData: aspectObject.data });
59
+ }),
60
+ };
61
+ return id ? component_descriptor_1.ComponentDescriptor.fromObject({ id: id.toString(), aspectList }) : undefined;
62
+ }));
52
63
  return {
53
64
  loading,
54
65
  components,
66
+ componentDescriptors,
55
67
  };
56
68
  }
57
69
  exports.useLaneComponents = useLaneComponents;
@@ -1 +1 @@
1
- {"version":3,"file":"use-lane-components.js","sourceRoot":"","sources":["../use-lane-components.tsx"],"names":[],"mappings":";;;AAAA,0GAA8E;AAC9E,2CAAqC;AACrC,kDAA6E;AAG7E,MAAM,mBAAmB,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgC3B,mCAAuB;CAC1B,CAAC;AAOF,SAAgB,iBAAiB,CAAC,MAAe;;IAC/C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,oDAAY,EAAC,mBAAmB,EAAE;QAC1D,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,EAAE,EAAE;QACvE,IAAI,EAAE,CAAC,MAAM;KACd,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,IAAI,KAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,I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EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5F,CAAC,CAAC,CACH,CAAC;IAEF,OAAO;QACL,OAAO;QACP,UAAU;QACV,oBAAoB;KACrB,CAAC;AACJ,CAAC;AAlCD,8CAkCC"}
package/package.json CHANGED
@@ -1,26 +1,32 @@
1
1
  {
2
2
  "name": "@teambit/lanes.hooks.use-lane-components",
3
- "version": "0.0.254",
3
+ "version": "0.0.256",
4
4
  "homepage": "https://bit.cloud/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.254"
9
+ "version": "0.0.256"
10
10
  },
11
11
  "dependencies": {
12
- "@teambit/lane-id": "0.0.305",
13
- "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.505"
12
+ "lodash": "4.17.21",
13
+ "@teambit/lane-id": "0.0.311",
14
+ "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.505",
15
+ "@teambit/component-descriptor": "0.0.413"
14
16
  },
15
17
  "devDependencies": {
16
- "@types/jest": "26.0.20",
18
+ "@types/lodash": "4.14.165",
17
19
  "@types/mocha": "9.1.0",
18
- "@types/node": "^18.11.9"
20
+ "@types/jest": "26.0.20",
21
+ "@types/node": "12.20.4",
22
+ "@babel/runtime": "7.20.0"
19
23
  },
20
24
  "peerDependencies": {
21
25
  "@apollo/client": "^3.6.0"
22
26
  },
23
27
  "license": "Apache-2.0",
28
+ "optionalDependencies": {},
29
+ "peerDependenciesMeta": {},
24
30
  "private": false,
25
31
  "engines": {
26
32
  "node": ">=12.22.0"
@@ -39,4 +45,4 @@
39
45
  "angular",
40
46
  "angular-components"
41
47
  ]
42
- }
48
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": [
4
+ "es2019",
5
+ "DOM",
6
+ "ES6",
7
+ "DOM.Iterable"
8
+ ],
9
+ "target": "es2015",
10
+ "module": "CommonJS",
11
+ "jsx": "react",
12
+ "allowJs": true,
13
+ "composite": true,
14
+ "declaration": true,
15
+ "sourceMap": true,
16
+ "skipLibCheck": true,
17
+ "experimentalDecorators": true,
18
+ "outDir": "dist",
19
+ "moduleResolution": "node",
20
+ "esModuleInterop": true,
21
+ "rootDir": ".",
22
+ "resolveJsonModule": true
23
+ },
24
+ "exclude": [
25
+ "dist",
26
+ "package.json"
27
+ ],
28
+ "include": [
29
+ "**/*",
30
+ "**/*.json"
31
+ ]
32
+ }
@@ -0,0 +1,29 @@
1
+ declare module '*.png' {
2
+ const value: any;
3
+ export = value;
4
+ }
5
+ declare module '*.svg' {
6
+ import type { FunctionComponent, SVGProps } from 'react';
7
+
8
+ export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
9
+ const src: string;
10
+ export default src;
11
+ }
12
+
13
+ // @TODO Gilad
14
+ declare module '*.jpg' {
15
+ const value: any;
16
+ export = value;
17
+ }
18
+ declare module '*.jpeg' {
19
+ const value: any;
20
+ export = value;
21
+ }
22
+ declare module '*.gif' {
23
+ const value: any;
24
+ export = value;
25
+ }
26
+ declare module '*.bmp' {
27
+ const value: any;
28
+ export = value;
29
+ }
@@ -0,0 +1,42 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+ declare module '*.module.scss' {
6
+ const classes: { readonly [key: string]: string };
7
+ export default classes;
8
+ }
9
+ declare module '*.module.sass' {
10
+ const classes: { readonly [key: string]: string };
11
+ export default classes;
12
+ }
13
+
14
+ declare module '*.module.less' {
15
+ const classes: { readonly [key: string]: string };
16
+ export default classes;
17
+ }
18
+
19
+ declare module '*.less' {
20
+ const classes: { readonly [key: string]: string };
21
+ export default classes;
22
+ }
23
+
24
+ declare module '*.css' {
25
+ const classes: { readonly [key: string]: string };
26
+ export default classes;
27
+ }
28
+
29
+ declare module '*.sass' {
30
+ const classes: { readonly [key: string]: string };
31
+ export default classes;
32
+ }
33
+
34
+ declare module '*.scss' {
35
+ const classes: { readonly [key: string]: string };
36
+ export default classes;
37
+ }
38
+
39
+ declare module '*.mdx' {
40
+ const component: any;
41
+ export default component;
42
+ }
@@ -1,7 +1,9 @@
1
1
  import { useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';
2
2
  import { gql } from '@apollo/client';
3
- import { ComponentModel, componentOverviewFields } from '@teambit/component';
3
+ import { ComponentID, ComponentModel, componentOverviewFields } from '@teambit/component';
4
4
  import { LaneId } from '@teambit/lane-id';
5
+ import { ComponentDescriptor } from '@teambit/component-descriptor';
6
+ import { compact } from 'lodash';
5
7
 
6
8
  const GET_LANE_COMPONENTS = gql`
7
9
  query LaneComponent($ids: [String!], $extensionId: String, $skipList: Boolean!) {
@@ -40,6 +42,7 @@ const GET_LANE_COMPONENTS = gql`
40
42
 
41
43
  export type UseLaneComponentsResult = {
42
44
  components?: Array<ComponentModel>;
45
+ componentDescriptors?: Array<ComponentDescriptor>;
43
46
  loading?: boolean;
44
47
  };
45
48
 
@@ -56,8 +59,25 @@ export function useLaneComponents(laneId?: LaneId): UseLaneComponentsResult {
56
59
  return componentModel;
57
60
  });
58
61
 
62
+ const componentDescriptors: ComponentDescriptor[] = compact(
63
+ rawComps?.components?.map((rawComponent) => {
64
+ const id = rawComponent ? ComponentID.fromObject(rawComponent.id) : undefined;
65
+ const aspectList = {
66
+ entries: rawComponent?.aspects.map((aspectObject) => {
67
+ return {
68
+ ...aspectObject,
69
+ aspectId: aspectObject.id,
70
+ aspectData: aspectObject.data,
71
+ };
72
+ }),
73
+ };
74
+ return id ? ComponentDescriptor.fromObject({ id: id.toString(), aspectList }) : undefined;
75
+ })
76
+ );
77
+
59
78
  return {
60
79
  loading,
61
80
  components,
81
+ componentDescriptors,
62
82
  };
63
83
  }
File without changes
package/schema.json DELETED
@@ -1,246 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "FunctionLikeSchema",
18
- "location": {
19
- "filePath": "use-lane-components.tsx",
20
- "line": 46,
21
- "character": 1
22
- },
23
- "signature": "function useLaneComponents(laneId?: LaneId): UseLaneComponentsResult",
24
- "name": "useLaneComponents",
25
- "params": [
26
- {
27
- "__schema": "ParameterSchema",
28
- "location": {
29
- "filePath": "use-lane-components.tsx",
30
- "line": 46,
31
- "character": 35
32
- },
33
- "name": "laneId",
34
- "type": {
35
- "__schema": "TypeRefSchema",
36
- "location": {
37
- "filePath": "use-lane-components.tsx",
38
- "line": 46,
39
- "character": 44
40
- },
41
- "name": "LaneId",
42
- "componentId": {
43
- "scope": "teambit.lanes",
44
- "name": "lane-id",
45
- "version": "0.0.305"
46
- }
47
- },
48
- "isOptional": true,
49
- "isSpread": false
50
- }
51
- ],
52
- "returnType": {
53
- "__schema": "TypeRefSchema",
54
- "location": {
55
- "filePath": "use-lane-components.tsx",
56
- "line": 46,
57
- "character": 1
58
- },
59
- "name": "UseLaneComponentsResult",
60
- "internalFilePath": "use-lane-components.tsx"
61
- },
62
- "modifiers": [
63
- "export"
64
- ]
65
- }
66
- ],
67
- "internals": []
68
- },
69
- "internals": [
70
- {
71
- "__schema": "ModuleSchema",
72
- "location": {
73
- "filePath": "use-lane-components.tsx",
74
- "line": 1,
75
- "character": 1
76
- },
77
- "exports": [
78
- {
79
- "__schema": "TypeSchema",
80
- "location": {
81
- "filePath": "use-lane-components.tsx",
82
- "line": 41,
83
- "character": 1
84
- },
85
- "signature": "type UseLaneComponentsResult = {\n components?: Array<ComponentModel>;\n loading?: boolean;\n}",
86
- "name": "UseLaneComponentsResult",
87
- "type": {
88
- "__schema": "TypeLiteralSchema",
89
- "location": {
90
- "filePath": "use-lane-components.tsx",
91
- "line": 41,
92
- "character": 39
93
- },
94
- "members": [
95
- {
96
- "__schema": "VariableLikeSchema",
97
- "location": {
98
- "filePath": "use-lane-components.tsx",
99
- "line": 42,
100
- "character": 3
101
- },
102
- "signature": "(property) components?: ComponentModel[]",
103
- "name": "components",
104
- "type": {
105
- "__schema": "TypeRefSchema",
106
- "location": {
107
- "filePath": "use-lane-components.tsx",
108
- "line": 42,
109
- "character": 16
110
- },
111
- "name": "Array",
112
- "typeArgs": [
113
- {
114
- "__schema": "TypeRefSchema",
115
- "location": {
116
- "filePath": "use-lane-components.tsx",
117
- "line": 42,
118
- "character": 22
119
- },
120
- "name": "ComponentModel",
121
- "componentId": {
122
- "scope": "teambit.component",
123
- "name": "component"
124
- }
125
- }
126
- ]
127
- },
128
- "isOptional": true
129
- },
130
- {
131
- "__schema": "VariableLikeSchema",
132
- "location": {
133
- "filePath": "use-lane-components.tsx",
134
- "line": 43,
135
- "character": 3
136
- },
137
- "signature": "(property) loading?: boolean",
138
- "name": "loading",
139
- "type": {
140
- "__schema": "KeywordTypeSchema",
141
- "location": {
142
- "filePath": "use-lane-components.tsx",
143
- "line": 43,
144
- "character": 13
145
- },
146
- "name": "boolean"
147
- },
148
- "isOptional": true
149
- }
150
- ]
151
- }
152
- },
153
- {
154
- "__schema": "FunctionLikeSchema",
155
- "location": {
156
- "filePath": "use-lane-components.tsx",
157
- "line": 46,
158
- "character": 1
159
- },
160
- "signature": "function useLaneComponents(laneId?: LaneId): UseLaneComponentsResult",
161
- "name": "useLaneComponents",
162
- "params": [
163
- {
164
- "__schema": "ParameterSchema",
165
- "location": {
166
- "filePath": "use-lane-components.tsx",
167
- "line": 46,
168
- "character": 35
169
- },
170
- "name": "laneId",
171
- "type": {
172
- "__schema": "TypeRefSchema",
173
- "location": {
174
- "filePath": "use-lane-components.tsx",
175
- "line": 46,
176
- "character": 44
177
- },
178
- "name": "LaneId",
179
- "componentId": {
180
- "scope": "teambit.lanes",
181
- "name": "lane-id",
182
- "version": "0.0.305"
183
- }
184
- },
185
- "isOptional": true,
186
- "isSpread": false
187
- }
188
- ],
189
- "returnType": {
190
- "__schema": "TypeRefSchema",
191
- "location": {
192
- "filePath": "use-lane-components.tsx",
193
- "line": 46,
194
- "character": 1
195
- },
196
- "name": "UseLaneComponentsResult",
197
- "internalFilePath": "use-lane-components.tsx"
198
- },
199
- "modifiers": [
200
- "export"
201
- ]
202
- }
203
- ],
204
- "internals": [
205
- {
206
- "__schema": "ModuleSchema",
207
- "location": {
208
- "filePath": "use-lane-components.tsx",
209
- "line": 6,
210
- "character": 1
211
- },
212
- "exports": [
213
- {
214
- "__schema": "VariableLikeSchema",
215
- "location": {
216
- "filePath": "use-lane-components.tsx",
217
- "line": 6,
218
- "character": 7
219
- },
220
- "signature": "const GET_LANE_COMPONENTS: DocumentNode",
221
- "name": "GET_LANE_COMPONENTS",
222
- "type": {
223
- "__schema": "InferenceTypeSchema",
224
- "location": {
225
- "filePath": "use-lane-components.tsx",
226
- "line": 6,
227
- "character": 7
228
- },
229
- "type": "DocumentNode"
230
- },
231
- "isOptional": false,
232
- "defaultValue": "gql`\n query LaneComponent($ids: [String!], $extensionId: String, $skipList: Boolean!) {\n lanes {\n id\n list(ids: $ids) @skip(if: $skipList) {\n id {\n name\n scope\n }\n hash\n components {\n ...componentOverviewFields\n }\n readmeComponent {\n ...componentOverviewFields\n }\n }\n default {\n id {\n name\n scope\n }\n hash\n components {\n ...componentOverviewFields\n }\n }\n }\n getHost(id: $extensionId) {\n id\n }\n }\n ${componentOverviewFields}\n`"
233
- }
234
- ],
235
- "internals": []
236
- }
237
- ]
238
- }
239
- ],
240
- "componentId": {
241
- "scope": "teambit.lanes",
242
- "name": "hooks/use-lane-components",
243
- "version": "54a44c60200475b16a9c22b88c46629a3783adc9"
244
- },
245
- "taggedModuleExports": []
246
- }
@@ -1 +0,0 @@
1
- (function(root,factory){typeof exports=="object"&&typeof module=="object"?module.exports=factory():typeof define=="function"&&define.amd?define([],factory):typeof exports=="object"?exports["teambit.lanes/hooks/use-lane-components-preview"]=factory():root["teambit.lanes/hooks/use-lane-components-preview"]=factory()})(self,()=>(()=>{"use strict";var __webpack_require__={};__webpack_require__.d=(exports2,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports2,key)&&Object.defineProperty(exports2,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports2=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports2,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{compositions:()=>compositions,compositions_metadata:()=>compositions_metadata,overview:()=>overview});var __bit_component={id:"teambit.lanes/hooks/use-lane-components@54a44c60200475b16a9c22b88c46629a3783adc9",homepage:"https://bit.cloud/teambit/lanes/hooks/use-lane-components",exported:!0};const compositions=[],overview=[],compositions_metadata={compositions:[]};return __webpack_exports__})());