@dhruviii/attack-path 1.0.1 → 1.0.2

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": "@dhruviii/attack-path",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/attack-path.cjs",
6
6
  "module": "dist/attack-path.js",
@@ -11,6 +11,7 @@
11
11
  "require": "./dist/attack-path.cjs"
12
12
  }
13
13
  },
14
+
14
15
  "scripts": {
15
16
  "dev": "vite",
16
17
  "build": "tsc -b && vite build",
@@ -20,6 +21,14 @@
20
21
  "build-storybook": "storybook build",
21
22
  "prepublishOnly": "npm run build"
22
23
  },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/dhruvi095/attack-path.git"
27
+ },
28
+ "homepage": "https://github.com/dhruvi095/attack-path",
29
+ "bugs": {
30
+ "url": "https://github.com/dhruvi095/attack-path/issues"
31
+ },
23
32
  "peerDependencies": {
24
33
  "react": "^18 || ^19",
25
34
  "react-dom": "^18 || ^19",
@@ -1,17 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/react-vite';
2
-
3
- const config: StorybookConfig = {
4
- "stories": [
5
- "../src/**/*.mdx",
6
- "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
7
- ],
8
- "addons": [
9
- "@chromatic-com/storybook",
10
- "@storybook/addon-vitest",
11
- "@storybook/addon-a11y",
12
- "@storybook/addon-docs",
13
- "@storybook/addon-mcp"
14
- ],
15
- "framework": "@storybook/react-vite"
16
- };
17
- export default config;
@@ -1,21 +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
- a11y: {
13
- // 'todo' - show a11y violations in the test UI only
14
- // 'error' - fail CI on a11y violations
15
- // 'off' - skip a11y checks entirely
16
- test: 'todo'
17
- }
18
- },
19
- };
20
-
21
- export default preview;
@@ -1,32 +0,0 @@
1
- import {Meta, StoryObj} from '@storybook/react'
2
- import {card} from './card'
3
-
4
- const meta: Meta<typeof card> = {
5
- title: "components/card",
6
- component: card,
7
- argTypes: {
8
- title: {
9
- control: {type: "text"}
10
- },
11
- discrption: {
12
- control: {type: "text"}
13
- }
14
- }
15
- }
16
- export default meta
17
-
18
- type Story = StoryObj<typeof card>;
19
-
20
- export const primary: Story = {
21
- args: {
22
- title: "Hello primary card",
23
- discrption: "This is description"
24
- }
25
- }
26
-
27
- export const secondry: Story = {
28
- args: {
29
- title: "Hello secondry card",
30
- discrption: "This is secondry card"
31
- }
32
- }
@@ -1,13 +0,0 @@
1
- interface cardProps {
2
- title: string;
3
- discrption: string;
4
- }
5
-
6
- export const card = ({title, discrption}: cardProps) => {
7
- return (
8
- <div>
9
- <h1 className="text-xl font-bold">{title}</h1>
10
- <div>{discrption}</div>
11
- </div>
12
- )
13
- }
@@ -1 +0,0 @@
1
- export {card} from './card'