@teambit/component-sizer 1.0.187 → 1.0.188
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/dist/component-sizer.graphql.js +2 -3
- package/dist/component-sizer.graphql.js.map +1 -1
- package/dist/{preview-1709867881461.js → preview-1710040632859.js} +2 -2
- package/package.json +7 -7
- package/artifacts/schema.json +0 -620
@@ -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.188" 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={28889:(e,t,o)=>{var n={id:"teambit.component/component-sizer@1.0.188",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(28889);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})()));
|
@@ -5,16 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.componentSizerSchema = componentSizerSchema;
|
7
7
|
function _graphqlTag() {
|
8
|
-
const data =
|
8
|
+
const data = require("graphql-tag");
|
9
9
|
_graphqlTag = function () {
|
10
10
|
return data;
|
11
11
|
};
|
12
12
|
return data;
|
13
13
|
}
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
14
|
function componentSizerSchema(componentSizerMain) {
|
16
15
|
return {
|
17
|
-
typeDefs: (0, _graphqlTag().
|
16
|
+
typeDefs: (0, _graphqlTag().gql)`
|
18
17
|
type ComponentSizedFile {
|
19
18
|
name: String
|
20
19
|
size: Int
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_graphqlTag","data","
|
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,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-sizer@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-sizer@1.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
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/component-sizer",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.188",
|
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.188"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"graphql-tag": "2.12.1",
|
13
13
|
"@teambit/harmony": "0.4.6",
|
14
14
|
"@teambit/component.ui.component-size": "0.0.76",
|
15
|
-
"@teambit/component": "1.0.
|
16
|
-
"@teambit/graphql": "1.0.
|
15
|
+
"@teambit/component": "1.0.188",
|
16
|
+
"@teambit/graphql": "1.0.188",
|
17
17
|
"@teambit/cli": "0.0.855",
|
18
|
-
"@teambit/preview": "1.0.
|
19
|
-
"@teambit/docs": "1.0.
|
20
|
-
"@teambit/ui": "1.0.
|
18
|
+
"@teambit/preview": "1.0.188",
|
19
|
+
"@teambit/docs": "1.0.188",
|
20
|
+
"@teambit/ui": "1.0.188"
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
23
23
|
"@types/mocha": "9.1.0",
|
package/artifacts/schema.json
DELETED
@@ -1,620 +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": "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
|
-
},
|
53
|
-
"isOptional": false,
|
54
|
-
"isSpread": false
|
55
|
-
}
|
56
|
-
],
|
57
|
-
"returnType": {
|
58
|
-
"__schema": "ThisTypeSchema",
|
59
|
-
"location": {
|
60
|
-
"filePath": "component-sizer.main.runtime.ts",
|
61
|
-
"line": 8,
|
62
|
-
"character": 1
|
63
|
-
},
|
64
|
-
"name": "ComponentSizerMain"
|
65
|
-
},
|
66
|
-
"modifiers": []
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"__schema": "FunctionLikeSchema",
|
70
|
-
"location": {
|
71
|
-
"filePath": "component-sizer.main.runtime.ts",
|
72
|
-
"line": 16,
|
73
|
-
"character": 3
|
74
|
-
},
|
75
|
-
"signature": "(method) ComponentSizerMain.getComponentSize(component: Component): ComponentPreviewSize | undefined",
|
76
|
-
"name": "getComponentSize",
|
77
|
-
"params": [
|
78
|
-
{
|
79
|
-
"__schema": "ParameterSchema",
|
80
|
-
"location": {
|
81
|
-
"filePath": "component-sizer.main.runtime.ts",
|
82
|
-
"line": 16,
|
83
|
-
"character": 20
|
84
|
-
},
|
85
|
-
"name": "component",
|
86
|
-
"type": {
|
87
|
-
"__schema": "TypeRefSchema",
|
88
|
-
"location": {
|
89
|
-
"filePath": "component-sizer.main.runtime.ts",
|
90
|
-
"line": 16,
|
91
|
-
"character": 31
|
92
|
-
},
|
93
|
-
"name": "Component"
|
94
|
-
},
|
95
|
-
"isOptional": false,
|
96
|
-
"isSpread": false
|
97
|
-
}
|
98
|
-
],
|
99
|
-
"returnType": {
|
100
|
-
"__schema": "TypeUnionSchema",
|
101
|
-
"location": {
|
102
|
-
"filePath": "component-sizer.main.runtime.ts",
|
103
|
-
"line": 16,
|
104
|
-
"character": 43
|
105
|
-
},
|
106
|
-
"types": [
|
107
|
-
{
|
108
|
-
"__schema": "TypeRefSchema",
|
109
|
-
"location": {
|
110
|
-
"filePath": "component-sizer.main.runtime.ts",
|
111
|
-
"line": 16,
|
112
|
-
"character": 43
|
113
|
-
},
|
114
|
-
"name": "ComponentPreviewSize"
|
115
|
-
},
|
116
|
-
{
|
117
|
-
"__schema": "KeywordTypeSchema",
|
118
|
-
"location": {
|
119
|
-
"filePath": "component-sizer.main.runtime.ts",
|
120
|
-
"line": 16,
|
121
|
-
"character": 66
|
122
|
-
},
|
123
|
-
"name": "undefined"
|
124
|
-
}
|
125
|
-
]
|
126
|
-
},
|
127
|
-
"modifiers": []
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"__schema": "VariableLikeSchema",
|
131
|
-
"location": {
|
132
|
-
"filePath": "component-sizer.main.runtime.ts",
|
133
|
-
"line": 20,
|
134
|
-
"character": 3
|
135
|
-
},
|
136
|
-
"signature": "(property) ComponentSizerMain.slots: never[]",
|
137
|
-
"name": "slots",
|
138
|
-
"type": {
|
139
|
-
"__schema": "InferenceTypeSchema",
|
140
|
-
"location": {
|
141
|
-
"filePath": "component-sizer.main.runtime.ts",
|
142
|
-
"line": 20,
|
143
|
-
"character": 3
|
144
|
-
},
|
145
|
-
"type": "never[]"
|
146
|
-
},
|
147
|
-
"isOptional": true,
|
148
|
-
"defaultValue": "[]"
|
149
|
-
},
|
150
|
-
{
|
151
|
-
"__schema": "VariableLikeSchema",
|
152
|
-
"location": {
|
153
|
-
"filePath": "component-sizer.main.runtime.ts",
|
154
|
-
"line": 21,
|
155
|
-
"character": 3
|
156
|
-
},
|
157
|
-
"signature": "(property) ComponentSizerMain.dependencies: Aspect[]",
|
158
|
-
"name": "dependencies",
|
159
|
-
"type": {
|
160
|
-
"__schema": "InferenceTypeSchema",
|
161
|
-
"location": {
|
162
|
-
"filePath": "component-sizer.main.runtime.ts",
|
163
|
-
"line": 21,
|
164
|
-
"character": 3
|
165
|
-
},
|
166
|
-
"type": "Aspect[]"
|
167
|
-
},
|
168
|
-
"isOptional": true,
|
169
|
-
"defaultValue": "[PreviewAspect, GraphqlAspect, ComponentAspect]"
|
170
|
-
},
|
171
|
-
{
|
172
|
-
"__schema": "VariableLikeSchema",
|
173
|
-
"location": {
|
174
|
-
"filePath": "component-sizer.main.runtime.ts",
|
175
|
-
"line": 22,
|
176
|
-
"character": 3
|
177
|
-
},
|
178
|
-
"signature": "(property) ComponentSizerMain.runtime: RuntimeDefinition",
|
179
|
-
"name": "runtime",
|
180
|
-
"type": {
|
181
|
-
"__schema": "InferenceTypeSchema",
|
182
|
-
"location": {
|
183
|
-
"filePath": "component-sizer.main.runtime.ts",
|
184
|
-
"line": 22,
|
185
|
-
"character": 3
|
186
|
-
},
|
187
|
-
"type": "RuntimeDefinition"
|
188
|
-
},
|
189
|
-
"isOptional": true,
|
190
|
-
"defaultValue": "MainRuntime"
|
191
|
-
},
|
192
|
-
{
|
193
|
-
"__schema": "FunctionLikeSchema",
|
194
|
-
"location": {
|
195
|
-
"filePath": "component-sizer.main.runtime.ts",
|
196
|
-
"line": 23,
|
197
|
-
"character": 3
|
198
|
-
},
|
199
|
-
"signature": "(method) ComponentSizerMain.provider([preview, graphql]: [PreviewMain, GraphqlMain]): Promise<ComponentSizerMain>",
|
200
|
-
"name": "provider",
|
201
|
-
"params": [
|
202
|
-
{
|
203
|
-
"__schema": "ParameterSchema",
|
204
|
-
"location": {
|
205
|
-
"filePath": "component-sizer.main.runtime.ts",
|
206
|
-
"line": 23,
|
207
|
-
"character": 25
|
208
|
-
},
|
209
|
-
"name": "[ preview, graphql ]",
|
210
|
-
"type": {
|
211
|
-
"__schema": "TupleTypeSchema",
|
212
|
-
"location": {
|
213
|
-
"filePath": "component-sizer.main.runtime.ts",
|
214
|
-
"line": 23,
|
215
|
-
"character": 45
|
216
|
-
},
|
217
|
-
"elements": [
|
218
|
-
{
|
219
|
-
"__schema": "TypeRefSchema",
|
220
|
-
"location": {
|
221
|
-
"filePath": "component-sizer.main.runtime.ts",
|
222
|
-
"line": 23,
|
223
|
-
"character": 46
|
224
|
-
},
|
225
|
-
"name": "PreviewMain"
|
226
|
-
},
|
227
|
-
{
|
228
|
-
"__schema": "TypeRefSchema",
|
229
|
-
"location": {
|
230
|
-
"filePath": "component-sizer.main.runtime.ts",
|
231
|
-
"line": 23,
|
232
|
-
"character": 59
|
233
|
-
},
|
234
|
-
"name": "GraphqlMain"
|
235
|
-
}
|
236
|
-
]
|
237
|
-
},
|
238
|
-
"isOptional": false,
|
239
|
-
"isSpread": false
|
240
|
-
}
|
241
|
-
],
|
242
|
-
"returnType": {
|
243
|
-
"__schema": "InferenceTypeSchema",
|
244
|
-
"location": {
|
245
|
-
"filePath": "component-sizer.main.runtime.ts",
|
246
|
-
"line": 23,
|
247
|
-
"character": 3
|
248
|
-
},
|
249
|
-
"type": "Promise<ComponentSizerMain>"
|
250
|
-
},
|
251
|
-
"modifiers": [
|
252
|
-
"static",
|
253
|
-
"async"
|
254
|
-
]
|
255
|
-
}
|
256
|
-
],
|
257
|
-
"extendsNodes": [],
|
258
|
-
"implementNodes": []
|
259
|
-
},
|
260
|
-
{
|
261
|
-
"__schema": "UnImplementedSchema",
|
262
|
-
"location": {
|
263
|
-
"filePath": "index.ts",
|
264
|
-
"line": 4,
|
265
|
-
"character": 16
|
266
|
-
},
|
267
|
-
"name": "ComponentSizerAspect",
|
268
|
-
"type": "Identifier"
|
269
|
-
},
|
270
|
-
{
|
271
|
-
"__schema": "VariableLikeSchema",
|
272
|
-
"location": {
|
273
|
-
"filePath": "component-sizer.aspect.ts",
|
274
|
-
"line": 3,
|
275
|
-
"character": 14
|
276
|
-
},
|
277
|
-
"signature": "const ComponentSizerAspect: Aspect",
|
278
|
-
"name": "ComponentSizerAspect",
|
279
|
-
"type": {
|
280
|
-
"__schema": "TypeRefSchema",
|
281
|
-
"location": {
|
282
|
-
"filePath": "component-sizer.aspect.ts",
|
283
|
-
"line": 3,
|
284
|
-
"character": 14
|
285
|
-
},
|
286
|
-
"name": "Aspect",
|
287
|
-
"componentId": {
|
288
|
-
"scope": "teambit.harmony",
|
289
|
-
"name": "harmony",
|
290
|
-
"version": "0.4.6"
|
291
|
-
}
|
292
|
-
},
|
293
|
-
"isOptional": false,
|
294
|
-
"defaultValue": "Aspect.create({\n id: 'teambit.component/component-sizer',\n})"
|
295
|
-
}
|
296
|
-
],
|
297
|
-
"internals": []
|
298
|
-
},
|
299
|
-
"internals": [
|
300
|
-
{
|
301
|
-
"__schema": "ModuleSchema",
|
302
|
-
"location": {
|
303
|
-
"filePath": "component-sizer.main.runtime.ts",
|
304
|
-
"line": 1,
|
305
|
-
"character": 1
|
306
|
-
},
|
307
|
-
"exports": [
|
308
|
-
{
|
309
|
-
"__schema": "ClassSchema",
|
310
|
-
"location": {
|
311
|
-
"filePath": "component-sizer.main.runtime.ts",
|
312
|
-
"line": 8,
|
313
|
-
"character": 1
|
314
|
-
},
|
315
|
-
"signature": "class ComponentSizerMain",
|
316
|
-
"name": "ComponentSizerMain",
|
317
|
-
"members": [
|
318
|
-
{
|
319
|
-
"__schema": "ConstructorSchema",
|
320
|
-
"location": {
|
321
|
-
"filePath": "component-sizer.main.runtime.ts",
|
322
|
-
"line": 9,
|
323
|
-
"character": 3
|
324
|
-
},
|
325
|
-
"signature": "constructor ComponentSizerMain(preview: PreviewMain): ComponentSizerMain",
|
326
|
-
"name": "constructor",
|
327
|
-
"params": [
|
328
|
-
{
|
329
|
-
"__schema": "ParameterSchema",
|
330
|
-
"location": {
|
331
|
-
"filePath": "component-sizer.main.runtime.ts",
|
332
|
-
"line": 13,
|
333
|
-
"character": 5
|
334
|
-
},
|
335
|
-
"name": "preview",
|
336
|
-
"type": {
|
337
|
-
"__schema": "TypeRefSchema",
|
338
|
-
"location": {
|
339
|
-
"filePath": "component-sizer.main.runtime.ts",
|
340
|
-
"line": 13,
|
341
|
-
"character": 22
|
342
|
-
},
|
343
|
-
"name": "PreviewMain"
|
344
|
-
},
|
345
|
-
"isOptional": false,
|
346
|
-
"isSpread": false
|
347
|
-
}
|
348
|
-
],
|
349
|
-
"returnType": {
|
350
|
-
"__schema": "ThisTypeSchema",
|
351
|
-
"location": {
|
352
|
-
"filePath": "component-sizer.main.runtime.ts",
|
353
|
-
"line": 8,
|
354
|
-
"character": 1
|
355
|
-
},
|
356
|
-
"name": "ComponentSizerMain"
|
357
|
-
},
|
358
|
-
"modifiers": []
|
359
|
-
},
|
360
|
-
{
|
361
|
-
"__schema": "FunctionLikeSchema",
|
362
|
-
"location": {
|
363
|
-
"filePath": "component-sizer.main.runtime.ts",
|
364
|
-
"line": 16,
|
365
|
-
"character": 3
|
366
|
-
},
|
367
|
-
"signature": "(method) ComponentSizerMain.getComponentSize(component: Component): ComponentPreviewSize | undefined",
|
368
|
-
"name": "getComponentSize",
|
369
|
-
"params": [
|
370
|
-
{
|
371
|
-
"__schema": "ParameterSchema",
|
372
|
-
"location": {
|
373
|
-
"filePath": "component-sizer.main.runtime.ts",
|
374
|
-
"line": 16,
|
375
|
-
"character": 20
|
376
|
-
},
|
377
|
-
"name": "component",
|
378
|
-
"type": {
|
379
|
-
"__schema": "TypeRefSchema",
|
380
|
-
"location": {
|
381
|
-
"filePath": "component-sizer.main.runtime.ts",
|
382
|
-
"line": 16,
|
383
|
-
"character": 31
|
384
|
-
},
|
385
|
-
"name": "Component"
|
386
|
-
},
|
387
|
-
"isOptional": false,
|
388
|
-
"isSpread": false
|
389
|
-
}
|
390
|
-
],
|
391
|
-
"returnType": {
|
392
|
-
"__schema": "TypeUnionSchema",
|
393
|
-
"location": {
|
394
|
-
"filePath": "component-sizer.main.runtime.ts",
|
395
|
-
"line": 16,
|
396
|
-
"character": 43
|
397
|
-
},
|
398
|
-
"types": [
|
399
|
-
{
|
400
|
-
"__schema": "TypeRefSchema",
|
401
|
-
"location": {
|
402
|
-
"filePath": "component-sizer.main.runtime.ts",
|
403
|
-
"line": 16,
|
404
|
-
"character": 43
|
405
|
-
},
|
406
|
-
"name": "ComponentPreviewSize"
|
407
|
-
},
|
408
|
-
{
|
409
|
-
"__schema": "KeywordTypeSchema",
|
410
|
-
"location": {
|
411
|
-
"filePath": "component-sizer.main.runtime.ts",
|
412
|
-
"line": 16,
|
413
|
-
"character": 66
|
414
|
-
},
|
415
|
-
"name": "undefined"
|
416
|
-
}
|
417
|
-
]
|
418
|
-
},
|
419
|
-
"modifiers": []
|
420
|
-
},
|
421
|
-
{
|
422
|
-
"__schema": "VariableLikeSchema",
|
423
|
-
"location": {
|
424
|
-
"filePath": "component-sizer.main.runtime.ts",
|
425
|
-
"line": 20,
|
426
|
-
"character": 3
|
427
|
-
},
|
428
|
-
"signature": "(property) ComponentSizerMain.slots: never[]",
|
429
|
-
"name": "slots",
|
430
|
-
"type": {
|
431
|
-
"__schema": "InferenceTypeSchema",
|
432
|
-
"location": {
|
433
|
-
"filePath": "component-sizer.main.runtime.ts",
|
434
|
-
"line": 20,
|
435
|
-
"character": 3
|
436
|
-
},
|
437
|
-
"type": "never[]"
|
438
|
-
},
|
439
|
-
"isOptional": true,
|
440
|
-
"defaultValue": "[]"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
"__schema": "VariableLikeSchema",
|
444
|
-
"location": {
|
445
|
-
"filePath": "component-sizer.main.runtime.ts",
|
446
|
-
"line": 21,
|
447
|
-
"character": 3
|
448
|
-
},
|
449
|
-
"signature": "(property) ComponentSizerMain.dependencies: Aspect[]",
|
450
|
-
"name": "dependencies",
|
451
|
-
"type": {
|
452
|
-
"__schema": "InferenceTypeSchema",
|
453
|
-
"location": {
|
454
|
-
"filePath": "component-sizer.main.runtime.ts",
|
455
|
-
"line": 21,
|
456
|
-
"character": 3
|
457
|
-
},
|
458
|
-
"type": "Aspect[]"
|
459
|
-
},
|
460
|
-
"isOptional": true,
|
461
|
-
"defaultValue": "[PreviewAspect, GraphqlAspect, ComponentAspect]"
|
462
|
-
},
|
463
|
-
{
|
464
|
-
"__schema": "VariableLikeSchema",
|
465
|
-
"location": {
|
466
|
-
"filePath": "component-sizer.main.runtime.ts",
|
467
|
-
"line": 22,
|
468
|
-
"character": 3
|
469
|
-
},
|
470
|
-
"signature": "(property) ComponentSizerMain.runtime: RuntimeDefinition",
|
471
|
-
"name": "runtime",
|
472
|
-
"type": {
|
473
|
-
"__schema": "InferenceTypeSchema",
|
474
|
-
"location": {
|
475
|
-
"filePath": "component-sizer.main.runtime.ts",
|
476
|
-
"line": 22,
|
477
|
-
"character": 3
|
478
|
-
},
|
479
|
-
"type": "RuntimeDefinition"
|
480
|
-
},
|
481
|
-
"isOptional": true,
|
482
|
-
"defaultValue": "MainRuntime"
|
483
|
-
},
|
484
|
-
{
|
485
|
-
"__schema": "FunctionLikeSchema",
|
486
|
-
"location": {
|
487
|
-
"filePath": "component-sizer.main.runtime.ts",
|
488
|
-
"line": 23,
|
489
|
-
"character": 3
|
490
|
-
},
|
491
|
-
"signature": "(method) ComponentSizerMain.provider([preview, graphql]: [PreviewMain, GraphqlMain]): Promise<ComponentSizerMain>",
|
492
|
-
"name": "provider",
|
493
|
-
"params": [
|
494
|
-
{
|
495
|
-
"__schema": "ParameterSchema",
|
496
|
-
"location": {
|
497
|
-
"filePath": "component-sizer.main.runtime.ts",
|
498
|
-
"line": 23,
|
499
|
-
"character": 25
|
500
|
-
},
|
501
|
-
"name": "[ preview, graphql ]",
|
502
|
-
"type": {
|
503
|
-
"__schema": "TupleTypeSchema",
|
504
|
-
"location": {
|
505
|
-
"filePath": "component-sizer.main.runtime.ts",
|
506
|
-
"line": 23,
|
507
|
-
"character": 45
|
508
|
-
},
|
509
|
-
"elements": [
|
510
|
-
{
|
511
|
-
"__schema": "TypeRefSchema",
|
512
|
-
"location": {
|
513
|
-
"filePath": "component-sizer.main.runtime.ts",
|
514
|
-
"line": 23,
|
515
|
-
"character": 46
|
516
|
-
},
|
517
|
-
"name": "PreviewMain"
|
518
|
-
},
|
519
|
-
{
|
520
|
-
"__schema": "TypeRefSchema",
|
521
|
-
"location": {
|
522
|
-
"filePath": "component-sizer.main.runtime.ts",
|
523
|
-
"line": 23,
|
524
|
-
"character": 59
|
525
|
-
},
|
526
|
-
"name": "GraphqlMain"
|
527
|
-
}
|
528
|
-
]
|
529
|
-
},
|
530
|
-
"isOptional": false,
|
531
|
-
"isSpread": false
|
532
|
-
}
|
533
|
-
],
|
534
|
-
"returnType": {
|
535
|
-
"__schema": "InferenceTypeSchema",
|
536
|
-
"location": {
|
537
|
-
"filePath": "component-sizer.main.runtime.ts",
|
538
|
-
"line": 23,
|
539
|
-
"character": 3
|
540
|
-
},
|
541
|
-
"type": "Promise<ComponentSizerMain>"
|
542
|
-
},
|
543
|
-
"modifiers": [
|
544
|
-
"static",
|
545
|
-
"async"
|
546
|
-
]
|
547
|
-
}
|
548
|
-
],
|
549
|
-
"extendsNodes": [],
|
550
|
-
"implementNodes": []
|
551
|
-
}
|
552
|
-
],
|
553
|
-
"internals": [
|
554
|
-
{
|
555
|
-
"__schema": "UnImplementedSchema",
|
556
|
-
"location": {
|
557
|
-
"filePath": "component-sizer.main.runtime.ts",
|
558
|
-
"line": 30,
|
559
|
-
"character": 1
|
560
|
-
},
|
561
|
-
"name": "ComponentSizerAspect.addRuntime(ComponentSizerMain);",
|
562
|
-
"type": "ExpressionStatement"
|
563
|
-
}
|
564
|
-
]
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"__schema": "ModuleSchema",
|
568
|
-
"location": {
|
569
|
-
"filePath": "component-sizer.aspect.ts",
|
570
|
-
"line": 1,
|
571
|
-
"character": 1
|
572
|
-
},
|
573
|
-
"exports": [
|
574
|
-
{
|
575
|
-
"__schema": "VariableLikeSchema",
|
576
|
-
"location": {
|
577
|
-
"filePath": "component-sizer.aspect.ts",
|
578
|
-
"line": 3,
|
579
|
-
"character": 14
|
580
|
-
},
|
581
|
-
"signature": "const ComponentSizerAspect: Aspect",
|
582
|
-
"name": "ComponentSizerAspect",
|
583
|
-
"type": {
|
584
|
-
"__schema": "TypeRefSchema",
|
585
|
-
"location": {
|
586
|
-
"filePath": "component-sizer.aspect.ts",
|
587
|
-
"line": 3,
|
588
|
-
"character": 14
|
589
|
-
},
|
590
|
-
"name": "Aspect",
|
591
|
-
"componentId": {
|
592
|
-
"scope": "teambit.harmony",
|
593
|
-
"name": "harmony",
|
594
|
-
"version": "0.4.6"
|
595
|
-
}
|
596
|
-
},
|
597
|
-
"isOptional": false,
|
598
|
-
"defaultValue": "Aspect.create({\n id: 'teambit.component/component-sizer',\n})"
|
599
|
-
},
|
600
|
-
{
|
601
|
-
"__schema": "UnImplementedSchema",
|
602
|
-
"location": {
|
603
|
-
"filePath": "component-sizer.aspect.ts",
|
604
|
-
"line": 7,
|
605
|
-
"character": 16
|
606
|
-
},
|
607
|
-
"name": "ComponentSizerAspect",
|
608
|
-
"type": "Identifier"
|
609
|
-
}
|
610
|
-
],
|
611
|
-
"internals": []
|
612
|
-
}
|
613
|
-
],
|
614
|
-
"componentId": {
|
615
|
-
"scope": "teambit.component",
|
616
|
-
"name": "component-sizer",
|
617
|
-
"version": "1.0.187"
|
618
|
-
},
|
619
|
-
"taggedModuleExports": []
|
620
|
-
}
|