@teambit/node 1.0.1083 → 1.0.1085

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.
Files changed (30) hide show
  1. package/artifacts/env-template/public/{761.85fc21305acc4b338568.js → 351.c4ad7767b27d6ecc7aa3.js} +12 -12
  2. package/artifacts/env-template/public/{252.dd1776cd36b7143d34ea.js → 492.65ac8e94e38a727a776e.js} +5 -5
  3. package/artifacts/env-template/public/{806.226eee9edf1026394782.js → 952.18043048b93d872e69b9.js} +2 -2
  4. package/artifacts/env-template/public/assets-manifest.json +18 -18
  5. package/artifacts/env-template/public/{compositions.7119b5eedc1ea2df1c82.js → compositions.1f535070bbc0b1f4b68c.js} +2 -2
  6. package/artifacts/env-template/public/compositions.html +1 -1
  7. package/artifacts/env-template/public/{overview.fe9cc767890e12a460dc.js → overview.86170f0934886e70ec17.js} +2 -2
  8. package/artifacts/env-template/public/overview.html +1 -1
  9. package/artifacts/env-template/public/{preview-root.33ee8ce7e66ee667e142.js → preview-root.061b56c653a3cc2ec137.js} +1 -1
  10. package/artifacts/env-template/public/static/css/preview-root.21652b71.css +1 -0
  11. package/{compositions-1785371732014.js → compositions-1785438161098.js} +2 -2
  12. package/dist/jest/jest.config.d.ts +1 -19
  13. package/dist/jest/jest.config.js +3 -1
  14. package/dist/jest/jest.config.js.map +1 -1
  15. package/dist/node.application.js +1 -2
  16. package/dist/node.application.js.map +1 -1
  17. package/dist/node.env.js +1 -2
  18. package/dist/node.env.js.map +1 -1
  19. package/dist/node.main.runtime.d.ts +2 -2
  20. package/dist/node.main.runtime.js +2 -2
  21. package/dist/node.main.runtime.js.map +1 -1
  22. package/dist/{preview-1785371732014.js → preview-1785438161098.js} +2 -2
  23. package/jest/jest.config.js +3 -1
  24. package/{overview-1785371732014.js → overview-1785438161098.js} +2 -2
  25. package/package.json +48 -26
  26. package/types/asset.d.ts +15 -3
  27. package/types/style.d.ts +4 -0
  28. package/artifacts/env-template/public/static/css/preview-root.5df7b9ad.css +0 -1
  29. /package/artifacts/env-template/public/{peers.0ba95d04a0c01ff1f00c.js → peers.39e10e752cf787523082.js} +0 -0
  30. /package/artifacts/env-template/public/static/css/{252.61d2d806.css → 492.61d2d806.css} +0 -0
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1083/dist/node.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1083/dist/node.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1085/dist/node.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1085/dist/node.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -1,4 +1,6 @@
1
- const reactCjsConfig = require('@teambit/react/jest/jest.cjs.config');
1
+ // require via the dist path: the workspace-generated package.json of @teambit/react maps
2
+ // subpath exports to .ts sources, so the root-level `jest/jest.cjs.config` is not resolvable there.
3
+ const reactCjsConfig = require('@teambit/react/dist/jest/jest.cjs.config.js');
2
4
 
3
5
  const config = { ...reactCjsConfig, testEnvironment: 'node', setupFiles: [] };
4
6
 
@@ -1,4 +1,4 @@
1
- import { linkModules } from '/home/circleci/.bvm/versions/2.0.49/bit-2.0.49/node_modules/@teambit/preview/dist/preview-modules.js';
1
+ import { linkModules } from '/home/circleci/.bvm/versions/2.0.51/bit-2.0.51/node_modules/@teambit/preview/dist/preview-modules.js';
2
2
 
3
3
  // strip leading/trailing slashes from any id we compare
4
4
  function __bitNormalizeId(id) {
@@ -43,7 +43,7 @@ function __bitSurfaceToOverlay(err, componentId) {
43
43
  }, 0);
44
44
  }
45
45
 
46
- import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-0557d705b67dd1e1bccbac0bd34835a41036cf72.mjs";
46
+ import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-9b89befd045d1080499f8437aaaa95b3d5125fd8.mjs";
47
47
  async function initializeModules() {
48
48
 
49
49
  linkModules('overview', {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/node",
3
- "version": "1.0.1083",
3
+ "version": "1.0.1085",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/node",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "node",
9
- "version": "1.0.1083"
9
+ "version": "1.0.1085"
10
10
  },
11
11
  "dependencies": {
12
12
  "typescript": "5.9.2",
@@ -22,8 +22,6 @@
22
22
  "eslint-plugin-jest": "27.6.3",
23
23
  "@typescript-eslint/eslint-plugin": "7.1.0",
24
24
  "@typescript-eslint/parser": "7.1.0",
25
- "core-js": "^3.0.0",
26
- "@babel/runtime": "7.20.0",
27
25
  "@teambit/logger": "0.0.1452",
28
26
  "@teambit/toolbox.network.get-port": "1.0.25",
29
27
  "@teambit/harmony": "0.4.12",
@@ -34,32 +32,56 @@
34
32
  "@bitdev/node.generators.node-starters": "1.0.0",
35
33
  "@bitdev/node.generators.node-templates": "6.0.1",
36
34
  "@teambit/design.ui.empty-box": "0.0.364",
37
- "@teambit/application": "1.0.1083",
38
- "@teambit/react": "1.0.1083",
39
- "@teambit/builder": "1.0.1083",
40
- "@teambit/dependency-resolver": "1.0.1083",
41
- "@teambit/envs": "1.0.1083",
42
- "@teambit/preview": "1.0.1083",
43
- "@teambit/schema": "1.0.1083",
44
- "@teambit/tester": "1.0.1083",
45
- "@teambit/typescript": "1.0.1083",
46
- "@teambit/compiler": "1.0.1083",
47
- "@teambit/generator": "1.0.1084",
48
- "@teambit/pkg": "1.0.1083",
49
- "@teambit/compositions": "1.0.1083",
50
- "@teambit/ui": "1.0.1083"
35
+ "@teambit/application": "1.0.1085",
36
+ "@teambit/react": "1.0.1085",
37
+ "@teambit/builder": "1.0.1085",
38
+ "@teambit/dependency-resolver": "1.0.1085",
39
+ "@teambit/envs": "1.0.1085",
40
+ "@teambit/preview": "1.0.1085",
41
+ "@teambit/schema": "1.0.1085",
42
+ "@teambit/tester": "1.0.1085",
43
+ "@teambit/typescript": "1.0.1085",
44
+ "@teambit/compiler": "1.0.1085",
45
+ "@teambit/generator": "1.0.1086",
46
+ "@teambit/pkg": "1.0.1085",
47
+ "@teambit/compositions": "1.0.1085",
48
+ "@teambit/ui": "1.0.1085"
51
49
  },
52
50
  "devDependencies": {
53
- "@types/react": "^19.0.0",
54
51
  "@types/lodash": "4.14.165",
55
- "@types/node": "12.20.4",
56
- "@types/react-dom": "^19.0.0",
57
- "@types/jest": "^26.0.0",
58
- "@types/testing-library__jest-dom": "5.9.5",
59
- "@teambit/harmony.aspect-docs.node": "0.0.181"
52
+ "@teambit/harmony.aspect-docs.node": "0.0.181",
53
+ "@teambit/harmony.envs.core-aspect-env": "2.0.4"
60
54
  },
61
55
  "peerDependencies": {},
62
- "license": "SEE LICENSE IN UNLICENSED",
56
+ "license": "Apache-2.0",
63
57
  "optionalDependencies": {},
64
- "peerDependenciesMeta": {}
58
+ "peerDependenciesMeta": {},
59
+ "exports": {
60
+ ".": {
61
+ "types": "./dist/index.d.ts",
62
+ "node": {
63
+ "require": "./dist/index.js",
64
+ "import": "./dist/esm.mjs"
65
+ },
66
+ "default": "./dist/index.js"
67
+ },
68
+ "./dist/*": "./dist/*",
69
+ "./artifacts/*": "./artifacts/*"
70
+ },
71
+ "private": false,
72
+ "engines": {
73
+ "node": ">=16.0.0"
74
+ },
75
+ "repository": {
76
+ "type": "git",
77
+ "url": "https://github.com/teambit/bit"
78
+ },
79
+ "keywords": [
80
+ "bit",
81
+ "bit-aspect",
82
+ "bit-core-aspect",
83
+ "components",
84
+ "collaboration",
85
+ "web"
86
+ ]
65
87
  }
package/types/asset.d.ts CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
5
5
  declare module '*.svg' {
6
6
  import type { FunctionComponent, SVGProps } from 'react';
7
7
 
8
- export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
9
11
  const src: string;
10
12
  export default src;
11
13
  }
12
-
13
- // @TODO Gilad
14
14
  declare module '*.jpg' {
15
15
  const value: any;
16
16
  export = value;
@@ -27,3 +27,15 @@ declare module '*.bmp' {
27
27
  const value: any;
28
28
  export = value;
29
29
  }
30
+ declare module '*.otf' {
31
+ const value: any;
32
+ export = value;
33
+ }
34
+ declare module '*.woff' {
35
+ const value: any;
36
+ export = value;
37
+ }
38
+ declare module '*.woff2' {
39
+ const value: any;
40
+ export = value;
41
+ }
package/types/style.d.ts CHANGED
@@ -40,3 +40,7 @@ declare module '*.mdx' {
40
40
  const component: any;
41
41
  export default component;
42
42
  }
43
+
44
+ // `reset-css` ships only `reset.css` (no `.d.ts`). TS6 refuses bare
45
+ // side-effect imports without declarations, so we declare the module here.
46
+ declare module 'reset-css';
@@ -1 +0,0 @@
1
- .frame\.module__overlayBorder--YmE2M{border:2px solid #eebcc9;border:2px solid var(--bit-highlighter-color,#eebcc9);border-radius:11px;box-sizing:border-box;padding:4px;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.frame\.module__hidden--YmE2M{display:none}.label\.module__othersContainer--ZDdjN>*{margin-bottom:8px}.label\.module__othersContainer--ZDdjN>:last-child{margin-bottom:0}.label\.module__othersTooltip--ZDdjN{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.label\.module__othersTooltip--ZDdjN:before{content:"▾";display:inline-block;transition:transform .3s}.label\.module__othersTooltip--ZDdjN.label\.module__active--ZDdjN:before{transform:rotate(-180deg)}.label\.module__hidden--ZDdjN{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden}.component-strip\.module__componentStrip--YTg5Z{border-radius:.5em;box-shadow:var(--bit-highlighter-shadow);display:flex;white-space:nowrap;width:-moz-fit-content;width:fit-content}.component-strip\.module__componentStrip--YTg5Z>*{background:#eebcc9;background:var(--bit-highlighter-color,#eebcc9);line-height:1.5;margin-right:.125em;padding:0 .5em;transform:translateZ(0);transition:filter .3s,background-color .3s}.component-strip\.module__componentStrip--YTg5Z>:link,.component-strip\.module__componentStrip--YTg5Z>:visited{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.component-strip\.module__componentStrip--YTg5Z>:link:hover,.component-strip\.module__componentStrip--YTg5Z>:visited:hover{background:#f6dae2;background:var(--bit-highlighter-color-hover,#f6dae2)}.component-strip\.module__componentStrip--YTg5Z>:link:active,.component-strip\.module__componentStrip--YTg5Z>:visited:active{background:#e79db1;background:var(--bit-highlighter-color-active,#e79db1);color:inherit}.component-strip\.module__componentStrip--YTg5Z>:first-child{border-bottom-left-radius:.5em;border-top-left-radius:.5em}.component-strip\.module__componentStrip--YTg5Z>:last-child{border-bottom-right-radius:.5em;border-top-right-radius:.5em;margin-right:0}.component-strip\.module__nameBlock--YTg5Z{display:flex}.component-strip\.module__nameBlock--YTg5Z .component-strip\.module__version--YTg5Z{max-width:13ch;overflow:hidden;text-overflow:ellipsis;transition:max-width .48s;white-space:nowrap}.component-strip\.module__nameBlock--YTg5Z .component-strip\.module__version--YTg5Z:hover{max-width:61ch}.element-highlighter\.module__label--XzY0M{padding:8px}.element-highlighter\.module__frame--XzY0M,.element-highlighter\.module__label--XzY0M{z-index:15500}.highlighter-provider\.module__highlighter--XzBjO{border:solid #ededed;border:0 solid var(--bit-border-color-lightest,#ededed);box-sizing:border-box;height:100%;transition:border .3s}.highlighter-provider\.module__highlighter--XzBjO.highlighter-provider\.module__active--XzBjO{border-width:8px;overflow:auto}.highlighter-provider\.module__label--XzBjO{font-family:sans-serif;font-size:12px}