@storybook/ember 8.3.0-alpha.4 → 8.3.0-alpha.5
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/dist/preset.js +3 -3
- package/dist/preset.mjs +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/util.js +3 -6
- package/dist/util.mjs +3 -3
- package/package.json +5 -5
- package/template/cli/Button.stories.js +4 -2
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.core = exports.webpackFinal = exports.addons = void 0;
|
|
4
|
-
const
|
|
5
|
-
const builder_webpack5_1 = require("@storybook/builder-webpack5");
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
6
5
|
const common_1 = require("storybook/internal/common");
|
|
7
|
-
const
|
|
6
|
+
const builder_webpack5_1 = require("@storybook/builder-webpack5");
|
|
7
|
+
const getAbsolutePath = (input) => (0, node_path_1.dirname)(require.resolve((0, node_path_1.join)(input, 'package.json')));
|
|
8
8
|
exports.addons = [
|
|
9
9
|
require.resolve('./server/framework-preset-babel-ember'),
|
|
10
10
|
require.resolve('./server/framework-preset-ember-docs'),
|
package/dist/preset.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dirname, join } from 'path';
|
|
2
|
-
import { getVirtualModules } from '@storybook/builder-webpack5';
|
|
1
|
+
import { dirname, join } from 'node:path';
|
|
3
2
|
import { getProjectRoot, resolvePathInStorybookCache } from 'storybook/internal/common';
|
|
3
|
+
import { getVirtualModules } from '@storybook/builder-webpack5';
|
|
4
4
|
const getAbsolutePath = (input) => dirname(require.resolve(join(input, 'package.json')));
|
|
5
5
|
export const addons = [
|
|
6
6
|
require.resolve('./server/framework-preset-babel-ember'),
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StorybookConfig as StorybookConfigBase, TypescriptOptions as TypescriptOptionsReact } from '@storybook/core-webpack';
|
|
2
|
-
import type { StorybookConfigWebpack, BuilderOptions, TypescriptOptions as TypescriptOptionsBuilder } from '@storybook/builder-webpack5';
|
|
3
1
|
import type { CompatibleString } from 'storybook/internal/types';
|
|
2
|
+
import type { BuilderOptions, StorybookConfigWebpack, TypescriptOptions as TypescriptOptionsBuilder } from '@storybook/builder-webpack5';
|
|
3
|
+
import type { StorybookConfig as StorybookConfigBase, TypescriptOptions as TypescriptOptionsReact } from '@storybook/core-webpack';
|
|
4
4
|
type FrameworkName = CompatibleString<'@storybook/ember-webpack5'>;
|
|
5
5
|
type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
|
|
6
6
|
export type FrameworkOptions = {
|
package/dist/util.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.findDistFile = void 0;
|
|
7
|
-
const
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
8
5
|
const find_up_1 = require("find-up");
|
|
9
6
|
const findDistFile = (cwd, relativePath) => {
|
|
10
7
|
const nearestPackageJson = (0, find_up_1.sync)('package.json', { cwd });
|
|
11
8
|
if (!nearestPackageJson) {
|
|
12
9
|
throw new Error(`Could not find package.json in: ${cwd}`);
|
|
13
10
|
}
|
|
14
|
-
const packageDir =
|
|
15
|
-
return
|
|
11
|
+
const packageDir = (0, node_path_1.dirname)(nearestPackageJson);
|
|
12
|
+
return (0, node_path_1.join)(packageDir, 'dist', relativePath);
|
|
16
13
|
};
|
|
17
14
|
exports.findDistFile = findDistFile;
|
package/dist/util.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { dirname, join } from 'node:path';
|
|
2
2
|
import { sync as findUpSync } from 'find-up';
|
|
3
3
|
export const findDistFile = (cwd, relativePath) => {
|
|
4
4
|
const nearestPackageJson = findUpSync('package.json', { cwd });
|
|
5
5
|
if (!nearestPackageJson) {
|
|
6
6
|
throw new Error(`Could not find package.json in: ${cwd}`);
|
|
7
7
|
}
|
|
8
|
-
const packageDir =
|
|
9
|
-
return
|
|
8
|
+
const packageDir = dirname(nearestPackageJson);
|
|
9
|
+
return join(packageDir, 'dist', relativePath);
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/ember",
|
|
3
|
-
"version": "8.3.0-alpha.
|
|
3
|
+
"version": "8.3.0-alpha.5",
|
|
4
4
|
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
|
5
5
|
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/ember",
|
|
6
6
|
"bugs": {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"!src/**/*"
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
|
-
"check": "
|
|
32
|
-
"prep": "
|
|
31
|
+
"check": "jiti ../../../scripts/prepare/check.ts",
|
|
32
|
+
"prep": "jiti ../../../scripts/prepare/tsc.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@storybook/builder-webpack5": "8.3.0-alpha.
|
|
35
|
+
"@storybook/builder-webpack5": "8.3.0-alpha.5",
|
|
36
36
|
"@storybook/global": "^5.0.0",
|
|
37
37
|
"babel-loader": "9.1.3",
|
|
38
38
|
"find-up": "^5.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ember-source": "~3.28.1 || ^4.0.0",
|
|
51
51
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
52
52
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
53
|
-
"storybook": "^8.3.0-alpha.
|
|
53
|
+
"storybook": "^8.3.0-alpha.5"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=18.0.0"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fn } from '@storybook/test';
|
|
2
|
+
|
|
2
3
|
import { action } from '@storybook/addon-actions';
|
|
3
4
|
import { linkTo } from '@storybook/addon-links';
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
import { hbs } from 'ember-cli-htmlbars';
|
|
5
7
|
|
|
6
8
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
|
7
9
|
export default {
|