@teambit/mdx 1.0.1084 → 1.0.1086

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 (26) 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.7377bbd3f4304b08bd9e.js → compositions.8333cff68b196a290869.js} +2 -2
  6. package/artifacts/env-template/public/compositions.html +1 -1
  7. package/artifacts/env-template/public/{overview.f43d593322e8065ce396.js → overview.113df1e9275c8638ee97.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/mdx.detector.js +2 -4
  13. package/dist/mdx.detector.js.map +1 -1
  14. package/dist/mdx.detector.spec.js +15 -75
  15. package/dist/mdx.detector.spec.js.map +1 -1
  16. package/dist/mdx.doc-reader.js +1 -2
  17. package/dist/mdx.doc-reader.js.map +1 -1
  18. package/dist/mdx.env.d.ts +11 -11
  19. package/dist/{preview-1785371732014.js → preview-1785438161098.js} +2 -2
  20. package/{overview-1785371732014.js → overview-1785438161098.js} +2 -2
  21. package/package.json +47 -25
  22. package/types/asset.d.ts +15 -3
  23. package/types/style.d.ts +4 -0
  24. package/artifacts/env-template/public/static/css/preview-root.5df7b9ad.css +0 -1
  25. /package/artifacts/env-template/public/{peers.815d56a8222add79464b.js → peers.7a95049af1b98b3bbe0a.js} +0 -0
  26. /package/artifacts/env-template/public/static/css/{252.61d2d806.css → 492.61d2d806.css} +0 -0
package/dist/mdx.env.d.ts CHANGED
@@ -22,23 +22,23 @@ export declare class MdxEnv implements Environment {
22
22
  getDependencies(): Promise<{
23
23
  dependencies: {
24
24
  react: string;
25
- "react-dom": string;
26
- "core-js": string;
25
+ 'react-dom': string;
26
+ 'core-js': string;
27
27
  };
28
28
  devDependencies: {
29
29
  react: string;
30
- "react-dom": string;
31
- "@types/mocha": string;
32
- "@types/node": string;
33
- "@types/react": string;
34
- "@types/react-dom": string;
35
- "@types/jest": string;
36
- "@babel/runtime": string;
37
- "@types/testing-library__jest-dom": string;
30
+ 'react-dom': string;
31
+ '@types/mocha': string;
32
+ '@types/node': string;
33
+ '@types/react': string;
34
+ '@types/react-dom': string;
35
+ '@types/jest': string;
36
+ '@babel/runtime': string;
37
+ '@types/testing-library__jest-dom': string;
38
38
  };
39
39
  peerDependencies: {
40
40
  react: string;
41
- "react-dom": string;
41
+ 'react-dom': string;
42
42
  };
43
43
  } & {
44
44
  dependencies: {
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.mdx_mdx@1.0.1084/dist/mdx.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.mdx_mdx@1.0.1084/dist/mdx.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.mdx_mdx@1.0.1086/dist/mdx.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.mdx_mdx@1.0.1086/dist/mdx.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -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/mdx",
3
- "version": "1.0.1084",
3
+ "version": "1.0.1086",
4
4
  "homepage": "https://bit.cloud/teambit/mdx/mdx",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.mdx",
8
8
  "name": "mdx",
9
- "version": "1.0.1084"
9
+ "version": "1.0.1086"
10
10
  },
11
11
  "dependencies": {
12
12
  "@mdx-js/mdx": "^3.1.1",
@@ -14,8 +14,6 @@
14
14
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
15
15
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
16
16
  "@babel/helper-plugin-test-runner": "7.16.7",
17
- "core-js": "^3.0.0",
18
- "@babel/runtime": "7.20.0",
19
17
  "@teambit/harmony": "0.4.12",
20
18
  "@teambit/logger": "0.0.1452",
21
19
  "@teambit/mdx.deps-detectors.detective-mdx": "0.0.3",
@@ -26,30 +24,54 @@
26
24
  "@teambit/worker": "0.0.1663",
27
25
  "@teambit/mdx.generator.mdx-templates": "1.0.14",
28
26
  "@teambit/design.ui.empty-box": "0.0.364",
29
- "@teambit/dependency-resolver": "1.0.1083",
30
- "@teambit/docs": "1.0.1083",
31
- "@teambit/builder": "1.0.1083",
32
- "@teambit/compiler": "1.0.1083",
33
- "@teambit/envs": "1.0.1083",
34
- "@teambit/react": "1.0.1083",
35
- "@teambit/generator": "1.0.1084",
36
- "@teambit/compositions": "1.0.1083",
37
- "@teambit/tester": "1.0.1083",
38
- "@teambit/ui": "1.0.1083"
27
+ "@teambit/dependency-resolver": "1.0.1085",
28
+ "@teambit/docs": "1.0.1085",
29
+ "@teambit/builder": "1.0.1085",
30
+ "@teambit/compiler": "1.0.1085",
31
+ "@teambit/envs": "1.0.1085",
32
+ "@teambit/react": "1.0.1085",
33
+ "@teambit/generator": "1.0.1086",
34
+ "@teambit/compositions": "1.0.1085",
35
+ "@teambit/tester": "1.0.1085",
36
+ "@teambit/ui": "1.0.1085"
39
37
  },
40
38
  "devDependencies": {
41
- "@types/react": "^19.0.0",
42
- "@types/chai": "4.2.15",
43
- "chai": "4.3.0",
44
39
  "@types/lodash": "4.14.165",
45
- "@types/node": "12.20.4",
46
- "@types/react-dom": "^19.0.0",
47
- "@types/jest": "^26.0.0",
48
- "@types/testing-library__jest-dom": "5.9.5",
49
- "@teambit/mdx.aspect-docs.mdx": "0.0.181"
40
+ "@teambit/mdx.aspect-docs.mdx": "0.0.181",
41
+ "@teambit/harmony.envs.core-aspect-env": "2.0.4"
50
42
  },
51
- "peerDependencies": {},
52
- "license": "SEE LICENSE IN UNLICENSED",
43
+ "peerDependencies": {
44
+ "chai": "5.2.1"
45
+ },
46
+ "license": "Apache-2.0",
53
47
  "optionalDependencies": {},
54
- "peerDependenciesMeta": {}
48
+ "peerDependenciesMeta": {},
49
+ "exports": {
50
+ ".": {
51
+ "types": "./dist/index.d.ts",
52
+ "node": {
53
+ "require": "./dist/index.js",
54
+ "import": "./dist/esm.mjs"
55
+ },
56
+ "default": "./dist/index.js"
57
+ },
58
+ "./dist/*": "./dist/*",
59
+ "./artifacts/*": "./artifacts/*"
60
+ },
61
+ "private": false,
62
+ "engines": {
63
+ "node": ">=16.0.0"
64
+ },
65
+ "repository": {
66
+ "type": "git",
67
+ "url": "https://github.com/teambit/bit"
68
+ },
69
+ "keywords": [
70
+ "bit",
71
+ "bit-aspect",
72
+ "bit-core-aspect",
73
+ "components",
74
+ "collaboration",
75
+ "web"
76
+ ]
55
77
  }
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}