@storystick/react 0.2.0-rc.4 → 0.2.0-rc.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/.source-hash +1 -1
- package/dist/use-generated-query.js +3 -1
- package/package.json +3 -3
package/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f3cff76aa599432cb56d77637f7b8b40e01b0ca5fb7b85fb94bb0ba7288af884
|
|
@@ -245,7 +245,9 @@ export function useQuery(executableQuery, options = {}) {
|
|
|
245
245
|
return result;
|
|
246
246
|
}
|
|
247
247
|
function previewAuthorityMatchesState(authority, owner, state) {
|
|
248
|
-
|
|
248
|
+
// The authenticated HTTP client is also used before session convergence
|
|
249
|
+
// (for example to load schemas). Query V2 needs the exact read context too.
|
|
250
|
+
if (!state.sessionId || !state.previewToken || !state.readContext)
|
|
249
251
|
return false;
|
|
250
252
|
return clientMatchesPreviewAuthority(authority, {
|
|
251
253
|
projectId: owner.projectId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storystick/react",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.5",
|
|
4
4
|
"license": "FSL-1.1-MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
"dependencies": {
|
|
117
117
|
"@tanstack/query-core": "5.101.4",
|
|
118
118
|
"@base-ui/react": "1.3.0",
|
|
119
|
+
"@storystick/media": "0.2.0-rc.3",
|
|
119
120
|
"@storystick/client": "0.2.0-rc.4",
|
|
120
121
|
"@storystick/types": "0.1.0-rc.3",
|
|
121
|
-
"@storystick/preview": "0.2.0-rc.4"
|
|
122
|
-
"@storystick/media": "0.2.0-rc.3"
|
|
122
|
+
"@storystick/preview": "0.2.0-rc.4"
|
|
123
123
|
},
|
|
124
124
|
"peerDependencies": {
|
|
125
125
|
"react": "^19.2.8",
|