monoscribe 0.1.0-beta.3 → 0.1.0-beta.4

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <picture>
2
- <source srcset="./assets/logo-white.png" media="(prefers-color-scheme: dark)" />
3
- <img src="./assets/logo-black.png" alt="Monoscribe Logo" />
2
+ <source srcset="https://raw.githubusercontent.com/yunusgogce/monoscribe/main/assets/logo-white.png" media="(prefers-color-scheme: dark)" />
3
+ <img src="https://raw.githubusercontent.com/yunusgogce/monoscribe/main/assets/logo-black.png" alt="Monoscribe Logo" />
4
4
  </picture>
5
5
 
6
6
  **Monoscribe** is a lightweight and customizable typography component library for React, designed to simplify text styling with a focus on monospace fonts. It provides pre-styled components that ensure consistency while allowing flexibility in font selection and customization. With built-in accessibility and animations, Monoscribe enables developers to implement high-quality typography without additional complexity.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monoscribe",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "type": "module",
5
5
  "main": "dist/monoscribe.cjs.js",
6
6
  "module": "dist/monoscribe.es.js",
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
- "declarationDir": "./dist", // Ensure declaration files are output to the dist folder
4
+ "declarationDir": "./dist",
5
5
  "outDir": "./dist",
6
6
  "moduleResolution": "node",
7
7
  "module": "ESNext",
@@ -10,5 +10,8 @@
10
10
  "skipLibCheck": true
11
11
  },
12
12
  "include": ["src"],
13
- "exclude": ["node_modules"]
13
+ "exclude": [
14
+ "node_modules",
15
+ "src/stories"
16
+ ]
14
17
  }
package/vite.config.ts CHANGED
@@ -2,28 +2,30 @@ import { defineConfig } from "vite";
2
2
  import react from "@vitejs/plugin-react";
3
3
  import dts from "vite-plugin-dts";
4
4
 
5
- // https://vite.dev/config/
6
5
  export default defineConfig({
7
6
  plugins: [
8
7
  react(),
9
8
  dts({
10
- insertTypesEntry: true, // Ensure types are included in the build
9
+ insertTypesEntry: true,
10
+ exclude: ["src/stories/**"],
11
11
  }),
12
12
  ],
13
13
  build: {
14
14
  lib: {
15
- entry: "./src/index.ts", // The entry point for your library
16
- name: "Monoscribe", // The global name for the library (used for UMD builds)
17
- fileName: (format) => `monoscribe.${format}.js`, // Output file name
18
- formats: ["es", "cjs"], // Output both ES and CommonJS formats
15
+ entry: "./src/index.ts",
16
+ name: "Monoscribe",
17
+ fileName: (format) => `monoscribe.${format}.js`,
18
+ formats: ["es", "cjs"],
19
19
  },
20
20
  rollupOptions: {
21
- // Make sure to externalize dependencies that shouldn't be bundled
22
- external: ["react", "react-dom"], // These should be treated as peer dependencies
21
+ external: ["react", "react-dom"],
22
+ input: {
23
+ main: "src/index.ts",
24
+ },
23
25
  output: {
24
26
  globals: {
25
27
  react: "React",
26
- "react-dom": "ReactDOM", // This is how UMD/ES builds will reference them
28
+ "react-dom": "ReactDOM",
27
29
  },
28
30
  },
29
31
  },
@@ -1,12 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- declare const meta: {
3
- title: string;
4
- component: ({ level, size, ...props }: import('../components/Heading').HeadingProps) => import("react/jsx-runtime").JSX.Element;
5
- parameters: {
6
- layout: string;
7
- };
8
- tags: string[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const H1: Story;