@teambit/component-sizer 1.0.228 → 1.0.230
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 +51 -11
- package/dist/component-sizer.aspect.d.ts +3 -0
- package/dist/component-sizer.composition.d.ts +1 -0
- package/dist/component-sizer.graphql.d.ts +3 -0
- package/dist/component-sizer.main.runtime.d.ts +19 -0
- package/dist/component-sizer.ui.runtime.d.ts +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/{preview-1712805335812.js → preview-1712891953391.js} +2 -2
- package/package.json +9 -9
- package/tsconfig.json +1 -22
@@ -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.230" 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={25054:(e,t,o)=>{var n={id:"teambit.component/component-sizer@1.0.230",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(25054);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})()));
|
package/artifacts/schema.json
CHANGED
@@ -48,7 +48,11 @@
|
|
48
48
|
"line": 13,
|
49
49
|
"character": 22
|
50
50
|
},
|
51
|
-
"name": "PreviewMain"
|
51
|
+
"name": "PreviewMain",
|
52
|
+
"componentId": {
|
53
|
+
"scope": "teambit.preview",
|
54
|
+
"name": "preview"
|
55
|
+
}
|
52
56
|
},
|
53
57
|
"isOptional": false,
|
54
58
|
"isSpread": false
|
@@ -90,7 +94,11 @@
|
|
90
94
|
"line": 16,
|
91
95
|
"character": 31
|
92
96
|
},
|
93
|
-
"name": "Component"
|
97
|
+
"name": "Component",
|
98
|
+
"componentId": {
|
99
|
+
"scope": "teambit.component",
|
100
|
+
"name": "component"
|
101
|
+
}
|
94
102
|
},
|
95
103
|
"isOptional": false,
|
96
104
|
"isSpread": false
|
@@ -111,7 +119,11 @@
|
|
111
119
|
"line": 16,
|
112
120
|
"character": 43
|
113
121
|
},
|
114
|
-
"name": "ComponentPreviewSize"
|
122
|
+
"name": "ComponentPreviewSize",
|
123
|
+
"componentId": {
|
124
|
+
"scope": "teambit.preview",
|
125
|
+
"name": "preview"
|
126
|
+
}
|
115
127
|
},
|
116
128
|
{
|
117
129
|
"__schema": "KeywordTypeSchema",
|
@@ -222,7 +234,11 @@
|
|
222
234
|
"line": 23,
|
223
235
|
"character": 46
|
224
236
|
},
|
225
|
-
"name": "PreviewMain"
|
237
|
+
"name": "PreviewMain",
|
238
|
+
"componentId": {
|
239
|
+
"scope": "teambit.preview",
|
240
|
+
"name": "preview"
|
241
|
+
}
|
226
242
|
},
|
227
243
|
{
|
228
244
|
"__schema": "TypeRefSchema",
|
@@ -231,7 +247,11 @@
|
|
231
247
|
"line": 23,
|
232
248
|
"character": 59
|
233
249
|
},
|
234
|
-
"name": "GraphqlMain"
|
250
|
+
"name": "GraphqlMain",
|
251
|
+
"componentId": {
|
252
|
+
"scope": "teambit.harmony",
|
253
|
+
"name": "graphql"
|
254
|
+
}
|
235
255
|
}
|
236
256
|
]
|
237
257
|
},
|
@@ -340,7 +360,11 @@
|
|
340
360
|
"line": 13,
|
341
361
|
"character": 22
|
342
362
|
},
|
343
|
-
"name": "PreviewMain"
|
363
|
+
"name": "PreviewMain",
|
364
|
+
"componentId": {
|
365
|
+
"scope": "teambit.preview",
|
366
|
+
"name": "preview"
|
367
|
+
}
|
344
368
|
},
|
345
369
|
"isOptional": false,
|
346
370
|
"isSpread": false
|
@@ -382,7 +406,11 @@
|
|
382
406
|
"line": 16,
|
383
407
|
"character": 31
|
384
408
|
},
|
385
|
-
"name": "Component"
|
409
|
+
"name": "Component",
|
410
|
+
"componentId": {
|
411
|
+
"scope": "teambit.component",
|
412
|
+
"name": "component"
|
413
|
+
}
|
386
414
|
},
|
387
415
|
"isOptional": false,
|
388
416
|
"isSpread": false
|
@@ -403,7 +431,11 @@
|
|
403
431
|
"line": 16,
|
404
432
|
"character": 43
|
405
433
|
},
|
406
|
-
"name": "ComponentPreviewSize"
|
434
|
+
"name": "ComponentPreviewSize",
|
435
|
+
"componentId": {
|
436
|
+
"scope": "teambit.preview",
|
437
|
+
"name": "preview"
|
438
|
+
}
|
407
439
|
},
|
408
440
|
{
|
409
441
|
"__schema": "KeywordTypeSchema",
|
@@ -514,7 +546,11 @@
|
|
514
546
|
"line": 23,
|
515
547
|
"character": 46
|
516
548
|
},
|
517
|
-
"name": "PreviewMain"
|
549
|
+
"name": "PreviewMain",
|
550
|
+
"componentId": {
|
551
|
+
"scope": "teambit.preview",
|
552
|
+
"name": "preview"
|
553
|
+
}
|
518
554
|
},
|
519
555
|
{
|
520
556
|
"__schema": "TypeRefSchema",
|
@@ -523,7 +559,11 @@
|
|
523
559
|
"line": 23,
|
524
560
|
"character": 59
|
525
561
|
},
|
526
|
-
"name": "GraphqlMain"
|
562
|
+
"name": "GraphqlMain",
|
563
|
+
"componentId": {
|
564
|
+
"scope": "teambit.harmony",
|
565
|
+
"name": "graphql"
|
566
|
+
}
|
527
567
|
}
|
528
568
|
]
|
529
569
|
},
|
@@ -614,7 +654,7 @@
|
|
614
654
|
"componentId": {
|
615
655
|
"scope": "teambit.component",
|
616
656
|
"name": "component-sizer",
|
617
|
-
"version": "1.0.
|
657
|
+
"version": "1.0.230"
|
618
658
|
},
|
619
659
|
"taggedModuleExports": []
|
620
660
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Component } from '@teambit/component';
|
2
|
+
import { GraphqlMain } from '@teambit/graphql';
|
3
|
+
import { ComponentPreviewSize, PreviewMain } from '@teambit/preview';
|
4
|
+
export declare class ComponentSizerMain {
|
5
|
+
/**
|
6
|
+
* preview aspect.
|
7
|
+
*/
|
8
|
+
private preview;
|
9
|
+
constructor(
|
10
|
+
/**
|
11
|
+
* preview aspect.
|
12
|
+
*/
|
13
|
+
preview: PreviewMain);
|
14
|
+
getComponentSize(component: Component): ComponentPreviewSize | undefined;
|
15
|
+
static slots: never[];
|
16
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
17
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
18
|
+
static provider([preview, graphql]: [PreviewMain, GraphqlMain]): Promise<ComponentSizerMain>;
|
19
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { DocsUI } from '@teambit/docs';
|
2
|
+
/**
|
3
|
+
* Component size aspect.
|
4
|
+
*/
|
5
|
+
export declare class SizerUIRuntime {
|
6
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
7
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
8
|
+
static provider([docs]: [DocsUI]): Promise<void>;
|
9
|
+
}
|
package/dist/index.d.ts
ADDED
@@ -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.230/dist/component-sizer.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-sizer@1.0.230/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,28 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/component-sizer",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.230",
|
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.230"
|
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.77",
|
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.
|
15
|
+
"@teambit/component": "1.0.230",
|
16
|
+
"@teambit/graphql": "1.0.230",
|
17
|
+
"@teambit/cli": "0.0.862",
|
18
|
+
"@teambit/preview": "1.0.230",
|
19
|
+
"@teambit/docs": "1.0.230",
|
20
|
+
"@teambit/ui": "1.0.230"
|
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.33"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
28
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
24
|
-
"composite": true
|
23
|
+
"noImplicitAny": false
|
25
24
|
},
|
26
25
|
"exclude": [
|
27
26
|
"artifacts",
|
@@ -36,25 +35,5 @@
|
|
36
35
|
"include": [
|
37
36
|
"**/*",
|
38
37
|
"**/*.json"
|
39
|
-
],
|
40
|
-
"references": [
|
41
|
-
{
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.228"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.preview_preview@1.0.228"
|
52
|
-
},
|
53
|
-
{
|
54
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.docs_docs@1.0.228"
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.228"
|
58
|
-
}
|
59
38
|
]
|
60
39
|
}
|