react-timelane 1.0.0 → 1.0.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "react-timelane",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -48,5 +48,8 @@
48
48
  "default": "./dist/react-timelane.js"
49
49
  },
50
50
  "./style.css": "./dist/react-timelane.css"
51
- }
51
+ },
52
+ "files": [
53
+ "dist"
54
+ ]
52
55
  }
@@ -1,11 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/react-vite";
2
-
3
- const config: StorybookConfig = {
4
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5
- addons: ["@chromatic-com/storybook", "@storybook/addon-docs"],
6
- framework: {
7
- name: "@storybook/react-vite",
8
- options: {},
9
- },
10
- };
11
- export default config;
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,14 +0,0 @@
1
- import type { Preview } from '@storybook/react-vite'
2
-
3
- const preview: Preview = {
4
- parameters: {
5
- controls: {
6
- matchers: {
7
- color: /(background|color)$/i,
8
- date: /Date$/i,
9
- },
10
- },
11
- },
12
- };
13
-
14
- export default preview;
package/eslint.config.js DELETED
@@ -1,28 +0,0 @@
1
- // For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
2
- import storybook from "eslint-plugin-storybook";
3
-
4
- import js from '@eslint/js'
5
- import globals from 'globals'
6
- import reactHooks from 'eslint-plugin-react-hooks'
7
- import reactRefresh from 'eslint-plugin-react-refresh'
8
- import tseslint from 'typescript-eslint'
9
-
10
- export default tseslint.config({ ignores: ['dist'] }, {
11
- extends: [js.configs.recommended, ...tseslint.configs.recommended],
12
- files: ['**/*.{ts,tsx}'],
13
- languageOptions: {
14
- ecmaVersion: 2020,
15
- globals: globals.browser,
16
- },
17
- plugins: {
18
- 'react-hooks': reactHooks,
19
- 'react-refresh': reactRefresh,
20
- },
21
- rules: {
22
- ...reactHooks.configs.recommended.rules,
23
- 'react-refresh/only-export-components': [
24
- 'warn',
25
- { allowConstantExport: true },
26
- ],
27
- },
28
- }, storybook.configs["flat/recommended"]);
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>react-timelane</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.tsx"></script>
12
- </body>
13
- </html>
package/vite.config.ts DELETED
@@ -1,32 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import { resolve } from "path";
3
- import react from "@vitejs/plugin-react";
4
- import dts from "vite-plugin-dts";
5
- // import vitePluginSass from "vite-plugin-sass";
6
-
7
- // https://vite.dev/config/
8
- export default defineConfig({
9
- plugins: [
10
- react(),
11
- // vitePluginSass(),
12
- dts({ include: ["src"], exclude: ["docs", ".github"] }),
13
- ],
14
- build: {
15
- lib: {
16
- entry: resolve(__dirname, "src/index.ts"),
17
- formats: ["es"],
18
- },
19
- rollupOptions: {
20
- external: ["react", "react/jsx-runtime"],
21
- },
22
- },
23
- // css: {
24
- // preprocessorOptions: {
25
- // scss: {
26
- // additionalData: `
27
- // @import "TimelaneV3/layout/layout.scss";
28
- // `,
29
- // },
30
- // },
31
- // },
32
- });