@teambit/mdx.ui.docs.link 0.0.502 → 0.0.503

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/dist/index.js CHANGED
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./link"), exports);
1
+ export * from './link';
18
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const LinkExample: () => JSX.Element;
1
+ export declare const LinkExample: () => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,5 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LinkExample = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const documenter_theme_theme_compositions_1 = require("@teambit/documenter.theme.theme-compositions");
9
- const link_1 = require("./link");
10
- const LinkExample = () => (react_1.default.createElement(documenter_theme_theme_compositions_1.ThemeCompositions, null,
11
- react_1.default.createElement(link_1.Link, { "data-testid": "test-link", href: "https://bit.dev" }, "bit.dev")));
12
- exports.LinkExample = LinkExample;
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
3
+ import { Link } from './link';
4
+ export const LinkExample = () => (_jsx(ThemeCompositions, { children: _jsx(Link, { "data-testid": "test-link", href: "https://bit.dev", children: "bit.dev" }) }));
13
5
  //# sourceMappingURL=link.composition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.composition.js","sourceRoot":"","sources":["../link.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sGAAiF;AACjF,iCAA8B;AAEvB,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CAC/B,8BAAC,uDAAiB;IAChB,8BAAC,WAAI,mBAAa,WAAW,EAAC,IAAI,EAAC,iBAAiB,cAE7C,CACW,CACrB,CAAC;AANW,QAAA,WAAW,eAMtB"}
1
+ {"version":3,"file":"link.composition.js","sourceRoot":"","sources":["../link.composition.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CAC/B,KAAC,iBAAiB,cAChB,KAAC,IAAI,mBAAa,WAAW,EAAC,IAAI,EAAC,iBAAiB,wBAE7C,GACW,CACrB,CAAC"}
package/dist/link.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LinkProps } from '@teambit/base-react.navigation.link';
3
- export declare function Link(props: LinkProps): JSX.Element;
2
+ export declare function Link(props: LinkProps): import("react/jsx-runtime").JSX.Element;
package/dist/link.js CHANGED
@@ -1,14 +1,7 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Link = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const base_react_navigation_link_1 = require("@teambit/base-react.navigation.link");
9
- const link_module_scss_1 = __importDefault(require("./link.module.scss"));
10
- function Link(props) {
11
- return react_1.default.createElement(base_react_navigation_link_1.Link, Object.assign({}, props, { className: link_module_scss_1.default.link, external: true }));
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Link as BaseLink } from '@teambit/base-react.navigation.link';
3
+ import styles from './link.module.scss';
4
+ export function Link(props) {
5
+ return _jsx(BaseLink, { ...props, className: styles.link, external: true });
12
6
  }
13
- exports.Link = Link;
14
7
  //# sourceMappingURL=link.js.map
package/dist/link.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../link.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,oFAAkF;AAElF,0EAAwC;AAExC,SAAgB,IAAI,CAAC,KAAgB;IACnC,OAAO,8BAAC,iCAAQ,oBAAK,KAAK,IAAE,SAAS,EAAE,0BAAM,CAAC,IAAI,EAAE,QAAQ,UAAG,CAAC;AAClE,CAAC;AAFD,oBAEC"}
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../link.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAa,MAAM,qCAAqC,CAAC;AAElF,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,UAAU,IAAI,CAAC,KAAgB;IACnC,OAAO,KAAC,QAAQ,OAAK,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,SAAG,CAAC;AAClE,CAAC"}
package/dist/link.spec.js CHANGED
@@ -1,15 +1,11 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const react_2 = require("@testing-library/react");
8
- const chai_1 = require("chai");
9
- const link_composition_1 = require("./link.composition");
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { render } from '@testing-library/react';
3
+ import { expect } from 'chai';
4
+ import { LinkExample } from './link.composition';
10
5
  it('should render correctly', () => {
11
- const { getByTestId } = (0, react_2.render)(react_1.default.createElement(link_composition_1.LinkExample, null));
6
+ const { getByTestId } = render(_jsx(LinkExample, {}));
12
7
  const rendered = getByTestId('test-link');
13
- (0, chai_1.expect)(rendered).to.exist;
8
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
9
+ expect(rendered).to.exist;
14
10
  });
15
11
  //# sourceMappingURL=link.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.spec.js","sourceRoot":"","sources":["../link.spec.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,kDAAgD;AAChD,+BAA8B;AAC9B,yDAAiD;AAEjD,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACjC,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,cAAM,EAAC,8BAAC,8BAAW,OAAG,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;IAE1C,IAAA,aAAM,EAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"link.spec.js","sourceRoot":"","sources":["../link.spec.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACjC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,KAAC,WAAW,KAAG,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;IAE1C,oEAAoE;IACpE,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/Users/luv/Library/Caches/Bit/capsules/db78ddaa7/teambit.mdx_ui_docs_link@0.0.503/dist/link.composition.js';
2
+ import * as overview_0 from '/Users/luv/Library/Caches/Bit/capsules/db78ddaa7/teambit.mdx_ui_docs_link@0.0.503/dist/link.docs.md';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Link example","identifier":"LinkExample"}]};
@@ -1,29 +1,36 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable"
4
+ "esnext",
5
+ "dom",
6
+ "dom.Iterable"
8
7
  ],
9
- "target": "es2015",
10
- "module": "CommonJS",
11
- "jsx": "react",
12
- "allowJs": true,
13
- "composite": true,
8
+ "target": "es2020",
9
+ "module": "es2020",
10
+ "jsx": "react-jsx",
14
11
  "declaration": true,
15
12
  "sourceMap": true,
16
- "skipLibCheck": true,
17
13
  "experimentalDecorators": true,
18
- "outDir": "dist",
14
+ "skipLibCheck": true,
19
15
  "moduleResolution": "node",
20
16
  "esModuleInterop": true,
21
- "rootDir": ".",
22
- "resolveJsonModule": true
17
+ "resolveJsonModule": true,
18
+ "allowJs": true,
19
+ "outDir": "dist",
20
+ "strict": true,
21
+ "emitDecoratorMetadata": true,
22
+ "preserveConstEnums": true,
23
+ "strictPropertyInitialization": false,
24
+ "noImplicitAny": false
23
25
  },
24
26
  "exclude": [
27
+ "artifacts",
28
+ "public",
25
29
  "dist",
26
- "package.json"
30
+ "node_modules",
31
+ "package.json",
32
+ "**/*.cjs",
33
+ "./dist"
27
34
  ],
28
35
  "include": [
29
36
  "**/*",
package/link.spec.tsx CHANGED
@@ -7,5 +7,6 @@ it('should render correctly', () => {
7
7
  const { getByTestId } = render(<LinkExample />);
8
8
  const rendered = getByTestId('test-link');
9
9
 
10
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
10
11
  expect(rendered).to.exist;
11
12
  });
package/package.json CHANGED
@@ -1,35 +1,29 @@
1
1
  {
2
2
  "name": "@teambit/mdx.ui.docs.link",
3
- "version": "0.0.502",
3
+ "version": "0.0.503",
4
4
  "homepage": "https://bit.cloud/teambit/mdx/ui/docs/link",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.mdx",
8
8
  "name": "ui/docs/link",
9
- "version": "0.0.502"
10
- },
11
- "dependencies": {
12
- "core-js": "^3.0.0",
13
- "@teambit/base-react.navigation.link": "2.0.27"
9
+ "version": "0.0.503"
14
10
  },
11
+ "dependencies": {},
15
12
  "devDependencies": {
16
- "@types/react": "^17.0.8",
17
13
  "@types/chai": "4.2.15",
18
14
  "chai": "4.3.0",
19
15
  "@types/mocha": "9.1.0",
20
- "@types/node": "12.20.4",
21
- "@types/react-dom": "^17.0.5",
22
- "@types/jest": "^26.0.0",
23
- "@babel/runtime": "7.20.0",
24
- "@types/testing-library__jest-dom": "5.9.5",
25
- "@teambit/documenter.theme.theme-compositions": "4.1.1"
16
+ "@teambit/documenter.theme.theme-compositions": "4.1.1",
17
+ "@teambit/react.v17.react-env": "1.1.17"
26
18
  },
27
19
  "peerDependencies": {
28
- "@testing-library/react": "^12.1.5",
29
20
  "react": "^16.8.0 || ^17.0.0",
30
- "react-dom": "^16.8.0 || ^17.0.0"
21
+ "@testing-library/react": "^12.0.0",
22
+ "@teambit/base-react.navigation.link": "^2.0.31"
31
23
  },
32
24
  "license": "Apache-2.0",
25
+ "optionalDependencies": {},
26
+ "peerDependenciesMeta": {},
33
27
  "private": false,
34
28
  "engines": {
35
29
  "node": ">=12.22.0"
@@ -48,4 +42,4 @@
48
42
  "angular",
49
43
  "angular-components"
50
44
  ]
51
- }
45
+ }
package/tsconfig.json CHANGED
@@ -1,29 +1,36 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable"
4
+ "esnext",
5
+ "dom",
6
+ "dom.Iterable"
8
7
  ],
9
- "target": "es2015",
10
- "module": "CommonJS",
11
- "jsx": "react",
12
- "allowJs": true,
13
- "composite": true,
8
+ "target": "es2020",
9
+ "module": "es2020",
10
+ "jsx": "react-jsx",
14
11
  "declaration": true,
15
12
  "sourceMap": true,
16
- "skipLibCheck": true,
17
13
  "experimentalDecorators": true,
18
- "outDir": "dist",
14
+ "skipLibCheck": true,
19
15
  "moduleResolution": "node",
20
16
  "esModuleInterop": true,
21
- "rootDir": ".",
22
- "resolveJsonModule": true
17
+ "resolveJsonModule": true,
18
+ "allowJs": true,
19
+ "outDir": "dist",
20
+ "strict": true,
21
+ "emitDecoratorMetadata": true,
22
+ "preserveConstEnums": true,
23
+ "strictPropertyInitialization": false,
24
+ "noImplicitAny": false
23
25
  },
24
26
  "exclude": [
27
+ "artifacts",
28
+ "public",
25
29
  "dist",
26
- "package.json"
30
+ "node_modules",
31
+ "package.json",
32
+ "**/*.cjs",
33
+ "./dist"
27
34
  ],
28
35
  "include": [
29
36
  "**/*",
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
+ }
@@ -1,7 +0,0 @@
1
- import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/9b11b2750010b026eb9f781743ce80d08b684558/teambit.mdx_ui_docs_link@0.0.502/dist/link.composition.js';
2
- import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/9b11b2750010b026eb9f781743ce80d08b684558/teambit.mdx_ui_docs_link@0.0.502/dist/link.docs.md';
3
-
4
- export const compositions = [compositions_0];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[{"displayName":"Link example","identifier":"LinkExample"}]};