@teambit/component-sizer 0.0.22 → 0.0.26

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,21 @@
1
+ import { ComponentAspect } from '@teambit/component';
2
+ import { UIRuntime } from '@teambit/ui';
3
+ import { DocsAspect } from '@teambit/docs';
4
+ import { ComponentSizerAspect } from './component-sizer.aspect';
5
+
6
+ /**
7
+ * Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.
8
+ * @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])
9
+ */
10
+ export class SizerUIRuntime {
11
+ static dependencies = [ComponentAspect, DocsAspect];
12
+
13
+ static runtime = UIRuntime;
14
+
15
+ static async provider() {
16
+ const ui = new SizerUIRuntime();
17
+ return ui;
18
+ }
19
+ }
20
+
21
+ ComponentSizerAspect.addRuntime(SizerUIRuntime);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.
3
+ * @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])
4
+ */
5
+ export declare class SizerUIRuntime {
6
+ static dependencies: import("@teambit/harmony").Aspect[];
7
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
8
+ static provider(): Promise<SizerUIRuntime>;
9
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ require("core-js/modules/es.promise.js");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.SizerUIRuntime = void 0;
11
+
12
+ function _defineProperty2() {
13
+ const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
+
15
+ _defineProperty2 = function () {
16
+ return data;
17
+ };
18
+
19
+ return data;
20
+ }
21
+
22
+ function _component() {
23
+ const data = require("@teambit/component");
24
+
25
+ _component = function () {
26
+ return data;
27
+ };
28
+
29
+ return data;
30
+ }
31
+
32
+ function _ui() {
33
+ const data = require("@teambit/ui");
34
+
35
+ _ui = function () {
36
+ return data;
37
+ };
38
+
39
+ return data;
40
+ }
41
+
42
+ function _docs() {
43
+ const data = require("@teambit/docs");
44
+
45
+ _docs = function () {
46
+ return data;
47
+ };
48
+
49
+ return data;
50
+ }
51
+
52
+ function _componentSizer() {
53
+ const data = require("./component-sizer.aspect");
54
+
55
+ _componentSizer = function () {
56
+ return data;
57
+ };
58
+
59
+ return data;
60
+ }
61
+
62
+ /**
63
+ * Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.
64
+ * @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])
65
+ */
66
+ class SizerUIRuntime {
67
+ static async provider() {
68
+ const ui = new SizerUIRuntime();
69
+ return ui;
70
+ }
71
+
72
+ }
73
+
74
+ exports.SizerUIRuntime = SizerUIRuntime;
75
+ (0, _defineProperty2().default)(SizerUIRuntime, "dependencies", [_component().ComponentAspect, _docs().DocsAspect]);
76
+ (0, _defineProperty2().default)(SizerUIRuntime, "runtime", _ui().UIRuntime);
77
+
78
+ _componentSizer().ComponentSizerAspect.addRuntime(SizerUIRuntime);
79
+
80
+ //# sourceMappingURL=component-sizer.ui.runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["component-sizer.ui.runtime.tsx"],"names":["SizerUIRuntime","provider","ui","ComponentAspect","DocsAspect","UIRuntime","ComponentSizerAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACO,MAAMA,cAAN,CAAqB;AAKL,eAARC,QAAQ,GAAG;AACtB,UAAMC,EAAE,GAAG,IAAIF,cAAJ,EAAX;AACA,WAAOE,EAAP;AACD;;AARyB;;;gCAAfF,c,kBACW,CAACG,4BAAD,EAAkBC,kBAAlB,C;gCADXJ,c,aAGMK,e;;AAQnBC,uCAAqBC,UAArB,CAAgCP,cAAhC","sourcesContent":["import { ComponentAspect } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { DocsAspect } from '@teambit/docs';\nimport { ComponentSizerAspect } from './component-sizer.aspect';\n\n/**\n * Component code tab aspect. Presents the code tab page and allows to control the code tab and register specific icons for each file type.\n * @example CodeUI.registerEnvFileIcon([(fileName) => (/your-regexp/.test(fileName) ? 'your.icon.url' : undefined)])\n */\nexport class SizerUIRuntime {\n static dependencies = [ComponentAspect, DocsAspect];\n\n static runtime = UIRuntime;\n\n static async provider() {\n const ui = new SizerUIRuntime();\n return ui;\n }\n}\n\nComponentSizerAspect.addRuntime(SizerUIRuntime);\n"]}
package/package.json CHANGED
@@ -1,25 +1,27 @@
1
1
  {
2
2
  "name": "@teambit/component-sizer",
3
- "version": "0.0.22",
3
+ "version": "0.0.26",
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.22"
9
+ "version": "0.0.26"
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.649",
17
- "@teambit/graphql": "0.0.649",
18
- "@teambit/cli": "0.0.443",
19
- "@teambit/preview": "0.0.649"
16
+ "@teambit/component": "0.0.653",
17
+ "@teambit/graphql": "0.0.653",
18
+ "@teambit/cli": "0.0.445",
19
+ "@teambit/preview": "0.0.653",
20
+ "@teambit/docs": "0.0.653",
21
+ "@teambit/ui": "0.0.653"
20
22
  },
21
23
  "devDependencies": {
22
- "@types/mocha": "5.2.7",
24
+ "@types/mocha": "9.1.0",
23
25
  "@types/testing-library__jest-dom": "5.9.5",
24
26
  "@types/jest": "^26.0.0",
25
27
  "@types/react-dom": "^17.0.5",
@@ -27,7 +29,7 @@
27
29
  "@types/node": "12.20.4"
28
30
  },
29
31
  "peerDependencies": {
30
- "@teambit/legacy": "1.0.221",
32
+ "@teambit/legacy": "1.0.223",
31
33
  "react-dom": "^16.8.0 || ^17.0.0",
32
34
  "react": "^16.8.0 || ^17.0.0"
33
35
  },
@@ -45,7 +47,7 @@
45
47
  },
46
48
  "devDependencies": {
47
49
  "@teambit/legacy": "-",
48
- "@types/mocha": "5.2.7",
50
+ "@types/mocha": "9.1.0",
49
51
  "@types/testing-library__jest-dom": "5.9.5",
50
52
  "@types/jest": "^26.0.0",
51
53
  "@types/react-dom": "^17.0.5",
@@ -55,7 +57,7 @@
55
57
  "react": "-"
56
58
  },
57
59
  "peerDependencies": {
58
- "@teambit/legacy": "1.0.221",
60
+ "@teambit/legacy": "1.0.223",
59
61
  "react-dom": "^16.8.0 || ^17.0.0",
60
62
  "react": "^16.8.0 || ^17.0.0"
61
63
  }