@storyblok/js 2.3.0 → 3.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.
@@ -1,5 +1,5 @@
1
1
  import StoryblokJSClient, { ISbConfig, ISbComponentType, ISbStoryData } from "storyblok-js-client";
2
- export declare type StoryblokClient = StoryblokJSClient;
2
+ export type StoryblokClient = StoryblokJSClient;
3
3
  declare global {
4
4
  interface Window {
5
5
  storyblokRegisterEvent: (cb: Function) => void;
@@ -11,8 +11,8 @@ declare global {
11
11
  export interface SbInitResult {
12
12
  storyblokApi?: StoryblokClient;
13
13
  }
14
- export declare type SbPluginFactory = (options: SbSDKOptions) => any;
15
- export declare type SbBlokKeyDataTypes = string | number | object | boolean | undefined;
14
+ export type SbPluginFactory = (options: SbSDKOptions) => any;
15
+ export type SbBlokKeyDataTypes = string | number | object | boolean | undefined;
16
16
  export interface SbBlokData extends ISbComponentType<string> {
17
17
  [index: string]: SbBlokKeyDataTypes;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/js",
3
- "version": "2.3.0",
3
+ "version": "3.0.1",
4
4
  "description": "SDK to integrate Storyblok into your project using JavaScript.",
5
5
  "main": "./dist/storyblok-js.js",
6
6
  "module": "./dist/storyblok-js.mjs",
@@ -21,24 +21,24 @@
21
21
  "test": "npm run test:unit && npm run test:e2e",
22
22
  "test:unit": "vitest run",
23
23
  "test:e2e": "start-server-and-test cy:playground http://localhost:5173/ cy:run",
24
- "test:e2e-watch": "start-server-and-test cy:playground http-get://localhost:5173/ cy:open",
24
+ "test:e2e-watch": "start-server-and-test cy:playground http://localhost:5173/ cy:open",
25
25
  "cy:playground": "npm run demo --prefix ../playground",
26
26
  "cy:run": "cypress run",
27
27
  "cy:open": "cypress open",
28
28
  "prepublishOnly": "npm run build && cp ../README.md ./"
29
29
  },
30
30
  "dependencies": {
31
- "storyblok-js-client": "^5.14.2"
31
+ "storyblok-js-client": "^6.4.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@tsconfig/recommended": "^1.0.1",
35
- "cypress": "^12.3.0",
36
- "eslint-plugin-cypress": "^2.14.0",
34
+ "@tsconfig/recommended": "^1.0.3",
35
+ "cypress": "^13.6.2",
36
+ "eslint-plugin-cypress": "^2.15.1",
37
37
  "eslint-plugin-jest": "^26.9.0",
38
38
  "isomorphic-fetch": "^3.0.0",
39
- "start-server-and-test": "^1.15.2",
40
- "vite": "^4.0.4",
41
- "vitest": "^0.34.3"
39
+ "start-server-and-test": "^2.0.3",
40
+ "vite": "^5.0.11",
41
+ "vitest": "^1.1.3"
42
42
  },
43
43
  "babel": {
44
44
  "presets": [