@storyblok/react 4.7.0 → 5.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/README.md +103 -103
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common.js +1 -1
- package/dist/common.mjs +12 -14
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +37 -39
- package/dist/index2.js +1 -1
- package/dist/index2.mjs +18 -20
- package/dist/richtext.mjs +3 -3
- package/dist/rsc/common.d.ts +1 -1
- package/dist/rsc/common.d.ts.map +1 -1
- package/dist/rsc.js +1 -1
- package/dist/rsc.mjs +17 -19
- package/dist/storyblok-js.js +1 -24
- package/dist/storyblok-js.mjs +471 -793
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +32 -51
package/dist/types.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export interface StoryblokRichTextProps {
|
|
|
13
13
|
doc: StoryblokRichTextNode<React.ReactElement>;
|
|
14
14
|
resolvers?: StoryblokRichTextResolvers<React.ReactElement>;
|
|
15
15
|
}
|
|
16
|
-
export type { ArrayFn, AsyncFn, ISbAlternateObject, ISbCache, ISbConfig, ISbContentMangmntAPI, ISbDimensions, ISbError, ISbManagmentApiResult,
|
|
16
|
+
export type { ArrayFn, AsyncFn, ISbAlternateObject, ISbCache, ISbConfig, ISbContentMangmntAPI, ISbDimensions, ISbError, ISbManagmentApiResult, ISbResponse, ISbResult, ISbSchema, ISbStories, ISbStoriesParams, ISbStory, ISbStoryData, ISbStoryParams, ISbThrottle, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, StoryblokBridgeConfigV2, StoryblokBridgeV2, StoryblokClient, StoryblokComponentType, useStoryblokBridge, } from '@storyblok/js';
|
|
17
17
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE5I,MAAM,WAAW,oBAAoB;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,uBAAuB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC7C;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,GAAG,IAAI,EACxC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,EACpC,aAAa,CAAC,EAAE,uBAAuB,KACpC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAE5B,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,qBAAqB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,0BAA0B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5D;AAED,YAAY,EACV,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE5I,MAAM,WAAW,oBAAoB;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,uBAAuB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC7C;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,GAAG,IAAI,EACxC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,EACpC,aAAa,CAAC,EAAE,uBAAuB,KACpC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAE5B,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,qBAAqB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,0BAA0B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5D;AAED,YAAY,EACV,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,qBAAqB,EACrB,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"private": false,
|
|
6
|
-
"packageManager": "pnpm@10.10.0",
|
|
7
6
|
"description": "SDK to integrate Storyblok into your project using React.",
|
|
8
7
|
"author": "Storyblok",
|
|
9
8
|
"license": "MIT",
|
|
@@ -32,45 +31,27 @@
|
|
|
32
31
|
"files": [
|
|
33
32
|
"dist"
|
|
34
33
|
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"dev": "vite build --watch",
|
|
37
|
-
"build": "vite build",
|
|
38
|
-
"test": "pnpm run test:unit:ci && pnpm run test:e2e",
|
|
39
|
-
"test:unit": "vitest",
|
|
40
|
-
"test:unit:ci": "vitest run",
|
|
41
|
-
"test:unit:ui": "vitest --ui",
|
|
42
|
-
"test:e2e": "start-server-and-test playground:next13-app-router http://localhost:3000/ cy:run",
|
|
43
|
-
"test:e2e-watch": "start-server-and-test playground:next13-app-router http-get://localhost:3000/ cy:open",
|
|
44
|
-
"cy:run": "cypress run",
|
|
45
|
-
"cy:open": "cypress open",
|
|
46
|
-
"test:comp": "cypress run-ct",
|
|
47
|
-
"playground": "pnpm run --filter ./playground/react dev",
|
|
48
|
-
"playground:next": "pnpm run --filter ./playground/next15 dev",
|
|
49
|
-
"playground:next13": "pnpm run --filter ./playground/next13 dev",
|
|
50
|
-
"playground:next13-app-router": "pnpm run --filter ./playground/next13-app-router dev",
|
|
51
|
-
"lint": "eslint .",
|
|
52
|
-
"lint:fix": "eslint . --fix",
|
|
53
|
-
"prepublishOnly": "pnpm build",
|
|
54
|
-
"check-licenses": "node scripts/license-checker.mjs"
|
|
55
|
-
},
|
|
56
34
|
"peerDependencies": {
|
|
57
35
|
"next": "^13 || ^14 || ^15",
|
|
58
36
|
"react": "^17 || ^18 || ^19",
|
|
59
37
|
"react-dom": "^17 || ^18 || ^19"
|
|
60
38
|
},
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"next": {
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
61
44
|
"dependencies": {
|
|
62
|
-
"@storyblok/js": "
|
|
45
|
+
"@storyblok/js": "4.0.3"
|
|
63
46
|
},
|
|
64
47
|
"devDependencies": {
|
|
65
48
|
"@babel/core": "^7.27.1",
|
|
66
49
|
"@babel/preset-env": "^7.27.2",
|
|
67
|
-
"@commitlint/cli": "^19.8.1",
|
|
68
|
-
"@commitlint/config-conventional": "^19.8.1",
|
|
69
50
|
"@cypress/react": "^9.0.1",
|
|
70
51
|
"@cypress/vite-dev-server": "^6.0.3",
|
|
71
52
|
"@storyblok/eslint-config": "^0.3.0",
|
|
72
53
|
"@tsconfig/recommended": "^1.0.8",
|
|
73
|
-
"@types/node": "^22.15.
|
|
54
|
+
"@types/node": "^22.15.1",
|
|
74
55
|
"@types/react": "19.1.4",
|
|
75
56
|
"@vitejs/plugin-react": "^4.4.1",
|
|
76
57
|
"babel-jest": "^29.7.0",
|
|
@@ -78,23 +59,15 @@
|
|
|
78
59
|
"eslint": "^9.26.0",
|
|
79
60
|
"eslint-plugin-cypress": "^4.3.0",
|
|
80
61
|
"eslint-plugin-jest": "^28.11.0",
|
|
81
|
-
"license-checker": "^25.0.1",
|
|
82
62
|
"react": "^19.1.0",
|
|
83
63
|
"react-dom": "^19.1.0",
|
|
84
64
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
85
|
-
"simple-git-hooks": "^2.13.0",
|
|
86
65
|
"start-server-and-test": "^2.0.11",
|
|
87
66
|
"typescript": "5.8.3",
|
|
88
67
|
"vite": "^6.3.5",
|
|
89
68
|
"vite-plugin-dts": "^4.5.3",
|
|
90
69
|
"vitest": "^3.1.3"
|
|
91
70
|
},
|
|
92
|
-
"pnpm": {
|
|
93
|
-
"onlyBuiltDependencies": [
|
|
94
|
-
"cypress",
|
|
95
|
-
"simple-git-hooks"
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
71
|
"babel": {
|
|
99
72
|
"presets": [
|
|
100
73
|
[
|
|
@@ -107,18 +80,6 @@
|
|
|
107
80
|
]
|
|
108
81
|
]
|
|
109
82
|
},
|
|
110
|
-
"commitlint": {
|
|
111
|
-
"extends": [
|
|
112
|
-
"@commitlint/config-conventional"
|
|
113
|
-
],
|
|
114
|
-
"rules": {
|
|
115
|
-
"body-max-line-length": [
|
|
116
|
-
2,
|
|
117
|
-
"always",
|
|
118
|
-
200
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
83
|
"release": {
|
|
123
84
|
"branches": [
|
|
124
85
|
"main"
|
|
@@ -127,8 +88,28 @@
|
|
|
127
88
|
"publishConfig": {
|
|
128
89
|
"access": "public"
|
|
129
90
|
},
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
|
|
91
|
+
"nx": {
|
|
92
|
+
"implicitDependencies": [
|
|
93
|
+
"!@storyblok/playground-*"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"dev": "vite build --watch",
|
|
98
|
+
"build": "vite build",
|
|
99
|
+
"test": "pnpm run test:unit:ci && pnpm run test:e2e",
|
|
100
|
+
"test:unit": "vitest",
|
|
101
|
+
"test:unit:ci": "vitest run",
|
|
102
|
+
"test:unit:ui": "vitest --ui",
|
|
103
|
+
"test:e2e": "start-server-and-test playground:next13-app-router http://localhost:3000/ cy:run",
|
|
104
|
+
"test:e2e-watch": "start-server-and-test playground:next13-app-router http-get://localhost:3000/ cy:open",
|
|
105
|
+
"cy:run": "cypress run",
|
|
106
|
+
"cy:open": "cypress open",
|
|
107
|
+
"test:comp": "cypress run --component",
|
|
108
|
+
"playground": "pnpm run --filter ./playground/react dev",
|
|
109
|
+
"playground:next": "pnpm run --filter ./playground/next15 dev",
|
|
110
|
+
"playground:next13": "pnpm run --filter ./playground/next13 dev",
|
|
111
|
+
"playground:next13-app-router": "pnpm run --filter ./playground/next13-app-router dev",
|
|
112
|
+
"lint": "eslint .",
|
|
113
|
+
"lint:fix": "eslint . --fix"
|
|
133
114
|
}
|
|
134
|
-
}
|
|
115
|
+
}
|