vite-plugin-storybook-nextjs 1.1.0--canary.27.2ded79d.0 → 1.1.0

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/index.cjs CHANGED
@@ -2815,9 +2815,10 @@ var mapping = (env) => ({
2815
2815
  var getCompatibilityAliases = (env) => {
2816
2816
  const version = getNextjsVersion();
2817
2817
  const result = {};
2818
- Object.keys(mapping).forEach((key) => {
2818
+ const compatMap = mapping(env);
2819
+ Object.keys(compatMap).forEach((key) => {
2819
2820
  if (import_semver.default.intersects(version, key)) {
2820
- Object.assign(result, mapping(env)[key]);
2821
+ Object.assign(result, compatMap[key]);
2821
2822
  }
2822
2823
  });
2823
2824
  return result;
package/dist/index.js CHANGED
@@ -2781,9 +2781,10 @@ var mapping = (env) => ({
2781
2781
  var getCompatibilityAliases = (env) => {
2782
2782
  const version = getNextjsVersion();
2783
2783
  const result = {};
2784
- Object.keys(mapping).forEach((key) => {
2784
+ const compatMap = mapping(env);
2785
+ Object.keys(compatMap).forEach((key) => {
2785
2786
  if (import_semver.default.intersects(version, key)) {
2786
- Object.assign(result, mapping(env)[key]);
2787
+ Object.assign(result, compatMap[key]);
2787
2788
  }
2788
2789
  });
2789
2790
  return result;
@@ -1931,9 +1931,10 @@ var mapping = (env) => ({
1931
1931
  var getCompatibilityAliases = (env) => {
1932
1932
  const version = getNextjsVersion();
1933
1933
  const result = {};
1934
- Object.keys(mapping).forEach((key) => {
1934
+ const compatMap = mapping(env);
1935
+ Object.keys(compatMap).forEach((key) => {
1935
1936
  if (import_semver.default.intersects(version, key)) {
1936
- Object.assign(result, mapping(env)[key]);
1937
+ Object.assign(result, compatMap[key]);
1937
1938
  }
1938
1939
  });
1939
1940
  return result;
@@ -1924,9 +1924,10 @@ var mapping = (env) => ({
1924
1924
  var getCompatibilityAliases = (env) => {
1925
1925
  const version = getNextjsVersion();
1926
1926
  const result = {};
1927
- Object.keys(mapping).forEach((key) => {
1927
+ const compatMap = mapping(env);
1928
+ Object.keys(compatMap).forEach((key) => {
1928
1929
  if (import_semver.default.intersects(version, key)) {
1929
- Object.assign(result, mapping(env)[key]);
1930
+ Object.assign(result, compatMap[key]);
1930
1931
  }
1931
1932
  });
1932
1933
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-storybook-nextjs",
3
- "version": "1.1.0--canary.27.2ded79d.0",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vite-plugin",
@@ -39,7 +39,7 @@
39
39
  "./browser/mocks/legacy-image": "./dist/plugins/next-image/alias/next-legacy-image.js",
40
40
  "./browser/mocks/image-default-loader": "./dist/plugins/next-image/alias/image-default-loader.js",
41
41
  "./browser/mocks/image-context": "./dist/plugins/next-image/alias/image-context.js",
42
- "./browser/mocks/draft-mode": "./dist/plugins/next-mocks/compatibility/draft-mode.compat.js",
42
+ "./browser/mocks/draft-mode.compat": "./dist/plugins/next-mocks/compatibility/draft-mode.compat.js",
43
43
  "./node/mocks/cache": "./dist/plugins/next-mocks/alias/cache/index.cjs",
44
44
  "./node/mocks/navigation": "./dist/plugins/next-mocks/alias/navigation/index.cjs",
45
45
  "./node/mocks/headers": "./dist/plugins/next-mocks/alias/headers/index.cjs",
@@ -50,7 +50,7 @@
50
50
  "./node/mocks/legacy-image": "./dist/plugins/next-image/alias/next-legacy-image.cjs",
51
51
  "./node/mocks/image-default-loader": "./dist/plugins/next-image/alias/image-default-loader.cjs",
52
52
  "./node/mocks/image-context": "./dist/plugins/next-image/alias/image-context.cjs",
53
- "./node/mocks/draft-mode": "./dist/plugins/next-mocks/compatibility/draft-mode.compat.cjs"
53
+ "./node/mocks/draft-mode.compat": "./dist/plugins/next-mocks/compatibility/draft-mode.compat.cjs"
54
54
  },
55
55
  "scripts": {
56
56
  "prepublishOnly": "pnpm build",