vite-plugin-storybook-nextjs 3.1.3--canary.76.18784d1.0 → 3.1.3--canary.77.c6666a2.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.
@@ -17,32 +17,20 @@ var unstable_noStore = test.fn().mockName(
17
17
  "next/cache::unstable_noStore"
18
18
  );
19
19
  var refresh = test.fn().mockName("next/cache::refresh");
20
- var cacheLife = test.fn().mockName("next/cache::cacheLife");
21
- var cacheTag = test.fn().mockName("next/cache::cacheTag");
22
- var unstable_cacheLife = test.fn().mockName("next/cache::unstable_cacheLife").mockImplementation((...args) => cacheLife(...args));
23
- var unstable_cacheTag = test.fn().mockName("next/cache::unstable_cacheTag").mockImplementation((...args) => cacheTag(...args));
24
20
  var cacheExports = {
25
21
  unstable_cache,
26
22
  revalidateTag,
27
23
  revalidatePath,
28
24
  updateTag,
29
25
  refresh,
30
- unstable_noStore,
31
- cacheLife,
32
- cacheTag,
33
- unstable_cacheLife,
34
- unstable_cacheTag
26
+ unstable_noStore
35
27
  };
36
28
  var cache_default = cacheExports;
37
29
 
38
- exports.cacheLife = cacheLife;
39
- exports.cacheTag = cacheTag;
40
30
  exports.default = cache_default;
41
31
  exports.refresh = refresh;
42
32
  exports.revalidatePath = revalidatePath;
43
33
  exports.revalidateTag = revalidateTag;
44
34
  exports.unstable_cache = unstable_cache;
45
- exports.unstable_cacheLife = unstable_cacheLife;
46
- exports.unstable_cacheTag = unstable_cacheTag;
47
35
  exports.unstable_noStore = unstable_noStore;
48
36
  exports.updateTag = updateTag;
@@ -7,10 +7,6 @@ declare const updateTag: Mock<Procedure>;
7
7
  declare const unstable_cache: Mock<Procedure>;
8
8
  declare const unstable_noStore: Mock<Procedure>;
9
9
  declare const refresh: Mock<Procedure>;
10
- declare const cacheLife: Mock<Procedure>;
11
- declare const cacheTag: Mock<Procedure>;
12
- declare const unstable_cacheLife: Mock<Procedure>;
13
- declare const unstable_cacheTag: Mock<Procedure>;
14
10
  declare const cacheExports: {
15
11
  unstable_cache: Mock<Procedure>;
16
12
  revalidateTag: Mock<Procedure>;
@@ -18,10 +14,6 @@ declare const cacheExports: {
18
14
  updateTag: Mock<Procedure>;
19
15
  refresh: Mock<Procedure>;
20
16
  unstable_noStore: Mock<Procedure>;
21
- cacheLife: Mock<Procedure>;
22
- cacheTag: Mock<Procedure>;
23
- unstable_cacheLife: Mock<Procedure>;
24
- unstable_cacheTag: Mock<Procedure>;
25
17
  };
26
18
 
27
- export { cacheLife, cacheTag, cacheExports as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_cacheLife, unstable_cacheTag, unstable_noStore, updateTag };
19
+ export { cacheExports as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_noStore, updateTag };
@@ -7,10 +7,6 @@ declare const updateTag: Mock<Procedure>;
7
7
  declare const unstable_cache: Mock<Procedure>;
8
8
  declare const unstable_noStore: Mock<Procedure>;
9
9
  declare const refresh: Mock<Procedure>;
10
- declare const cacheLife: Mock<Procedure>;
11
- declare const cacheTag: Mock<Procedure>;
12
- declare const unstable_cacheLife: Mock<Procedure>;
13
- declare const unstable_cacheTag: Mock<Procedure>;
14
10
  declare const cacheExports: {
15
11
  unstable_cache: Mock<Procedure>;
16
12
  revalidateTag: Mock<Procedure>;
@@ -18,10 +14,6 @@ declare const cacheExports: {
18
14
  updateTag: Mock<Procedure>;
19
15
  refresh: Mock<Procedure>;
20
16
  unstable_noStore: Mock<Procedure>;
21
- cacheLife: Mock<Procedure>;
22
- cacheTag: Mock<Procedure>;
23
- unstable_cacheLife: Mock<Procedure>;
24
- unstable_cacheTag: Mock<Procedure>;
25
17
  };
26
18
 
27
- export { cacheLife, cacheTag, cacheExports as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_cacheLife, unstable_cacheTag, unstable_noStore, updateTag };
19
+ export { cacheExports as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_noStore, updateTag };
@@ -13,22 +13,14 @@ var unstable_noStore = fn().mockName(
13
13
  "next/cache::unstable_noStore"
14
14
  );
15
15
  var refresh = fn().mockName("next/cache::refresh");
16
- var cacheLife = fn().mockName("next/cache::cacheLife");
17
- var cacheTag = fn().mockName("next/cache::cacheTag");
18
- var unstable_cacheLife = fn().mockName("next/cache::unstable_cacheLife").mockImplementation((...args) => cacheLife(...args));
19
- var unstable_cacheTag = fn().mockName("next/cache::unstable_cacheTag").mockImplementation((...args) => cacheTag(...args));
20
16
  var cacheExports = {
21
17
  unstable_cache,
22
18
  revalidateTag,
23
19
  revalidatePath,
24
20
  updateTag,
25
21
  refresh,
26
- unstable_noStore,
27
- cacheLife,
28
- cacheTag,
29
- unstable_cacheLife,
30
- unstable_cacheTag
22
+ unstable_noStore
31
23
  };
32
24
  var cache_default = cacheExports;
33
25
 
34
- export { cacheLife, cacheTag, cache_default as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_cacheLife, unstable_cacheTag, unstable_noStore, updateTag };
26
+ export { cache_default as default, refresh, revalidatePath, revalidateTag, unstable_cache, unstable_noStore, updateTag };
@@ -19,9 +19,6 @@ function noSSR() {
19
19
  }
20
20
  function dynamic(dynamicOptions, options) {
21
21
  const loadableFn = Loadable__default.default;
22
- if (options?.ssr === false) {
23
- delete options.ssr;
24
- }
25
22
  let loadableOptions = {
26
23
  // A loading component is not required, so we default it
27
24
  loading: ({ error, isLoading, pastDelay }) => {
@@ -54,6 +51,11 @@ function dynamic(dynamicOptions, options) {
54
51
  };
55
52
  delete loadableOptions.loadableGenerated;
56
53
  }
54
+ if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.ssr) {
55
+ delete loadableOptions.ssr;
56
+ delete loadableOptions.webpack;
57
+ delete loadableOptions.modules;
58
+ }
57
59
  return loadableFn({ ...loadableOptions, loader });
58
60
  }
59
61
 
@@ -10,9 +10,6 @@ function noSSR() {
10
10
  }
11
11
  function dynamic(dynamicOptions, options) {
12
12
  const loadableFn = Loadable;
13
- if (options?.ssr === false) {
14
- delete options.ssr;
15
- }
16
13
  let loadableOptions = {
17
14
  // A loading component is not required, so we default it
18
15
  loading: ({ error, isLoading, pastDelay }) => {
@@ -45,6 +42,11 @@ function dynamic(dynamicOptions, options) {
45
42
  };
46
43
  delete loadableOptions.loadableGenerated;
47
44
  }
45
+ if (typeof loadableOptions.ssr === "boolean" && !loadableOptions.ssr) {
46
+ delete loadableOptions.ssr;
47
+ delete loadableOptions.webpack;
48
+ delete loadableOptions.modules;
49
+ }
48
50
  return loadableFn({ ...loadableOptions, loader });
49
51
  }
50
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-storybook-nextjs",
3
- "version": "3.1.3--canary.76.18784d1.0",
3
+ "version": "3.1.3--canary.77.c6666a2.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vite-plugin",