@quiltt/react 3.7.1 → 3.7.2
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/CHANGELOG.md +9 -0
- package/dist/{QuilttAuthProvider-client-uO21FlYI.js → QuilttAuthProvider-client-snQrsk82.js} +20 -20
- package/dist/index.js +5 -5
- package/dist/{useQuilttClient-client-4no_TYct.js → useQuilttClient-client-BVtLOPFl.js} +1 -1
- package/dist/{useQuilttConnector-client-Cdd4BzUJ.js → useQuilttConnector-client-Bxt_mb4L.js} +2 -2
- package/dist/{useQuilttSession-client-D2WZ1XHW.js → useQuilttSession-client-D4FPdDda.js} +1 -1
- package/package.json +10 -10
- package/src/hooks/useQuilttConnector.ts +0 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @quiltt/react
|
|
2
2
|
|
|
3
|
+
## 3.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#284](https://github.com/quiltt/quiltt-js/pull/284) [`ccfc6a3`](https://github.com/quiltt/quiltt-js/commit/ccfc6a36ad465e73723d2286b37a377256c31b11) Thanks [@sirwolfgang](https://github.com/sirwolfgang)! - Update Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ccfc6a3`](https://github.com/quiltt/quiltt-js/commit/ccfc6a36ad465e73723d2286b37a377256c31b11)]:
|
|
10
|
+
- @quiltt/core@3.7.2
|
|
11
|
+
|
|
3
12
|
## 3.7.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/{QuilttAuthProvider-client-uO21FlYI.js → QuilttAuthProvider-client-snQrsk82.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { JsonWebTokenParse, QuilttClient, InMemoryCache as InMemoryCache$1 } fro
|
|
|
5
5
|
import './useQuilttSettings-client-DU_Qfc8X.js';
|
|
6
6
|
import './useSession-client-CG5lGS9F.js';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { u as useQuilttSession } from './useQuilttSession-client-
|
|
8
|
+
import { u as useQuilttSession } from './useQuilttSession-client-D4FPdDda.js';
|
|
9
9
|
|
|
10
10
|
function _mergeNamespaces(n, m) {
|
|
11
11
|
m.forEach(function (e) {
|
|
@@ -355,7 +355,7 @@ function setVerbosity(level) {
|
|
|
355
355
|
return old;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
var version = "3.9.
|
|
358
|
+
var version = "3.9.11";
|
|
359
359
|
|
|
360
360
|
function maybe$1(thunk) {
|
|
361
361
|
try {
|
|
@@ -3843,7 +3843,7 @@ var DeepMerger = /** @class */ function() {
|
|
|
3843
3843
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
3844
3844
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
3845
3845
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
3846
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike
|
|
3846
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) {
|
|
3847
3847
|
if (it) o = it;
|
|
3848
3848
|
var i = 0;
|
|
3849
3849
|
return function() {
|
|
@@ -7306,12 +7306,14 @@ var StoreReader = /** @class */ function() {
|
|
|
7306
7306
|
missing = missingMerger.merge(missing, (_a = {}, _a[resultName] = "Can't find field '".concat(selection.name.value, "' on ").concat(isReference(objectOrReference) ? objectOrReference.__ref + " object" : "object " + JSON.stringify(objectOrReference, null, 2)), _a));
|
|
7307
7307
|
}
|
|
7308
7308
|
} else if (isArray(fieldValue)) {
|
|
7309
|
-
fieldValue
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7309
|
+
if (fieldValue.length > 0) {
|
|
7310
|
+
fieldValue = handleMissing(_this.executeSubSelectedArray({
|
|
7311
|
+
field: selection,
|
|
7312
|
+
array: fieldValue,
|
|
7313
|
+
enclosingRef: enclosingRef,
|
|
7314
|
+
context: context
|
|
7315
|
+
}), resultName);
|
|
7316
|
+
}
|
|
7315
7317
|
} else if (!selection.selectionSet) {
|
|
7316
7318
|
// If the field does not have a selection set, then we handle it
|
|
7317
7319
|
// as a scalar value. To keep this.canon from canonicalizing
|
|
@@ -12732,19 +12734,20 @@ var OBSERVED_CHANGED_OPTIONS = [
|
|
|
12732
12734
|
InternalQueryReference.prototype.reinitialize = function() {
|
|
12733
12735
|
var observable = this.observable;
|
|
12734
12736
|
var originalFetchPolicy = this.watchQueryOptions.fetchPolicy;
|
|
12737
|
+
var avoidNetworkRequests = originalFetchPolicy === "no-cache" || originalFetchPolicy === "standby";
|
|
12735
12738
|
try {
|
|
12736
|
-
if (
|
|
12737
|
-
observable.resetLastResults();
|
|
12739
|
+
if (avoidNetworkRequests) {
|
|
12738
12740
|
observable.silentSetOptions({
|
|
12739
|
-
fetchPolicy: "
|
|
12741
|
+
fetchPolicy: "standby"
|
|
12740
12742
|
});
|
|
12741
12743
|
} else {
|
|
12744
|
+
observable.resetLastResults();
|
|
12742
12745
|
observable.silentSetOptions({
|
|
12743
|
-
fetchPolicy: "
|
|
12746
|
+
fetchPolicy: "cache-first"
|
|
12744
12747
|
});
|
|
12745
12748
|
}
|
|
12746
12749
|
this.subscribeToQuery();
|
|
12747
|
-
if (
|
|
12750
|
+
if (avoidNetworkRequests) {
|
|
12748
12751
|
return;
|
|
12749
12752
|
}
|
|
12750
12753
|
observable.resetDiff();
|
|
@@ -12766,12 +12769,9 @@ var OBSERVED_CHANGED_OPTIONS = [
|
|
|
12766
12769
|
}
|
|
12767
12770
|
disposed = true;
|
|
12768
12771
|
_this.references--;
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
_this.dispose();
|
|
12773
|
-
}
|
|
12774
|
-
});
|
|
12772
|
+
if (!_this.references) {
|
|
12773
|
+
_this.dispose();
|
|
12774
|
+
}
|
|
12775
12775
|
};
|
|
12776
12776
|
};
|
|
12777
12777
|
InternalQueryReference.prototype.softRetain = function() {
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from '@quiltt/core';
|
|
2
2
|
export { u as useEventListener } from './useEventListener-client-DVM5xwKY.js';
|
|
3
3
|
export { u as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-client-DeTHOKz1.js';
|
|
4
|
-
import { Q as QuilttAuthProvider } from './QuilttAuthProvider-client-
|
|
5
|
-
export { c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-
|
|
6
|
-
export { u as useQuilttClient } from './useQuilttClient-client-
|
|
7
|
-
import { u as useQuilttConnector } from './useQuilttConnector-client-
|
|
8
|
-
export { u as useQuilttSession } from './useQuilttSession-client-
|
|
4
|
+
import { Q as QuilttAuthProvider } from './QuilttAuthProvider-client-snQrsk82.js';
|
|
5
|
+
export { c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-snQrsk82.js';
|
|
6
|
+
export { u as useQuilttClient } from './useQuilttClient-client-BVtLOPFl.js';
|
|
7
|
+
import { u as useQuilttConnector } from './useQuilttConnector-client-Bxt_mb4L.js';
|
|
8
|
+
export { u as useQuilttSession } from './useQuilttSession-client-D4FPdDda.js';
|
|
9
9
|
export { Q as QuilttSettings, u as useQuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
|
|
10
10
|
export { u as useSession } from './useSession-client-CG5lGS9F.js';
|
|
11
11
|
export { u as useStorage } from './useStorage-client-B3keU-oI.js';
|
package/dist/{useQuilttConnector-client-Cdd4BzUJ.js → useQuilttConnector-client-Bxt_mb4L.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { cdnBase } from '@quiltt/core';
|
|
4
|
-
import { u as useQuilttSession } from './useQuilttSession-client-
|
|
4
|
+
import { u as useQuilttSession } from './useQuilttSession-client-D4FPdDda.js';
|
|
5
5
|
import { u as useScript } from './useScript-client-Cx5nb9RW.js';
|
|
6
6
|
|
|
7
7
|
// Generated by genversion.
|
|
8
|
-
const version = '3.7.
|
|
8
|
+
const version = '3.7.2';
|
|
9
9
|
|
|
10
10
|
const useQuilttConnector = (connectorId, options)=>{
|
|
11
11
|
const status = useScript(`${cdnBase}/v1/connector.js?agent=react-${version}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { AuthAPI } from '@quiltt/core';
|
|
4
|
-
import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-
|
|
4
|
+
import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-snQrsk82.js';
|
|
5
5
|
import { u as useQuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
|
|
6
6
|
import { u as useSession } from './useSession-client-CG5lGS9F.js';
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiltt/react",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"description": "React components and hooks for Quiltt Connector",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"quiltt",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"CHANGELOG.md"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@quiltt/core": "3.7.
|
|
40
|
+
"@quiltt/core": "3.7.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@apollo/client": "3.9.
|
|
43
|
+
"@apollo/client": "3.9.11",
|
|
44
44
|
"@biomejs/biome": "1.8.3",
|
|
45
|
-
"@types/node": "
|
|
45
|
+
"@types/node": "22.4.1",
|
|
46
46
|
"@types/react": "18.3.3",
|
|
47
|
-
"@types/react-dom": "18.
|
|
48
|
-
"bunchee": "5.
|
|
49
|
-
"react": "18.
|
|
50
|
-
"react-dom": "18.
|
|
51
|
-
"rimraf": "6.0.
|
|
52
|
-
"typescript": "5.5.
|
|
47
|
+
"@types/react-dom": "18.3.0",
|
|
48
|
+
"bunchee": "5.3.2",
|
|
49
|
+
"react": "18.3.1",
|
|
50
|
+
"react-dom": "18.3.1",
|
|
51
|
+
"rimraf": "6.0.1",
|
|
52
|
+
"typescript": "5.5.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '3.7.
|
|
2
|
+
export const version = '3.7.2'
|