@quiltt/react 3.8.0 → 3.8.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/CHANGELOG.md +9 -0
- package/dist/{QuilttAuthProvider-client-CU478Ahm.js → QuilttAuthProvider-client-Cp30Hh8M.js} +23 -15
- package/dist/index.js +5 -5
- package/dist/{useQuilttClient-client-Bwrsgaab.js → useQuilttClient-client-DFuCXCBx.js} +1 -1
- package/dist/{useQuilttConnector-client-D_LGauFU.js → useQuilttConnector-client-65x8U9Mn.js} +2 -2
- package/dist/{useQuilttSession-client-C0NMXZs8.js → useQuilttSession-client-xfxBGnbt.js} +1 -1
- package/package.json +3 -3
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @quiltt/react
|
|
2
2
|
|
|
3
|
+
## 3.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#300](https://github.com/quiltt/quiltt-js/pull/300) [`a359810`](https://github.com/quiltt/quiltt-js/commit/a3598104565b4428beef9de37f85211e9caf465b) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Make @quiltt/react-native ESM only
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`a359810`](https://github.com/quiltt/quiltt-js/commit/a3598104565b4428beef9de37f85211e9caf465b)]:
|
|
10
|
+
- @quiltt/core@3.8.1
|
|
11
|
+
|
|
3
12
|
## 3.8.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/{QuilttAuthProvider-client-CU478Ahm.js → QuilttAuthProvider-client-Cp30Hh8M.js}
RENAMED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
'use strict';
|
|
2
1
|
'use client';
|
|
3
2
|
import require$$0, { useCallback, useEffect } from 'react';
|
|
4
3
|
import { JsonWebTokenParse, QuilttClient, InMemoryCache as InMemoryCache$1 } from '@quiltt/core';
|
|
5
4
|
import './useQuilttSettings-client-DU_Qfc8X.js';
|
|
6
5
|
import './useSession-client-CG5lGS9F.js';
|
|
7
6
|
import { jsx } from 'react/jsx-runtime';
|
|
8
|
-
import { u as useQuilttSession } from './useQuilttSession-client-
|
|
7
|
+
import { u as useQuilttSession } from './useQuilttSession-client-xfxBGnbt.js';
|
|
9
8
|
|
|
10
9
|
function _mergeNamespaces(n, m) {
|
|
11
10
|
m.forEach(function (e) {
|
|
@@ -6947,6 +6946,10 @@ function supportsResultCaching(store) {
|
|
|
6947
6946
|
return !!(store instanceof EntityStore && store.group.caching);
|
|
6948
6947
|
}
|
|
6949
6948
|
|
|
6949
|
+
function getDefaultExportFromCjs (x) {
|
|
6950
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6950
6953
|
function shallowCopy(value) {
|
|
6951
6954
|
if (isNonNullObject(value)) {
|
|
6952
6955
|
return isArray(value) ? value.slice(0) : __assign({
|
|
@@ -12590,18 +12593,23 @@ if (globalThis.__DEV__ !== false) {
|
|
|
12590
12593
|
|
|
12591
12594
|
setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
|
|
12592
12595
|
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
}
|
|
12596
|
+
var rehackt;
|
|
12597
|
+
var hasRequiredRehackt;
|
|
12596
12598
|
|
|
12597
|
-
|
|
12599
|
+
function requireRehackt () {
|
|
12600
|
+
if (hasRequiredRehackt) return rehackt;
|
|
12601
|
+
hasRequiredRehackt = 1;
|
|
12602
|
+
rehackt = require$$0;
|
|
12603
|
+
return rehackt;
|
|
12604
|
+
}
|
|
12598
12605
|
|
|
12599
|
-
var
|
|
12606
|
+
var rehacktExports = requireRehackt();
|
|
12607
|
+
var index = /*@__PURE__*/getDefaultExportFromCjs(rehacktExports);
|
|
12600
12608
|
|
|
12601
12609
|
var React = /*#__PURE__*/_mergeNamespaces({
|
|
12602
12610
|
__proto__: null,
|
|
12603
12611
|
default: index
|
|
12604
|
-
}, [
|
|
12612
|
+
}, [rehacktExports]);
|
|
12605
12613
|
|
|
12606
12614
|
// To make sure Apollo Client doesn't create more than one React context
|
|
12607
12615
|
// (which can lead to problems like having an Apollo Client instance added
|
|
@@ -12610,10 +12618,10 @@ var React = /*#__PURE__*/_mergeNamespaces({
|
|
|
12610
12618
|
var contextKey = canUseSymbol ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
12611
12619
|
function getApolloContext() {
|
|
12612
12620
|
invariant("createContext" in React, 45);
|
|
12613
|
-
var context =
|
|
12621
|
+
var context = rehacktExports.createContext[contextKey];
|
|
12614
12622
|
if (!context) {
|
|
12615
|
-
Object.defineProperty(
|
|
12616
|
-
value: context =
|
|
12623
|
+
Object.defineProperty(rehacktExports.createContext, contextKey, {
|
|
12624
|
+
value: context = rehacktExports.createContext({}),
|
|
12617
12625
|
enumerable: false,
|
|
12618
12626
|
writable: false,
|
|
12619
12627
|
configurable: true
|
|
@@ -12626,8 +12634,8 @@ function getApolloContext() {
|
|
|
12626
12634
|
var ApolloProvider = function(_a) {
|
|
12627
12635
|
var client = _a.client, children = _a.children;
|
|
12628
12636
|
var ApolloContext = getApolloContext();
|
|
12629
|
-
var parentContext =
|
|
12630
|
-
var context =
|
|
12637
|
+
var parentContext = rehacktExports.useContext(ApolloContext);
|
|
12638
|
+
var context = rehacktExports.useMemo(function() {
|
|
12631
12639
|
return __assign(__assign({}, parentContext), {
|
|
12632
12640
|
client: client || parentContext.client
|
|
12633
12641
|
});
|
|
@@ -12636,7 +12644,7 @@ var ApolloProvider = function(_a) {
|
|
|
12636
12644
|
client
|
|
12637
12645
|
]);
|
|
12638
12646
|
invariant(context.client, 46);
|
|
12639
|
-
return
|
|
12647
|
+
return rehacktExports.createElement(ApolloContext.Provider, {
|
|
12640
12648
|
value: context
|
|
12641
12649
|
}, children);
|
|
12642
12650
|
};
|
|
@@ -12656,7 +12664,7 @@ var ApolloProvider = function(_a) {
|
|
|
12656
12664
|
* @since 3.0.0
|
|
12657
12665
|
* @returns The `ApolloClient` instance being used by the application.
|
|
12658
12666
|
*/ function useApolloClient(override) {
|
|
12659
|
-
var context =
|
|
12667
|
+
var context = rehacktExports.useContext(getApolloContext());
|
|
12660
12668
|
var client = override || context.client;
|
|
12661
12669
|
invariant(!!client, 49);
|
|
12662
12670
|
return client;
|
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 { G as GraphQLClient, 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-Cp30Hh8M.js';
|
|
5
|
+
export { G as GraphQLClient, c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-Cp30Hh8M.js';
|
|
6
|
+
export { u as useQuilttClient } from './useQuilttClient-client-DFuCXCBx.js';
|
|
7
|
+
import { u as useQuilttConnector } from './useQuilttConnector-client-65x8U9Mn.js';
|
|
8
|
+
export { u as useQuilttSession } from './useQuilttSession-client-xfxBGnbt.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-D_LGauFU.js → useQuilttConnector-client-65x8U9Mn.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-xfxBGnbt.js';
|
|
5
5
|
import { u as useScript } from './useScript-client-Cx5nb9RW.js';
|
|
6
6
|
|
|
7
7
|
// Generated by genversion.
|
|
8
|
-
const version = '3.8.
|
|
8
|
+
const version = '3.8.1';
|
|
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-Cp30Hh8M.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.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "React components and hooks for Quiltt Connector",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"quiltt",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"CHANGELOG.md"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@quiltt/core": "3.8.
|
|
38
|
+
"@quiltt/core": "3.8.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@apollo/client": "3.9.11",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/node": "22.9.0",
|
|
44
44
|
"@types/react": "18.3.12",
|
|
45
45
|
"@types/react-dom": "18.3.1",
|
|
46
|
-
"bunchee": "5.
|
|
46
|
+
"bunchee": "5.6.1",
|
|
47
47
|
"react": "18.3.1",
|
|
48
48
|
"react-dom": "18.3.1",
|
|
49
49
|
"rimraf": "6.0.1",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '3.8.
|
|
2
|
+
export const version = '3.8.1'
|