@teambit/changelog 0.0.555 → 0.0.556

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/changelog",
3
- "version": "0.0.555",
3
+ "version": "0.0.556",
4
4
  "homepage": "https://bit.dev/teambit/component/changelog",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "changelog",
9
- "version": "0.0.555"
9
+ "version": "0.0.556"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -15,14 +15,14 @@
15
15
  "core-js": "^3.0.0",
16
16
  "@teambit/component.instructions.exporting-components": "0.0.6",
17
17
  "@teambit/documenter.ui.heading": "4.1.1",
18
- "@teambit/component": "0.0.555",
19
- "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.465",
20
- "@teambit/ui": "0.0.555",
21
- "@teambit/component.ui.hooks.use-snaps": "0.0.467",
22
- "@teambit/component.ui.version-block": "0.0.476",
18
+ "@teambit/component": "0.0.556",
19
+ "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.466",
20
+ "@teambit/ui": "0.0.556",
21
+ "@teambit/component.ui.hooks.use-snaps": "0.0.468",
22
+ "@teambit/component.ui.version-block": "0.0.477",
23
23
  "@teambit/design.ui.alert-card": "0.0.13",
24
24
  "@teambit/design.ui.separator": "0.0.351",
25
- "@teambit/mdx.ui.mdx-layout": "0.0.467"
25
+ "@teambit/mdx.ui.mdx-layout": "0.0.468"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^17.0.8",
@@ -34,7 +34,7 @@
34
34
  "@types/node": "12.20.4"
35
35
  },
36
36
  "peerDependencies": {
37
- "@teambit/legacy": "1.0.172",
37
+ "@teambit/legacy": "1.0.173",
38
38
  "react-dom": "^16.8.0 || ^17.0.0",
39
39
  "react": "^16.8.0 || ^17.0.0"
40
40
  },
@@ -62,12 +62,18 @@
62
62
  "react": "-"
63
63
  },
64
64
  "peerDependencies": {
65
- "@teambit/legacy": "1.0.172",
65
+ "@teambit/legacy": "1.0.173",
66
66
  "react-dom": "^16.8.0 || ^17.0.0",
67
67
  "react": "^16.8.0 || ^17.0.0"
68
68
  }
69
69
  }
70
70
  },
71
+ "files": [
72
+ "dist",
73
+ "!dist/tsconfig.tsbuildinfo",
74
+ "README.md",
75
+ "README.mdx"
76
+ ],
71
77
  "private": false,
72
78
  "engines": {
73
79
  "node": ">=12.22.0"
package/index.ts DELETED
@@ -1,5 +0,0 @@
1
- import { ChangelogAspect } from './changelog.aspect';
2
-
3
- export type { ChangeLogUI } from './changelog.ui.runtime';
4
- export { ChangelogAspect };
5
- export default ChangelogAspect;
package/tsconfig.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable",
8
- "ScriptHost"
9
- ],
10
- "target": "es2015",
11
- "module": "commonjs",
12
- "jsx": "react",
13
- "declaration": true,
14
- "sourceMap": true,
15
- "skipLibCheck": true,
16
- "moduleResolution": "node",
17
- "esModuleInterop": true,
18
- "outDir": "dist",
19
- "composite": true,
20
- "emitDeclarationOnly": true,
21
- "experimentalDecorators": true,
22
- "emitDecoratorMetadata": true,
23
- "allowSyntheticDefaultImports": true,
24
- "strictPropertyInitialization": false,
25
- "strict": true,
26
- "noImplicitAny": false,
27
- "rootDir": ".",
28
- "preserveConstEnums": true,
29
- "resolveJsonModule": true
30
- },
31
- "exclude": [
32
- "dist"
33
- ]
34
- }
package/types/asset.d.ts DELETED
@@ -1,29 +0,0 @@
1
- declare module '*.png' {
2
- const value: any;
3
- export = value;
4
- }
5
- declare module '*.svg' {
6
- import type { FunctionComponent, SVGProps } from 'react';
7
-
8
- export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
9
- const src: string;
10
- export default src;
11
- }
12
-
13
- // @TODO Gilad
14
- declare module '*.jpg' {
15
- const value: any;
16
- export = value;
17
- }
18
- declare module '*.jpeg' {
19
- const value: any;
20
- export = value;
21
- }
22
- declare module '*.gif' {
23
- const value: any;
24
- export = value;
25
- }
26
- declare module '*.bmp' {
27
- const value: any;
28
- export = value;
29
- }
package/types/style.d.ts DELETED
@@ -1,42 +0,0 @@
1
- declare module '*.module.css' {
2
- const classes: { readonly [key: string]: string };
3
- export default classes;
4
- }
5
- declare module '*.module.scss' {
6
- const classes: { readonly [key: string]: string };
7
- export default classes;
8
- }
9
- declare module '*.module.sass' {
10
- const classes: { readonly [key: string]: string };
11
- export default classes;
12
- }
13
-
14
- declare module '*.module.less' {
15
- const classes: { readonly [key: string]: string };
16
- export default classes;
17
- }
18
-
19
- declare module '*.less' {
20
- const classes: { readonly [key: string]: string };
21
- export default classes;
22
- }
23
-
24
- declare module '*.css' {
25
- const classes: { readonly [key: string]: string };
26
- export default classes;
27
- }
28
-
29
- declare module '*.sass' {
30
- const classes: { readonly [key: string]: string };
31
- export default classes;
32
- }
33
-
34
- declare module '*.scss' {
35
- const classes: { readonly [key: string]: string };
36
- export default classes;
37
- }
38
-
39
- declare module '*.mdx' {
40
- const component: any;
41
- export default component;
42
- }
@@ -1,24 +0,0 @@
1
- .changeLogPage {
2
- padding: 50px 40px 100px 40px;
3
- max-width: 1440px;
4
- margin: 0 auto;
5
- width: 100%;
6
- overflow-y: auto;
7
- box-sizing: border-box;
8
-
9
- .title {
10
- margin-bottom: 24px;
11
- font-size: var(--bit-h-xs, 26px);
12
- }
13
- .separator {
14
- margin-bottom: 0;
15
- }
16
- }
17
-
18
- .separatorNoChangeLog {
19
- margin-bottom: 41px;
20
- }
21
-
22
- .changeLogCard {
23
- margin-bottom: 8px;
24
- }
@@ -1,53 +0,0 @@
1
- import { ComponentContext } from '@teambit/component';
2
- import { H1 } from '@teambit/documenter.ui.heading';
3
- import { Separator } from '@teambit/design.ui.separator';
4
- import { VersionBlock } from '@teambit/component.ui.version-block';
5
- import classNames from 'classnames';
6
- import { useSnaps } from '@teambit/component.ui.hooks.use-snaps';
7
- import { MDXLayout } from '@teambit/mdx.ui.mdx-layout';
8
- import { ExportingComponents } from '@teambit/component.instructions.exporting-components';
9
- import { AlertCard } from '@teambit/design.ui.alert-card';
10
- import React, { HTMLAttributes, useContext } from 'react';
11
-
12
- import styles from './change-log-page.module.scss';
13
-
14
- type ChangeLogPageProps = {} & HTMLAttributes<HTMLDivElement>;
15
-
16
- export function ChangeLogPage({ className }: ChangeLogPageProps) {
17
- const component = useContext(ComponentContext);
18
- const { snaps, loading } = useSnaps(component.id);
19
-
20
- if (!snaps) return null;
21
-
22
- if (snaps.length === 0 && !loading) {
23
- return (
24
- <div className={classNames(styles.changeLogPage, className)}>
25
- <H1 className={styles.title}>History</H1>
26
- <Separator isPresentational className={styles.separatorNoChangeLog} />
27
- <AlertCard
28
- level="info"
29
- title="There is no change log as this component has not been exported yet.
30
- Learn how to export components:"
31
- className={styles.changeLogCard}
32
- >
33
- <MDXLayout>
34
- <ExportingComponents />
35
- </MDXLayout>
36
- </AlertCard>
37
- </div>
38
- );
39
- }
40
-
41
- const latestVersion = snaps[0]?.tag || snaps[0]?.hash;
42
-
43
- return (
44
- <div className={classNames(styles.changeLogPage, className)}>
45
- <H1 className={styles.title}>History</H1>
46
- <Separator isPresentational className={styles.separator} />
47
- {snaps.map((snap, index) => {
48
- const isLatest = latestVersion === snap.tag || latestVersion === snap.hash;
49
- return <VersionBlock key={index} componentId={component.id.fullName} isLatest={isLatest} snap={snap} />;
50
- })}
51
- </div>
52
- );
53
- }