@teambit/component-sizer 1.0.188 → 1.0.189
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_component_sizer-preview.js +1 -1
- package/artifacts/schema.json +660 -0
- package/dist/component-sizer.aspect.js.map +1 -1
- package/dist/component-sizer.composition.js.map +1 -1
- package/dist/component-sizer.graphql.js.map +1 -1
- package/dist/component-sizer.main.runtime.js.map +1 -1
- package/dist/component-sizer.ui.runtime.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/preview-1710224484125.js +7 -0
- package/package.json +10 -10
- package/dist/preview-1710040632859.js +0 -7
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.component/component-sizer@1.0.
|
3
|
+
<testsuite name="teambit.component/component-sizer@1.0.189" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-sizer-preview"]=t():e["teambit.component/component-sizer-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-sizer-preview"]=t():e["teambit.component/component-sizer-preview"]=t()}(self,(()=>(()=>{"use strict";var e={78324:(e,t,o)=>{var n={id:"teambit.component/component-sizer@1.0.189",homepage:"https://bit.cloud/teambit/component/component-sizer",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const p=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/component-sizer.svg"}));p.__bit_component=n,t.Logo=p},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>l,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(78324);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var s={},a="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(a,c({},s,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"Adds the component's minified and Gzipped bundle size to the component docs (in the badges section).")))}d.isMDXComponent=!0;const m=[t],u=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
@@ -0,0 +1,660 @@
|
|
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": "ClassSchema",
|
18
|
+
"location": {
|
19
|
+
"filePath": "component-sizer.main.runtime.ts",
|
20
|
+
"line": 8,
|
21
|
+
"character": 1
|
22
|
+
},
|
23
|
+
"signature": "class ComponentSizerMain",
|
24
|
+
"name": "ComponentSizerMain",
|
25
|
+
"members": [
|
26
|
+
{
|
27
|
+
"__schema": "ConstructorSchema",
|
28
|
+
"location": {
|
29
|
+
"filePath": "component-sizer.main.runtime.ts",
|
30
|
+
"line": 9,
|
31
|
+
"character": 3
|
32
|
+
},
|
33
|
+
"signature": "constructor ComponentSizerMain(preview: PreviewMain): ComponentSizerMain",
|
34
|
+
"name": "constructor",
|
35
|
+
"params": [
|
36
|
+
{
|
37
|
+
"__schema": "ParameterSchema",
|
38
|
+
"location": {
|
39
|
+
"filePath": "component-sizer.main.runtime.ts",
|
40
|
+
"line": 13,
|
41
|
+
"character": 5
|
42
|
+
},
|
43
|
+
"name": "preview",
|
44
|
+
"type": {
|
45
|
+
"__schema": "TypeRefSchema",
|
46
|
+
"location": {
|
47
|
+
"filePath": "component-sizer.main.runtime.ts",
|
48
|
+
"line": 13,
|
49
|
+
"character": 22
|
50
|
+
},
|
51
|
+
"name": "PreviewMain",
|
52
|
+
"componentId": {
|
53
|
+
"scope": "teambit.preview",
|
54
|
+
"name": "preview"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"isOptional": false,
|
58
|
+
"isSpread": false
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"returnType": {
|
62
|
+
"__schema": "ThisTypeSchema",
|
63
|
+
"location": {
|
64
|
+
"filePath": "component-sizer.main.runtime.ts",
|
65
|
+
"line": 8,
|
66
|
+
"character": 1
|
67
|
+
},
|
68
|
+
"name": "ComponentSizerMain"
|
69
|
+
},
|
70
|
+
"modifiers": []
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"__schema": "FunctionLikeSchema",
|
74
|
+
"location": {
|
75
|
+
"filePath": "component-sizer.main.runtime.ts",
|
76
|
+
"line": 16,
|
77
|
+
"character": 3
|
78
|
+
},
|
79
|
+
"signature": "(method) ComponentSizerMain.getComponentSize(component: Component): ComponentPreviewSize | undefined",
|
80
|
+
"name": "getComponentSize",
|
81
|
+
"params": [
|
82
|
+
{
|
83
|
+
"__schema": "ParameterSchema",
|
84
|
+
"location": {
|
85
|
+
"filePath": "component-sizer.main.runtime.ts",
|
86
|
+
"line": 16,
|
87
|
+
"character": 20
|
88
|
+
},
|
89
|
+
"name": "component",
|
90
|
+
"type": {
|
91
|
+
"__schema": "TypeRefSchema",
|
92
|
+
"location": {
|
93
|
+
"filePath": "component-sizer.main.runtime.ts",
|
94
|
+
"line": 16,
|
95
|
+
"character": 31
|
96
|
+
},
|
97
|
+
"name": "Component",
|
98
|
+
"componentId": {
|
99
|
+
"scope": "teambit.component",
|
100
|
+
"name": "component"
|
101
|
+
}
|
102
|
+
},
|
103
|
+
"isOptional": false,
|
104
|
+
"isSpread": false
|
105
|
+
}
|
106
|
+
],
|
107
|
+
"returnType": {
|
108
|
+
"__schema": "TypeUnionSchema",
|
109
|
+
"location": {
|
110
|
+
"filePath": "component-sizer.main.runtime.ts",
|
111
|
+
"line": 16,
|
112
|
+
"character": 43
|
113
|
+
},
|
114
|
+
"types": [
|
115
|
+
{
|
116
|
+
"__schema": "TypeRefSchema",
|
117
|
+
"location": {
|
118
|
+
"filePath": "component-sizer.main.runtime.ts",
|
119
|
+
"line": 16,
|
120
|
+
"character": 43
|
121
|
+
},
|
122
|
+
"name": "ComponentPreviewSize",
|
123
|
+
"componentId": {
|
124
|
+
"scope": "teambit.preview",
|
125
|
+
"name": "preview"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"__schema": "KeywordTypeSchema",
|
130
|
+
"location": {
|
131
|
+
"filePath": "component-sizer.main.runtime.ts",
|
132
|
+
"line": 16,
|
133
|
+
"character": 66
|
134
|
+
},
|
135
|
+
"name": "undefined"
|
136
|
+
}
|
137
|
+
]
|
138
|
+
},
|
139
|
+
"modifiers": []
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"__schema": "VariableLikeSchema",
|
143
|
+
"location": {
|
144
|
+
"filePath": "component-sizer.main.runtime.ts",
|
145
|
+
"line": 20,
|
146
|
+
"character": 3
|
147
|
+
},
|
148
|
+
"signature": "(property) ComponentSizerMain.slots: never[]",
|
149
|
+
"name": "slots",
|
150
|
+
"type": {
|
151
|
+
"__schema": "InferenceTypeSchema",
|
152
|
+
"location": {
|
153
|
+
"filePath": "component-sizer.main.runtime.ts",
|
154
|
+
"line": 20,
|
155
|
+
"character": 3
|
156
|
+
},
|
157
|
+
"type": "never[]"
|
158
|
+
},
|
159
|
+
"isOptional": true,
|
160
|
+
"defaultValue": "[]"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"__schema": "VariableLikeSchema",
|
164
|
+
"location": {
|
165
|
+
"filePath": "component-sizer.main.runtime.ts",
|
166
|
+
"line": 21,
|
167
|
+
"character": 3
|
168
|
+
},
|
169
|
+
"signature": "(property) ComponentSizerMain.dependencies: Aspect[]",
|
170
|
+
"name": "dependencies",
|
171
|
+
"type": {
|
172
|
+
"__schema": "InferenceTypeSchema",
|
173
|
+
"location": {
|
174
|
+
"filePath": "component-sizer.main.runtime.ts",
|
175
|
+
"line": 21,
|
176
|
+
"character": 3
|
177
|
+
},
|
178
|
+
"type": "Aspect[]"
|
179
|
+
},
|
180
|
+
"isOptional": true,
|
181
|
+
"defaultValue": "[PreviewAspect, GraphqlAspect, ComponentAspect]"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"__schema": "VariableLikeSchema",
|
185
|
+
"location": {
|
186
|
+
"filePath": "component-sizer.main.runtime.ts",
|
187
|
+
"line": 22,
|
188
|
+
"character": 3
|
189
|
+
},
|
190
|
+
"signature": "(property) ComponentSizerMain.runtime: RuntimeDefinition",
|
191
|
+
"name": "runtime",
|
192
|
+
"type": {
|
193
|
+
"__schema": "InferenceTypeSchema",
|
194
|
+
"location": {
|
195
|
+
"filePath": "component-sizer.main.runtime.ts",
|
196
|
+
"line": 22,
|
197
|
+
"character": 3
|
198
|
+
},
|
199
|
+
"type": "RuntimeDefinition"
|
200
|
+
},
|
201
|
+
"isOptional": true,
|
202
|
+
"defaultValue": "MainRuntime"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"__schema": "FunctionLikeSchema",
|
206
|
+
"location": {
|
207
|
+
"filePath": "component-sizer.main.runtime.ts",
|
208
|
+
"line": 23,
|
209
|
+
"character": 3
|
210
|
+
},
|
211
|
+
"signature": "(method) ComponentSizerMain.provider([preview, graphql]: [PreviewMain, GraphqlMain]): Promise<ComponentSizerMain>",
|
212
|
+
"name": "provider",
|
213
|
+
"params": [
|
214
|
+
{
|
215
|
+
"__schema": "ParameterSchema",
|
216
|
+
"location": {
|
217
|
+
"filePath": "component-sizer.main.runtime.ts",
|
218
|
+
"line": 23,
|
219
|
+
"character": 25
|
220
|
+
},
|
221
|
+
"name": "[ preview, graphql ]",
|
222
|
+
"type": {
|
223
|
+
"__schema": "TupleTypeSchema",
|
224
|
+
"location": {
|
225
|
+
"filePath": "component-sizer.main.runtime.ts",
|
226
|
+
"line": 23,
|
227
|
+
"character": 45
|
228
|
+
},
|
229
|
+
"elements": [
|
230
|
+
{
|
231
|
+
"__schema": "TypeRefSchema",
|
232
|
+
"location": {
|
233
|
+
"filePath": "component-sizer.main.runtime.ts",
|
234
|
+
"line": 23,
|
235
|
+
"character": 46
|
236
|
+
},
|
237
|
+
"name": "PreviewMain",
|
238
|
+
"componentId": {
|
239
|
+
"scope": "teambit.preview",
|
240
|
+
"name": "preview"
|
241
|
+
}
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"__schema": "TypeRefSchema",
|
245
|
+
"location": {
|
246
|
+
"filePath": "component-sizer.main.runtime.ts",
|
247
|
+
"line": 23,
|
248
|
+
"character": 59
|
249
|
+
},
|
250
|
+
"name": "GraphqlMain",
|
251
|
+
"componentId": {
|
252
|
+
"scope": "teambit.harmony",
|
253
|
+
"name": "graphql"
|
254
|
+
}
|
255
|
+
}
|
256
|
+
]
|
257
|
+
},
|
258
|
+
"isOptional": false,
|
259
|
+
"isSpread": false
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"returnType": {
|
263
|
+
"__schema": "InferenceTypeSchema",
|
264
|
+
"location": {
|
265
|
+
"filePath": "component-sizer.main.runtime.ts",
|
266
|
+
"line": 23,
|
267
|
+
"character": 3
|
268
|
+
},
|
269
|
+
"type": "Promise<ComponentSizerMain>"
|
270
|
+
},
|
271
|
+
"modifiers": [
|
272
|
+
"static",
|
273
|
+
"async"
|
274
|
+
]
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"extendsNodes": [],
|
278
|
+
"implementNodes": []
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"__schema": "UnImplementedSchema",
|
282
|
+
"location": {
|
283
|
+
"filePath": "index.ts",
|
284
|
+
"line": 4,
|
285
|
+
"character": 16
|
286
|
+
},
|
287
|
+
"name": "ComponentSizerAspect",
|
288
|
+
"type": "Identifier"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"__schema": "VariableLikeSchema",
|
292
|
+
"location": {
|
293
|
+
"filePath": "component-sizer.aspect.ts",
|
294
|
+
"line": 3,
|
295
|
+
"character": 14
|
296
|
+
},
|
297
|
+
"signature": "const ComponentSizerAspect: Aspect",
|
298
|
+
"name": "ComponentSizerAspect",
|
299
|
+
"type": {
|
300
|
+
"__schema": "TypeRefSchema",
|
301
|
+
"location": {
|
302
|
+
"filePath": "component-sizer.aspect.ts",
|
303
|
+
"line": 3,
|
304
|
+
"character": 14
|
305
|
+
},
|
306
|
+
"name": "Aspect",
|
307
|
+
"componentId": {
|
308
|
+
"scope": "teambit.harmony",
|
309
|
+
"name": "harmony",
|
310
|
+
"version": "0.4.6"
|
311
|
+
}
|
312
|
+
},
|
313
|
+
"isOptional": false,
|
314
|
+
"defaultValue": "Aspect.create({\n id: 'teambit.component/component-sizer',\n})"
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"internals": []
|
318
|
+
},
|
319
|
+
"internals": [
|
320
|
+
{
|
321
|
+
"__schema": "ModuleSchema",
|
322
|
+
"location": {
|
323
|
+
"filePath": "component-sizer.main.runtime.ts",
|
324
|
+
"line": 1,
|
325
|
+
"character": 1
|
326
|
+
},
|
327
|
+
"exports": [
|
328
|
+
{
|
329
|
+
"__schema": "ClassSchema",
|
330
|
+
"location": {
|
331
|
+
"filePath": "component-sizer.main.runtime.ts",
|
332
|
+
"line": 8,
|
333
|
+
"character": 1
|
334
|
+
},
|
335
|
+
"signature": "class ComponentSizerMain",
|
336
|
+
"name": "ComponentSizerMain",
|
337
|
+
"members": [
|
338
|
+
{
|
339
|
+
"__schema": "ConstructorSchema",
|
340
|
+
"location": {
|
341
|
+
"filePath": "component-sizer.main.runtime.ts",
|
342
|
+
"line": 9,
|
343
|
+
"character": 3
|
344
|
+
},
|
345
|
+
"signature": "constructor ComponentSizerMain(preview: PreviewMain): ComponentSizerMain",
|
346
|
+
"name": "constructor",
|
347
|
+
"params": [
|
348
|
+
{
|
349
|
+
"__schema": "ParameterSchema",
|
350
|
+
"location": {
|
351
|
+
"filePath": "component-sizer.main.runtime.ts",
|
352
|
+
"line": 13,
|
353
|
+
"character": 5
|
354
|
+
},
|
355
|
+
"name": "preview",
|
356
|
+
"type": {
|
357
|
+
"__schema": "TypeRefSchema",
|
358
|
+
"location": {
|
359
|
+
"filePath": "component-sizer.main.runtime.ts",
|
360
|
+
"line": 13,
|
361
|
+
"character": 22
|
362
|
+
},
|
363
|
+
"name": "PreviewMain",
|
364
|
+
"componentId": {
|
365
|
+
"scope": "teambit.preview",
|
366
|
+
"name": "preview"
|
367
|
+
}
|
368
|
+
},
|
369
|
+
"isOptional": false,
|
370
|
+
"isSpread": false
|
371
|
+
}
|
372
|
+
],
|
373
|
+
"returnType": {
|
374
|
+
"__schema": "ThisTypeSchema",
|
375
|
+
"location": {
|
376
|
+
"filePath": "component-sizer.main.runtime.ts",
|
377
|
+
"line": 8,
|
378
|
+
"character": 1
|
379
|
+
},
|
380
|
+
"name": "ComponentSizerMain"
|
381
|
+
},
|
382
|
+
"modifiers": []
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"__schema": "FunctionLikeSchema",
|
386
|
+
"location": {
|
387
|
+
"filePath": "component-sizer.main.runtime.ts",
|
388
|
+
"line": 16,
|
389
|
+
"character": 3
|
390
|
+
},
|
391
|
+
"signature": "(method) ComponentSizerMain.getComponentSize(component: Component): ComponentPreviewSize | undefined",
|
392
|
+
"name": "getComponentSize",
|
393
|
+
"params": [
|
394
|
+
{
|
395
|
+
"__schema": "ParameterSchema",
|
396
|
+
"location": {
|
397
|
+
"filePath": "component-sizer.main.runtime.ts",
|
398
|
+
"line": 16,
|
399
|
+
"character": 20
|
400
|
+
},
|
401
|
+
"name": "component",
|
402
|
+
"type": {
|
403
|
+
"__schema": "TypeRefSchema",
|
404
|
+
"location": {
|
405
|
+
"filePath": "component-sizer.main.runtime.ts",
|
406
|
+
"line": 16,
|
407
|
+
"character": 31
|
408
|
+
},
|
409
|
+
"name": "Component",
|
410
|
+
"componentId": {
|
411
|
+
"scope": "teambit.component",
|
412
|
+
"name": "component"
|
413
|
+
}
|
414
|
+
},
|
415
|
+
"isOptional": false,
|
416
|
+
"isSpread": false
|
417
|
+
}
|
418
|
+
],
|
419
|
+
"returnType": {
|
420
|
+
"__schema": "TypeUnionSchema",
|
421
|
+
"location": {
|
422
|
+
"filePath": "component-sizer.main.runtime.ts",
|
423
|
+
"line": 16,
|
424
|
+
"character": 43
|
425
|
+
},
|
426
|
+
"types": [
|
427
|
+
{
|
428
|
+
"__schema": "TypeRefSchema",
|
429
|
+
"location": {
|
430
|
+
"filePath": "component-sizer.main.runtime.ts",
|
431
|
+
"line": 16,
|
432
|
+
"character": 43
|
433
|
+
},
|
434
|
+
"name": "ComponentPreviewSize",
|
435
|
+
"componentId": {
|
436
|
+
"scope": "teambit.preview",
|
437
|
+
"name": "preview"
|
438
|
+
}
|
439
|
+
},
|
440
|
+
{
|
441
|
+
"__schema": "KeywordTypeSchema",
|
442
|
+
"location": {
|
443
|
+
"filePath": "component-sizer.main.runtime.ts",
|
444
|
+
"line": 16,
|
445
|
+
"character": 66
|
446
|
+
},
|
447
|
+
"name": "undefined"
|
448
|
+
}
|
449
|
+
]
|
450
|
+
},
|
451
|
+
"modifiers": []
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"__schema": "VariableLikeSchema",
|
455
|
+
"location": {
|
456
|
+
"filePath": "component-sizer.main.runtime.ts",
|
457
|
+
"line": 20,
|
458
|
+
"character": 3
|
459
|
+
},
|
460
|
+
"signature": "(property) ComponentSizerMain.slots: never[]",
|
461
|
+
"name": "slots",
|
462
|
+
"type": {
|
463
|
+
"__schema": "InferenceTypeSchema",
|
464
|
+
"location": {
|
465
|
+
"filePath": "component-sizer.main.runtime.ts",
|
466
|
+
"line": 20,
|
467
|
+
"character": 3
|
468
|
+
},
|
469
|
+
"type": "never[]"
|
470
|
+
},
|
471
|
+
"isOptional": true,
|
472
|
+
"defaultValue": "[]"
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"__schema": "VariableLikeSchema",
|
476
|
+
"location": {
|
477
|
+
"filePath": "component-sizer.main.runtime.ts",
|
478
|
+
"line": 21,
|
479
|
+
"character": 3
|
480
|
+
},
|
481
|
+
"signature": "(property) ComponentSizerMain.dependencies: Aspect[]",
|
482
|
+
"name": "dependencies",
|
483
|
+
"type": {
|
484
|
+
"__schema": "InferenceTypeSchema",
|
485
|
+
"location": {
|
486
|
+
"filePath": "component-sizer.main.runtime.ts",
|
487
|
+
"line": 21,
|
488
|
+
"character": 3
|
489
|
+
},
|
490
|
+
"type": "Aspect[]"
|
491
|
+
},
|
492
|
+
"isOptional": true,
|
493
|
+
"defaultValue": "[PreviewAspect, GraphqlAspect, ComponentAspect]"
|
494
|
+
},
|
495
|
+
{
|
496
|
+
"__schema": "VariableLikeSchema",
|
497
|
+
"location": {
|
498
|
+
"filePath": "component-sizer.main.runtime.ts",
|
499
|
+
"line": 22,
|
500
|
+
"character": 3
|
501
|
+
},
|
502
|
+
"signature": "(property) ComponentSizerMain.runtime: RuntimeDefinition",
|
503
|
+
"name": "runtime",
|
504
|
+
"type": {
|
505
|
+
"__schema": "InferenceTypeSchema",
|
506
|
+
"location": {
|
507
|
+
"filePath": "component-sizer.main.runtime.ts",
|
508
|
+
"line": 22,
|
509
|
+
"character": 3
|
510
|
+
},
|
511
|
+
"type": "RuntimeDefinition"
|
512
|
+
},
|
513
|
+
"isOptional": true,
|
514
|
+
"defaultValue": "MainRuntime"
|
515
|
+
},
|
516
|
+
{
|
517
|
+
"__schema": "FunctionLikeSchema",
|
518
|
+
"location": {
|
519
|
+
"filePath": "component-sizer.main.runtime.ts",
|
520
|
+
"line": 23,
|
521
|
+
"character": 3
|
522
|
+
},
|
523
|
+
"signature": "(method) ComponentSizerMain.provider([preview, graphql]: [PreviewMain, GraphqlMain]): Promise<ComponentSizerMain>",
|
524
|
+
"name": "provider",
|
525
|
+
"params": [
|
526
|
+
{
|
527
|
+
"__schema": "ParameterSchema",
|
528
|
+
"location": {
|
529
|
+
"filePath": "component-sizer.main.runtime.ts",
|
530
|
+
"line": 23,
|
531
|
+
"character": 25
|
532
|
+
},
|
533
|
+
"name": "[ preview, graphql ]",
|
534
|
+
"type": {
|
535
|
+
"__schema": "TupleTypeSchema",
|
536
|
+
"location": {
|
537
|
+
"filePath": "component-sizer.main.runtime.ts",
|
538
|
+
"line": 23,
|
539
|
+
"character": 45
|
540
|
+
},
|
541
|
+
"elements": [
|
542
|
+
{
|
543
|
+
"__schema": "TypeRefSchema",
|
544
|
+
"location": {
|
545
|
+
"filePath": "component-sizer.main.runtime.ts",
|
546
|
+
"line": 23,
|
547
|
+
"character": 46
|
548
|
+
},
|
549
|
+
"name": "PreviewMain",
|
550
|
+
"componentId": {
|
551
|
+
"scope": "teambit.preview",
|
552
|
+
"name": "preview"
|
553
|
+
}
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"__schema": "TypeRefSchema",
|
557
|
+
"location": {
|
558
|
+
"filePath": "component-sizer.main.runtime.ts",
|
559
|
+
"line": 23,
|
560
|
+
"character": 59
|
561
|
+
},
|
562
|
+
"name": "GraphqlMain",
|
563
|
+
"componentId": {
|
564
|
+
"scope": "teambit.harmony",
|
565
|
+
"name": "graphql"
|
566
|
+
}
|
567
|
+
}
|
568
|
+
]
|
569
|
+
},
|
570
|
+
"isOptional": false,
|
571
|
+
"isSpread": false
|
572
|
+
}
|
573
|
+
],
|
574
|
+
"returnType": {
|
575
|
+
"__schema": "InferenceTypeSchema",
|
576
|
+
"location": {
|
577
|
+
"filePath": "component-sizer.main.runtime.ts",
|
578
|
+
"line": 23,
|
579
|
+
"character": 3
|
580
|
+
},
|
581
|
+
"type": "Promise<ComponentSizerMain>"
|
582
|
+
},
|
583
|
+
"modifiers": [
|
584
|
+
"static",
|
585
|
+
"async"
|
586
|
+
]
|
587
|
+
}
|
588
|
+
],
|
589
|
+
"extendsNodes": [],
|
590
|
+
"implementNodes": []
|
591
|
+
}
|
592
|
+
],
|
593
|
+
"internals": [
|
594
|
+
{
|
595
|
+
"__schema": "UnImplementedSchema",
|
596
|
+
"location": {
|
597
|
+
"filePath": "component-sizer.main.runtime.ts",
|
598
|
+
"line": 30,
|
599
|
+
"character": 1
|
600
|
+
},
|
601
|
+
"name": "ComponentSizerAspect.addRuntime(ComponentSizerMain);",
|
602
|
+
"type": "ExpressionStatement"
|
603
|
+
}
|
604
|
+
]
|
605
|
+
},
|
606
|
+
{
|
607
|
+
"__schema": "ModuleSchema",
|
608
|
+
"location": {
|
609
|
+
"filePath": "component-sizer.aspect.ts",
|
610
|
+
"line": 1,
|
611
|
+
"character": 1
|
612
|
+
},
|
613
|
+
"exports": [
|
614
|
+
{
|
615
|
+
"__schema": "VariableLikeSchema",
|
616
|
+
"location": {
|
617
|
+
"filePath": "component-sizer.aspect.ts",
|
618
|
+
"line": 3,
|
619
|
+
"character": 14
|
620
|
+
},
|
621
|
+
"signature": "const ComponentSizerAspect: Aspect",
|
622
|
+
"name": "ComponentSizerAspect",
|
623
|
+
"type": {
|
624
|
+
"__schema": "TypeRefSchema",
|
625
|
+
"location": {
|
626
|
+
"filePath": "component-sizer.aspect.ts",
|
627
|
+
"line": 3,
|
628
|
+
"character": 14
|
629
|
+
},
|
630
|
+
"name": "Aspect",
|
631
|
+
"componentId": {
|
632
|
+
"scope": "teambit.harmony",
|
633
|
+
"name": "harmony",
|
634
|
+
"version": "0.4.6"
|
635
|
+
}
|
636
|
+
},
|
637
|
+
"isOptional": false,
|
638
|
+
"defaultValue": "Aspect.create({\n id: 'teambit.component/component-sizer',\n})"
|
639
|
+
},
|
640
|
+
{
|
641
|
+
"__schema": "UnImplementedSchema",
|
642
|
+
"location": {
|
643
|
+
"filePath": "component-sizer.aspect.ts",
|
644
|
+
"line": 7,
|
645
|
+
"character": 16
|
646
|
+
},
|
647
|
+
"name": "ComponentSizerAspect",
|
648
|
+
"type": "Identifier"
|
649
|
+
}
|
650
|
+
],
|
651
|
+
"internals": []
|
652
|
+
}
|
653
|
+
],
|
654
|
+
"componentId": {
|
655
|
+
"scope": "teambit.component",
|
656
|
+
"name": "component-sizer",
|
657
|
+
"version": "1.0.189"
|
658
|
+
},
|
659
|
+
"taggedModuleExports": []
|
660
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_harmony","data","require","ComponentSizerAspect","exports","Aspect","create","id","_default","default"],"sources":["component-sizer.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ComponentSizerAspect = Aspect.create({\n id: 'teambit.component/component-sizer',\n});\n\nexport default ComponentSizerAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAChDC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GAEYN,oBAAoB"}
|
1
|
+
{"version":3,"names":["_harmony","data","require","ComponentSizerAspect","exports","Aspect","create","id","_default","default"],"sources":["component-sizer.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ComponentSizerAspect = Aspect.create({\n id: 'teambit.component/component-sizer',\n});\n\nexport default ComponentSizerAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAChDC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GAEYN,oBAAoB","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["component-sizer.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/component-sizer.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA6D,CAAE,CAC3F,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA"}
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["component-sizer.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/component-sizer.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA6D,CAAE,CAC3F,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_graphqlTag","data","require","componentSizerSchema","componentSizerMain","typeDefs","gql","resolvers","Component","size","component","getComponentSize"],"sources":["component-sizer.graphql.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport { gql } from 'graphql-tag';\n\nimport { ComponentSizerMain } from './component-sizer.main.runtime';\n\nexport function componentSizerSchema(componentSizerMain: ComponentSizerMain): Schema {\n return {\n typeDefs: gql`\n type ComponentSizedFile {\n name: String\n size: Int\n compressedSize: Int\n }\n\n type ComponentSize {\n # breakdown for the component files sizes\n files: [ComponentSizedFile]\n # breakdown for the component assets sizes\n assets: [ComponentSizedFile]\n # total size of the component files (like js and css) (without assets)\n totalFiles: Int\n # total size of the component assets (like pngs) (without files)\n totalAssets: Int\n # total size of the component files and assets\n total: Int\n\n compressedTotalFiles: Int\n compressedTotalAssets: Int\n compressedTotal: Int\n }\n\n extend type Component {\n # size of the component bundle\n size: ComponentSize\n }\n `,\n resolvers: {\n Component: {\n size: (component: Component) => {\n return componentSizerMain.getComponentSize(component);\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;AAEA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIO,SAASE,oBAAoBA,CAACC,kBAAsC,EAAU;EACnF,OAAO;IACLC,QAAQ,EAAE,IAAAC,iBAAG,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,SAAS,EAAE;MACTC,SAAS,EAAE;QACTC,IAAI,EAAGC,SAAoB,IAAK;UAC9B,OAAON,kBAAkB,CAACO,gBAAgB,CAACD,SAAS,CAAC;QACvD;MACF;IACF;EACF,CAAC;AACH"}
|
1
|
+
{"version":3,"names":["_graphqlTag","data","require","componentSizerSchema","componentSizerMain","typeDefs","gql","resolvers","Component","size","component","getComponentSize"],"sources":["component-sizer.graphql.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport { gql } from 'graphql-tag';\n\nimport { ComponentSizerMain } from './component-sizer.main.runtime';\n\nexport function componentSizerSchema(componentSizerMain: ComponentSizerMain): Schema {\n return {\n typeDefs: gql`\n type ComponentSizedFile {\n name: String\n size: Int\n compressedSize: Int\n }\n\n type ComponentSize {\n # breakdown for the component files sizes\n files: [ComponentSizedFile]\n # breakdown for the component assets sizes\n assets: [ComponentSizedFile]\n # total size of the component files (like js and css) (without assets)\n totalFiles: Int\n # total size of the component assets (like pngs) (without files)\n totalAssets: Int\n # total size of the component files and assets\n total: Int\n\n compressedTotalFiles: Int\n compressedTotalAssets: Int\n compressedTotal: Int\n }\n\n extend type Component {\n # size of the component bundle\n size: ComponentSize\n }\n `,\n resolvers: {\n Component: {\n size: (component: Component) => {\n return componentSizerMain.getComponentSize(component);\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;AAEA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIO,SAASE,oBAAoBA,CAACC,kBAAsC,EAAU;EACnF,OAAO;IACLC,QAAQ,EAAE,IAAAC,iBAAG,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,SAAS,EAAE;MACTC,SAAS,EAAE;QACTC,IAAI,EAAGC,SAAoB,IAAK;UAC9B,OAAON,kBAAkB,CAACO,gBAAgB,CAACD,SAAS,CAAC;QACvD;MACF;IACF;EACF,CAAC;AACH","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_component","_graphql","_preview","_componentSizer","_componentSizer2","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentSizerMain","constructor","preview","getComponentSize","component","getComponentBundleSize","provider","graphql","componentSizer","register","componentSizerSchema","exports","PreviewAspect","GraphqlAspect","ComponentAspect","MainRuntime","ComponentSizerAspect","addRuntime"],"sources":["component-sizer.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { ComponentAspect, Component } from '@teambit/component';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { PreviewAspect, ComponentPreviewSize, PreviewMain } from '@teambit/preview';\nimport { ComponentSizerAspect } from './component-sizer.aspect';\nimport { componentSizerSchema } from './component-sizer.graphql';\n\nexport class ComponentSizerMain {\n constructor(\n /**\n * preview aspect.\n */\n private preview: PreviewMain\n ) {}\n\n getComponentSize(component: Component): ComponentPreviewSize | undefined {\n return this.preview.getComponentBundleSize(component);\n }\n\n static slots = [];\n static dependencies = [PreviewAspect, GraphqlAspect, ComponentAspect];\n static runtime = MainRuntime;\n static async provider([preview, graphql]: [PreviewMain, GraphqlMain]) {\n const componentSizer = new ComponentSizerMain(preview);\n graphql.register(componentSizerSchema(componentSizer));\n return componentSizer;\n }\n}\n\nComponentSizerAspect.addRuntime(ComponentSizerMain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,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAE1D,MAAMW,kBAAkB,CAAC;EAC9BC,WAAWA;EACT;AACJ;AACA;EACYC,OAAoB,EAC5B;IAAA,KADQA,OAAoB,GAApBA,OAAoB;EAC3B;EAEHC,gBAAgBA,CAACC,SAAoB,EAAoC;IACvE,OAAO,IAAI,CAACF,OAAO,CAACG,sBAAsB,CAACD,SAAS,CAAC;EACvD;EAKA,aAAaE,QAAQA,CAAC,CAACJ,OAAO,EAAEK,OAAO,CAA6B,EAAE;IACpE,MAAMC,cAAc,GAAG,IAAIR,kBAAkB,CAACE,OAAO,CAAC;IACtDK,OAAO,CAACE,QAAQ,CAAC,IAAAC,uCAAoB,EAACF,cAAc,CAAC,CAAC;IACtD,OAAOA,cAAc;EACvB;AACF;AAACG,OAAA,CAAAX,kBAAA,GAAAA,kBAAA;AAAArB,eAAA,CApBYqB,kBAAkB,WAYd,EAAE;AAAArB,eAAA,CAZNqB,kBAAkB,kBAaP,CAACY,wBAAa,EAAEC,wBAAa,EAAEC,4BAAe,CAAC;AAAAnC,eAAA,CAb1DqB,kBAAkB,aAcZe,kBAAW;AAQ9BC,sCAAoB,CAACC,UAAU,CAACjB,kBAAkB,CAAC"}
|
1
|
+
{"version":3,"names":["_cli","data","require","_component","_graphql","_preview","_componentSizer","_componentSizer2","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentSizerMain","constructor","preview","getComponentSize","component","getComponentBundleSize","provider","graphql","componentSizer","register","componentSizerSchema","exports","PreviewAspect","GraphqlAspect","ComponentAspect","MainRuntime","ComponentSizerAspect","addRuntime"],"sources":["component-sizer.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { ComponentAspect, Component } from '@teambit/component';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { PreviewAspect, ComponentPreviewSize, PreviewMain } from '@teambit/preview';\nimport { ComponentSizerAspect } from './component-sizer.aspect';\nimport { componentSizerSchema } from './component-sizer.graphql';\n\nexport class ComponentSizerMain {\n constructor(\n /**\n * preview aspect.\n */\n private preview: PreviewMain\n ) {}\n\n getComponentSize(component: Component): ComponentPreviewSize | undefined {\n return this.preview.getComponentBundleSize(component);\n }\n\n static slots = [];\n static dependencies = [PreviewAspect, GraphqlAspect, ComponentAspect];\n static runtime = MainRuntime;\n static async provider([preview, graphql]: [PreviewMain, GraphqlMain]) {\n const componentSizer = new ComponentSizerMain(preview);\n graphql.register(componentSizerSchema(componentSizer));\n return componentSizer;\n }\n}\n\nComponentSizerAspect.addRuntime(ComponentSizerMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,gBAAA;EAAA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AEK,OAAO,CAA6B,EAAE;IACpE,MAAMC,cAAc,GAAG,IAAIR,kBAAkB,CAACE,OAAO,CAAC;IACtDK,OAAO,CAACE,QAAQ,CAAC,IAAAC,uCAAoB,EAACF,cAAc,CAAC,CAAC;IACtD,OAAOA,cAAc;EACvB;AACF;AAACG,OAAA,CAAAX,kBAAA,GAAAA,kBAAA;AAAArB,eAAA,CApBYqB,kBAAkB,WAYd,EAAE;AAAArB,eAAA,CAZNqB,kBAAkB,kBAaP,CAACY,wBAAa,EAAEC,wBAAa,EAAEC,4BAAe,CAAC;AAAAnC,eAAA,CAb1DqB,kBAAkB,aAcZe,kBAAW;AAQ9BC,sCAAoB,CAACC,UAAU,CAACjB,kBAAkB,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_ui","_docs","_componentUi","_componentSizer","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","SizerUIRuntime","provider","docs","registerTitleBadge","component","badge","legacyComponentModel","createElement","ComponentSize","weight","exports","DocsAspect","UIRuntime","ComponentSizerAspect","addRuntime"],"sources":["component-sizer.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { ComponentModel } from '@teambit/component';\nimport { DocsAspect, DocsUI } from '@teambit/docs';\nimport { ComponentSize } from '@teambit/component.ui.component-size';\nimport { ComponentSizerAspect } from './component-sizer.aspect';\n\n/**\n * Component size aspect.\n */\nexport class SizerUIRuntime {\n static dependencies = [DocsAspect];\n\n static runtime = UIRuntime;\n\n static async provider([docs]: [DocsUI]) {\n docs.registerTitleBadge({\n component: function badge({ legacyComponentModel }: { legacyComponentModel: ComponentModel }) {\n return <ComponentSize legacyComponentModel={legacyComponentModel} />;\n },\n weight: 30,\n });\n }\n}\n\nComponentSizerAspect.addRuntime(SizerUIRuntime);\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CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEhE;AACA;AACA;AACO,MAAMW,cAAc,CAAC;EAK1B,aAAaC,QAAQA,CAAC,CAACC,IAAI,CAAW,EAAE;IACtCA,IAAI,CAACC,kBAAkB,CAAC;MACtBC,SAAS,EAAE,SAASC,KAAKA,CAAC;QAAEC;MAA+D,CAAC,EAAE;QAC5F,oBAAOrC,MAAA,GAAAU,OAAA,CAAA4B,aAAA,CAAChC,YAAA,GAAAiC,aAAa;UAACF,oBAAoB,EAAEA;QAAqB,CAAE,CAAC;MACtE,CAAC;MACDG,MAAM,EAAE;IACV,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAAV,cAAA,GAAAA,cAAA;AAAApB,eAAA,CAbYoB,cAAc,kBACH,CAACW,kBAAU,CAAC;AAAA/B,eAAA,CADvBoB,cAAc,aAGRY,eAAS;AAY5BC,sCAAoB,CAACC,UAAU,CAACd,cAAc,CAAC"}
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","_ui","_docs","_componentUi","_componentSizer","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","SizerUIRuntime","provider","docs","registerTitleBadge","component","badge","legacyComponentModel","createElement","ComponentSize","weight","exports","DocsAspect","UIRuntime","ComponentSizerAspect","addRuntime"],"sources":["component-sizer.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport { ComponentModel } from '@teambit/component';\nimport { DocsAspect, DocsUI } from '@teambit/docs';\nimport { ComponentSize } from '@teambit/component.ui.component-size';\nimport { ComponentSizerAspect } from './component-sizer.aspect';\n\n/**\n * Component size aspect.\n */\nexport class SizerUIRuntime {\n static dependencies = [DocsAspect];\n\n static runtime = UIRuntime;\n\n static async provider([docs]: [DocsUI]) {\n docs.registerTitleBadge({\n component: function badge({ legacyComponentModel }: { legacyComponentModel: ComponentModel }) {\n return <ComponentSize legacyComponentModel={legacyComponentModel} />;\n },\n weight: 30,\n });\n }\n}\n\nComponentSizerAspect.addRuntime(SizerUIRuntime);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,IAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,gBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,eAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgE,SAAAC,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,G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
-
{"version":3,"names":["_componentSizer","data","require","_default","exports","default","ComponentSizerAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentSizerAspect } from './component-sizer.aspect';\n\nexport type { ComponentSizerMain } from './component-sizer.main.runtime';\nexport default ComponentSizerAspect;\nexport { ComponentSizerAspect };\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgE,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGjDC,sCAAoB"}
|
1
|
+
{"version":3,"names":["_componentSizer","data","require","_default","exports","default","ComponentSizerAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentSizerAspect } from './component-sizer.aspect';\n\nexport type { ComponentSizerMain } from './component-sizer.main.runtime';\nexport default ComponentSizerAspect;\nexport { ComponentSizerAspect };\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgE,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGjDC,sCAAoB","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.component_component-sizer@1.0.189/dist/component-sizer.composition.js';
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.component_component-sizer@1.0.189/dist/component-sizer.docs.mdx';
|
3
|
+
|
4
|
+
export const compositions = [compositions_0];
|
5
|
+
export const overview = [overview_0];
|
6
|
+
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/package.json
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/component-sizer",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.189",
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/component-sizer",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "component-sizer",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.189"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"graphql-tag": "2.12.1",
|
13
13
|
"@teambit/harmony": "0.4.6",
|
14
|
-
"@teambit/component.ui.component-size": "0.0.
|
15
|
-
"@teambit/component": "1.0.
|
16
|
-
"@teambit/graphql": "1.0.
|
17
|
-
"@teambit/cli": "0.0.
|
18
|
-
"@teambit/preview": "1.0.
|
19
|
-
"@teambit/docs": "1.0.
|
20
|
-
"@teambit/ui": "1.0.
|
14
|
+
"@teambit/component.ui.component-size": "0.0.77",
|
15
|
+
"@teambit/component": "1.0.189",
|
16
|
+
"@teambit/graphql": "1.0.189",
|
17
|
+
"@teambit/cli": "0.0.856",
|
18
|
+
"@teambit/preview": "1.0.189",
|
19
|
+
"@teambit/docs": "1.0.189",
|
20
|
+
"@teambit/ui": "1.0.189"
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
23
23
|
"@types/mocha": "9.1.0",
|
24
24
|
"chai": "4.3.0",
|
25
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
25
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.27"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
28
|
"react": "^17.0.0 || ^18.0.0",
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-sizer@1.0.188/dist/component-sizer.composition.js';
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-sizer@1.0.188/dist/component-sizer.docs.mdx';
|
3
|
-
|
4
|
-
export const compositions = [compositions_0];
|
5
|
-
export const overview = [overview_0];
|
6
|
-
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|