@teambit/mdx.ui.docs.link 0.0.502 → 0.0.504
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 +1 -17
- package/dist/index.js.map +1 -1
- package/dist/link.composition.d.ts +1 -2
- package/dist/link.composition.js +4 -12
- package/dist/link.composition.js.map +1 -1
- package/dist/link.d.ts +1 -2
- package/dist/link.js +5 -12
- package/dist/link.js.map +1 -1
- package/dist/link.spec.js +7 -11
- package/dist/link.spec.js.map +1 -1
- package/dist/preview-1715202184461.js +7 -0
- package/dist/tsconfig.json +21 -14
- package/link.spec.tsx +1 -0
- package/package.json +9 -14
- package/tsconfig.json +21 -14
- package/types/asset.d.ts +15 -3
- package/dist/preview-1680534678595.js +0 -7
- package/package-tar/teambit-mdx.ui.docs.link-0.0.502.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LinkExample: () => JSX.Element;
|
|
1
|
+
export declare const LinkExample: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/link.composition.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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":"
|
|
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
package/dist/link.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 } =
|
|
6
|
+
const { getByTestId } = render(_jsx(LinkExample, {}));
|
|
12
7
|
const rendered = getByTestId('test-link');
|
|
13
|
-
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
9
|
+
expect(rendered).to.exist;
|
|
14
10
|
});
|
|
15
11
|
//# sourceMappingURL=link.spec.js.map
|
package/dist/link.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.spec.js","sourceRoot":"","sources":["../link.spec.tsx"],"names":[],"mappings":"
|
|
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/davidfirst/Library/Caches/Bit/capsules/641258179/teambit.mdx_ui_docs_link@0.0.504/dist/link.composition.js';
|
|
2
|
+
import * as overview_0 from '/Users/davidfirst/Library/Caches/Bit/capsules/641258179/teambit.mdx_ui_docs_link@0.0.504/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"}]};
|
package/dist/tsconfig.json
CHANGED
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"lib": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"DOM.Iterable"
|
|
4
|
+
"esnext",
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.Iterable"
|
|
8
7
|
],
|
|
9
|
-
"target": "
|
|
10
|
-
"module": "
|
|
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
|
-
"
|
|
14
|
+
"skipLibCheck": true,
|
|
19
15
|
"moduleResolution": "node",
|
|
20
16
|
"esModuleInterop": true,
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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
|
-
"
|
|
30
|
+
"node_modules",
|
|
31
|
+
"package.json",
|
|
32
|
+
"**/*.cjs",
|
|
33
|
+
"./dist"
|
|
27
34
|
],
|
|
28
35
|
"include": [
|
|
29
36
|
"**/*",
|
package/link.spec.tsx
CHANGED
package/package.json
CHANGED
|
@@ -1,35 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/mdx.ui.docs.link",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.504",
|
|
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.
|
|
9
|
+
"version": "0.0.504"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"@teambit/base-react.navigation.link": "2.0.27"
|
|
12
|
+
"@teambit/base-react.navigation.link": "2.0.31"
|
|
14
13
|
},
|
|
15
14
|
"devDependencies": {
|
|
16
|
-
"@types/react": "^17.0.8",
|
|
17
15
|
"@types/chai": "4.2.15",
|
|
18
16
|
"chai": "4.3.0",
|
|
19
17
|
"@types/mocha": "9.1.0",
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
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"
|
|
18
|
+
"@teambit/documenter.theme.theme-compositions": "4.1.1",
|
|
19
|
+
"@teambit/react.v17.react-env": "1.1.18"
|
|
26
20
|
},
|
|
27
21
|
"peerDependencies": {
|
|
28
|
-
"@testing-library/react": "^12.1.5",
|
|
29
22
|
"react": "^16.8.0 || ^17.0.0",
|
|
30
|
-
"react
|
|
23
|
+
"@testing-library/react": "^12.0.0"
|
|
31
24
|
},
|
|
32
25
|
"license": "Apache-2.0",
|
|
26
|
+
"optionalDependencies": {},
|
|
27
|
+
"peerDependenciesMeta": {},
|
|
33
28
|
"private": false,
|
|
34
29
|
"engines": {
|
|
35
30
|
"node": ">=12.22.0"
|
|
@@ -48,4 +43,4 @@
|
|
|
48
43
|
"angular",
|
|
49
44
|
"angular-components"
|
|
50
45
|
]
|
|
51
|
-
}
|
|
46
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"lib": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"DOM.Iterable"
|
|
4
|
+
"esnext",
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.Iterable"
|
|
8
7
|
],
|
|
9
|
-
"target": "
|
|
10
|
-
"module": "
|
|
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
|
-
"
|
|
14
|
+
"skipLibCheck": true,
|
|
19
15
|
"moduleResolution": "node",
|
|
20
16
|
"esModuleInterop": true,
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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
|
-
"
|
|
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<
|
|
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"}]};
|
|
Binary file
|