@teambit/component.ui.version-dropdown 0.0.545 → 0.0.548
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/tsconfig.json +32 -0
- package/dist/version-dropdown.composition.js +1 -3
- package/dist/version-dropdown.composition.js.map +1 -1
- package/dist/version-dropdown.docs.d.ts +3 -6
- package/dist/version-dropdown.docs.js +3 -6
- package/dist/version-dropdown.docs.js.map +1 -1
- package/package-tar/teambit-component.ui.version-dropdown-0.0.548.tgz +0 -0
- package/package.json +4 -7
- package/{preview-1653708349111.js → preview-1654226751250.js} +2 -2
- package/tsconfig.json +6 -1
- package/version-dropdown.composition.tsx +3 -5
- package/version-dropdown.docs.tsx +4 -7
- package/package-tar/teambit-component.ui.version-dropdown-0.0.545.tgz +0 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"lib": [
|
4
|
+
"es2019",
|
5
|
+
"DOM",
|
6
|
+
"ES6",
|
7
|
+
"DOM.Iterable"
|
8
|
+
],
|
9
|
+
"target": "es2015",
|
10
|
+
"module": "CommonJS",
|
11
|
+
"jsx": "react",
|
12
|
+
"allowJs": true,
|
13
|
+
"composite": true,
|
14
|
+
"declaration": true,
|
15
|
+
"sourceMap": true,
|
16
|
+
"skipLibCheck": true,
|
17
|
+
"experimentalDecorators": true,
|
18
|
+
"outDir": "dist",
|
19
|
+
"moduleResolution": "node",
|
20
|
+
"esModuleInterop": true,
|
21
|
+
"rootDir": ".",
|
22
|
+
"resolveJsonModule": true
|
23
|
+
},
|
24
|
+
"exclude": [
|
25
|
+
"dist",
|
26
|
+
"package.json"
|
27
|
+
],
|
28
|
+
"include": [
|
29
|
+
"**/*",
|
30
|
+
"**/*.json"
|
31
|
+
]
|
32
|
+
}
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VersionDropdownWithMultipleVersions = exports.VersionDropdownWithOneVersion = void 0;
|
7
7
|
const react_1 = __importDefault(require("react"));
|
8
8
|
const react_router_dom_1 = require("react-router-dom");
|
9
|
-
const history_1 = require("history");
|
10
9
|
const documenter_theme_theme_compositions_1 = require("@teambit/documenter.theme.theme-compositions");
|
11
10
|
const version_dropdown_1 = require("./version-dropdown");
|
12
11
|
const style = { display: 'flex', justifyContent: 'center', alignContent: 'center' };
|
@@ -16,10 +15,9 @@ const VersionDropdownWithOneVersion = () => {
|
|
16
15
|
};
|
17
16
|
exports.VersionDropdownWithOneVersion = VersionDropdownWithOneVersion;
|
18
17
|
const VersionDropdownWithMultipleVersions = () => {
|
19
|
-
const history = (0, history_1.createBrowserHistory)();
|
20
18
|
const versions = ['0.3', '0.2', '0.1'].map((version) => ({ version }));
|
21
19
|
return (react_1.default.createElement(documenter_theme_theme_compositions_1.ThemeCompositions, { style: style },
|
22
|
-
react_1.default.createElement(react_router_dom_1.
|
20
|
+
react_1.default.createElement(react_router_dom_1.MemoryRouter, null,
|
23
21
|
react_1.default.createElement(version_dropdown_1.VersionDropdown, { tags: versions, currentVersion: versions[0].version }))));
|
24
22
|
};
|
25
23
|
exports.VersionDropdownWithMultipleVersions = VersionDropdownWithMultipleVersions;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version-dropdown.composition.js","sourceRoot":"","sources":["../version-dropdown.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,
|
1
|
+
{"version":3,"file":"version-dropdown.composition.js","sourceRoot":"","sources":["../version-dropdown.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,uDAAgD;AAChD,sGAAiF;AACjF,yDAAqD;AAErD,MAAM,KAAK,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;AAE7E,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAChD,OAAO,CACL,8BAAC,uDAAiB,IAAC,KAAK,EAAE,KAAK;QAC7B,8BAAC,kCAAe,IAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,cAAc,EAAC,KAAK,GAAG,CAClD,CACrB,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,6BAA6B,iCAMxC;AAEK,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACtD,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,CACL,8BAAC,uDAAiB,IAAC,KAAK,EAAE,KAAK;QAC7B,8BAAC,+BAAY;YACX,8BAAC,kCAAe,IAAC,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,GAAI,CAC3D,CACG,CACrB,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,mCAAmC,uCAS9C"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
3
|
-
import { createBrowserHistory } from 'history';
|
2
|
+
import { MemoryRouter } from 'react-router-dom';
|
4
3
|
import { VersionDropdown } from './version-dropdown';
|
5
4
|
declare function Overview(): JSX.Element;
|
6
5
|
declare namespace Overview {
|
@@ -14,8 +13,7 @@ declare namespace Overview {
|
|
14
13
|
justifyContent: string;
|
15
14
|
alignContent: string;
|
16
15
|
};
|
17
|
-
|
18
|
-
createBrowserHistory?: undefined;
|
16
|
+
MemoryRouter?: undefined;
|
19
17
|
};
|
20
18
|
title: string;
|
21
19
|
description: string;
|
@@ -28,8 +26,7 @@ declare namespace Overview {
|
|
28
26
|
justifyContent: string;
|
29
27
|
alignContent: string;
|
30
28
|
};
|
31
|
-
|
32
|
-
createBrowserHistory: typeof createBrowserHistory;
|
29
|
+
MemoryRouter: typeof MemoryRouter;
|
33
30
|
};
|
34
31
|
title: string;
|
35
32
|
description: string;
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const react_1 = __importDefault(require("react"));
|
7
7
|
const react_router_dom_1 = require("react-router-dom");
|
8
|
-
const history_1 = require("history");
|
9
8
|
const documenter_ui_section_1 = require("@teambit/documenter.ui.section");
|
10
9
|
const documenter_theme_theme_compositions_1 = require("@teambit/documenter.theme.theme-compositions");
|
11
10
|
const documenter_ui_separator_1 = require("@teambit/documenter.ui.separator");
|
@@ -47,20 +46,18 @@ Overview.examples = [
|
|
47
46
|
scope: {
|
48
47
|
VersionDropdown: version_dropdown_1.VersionDropdown,
|
49
48
|
style,
|
50
|
-
|
51
|
-
createBrowserHistory: history_1.createBrowserHistory,
|
49
|
+
MemoryRouter: react_router_dom_1.MemoryRouter,
|
52
50
|
},
|
53
51
|
title: 'Version Dropdown with multiple versions',
|
54
52
|
description: 'Using the Version Dropdown component with more than one version',
|
55
53
|
code: `
|
56
54
|
() => {
|
57
|
-
const history = createBrowserHistory();
|
58
55
|
const versions = ['0.3', '0.2', '0.1'];
|
59
56
|
return (
|
60
57
|
<div style={{...style, minHeight: 400, alignItems: 'end', justifyContent: 'flex-end', margin: 10 }}>
|
61
|
-
<
|
58
|
+
<MemoryRouter>
|
62
59
|
<VersionDropdown versions={versions} currentVersion={versions[0]} />
|
63
|
-
</
|
60
|
+
</MemoryRouter>
|
64
61
|
</div>
|
65
62
|
);
|
66
63
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version-dropdown.docs.js","sourceRoot":"","sources":["../version-dropdown.docs.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,
|
1
|
+
{"version":3,"file":"version-dropdown.docs.js","sourceRoot":"","sources":["../version-dropdown.docs.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,uDAAgD;AAChD,0EAAyD;AACzD,sGAAiF;AACjF,8EAA6D;AAC7D,yDAAqD;AAErD,SAAwB,QAAQ;IAC9B,OAAO,CACL,8BAAC,uDAAiB;QAChB;YACE,8BAAC,+BAAO;;gBACoE,yCAAM;;gBACa,yCAAM;2FAE3F;YACV,8BAAC,mCAAS,OAAG,CACZ,CACe,CACrB,CAAC;AACJ,CAAC;AAbD,2BAaC;AAED,QAAQ,CAAC,QAAQ,GAAG,sFAAsF,CAAC;AAE3G,QAAQ,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAEjE,MAAM,KAAK,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEpF,QAAQ,CAAC,QAAQ,GAAG;IAClB;QACE,KAAK,EAAE;YACL,eAAe,EAAf,kCAAe;YACf,KAAK;SACN;QACD,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE;;;;;;;;OAQH;KACJ;IACD;QACE,KAAK,EAAE;YACL,eAAe,EAAf,kCAAe;YACf,KAAK;YACL,YAAY,EAAZ,+BAAY;SACb;QACD,KAAK,EAAE,yCAAyC;QAChD,WAAW,EAAE,iEAAiE;QAC9E,IAAI,EAAE;;;;;;;;;;;OAWH;KACJ;CACF,CAAC"}
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/component.ui.version-dropdown",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.548",
|
4
4
|
"homepage": "https://bit.dev/teambit/component/ui/version-dropdown",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "ui/version-dropdown",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.548"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"classnames": "2.2.6",
|
@@ -17,17 +17,13 @@
|
|
17
17
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
18
18
|
"@teambit/evangelist.surfaces.dropdown": "1.0.2",
|
19
19
|
"@teambit/design.ui.styles.ellipsis": "0.0.347",
|
20
|
-
"@teambit/lanes.ui.lanes": "0.0.
|
20
|
+
"@teambit/lanes.ui.lanes": "0.0.62",
|
21
21
|
"@teambit/legacy-component-log": "0.0.392",
|
22
22
|
"@teambit/ui-foundation.ui.use-box.tab": "0.0.105",
|
23
23
|
"@teambit/component.ui.version-label": "0.0.493",
|
24
24
|
"@teambit/design.ui.time-ago": "0.0.352"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"history": "4.10.1",
|
28
|
-
"react-router-dom": "5.2.0",
|
29
|
-
"@types/history": "4.7.8",
|
30
|
-
"@types/react-router-dom": "5.1.7",
|
31
27
|
"@types/react": "^17.0.8",
|
32
28
|
"@testing-library/react": "11.2.6",
|
33
29
|
"chai": "4.3.0",
|
@@ -44,6 +40,7 @@
|
|
44
40
|
"@teambit/documenter.ui.separator": "4.1.1"
|
45
41
|
},
|
46
42
|
"peerDependencies": {
|
43
|
+
"react-router-dom": "^6.0.0",
|
47
44
|
"react-dom": "^16.8.0 || ^17.0.0",
|
48
45
|
"react": "^16.8.0 || ^17.0.0"
|
49
46
|
},
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.548/dist/version-dropdown.composition.js')]
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_ui_version-dropdown@0.0.548/dist/version-dropdown.docs.js')]
|
package/tsconfig.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
import { createBrowserHistory } from 'history';
|
2
|
+
import { MemoryRouter } from 'react-router-dom';
|
4
3
|
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
5
4
|
import { VersionDropdown } from './version-dropdown';
|
6
5
|
|
@@ -15,13 +14,12 @@ export const VersionDropdownWithOneVersion = () => {
|
|
15
14
|
};
|
16
15
|
|
17
16
|
export const VersionDropdownWithMultipleVersions = () => {
|
18
|
-
const history = createBrowserHistory();
|
19
17
|
const versions = ['0.3', '0.2', '0.1'].map((version) => ({ version }));
|
20
18
|
return (
|
21
19
|
<ThemeCompositions style={style}>
|
22
|
-
<
|
20
|
+
<MemoryRouter>
|
23
21
|
<VersionDropdown tags={versions} currentVersion={versions[0].version} />
|
24
|
-
</
|
22
|
+
</MemoryRouter>
|
25
23
|
</ThemeCompositions>
|
26
24
|
);
|
27
25
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
import { createBrowserHistory } from 'history';
|
2
|
+
import { MemoryRouter } from 'react-router-dom';
|
4
3
|
import { Section } from '@teambit/documenter.ui.section';
|
5
4
|
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
6
5
|
import { Separator } from '@teambit/documenter.ui.separator';
|
@@ -49,20 +48,18 @@ Overview.examples = [
|
|
49
48
|
scope: {
|
50
49
|
VersionDropdown,
|
51
50
|
style,
|
52
|
-
|
53
|
-
createBrowserHistory,
|
51
|
+
MemoryRouter,
|
54
52
|
},
|
55
53
|
title: 'Version Dropdown with multiple versions',
|
56
54
|
description: 'Using the Version Dropdown component with more than one version',
|
57
55
|
code: `
|
58
56
|
() => {
|
59
|
-
const history = createBrowserHistory();
|
60
57
|
const versions = ['0.3', '0.2', '0.1'];
|
61
58
|
return (
|
62
59
|
<div style={{...style, minHeight: 400, alignItems: 'end', justifyContent: 'flex-end', margin: 10 }}>
|
63
|
-
<
|
60
|
+
<MemoryRouter>
|
64
61
|
<VersionDropdown versions={versions} currentVersion={versions[0]} />
|
65
|
-
</
|
62
|
+
</MemoryRouter>
|
66
63
|
</div>
|
67
64
|
);
|
68
65
|
}
|
Binary file
|