@qoretechnologies/qlip 0.1.0-beta.20260128131929
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 +131 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +1 -0
- package/dist/config/parameters.d.ts +22 -0
- package/dist/config/parameters.d.ts.map +1 -0
- package/dist/config/parameters.js +24 -0
- package/dist/fs/output.d.ts +42 -0
- package/dist/fs/output.d.ts.map +1 -0
- package/dist/fs/output.js +83 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/plugin/vitestPlugin.d.ts +4 -0
- package/dist/plugin/vitestPlugin.d.ts.map +1 -0
- package/dist/plugin/vitestPlugin.js +71 -0
- package/dist/runtime/context.d.ts +15 -0
- package/dist/runtime/context.d.ts.map +1 -0
- package/dist/runtime/context.js +70 -0
- package/dist/runtime/screenshot.d.ts +10 -0
- package/dist/runtime/screenshot.d.ts.map +1 -0
- package/dist/runtime/screenshot.js +443 -0
- package/dist/runtime/setup.d.ts +2 -0
- package/dist/runtime/setup.d.ts.map +1 -0
- package/dist/runtime/setup.js +15 -0
- package/dist/stories/AnimatedBox.d.ts +4 -0
- package/dist/stories/AnimatedBox.d.ts.map +1 -0
- package/dist/stories/AnimatedBox.js +7 -0
- package/dist/stories/AnimatedBox.stories.d.ts +12 -0
- package/dist/stories/AnimatedBox.stories.d.ts.map +1 -0
- package/dist/stories/AnimatedBox.stories.js +21 -0
- package/dist/stories/Button.d.ts +16 -0
- package/dist/stories/Button.d.ts.map +1 -0
- package/dist/stories/Button.js +7 -0
- package/dist/stories/Button.stories.d.ts +21 -0
- package/dist/stories/Button.stories.d.ts.map +1 -0
- package/dist/stories/Button.stories.js +40 -0
- package/dist/stories/FailOnPurpose.stories.d.ts +12 -0
- package/dist/stories/FailOnPurpose.stories.d.ts.map +1 -0
- package/dist/stories/FailOnPurpose.stories.js +32 -0
- package/dist/stories/Header.d.ts +13 -0
- package/dist/stories/Header.d.ts.map +1 -0
- package/dist/stories/Header.js +4 -0
- package/dist/stories/Header.stories.d.ts +19 -0
- package/dist/stories/Header.stories.d.ts.map +1 -0
- package/dist/stories/Header.stories.js +26 -0
- package/dist/stories/IgnoreMask.d.ts +3 -0
- package/dist/stories/IgnoreMask.d.ts.map +1 -0
- package/dist/stories/IgnoreMask.js +5 -0
- package/dist/stories/IgnoreMask.stories.d.ts +14 -0
- package/dist/stories/IgnoreMask.stories.d.ts.map +1 -0
- package/dist/stories/IgnoreMask.stories.js +12 -0
- package/dist/stories/Page.d.ts +4 -0
- package/dist/stories/Page.d.ts.map +1 -0
- package/dist/stories/Page.js +8 -0
- package/dist/stories/Page.stories.d.ts +13 -0
- package/dist/stories/Page.stories.d.ts.map +1 -0
- package/dist/stories/Page.stories.js +27 -0
- package/dist/types.d.ts +88 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './header.css';
|
|
2
|
+
type User = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export interface HeaderProps {
|
|
6
|
+
user?: User;
|
|
7
|
+
onLogin?: () => void;
|
|
8
|
+
onLogout?: () => void;
|
|
9
|
+
onCreateAccount?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/stories/Header.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAC;AAEtB,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,MAAM,GAAI,8CAA8C,WAAW,4CAuC/E,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from './Button.js';
|
|
3
|
+
import './header.css';
|
|
4
|
+
export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (_jsx("header", { children: _jsxs("div", { className: "storybook-header", children: [_jsxs("div", { children: [_jsx("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: _jsxs("g", { fill: "none", fillRule: "evenodd", children: [_jsx("path", { d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z", fill: "#FFF" }), _jsx("path", { d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z", fill: "#555AB9" }), _jsx("path", { d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z", fill: "#91BAF8" })] }) }), _jsx("h1", { children: "Acme" })] }), _jsx("div", { children: user ? (_jsxs(_Fragment, { children: [_jsxs("span", { className: "welcome", children: ["Welcome, ", _jsx("b", { children: user.name }), "!"] }), _jsx(Button, { size: "small", onClick: onLogout, label: "Log out" })] })) : (_jsxs(_Fragment, { children: [_jsx(Button, { size: "small", onClick: onLogin, label: "Log in" }), _jsx(Button, { primary: true, size: "small", onClick: onCreateAccount, label: "Sign up" })] })) })] }) }));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ user, onLogin, onLogout, onCreateAccount }: import("./Header.js").HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {
|
|
10
|
+
onLogin: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
11
|
+
onLogout: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
12
|
+
onCreateAccount: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const LoggedIn: Story;
|
|
18
|
+
export declare const LoggedOut: Story;
|
|
19
|
+
//# sourceMappingURL=Header.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Header.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAcqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { fn } from 'storybook/test';
|
|
2
|
+
import { Header } from './Header.js';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Example/Header',
|
|
5
|
+
component: Header,
|
|
6
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
parameters: {
|
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
10
|
+
layout: 'fullscreen',
|
|
11
|
+
},
|
|
12
|
+
args: {
|
|
13
|
+
onLogin: fn(),
|
|
14
|
+
onLogout: fn(),
|
|
15
|
+
onCreateAccount: fn(),
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export const LoggedIn = {
|
|
20
|
+
args: {
|
|
21
|
+
user: {
|
|
22
|
+
name: 'Jane Doe',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
export const LoggedOut = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IgnoreMask.d.ts","sourceRoot":"","sources":["../../src/stories/IgnoreMask.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAE3B,eAAO,MAAM,UAAU,+CAYtB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './ignore-mask.css';
|
|
3
|
+
export const IgnoreMask = () => {
|
|
4
|
+
return (_jsxs("div", { className: "ignore-mask", children: [_jsx("div", { className: "ignore-mask__card", children: _jsx("p", { className: "ignore-mask__label", children: "Stable content" }) }), _jsxs("div", { className: "ignore-mask__card ignore-mask__card--ignored", children: [_jsx("p", { className: "ignore-mask__label", children: "Ignored content" }), _jsx("div", { className: "ignore-mask__pulse" })] })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
qlip: {
|
|
7
|
+
ignoreElements: string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
//# sourceMappingURL=IgnoreMask.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IgnoreMask.stories.d.ts","sourceRoot":"","sources":["../../src/stories/IgnoreMask.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;CAQyB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IgnoreMask } from './IgnoreMask.js';
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Example/Ignore Mask',
|
|
4
|
+
component: IgnoreMask,
|
|
5
|
+
parameters: {
|
|
6
|
+
qlip: {
|
|
7
|
+
ignoreElements: ['.ignore-mask .ignore-mask__card--ignored'],
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../src/stories/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,YAAY,CAAC;AAMpB,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EA+DxB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Header } from './Header.js';
|
|
4
|
+
import './page.css';
|
|
5
|
+
export const Page = () => {
|
|
6
|
+
const [user, setUser] = React.useState();
|
|
7
|
+
return (_jsxs("article", { children: [_jsx(Header, { user: user, onLogin: () => setUser({ name: 'Jane Doe' }), onLogout: () => setUser(undefined), onCreateAccount: () => setUser({ name: 'Jane Doe' }) }), _jsxs("section", { className: "storybook-page", children: [_jsx("h2", { children: "Pages in Storybook" }), _jsxs("p", { children: ["We recommend building UIs with a", ' ', _jsx("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer", children: _jsx("strong", { children: "component-driven" }) }), ' ', "process starting with atomic components and ending with pages."] }), _jsx("p", { children: "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:" }), _jsxs("ul", { children: [_jsx("li", { children: "Use a higher-level connected component. Storybook helps you compose such data from the \"args\" of child component stories" }), _jsx("li", { children: "Assemble data in the page component from your services. You can mock these services out using Storybook." })] }), _jsxs("p", { children: ["Get a guided tutorial on component-driven development at", ' ', _jsx("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer", children: "Storybook tutorials" }), ". Read more in the", ' ', _jsx("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer", children: "docs" }), "."] }), _jsxs("div", { className: "tip-wrapper", children: [_jsx("span", { className: "tip", children: "Tip" }), " Adjust the width of the canvas with the", ' ', _jsx("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: _jsx("g", { fill: "none", fillRule: "evenodd", children: _jsx("path", { d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z", id: "a", fill: "#999" }) }) }), "Viewports addon in the toolbar"] })] })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<{}>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const LoggedOut: Story;
|
|
12
|
+
export declare const LoggedIn: Story;
|
|
13
|
+
//# sourceMappingURL=Page.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Page.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;;;CAOmB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,SAAS,EAAE,KAAU,CAAC;AAGnC,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { expect, userEvent, within } from 'storybook/test';
|
|
2
|
+
import { screenshot } from '../browser.js';
|
|
3
|
+
import { Page } from './Page.js';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Example/Page',
|
|
6
|
+
component: Page,
|
|
7
|
+
parameters: {
|
|
8
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
9
|
+
layout: 'fullscreen',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export const LoggedOut = {};
|
|
14
|
+
// More on component testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
|
15
|
+
export const LoggedIn = {
|
|
16
|
+
play: async (ctx) => {
|
|
17
|
+
const { canvasElement } = ctx;
|
|
18
|
+
const canvas = within(canvasElement);
|
|
19
|
+
const loginButton = canvas.getByRole('button', { name: /Log in/i });
|
|
20
|
+
await expect(loginButton).toBeInTheDocument();
|
|
21
|
+
await userEvent.click(loginButton);
|
|
22
|
+
await expect(loginButton).not.toBeInTheDocument();
|
|
23
|
+
const logoutButton = canvas.getByRole('button', { name: /Log out/i });
|
|
24
|
+
await expect(logoutButton).toBeInTheDocument();
|
|
25
|
+
await screenshot(ctx, 'after-login');
|
|
26
|
+
},
|
|
27
|
+
};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export interface QlipViewport {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
}
|
|
5
|
+
export interface QlipCaptureOptions {
|
|
6
|
+
skip?: boolean;
|
|
7
|
+
viewport?: QlipViewport;
|
|
8
|
+
disableAnimations?: boolean;
|
|
9
|
+
pauseAnimationsAtEnd?: boolean;
|
|
10
|
+
waitForIdleMs?: number;
|
|
11
|
+
maxWaitForIdleMs?: number;
|
|
12
|
+
ignoreElements?: string[];
|
|
13
|
+
auto?: boolean;
|
|
14
|
+
manual?: boolean;
|
|
15
|
+
error?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface QlipParameters extends QlipCaptureOptions {
|
|
18
|
+
captureOnError?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface QlipPluginOptions extends QlipCaptureOptions {
|
|
21
|
+
outputDir?: string;
|
|
22
|
+
buildId?: string;
|
|
23
|
+
captureOnError?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export type QlipResolvedDefaults = Required<QlipCaptureOptions> & {
|
|
26
|
+
outputDir: string;
|
|
27
|
+
captureOnError: boolean;
|
|
28
|
+
};
|
|
29
|
+
export interface QlipRuntimeConfig {
|
|
30
|
+
buildId: string;
|
|
31
|
+
outputDir: string;
|
|
32
|
+
buildDir: string;
|
|
33
|
+
defaults: QlipResolvedDefaults;
|
|
34
|
+
tool: {
|
|
35
|
+
name: string;
|
|
36
|
+
version: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface QlipScreenshotOptions extends QlipCaptureOptions {
|
|
40
|
+
name?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface QlipStoryContext {
|
|
43
|
+
id?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
parameters?: {
|
|
47
|
+
qlip?: QlipParameters;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export type QlipEntryKind = 'auto' | 'manual';
|
|
51
|
+
export type QlipEntryStatus = 'captured' | 'skipped' | 'failed';
|
|
52
|
+
export interface QlipManifestEntry {
|
|
53
|
+
kind: QlipEntryKind;
|
|
54
|
+
storyId: string;
|
|
55
|
+
storyTitle?: string;
|
|
56
|
+
storyName?: string;
|
|
57
|
+
screenshotName: string;
|
|
58
|
+
path: string;
|
|
59
|
+
viewport: QlipViewport;
|
|
60
|
+
status: QlipEntryStatus;
|
|
61
|
+
error: {
|
|
62
|
+
message: string;
|
|
63
|
+
stack?: string;
|
|
64
|
+
} | null;
|
|
65
|
+
timings: {
|
|
66
|
+
ms: number;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface QlipManifest {
|
|
70
|
+
tool: {
|
|
71
|
+
name: string;
|
|
72
|
+
version: string;
|
|
73
|
+
};
|
|
74
|
+
buildId: string;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
outputDir: string;
|
|
77
|
+
defaults: QlipResolvedDefaults;
|
|
78
|
+
stats: {
|
|
79
|
+
storiesTotal: number;
|
|
80
|
+
capturedAuto: number;
|
|
81
|
+
capturedManual: number;
|
|
82
|
+
skipped: number;
|
|
83
|
+
failed: number;
|
|
84
|
+
durationMs: number;
|
|
85
|
+
};
|
|
86
|
+
entries: QlipManifestEntry[];
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,K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ist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qoretechnologies/qlip",
|
|
3
|
+
"version": "0.1.0-beta.20260128131929",
|
|
4
|
+
"description": "Storybook screenshot capture for the Vitest addon",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"browser": "./dist/browser.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./browser": {
|
|
15
|
+
"types": "./dist/browser.d.ts",
|
|
16
|
+
"default": "./dist/browser.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"author": "Foxhoundn",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"private": false,
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc -p tsconfig.json",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:unit": "vitest --project unit",
|
|
33
|
+
"test:stories": "vitest --project storybook",
|
|
34
|
+
"test:watch": "vitest",
|
|
35
|
+
"lint": "eslint .",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"storybook": "storybook dev -p 6006",
|
|
38
|
+
"build-storybook": "storybook build",
|
|
39
|
+
"precheck": "npm run lint && npm run typecheck && npm run test -- --project unit"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^20.10.0",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
45
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
46
|
+
"eslint": "^8.54.0",
|
|
47
|
+
"prettier": "^3.0.3",
|
|
48
|
+
"react": "^19.2.3",
|
|
49
|
+
"react-dom": "^19.2.3",
|
|
50
|
+
"playwright": "^1.40.0",
|
|
51
|
+
"tsx": "^4.7.0",
|
|
52
|
+
"typescript": "^5.2.2",
|
|
53
|
+
"storybook": "^10.2.0",
|
|
54
|
+
"@storybook/react-vite": "^10.2.0",
|
|
55
|
+
"@storybook/addon-vitest": "^10.2.0",
|
|
56
|
+
"@storybook/addon-a11y": "^10.2.0",
|
|
57
|
+
"@storybook/addon-docs": "^10.2.0",
|
|
58
|
+
"@storybook/addon-onboarding": "^10.2.0",
|
|
59
|
+
"eslint-plugin-storybook": "^10.2.0",
|
|
60
|
+
"vitest": "^4.0.17",
|
|
61
|
+
"@vitest/browser-playwright": "^4.0.17",
|
|
62
|
+
"@vitest/coverage-v8": "^4.0.17"
|
|
63
|
+
}
|
|
64
|
+
}
|