@repobuddy/storybook 2.0.0 → 2.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/cjs/manager/index.d.ts +1 -1
- package/cjs/manager/index.js +1 -1
- package/cjs/parameters/define_parameters.d.ts +6 -6
- package/cjs/storybook-addon-tag-badges/index.d.ts +2 -2
- package/cjs/storybook-addon-tag-badges/index.js +1 -1
- package/cjs/storybook-addon-tag-badges/types.d.ts +2 -2
- package/cjs/storybook-dark-mode/index.d.ts +3 -3
- package/cjs/storybook-dark-mode/index.js +3 -3
- package/cjs/testing/decorators/when_running_in_test.js +1 -1
- package/esm/manager/index.d.ts +1 -1
- package/esm/manager/index.js +1 -1
- package/esm/parameters/define_parameters.d.ts +6 -6
- package/esm/storybook-addon-tag-badges/index.d.ts +2 -2
- package/esm/storybook-addon-tag-badges/index.js +1 -1
- package/esm/storybook-addon-tag-badges/types.d.ts +2 -2
- package/esm/storybook-dark-mode/index.d.ts +3 -3
- package/esm/storybook-dark-mode/index.js +3 -3
- package/esm/testing/decorators/when_running_in_test.js +1 -1
- package/package.json +2 -2
- package/src/manager/index.ts +1 -1
- package/src/parameters/define_parameters.ts +6 -6
- package/src/storybook-addon-tag-badges/index.ts +2 -2
- package/src/storybook-addon-tag-badges/types.ts +2 -2
- package/src/storybook-dark-mode/index.ts +3 -3
- package/src/storybook-dark-mode/with_dark_mode.tsx +1 -1
- package/src/testing/decorators/when_running_in_test.tsx +1 -1
package/cjs/manager/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './brand_title.
|
|
1
|
+
export * from './brand_title.js';
|
package/cjs/manager/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _brand_title = require("./brand_title.
|
|
6
|
+
var _brand_title = require("./brand_title.js");
|
|
7
7
|
Object.keys(_brand_title).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _brand_title[key]) return;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BackgroundsParam, GlobalApiBackgroundsParam } from './define_backgrounds_param.
|
|
2
|
-
import type { DocsParam } from './define_docs_param.
|
|
3
|
-
import type { LayoutParam } from './define_layout_param.
|
|
4
|
-
import type { TestParam } from './define_test_param.
|
|
5
|
-
import type { ViewportParam } from './define_viewport_param.
|
|
6
|
-
import type { StorySortParam } from './story_sort.
|
|
1
|
+
import type { BackgroundsParam, GlobalApiBackgroundsParam } from './define_backgrounds_param.js';
|
|
2
|
+
import type { DocsParam } from './define_docs_param.js';
|
|
3
|
+
import type { LayoutParam } from './define_layout_param.js';
|
|
4
|
+
import type { TestParam } from './define_test_param.js';
|
|
5
|
+
import type { ViewportParam } from './define_viewport_param.js';
|
|
6
|
+
import type { StorySortParam } from './story_sort.js';
|
|
7
7
|
export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgroundsParam> & Partial<DocsParam> & Partial<LayoutParam> & Partial<TestParam> & Partial<ViewportParam> & {
|
|
8
8
|
options?: StorySortParam & Record<string, any>;
|
|
9
9
|
} & Record<string, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './tag_badges.
|
|
2
|
-
export type * from './types.
|
|
1
|
+
export * from './tag_badges.js';
|
|
2
|
+
export type * from './types.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _tag_badges = require("./tag_badges.
|
|
6
|
+
var _tag_badges = require("./tag_badges.js");
|
|
7
7
|
Object.keys(_tag_badges).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _tag_badges[key]) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Args, Meta as M, StoryObj as SBO } from '@storybook/react-vite';
|
|
2
|
-
import type { ExtendMeta, ExtendStoryObj } from '../types.
|
|
3
|
-
import type { TagNames } from './tag_badges.
|
|
2
|
+
import type { ExtendMeta, ExtendStoryObj } from '../types.js';
|
|
3
|
+
import type { TagNames } from './tag_badges.js';
|
|
4
4
|
export type Meta<TCmpOrArgs = Args> = ExtendMeta<TCmpOrArgs, M<TCmpOrArgs>, {
|
|
5
5
|
tag: TagNames;
|
|
6
6
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './dark_mode_docs_container.
|
|
2
|
-
export * from './define_dark_mode.
|
|
3
|
-
export * from './with_dark_mode.
|
|
1
|
+
export * from './dark_mode_docs_container.js';
|
|
2
|
+
export * from './define_dark_mode.js';
|
|
3
|
+
export * from './with_dark_mode.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _dark_mode_docs_container = require("./dark_mode_docs_container.
|
|
6
|
+
var _dark_mode_docs_container = require("./dark_mode_docs_container.js");
|
|
7
7
|
Object.keys(_dark_mode_docs_container).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _dark_mode_docs_container[key]) return;
|
|
@@ -14,7 +14,7 @@ Object.keys(_dark_mode_docs_container).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _define_dark_mode = require("./define_dark_mode.
|
|
17
|
+
var _define_dark_mode = require("./define_dark_mode.js");
|
|
18
18
|
Object.keys(_define_dark_mode).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
20
|
if (key in exports && exports[key] === _define_dark_mode[key]) return;
|
|
@@ -25,7 +25,7 @@ Object.keys(_define_dark_mode).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _with_dark_mode = require("./with_dark_mode.
|
|
28
|
+
var _with_dark_mode = require("./with_dark_mode.js");
|
|
29
29
|
Object.keys(_with_dark_mode).forEach(function (key) {
|
|
30
30
|
if (key === "default" || key === "__esModule") return;
|
|
31
31
|
if (key in exports && exports[key] === _with_dark_mode[key]) return;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.whenRunningInTest = whenRunningInTest;
|
|
7
|
-
var _when_running_in_textCtx = require("./when_running_in_text.ctx.
|
|
7
|
+
var _when_running_in_textCtx = require("./when_running_in_text.ctx.js");
|
|
8
8
|
function whenRunningInTest(decoratorOrHandler) {
|
|
9
9
|
return function RunInTest(Story, context) {
|
|
10
10
|
return _when_running_in_textCtx.ctx.isRunningInTest() ? decoratorOrHandler(Story, context) ?? /* @__PURE__ */React.createElement(Story, null) : /* @__PURE__ */React.createElement(Story, null);
|
package/esm/manager/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './brand_title.
|
|
1
|
+
export * from './brand_title.js';
|
package/esm/manager/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./brand_title.
|
|
1
|
+
export * from "./brand_title.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BackgroundsParam, GlobalApiBackgroundsParam } from './define_backgrounds_param.
|
|
2
|
-
import type { DocsParam } from './define_docs_param.
|
|
3
|
-
import type { LayoutParam } from './define_layout_param.
|
|
4
|
-
import type { TestParam } from './define_test_param.
|
|
5
|
-
import type { ViewportParam } from './define_viewport_param.
|
|
6
|
-
import type { StorySortParam } from './story_sort.
|
|
1
|
+
import type { BackgroundsParam, GlobalApiBackgroundsParam } from './define_backgrounds_param.js';
|
|
2
|
+
import type { DocsParam } from './define_docs_param.js';
|
|
3
|
+
import type { LayoutParam } from './define_layout_param.js';
|
|
4
|
+
import type { TestParam } from './define_test_param.js';
|
|
5
|
+
import type { ViewportParam } from './define_viewport_param.js';
|
|
6
|
+
import type { StorySortParam } from './story_sort.js';
|
|
7
7
|
export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgroundsParam> & Partial<DocsParam> & Partial<LayoutParam> & Partial<TestParam> & Partial<ViewportParam> & {
|
|
8
8
|
options?: StorySortParam & Record<string, any>;
|
|
9
9
|
} & Record<string, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './tag_badges.
|
|
2
|
-
export type * from './types.
|
|
1
|
+
export * from './tag_badges.js';
|
|
2
|
+
export type * from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./tag_badges.
|
|
1
|
+
export * from "./tag_badges.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Args, Meta as M, StoryObj as SBO } from '@storybook/react-vite';
|
|
2
|
-
import type { ExtendMeta, ExtendStoryObj } from '../types.
|
|
3
|
-
import type { TagNames } from './tag_badges.
|
|
2
|
+
import type { ExtendMeta, ExtendStoryObj } from '../types.js';
|
|
3
|
+
import type { TagNames } from './tag_badges.js';
|
|
4
4
|
export type Meta<TCmpOrArgs = Args> = ExtendMeta<TCmpOrArgs, M<TCmpOrArgs>, {
|
|
5
5
|
tag: TagNames;
|
|
6
6
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './dark_mode_docs_container.
|
|
2
|
-
export * from './define_dark_mode.
|
|
3
|
-
export * from './with_dark_mode.
|
|
1
|
+
export * from './dark_mode_docs_container.js';
|
|
2
|
+
export * from './define_dark_mode.js';
|
|
3
|
+
export * from './with_dark_mode.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./dark_mode_docs_container.
|
|
2
|
-
export * from "./define_dark_mode.
|
|
3
|
-
export * from "./with_dark_mode.
|
|
1
|
+
export * from "./dark_mode_docs_container.js";
|
|
2
|
+
export * from "./define_dark_mode.js";
|
|
3
|
+
export * from "./with_dark_mode.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ctx } from "./when_running_in_text.ctx.
|
|
1
|
+
import { ctx } from "./when_running_in_text.ctx.js";
|
|
2
2
|
export function whenRunningInTest(decoratorOrHandler) {
|
|
3
3
|
return function RunInTest(Story, context) {
|
|
4
4
|
return ctx.isRunningInTest() ? decoratorOrHandler(Story, context) ?? /* @__PURE__ */ React.createElement(Story, null) : /* @__PURE__ */ React.createElement(Story, null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobuddy/storybook",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Storybook repo buddy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react": "^19.2.0",
|
|
79
79
|
"react-dom": "^19.2.0",
|
|
80
80
|
"rimraf": "^6.1.0",
|
|
81
|
-
"storybook": "^10.0.
|
|
81
|
+
"storybook": "^10.0.8",
|
|
82
82
|
"storybook-addon-tag-badges": "^3.0.2",
|
|
83
83
|
"tailwindcss": "^4.1.17",
|
|
84
84
|
"unbuild": "^3.6.1",
|
package/src/manager/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './brand_title.
|
|
1
|
+
export * from './brand_title.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BackgroundsParam, GlobalApiBackgroundsParam } from './define_backgrounds_param.
|
|
2
|
-
import type { DocsParam } from './define_docs_param.
|
|
3
|
-
import type { LayoutParam } from './define_layout_param.
|
|
4
|
-
import type { TestParam } from './define_test_param.
|
|
5
|
-
import type { ViewportParam } from './define_viewport_param.
|
|
6
|
-
import type { StorySortParam } from './story_sort.
|
|
1
|
+
import type { BackgroundsParam, GlobalApiBackgroundsParam } from './define_backgrounds_param.js'
|
|
2
|
+
import type { DocsParam } from './define_docs_param.js'
|
|
3
|
+
import type { LayoutParam } from './define_layout_param.js'
|
|
4
|
+
import type { TestParam } from './define_test_param.js'
|
|
5
|
+
import type { ViewportParam } from './define_viewport_param.js'
|
|
6
|
+
import type { StorySortParam } from './story_sort.js'
|
|
7
7
|
|
|
8
8
|
export type StorybookBuiltInParams = Partial<BackgroundsParam | GlobalApiBackgroundsParam> &
|
|
9
9
|
Partial<DocsParam> &
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './tag_badges.
|
|
2
|
-
export type * from './types.
|
|
1
|
+
export * from './tag_badges.js'
|
|
2
|
+
export type * from './types.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Args, Meta as M, StoryObj as SBO } from '@storybook/react-vite'
|
|
2
|
-
import type { ExtendMeta, ExtendStoryObj } from '../types.
|
|
3
|
-
import type { TagNames } from './tag_badges.
|
|
2
|
+
import type { ExtendMeta, ExtendStoryObj } from '../types.js'
|
|
3
|
+
import type { TagNames } from './tag_badges.js'
|
|
4
4
|
|
|
5
5
|
export type Meta<TCmpOrArgs = Args> = ExtendMeta<TCmpOrArgs, M<TCmpOrArgs>, { tag: TagNames }>
|
|
6
6
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './dark_mode_docs_container.
|
|
2
|
-
export * from './define_dark_mode.
|
|
3
|
-
export * from './with_dark_mode.
|
|
1
|
+
export * from './dark_mode_docs_container.js'
|
|
2
|
+
export * from './define_dark_mode.js'
|
|
3
|
+
export * from './with_dark_mode.js'
|
|
@@ -2,7 +2,7 @@ import type { CSSProperties } from '@just-web/css'
|
|
|
2
2
|
import { toDOMStyle } from '@just-web/css'
|
|
3
3
|
import { useDarkMode } from '@storybook-community/storybook-dark-mode'
|
|
4
4
|
import type { DecoratorFunction } from 'storybook/internal/types'
|
|
5
|
-
import type { DarkModeParam } from './define_dark_mode.
|
|
5
|
+
import type { DarkModeParam } from './define_dark_mode.js'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Applies additional dark mode behavior.
|