@teambit/component-sizer 0.0.34 → 0.0.37
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/{__preview-1646054175292.js → __preview-1646191436076.js} +0 -0
- package/component-sizer.ui.runtime.tsx +2 -2
- package/dist/component-sizer.ui.runtime.js +12 -3
- package/dist/component-sizer.ui.runtime.js.map +1 -1
- package/package-tar/teambit-component-sizer-0.0.37.tgz +0 -0
- package/package.json +12 -12
- package/package-tar/teambit-component-sizer-0.0.34.tgz +0 -0
|
File without changes
|
|
@@ -3,7 +3,7 @@ import { UIRuntime } from '@teambit/ui';
|
|
|
3
3
|
import type { ComponentDescriptor } from '@teambit/component-descriptor';
|
|
4
4
|
import { DocsAspect, DocsUI } from '@teambit/docs';
|
|
5
5
|
import { ComponentSize } from '@teambit/component.ui.component-size';
|
|
6
|
-
|
|
6
|
+
import { ComponentSizerAspect } from './component-sizer.aspect';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Component size aspect.
|
|
@@ -23,4 +23,4 @@ export class SizerUIRuntime {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
ComponentSizerAspect.addRuntime(SizerUIRuntime);
|
|
@@ -61,7 +61,15 @@ function _componentUi() {
|
|
|
61
61
|
return data;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
function _componentSizer() {
|
|
65
|
+
const data = require("./component-sizer.aspect");
|
|
66
|
+
|
|
67
|
+
_componentSizer = function () {
|
|
68
|
+
return data;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return data;
|
|
72
|
+
}
|
|
65
73
|
|
|
66
74
|
/**
|
|
67
75
|
* Component size aspect.
|
|
@@ -80,11 +88,12 @@ class SizerUIRuntime {
|
|
|
80
88
|
});
|
|
81
89
|
}
|
|
82
90
|
|
|
83
|
-
}
|
|
84
|
-
|
|
91
|
+
}
|
|
85
92
|
|
|
86
93
|
exports.SizerUIRuntime = SizerUIRuntime;
|
|
87
94
|
(0, _defineProperty2().default)(SizerUIRuntime, "dependencies", [_docs().DocsAspect]);
|
|
88
95
|
(0, _defineProperty2().default)(SizerUIRuntime, "runtime", _ui().UIRuntime);
|
|
89
96
|
|
|
97
|
+
_componentSizer().ComponentSizerAspect.addRuntime(SizerUIRuntime);
|
|
98
|
+
|
|
90
99
|
//# sourceMappingURL=component-sizer.ui.runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["component-sizer.ui.runtime.tsx"],"names":["SizerUIRuntime","provider","docs","registerTitleBadge","component","badge","componentDescriptor","weight","DocsAspect","UIRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;;AAEA;AACA;AACA;AACO,MAAMA,cAAN,CAAqB;AAKL,eAARC,QAAQ,CAAC,CAACC,IAAD,CAAD,EAAmB;AACtCA,IAAAA,IAAI,CAACC,kBAAL,CAAwB;AACtBC,MAAAA,SAAS,EAAE,SAASC,KAAT,CAAe;AAAEC,QAAAA;AAAF,OAAf,EAAsF;AAC/F,4BAAO,+BAAC,4BAAD;AAAe,UAAA,mBAAmB,EAAEA;AAApC,UAAP;AACD,OAHqB;AAItBC,MAAAA,MAAM,EAAE;AAJc,KAAxB;AAMD;;AAZyB,
|
|
1
|
+
{"version":3,"sources":["component-sizer.ui.runtime.tsx"],"names":["SizerUIRuntime","provider","docs","registerTitleBadge","component","badge","componentDescriptor","weight","DocsAspect","UIRuntime","ComponentSizerAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AACA;AACA;AACO,MAAMA,cAAN,CAAqB;AAKL,eAARC,QAAQ,CAAC,CAACC,IAAD,CAAD,EAAmB;AACtCA,IAAAA,IAAI,CAACC,kBAAL,CAAwB;AACtBC,MAAAA,SAAS,EAAE,SAASC,KAAT,CAAe;AAAEC,QAAAA;AAAF,OAAf,EAAsF;AAC/F,4BAAO,+BAAC,4BAAD;AAAe,UAAA,mBAAmB,EAAEA;AAApC,UAAP;AACD,OAHqB;AAItBC,MAAAA,MAAM,EAAE;AAJc,KAAxB;AAMD;;AAZyB;;;gCAAfP,c,kBACW,CAACQ,kBAAD,C;gCADXR,c,aAGMS,e;;AAYnBC,uCAAqBC,UAArB,CAAgCX,cAAhC","sourcesContent":["import React from 'react';\nimport { UIRuntime } from '@teambit/ui';\nimport type { ComponentDescriptor } from '@teambit/component-descriptor';\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({ componentDescriptor }: { componentDescriptor: ComponentDescriptor }) {\n return <ComponentSize componentDescriptor={componentDescriptor} />;\n },\n weight: 30,\n });\n }\n}\n\nComponentSizerAspect.addRuntime(SizerUIRuntime);\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-sizer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"homepage": "https://bit.dev/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": "0.0.
|
|
9
|
+
"version": "0.0.37"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
13
13
|
"graphql-tag": "2.12.1",
|
|
14
14
|
"@babel/runtime": "7.12.18",
|
|
15
15
|
"core-js": "^3.0.0",
|
|
16
|
-
"@teambit/component": "0.0.
|
|
17
|
-
"@teambit/graphql": "0.0.
|
|
18
|
-
"@teambit/cli": "0.0.
|
|
19
|
-
"@teambit/preview": "0.0.
|
|
20
|
-
"@teambit/component-descriptor": "0.0.
|
|
21
|
-
"@teambit/component.ui.component-size": "0.0.
|
|
22
|
-
"@teambit/docs": "0.0.
|
|
23
|
-
"@teambit/ui": "0.0.
|
|
16
|
+
"@teambit/component": "0.0.664",
|
|
17
|
+
"@teambit/graphql": "0.0.664",
|
|
18
|
+
"@teambit/cli": "0.0.450",
|
|
19
|
+
"@teambit/preview": "0.0.664",
|
|
20
|
+
"@teambit/component-descriptor": "0.0.11",
|
|
21
|
+
"@teambit/component.ui.component-size": "0.0.7",
|
|
22
|
+
"@teambit/docs": "0.0.664",
|
|
23
|
+
"@teambit/ui": "0.0.664"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^17.0.8",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@types/node": "12.20.4"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@teambit/legacy": "1.0.
|
|
34
|
+
"@teambit/legacy": "1.0.229",
|
|
35
35
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
36
36
|
"react": "^16.8.0 || ^17.0.0"
|
|
37
37
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react": "-"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@teambit/legacy": "1.0.
|
|
62
|
+
"@teambit/legacy": "1.0.229",
|
|
63
63
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
64
64
|
"react": "^16.8.0 || ^17.0.0"
|
|
65
65
|
}
|
|
Binary file
|