@quiltt/react 3.6.10 → 3.6.11
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-CU3f0mM4.js → QuilttAuthProvider-client-uO21FlYI.js} +7 -9
- package/dist/index.js +6 -6
- package/dist/{useQuilttClient-client-zSMGqVAq.js → useQuilttClient-client-4no_TYct.js} +1 -1
- package/dist/{useQuilttConnector-client-DGOhCF0v.js → useQuilttConnector-client-BR0_z143.js} +2 -2
- package/dist/{useQuilttSession-client-Btezo4Pr.js → useQuilttSession-client-D2WZ1XHW.js} +2 -2
- package/package.json +8 -8
- package/src/hooks/useQuilttSession.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/{QuilttSettingsProvider-client-DkJG70n_.js → QuilttSettingsProvider-client-BJFjBWHn.js} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @quiltt/react
|
|
2
2
|
|
|
3
|
+
## 3.6.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#271](https://github.com/quiltt/quiltt-js/pull/271) [`a9ea2a7`](https://github.com/quiltt/quiltt-js/commit/a9ea2a7c6592dd5245183996ce0d26ffb53f2ed9) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Add 'rol' to private claims
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`a9ea2a7`](https://github.com/quiltt/quiltt-js/commit/a9ea2a7c6592dd5245183996ce0d26ffb53f2ed9)]:
|
|
10
|
+
- @quiltt/core@3.6.11
|
|
11
|
+
|
|
3
12
|
## 3.6.10
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/{QuilttAuthProvider-client-CU3f0mM4.js → QuilttAuthProvider-client-uO21FlYI.js}
RENAMED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
import require$$0, { useCallback, useEffect } from 'react';
|
|
4
4
|
import { JsonWebTokenParse, QuilttClient, InMemoryCache as InMemoryCache$1 } from '@quiltt/core';
|
|
5
|
-
import './useSession-client-CG5lGS9F.js';
|
|
6
5
|
import './useQuilttSettings-client-DU_Qfc8X.js';
|
|
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-D2WZ1XHW.js';
|
|
9
9
|
|
|
10
10
|
function _mergeNamespaces(n, m) {
|
|
11
11
|
m.forEach(function (e) {
|
|
@@ -782,7 +782,7 @@ const kindValues = new Set(Object.keys(QueryDocumentKeys));
|
|
|
782
782
|
const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
|
|
783
783
|
const hasTrailingSlash = value.endsWith('\\');
|
|
784
784
|
const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
|
|
785
|
-
const printAsMultipleLines =
|
|
785
|
+
const printAsMultipleLines = // add leading and trailing new lines only if it improves readability
|
|
786
786
|
(!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
|
|
787
787
|
let result = ''; // Format a multi-line block quote to account for leading space.
|
|
788
788
|
const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
|
|
@@ -910,6 +910,9 @@ function getObjectTag(object) {
|
|
|
910
910
|
return tag;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
+
/* c8 ignore next 3 */ globalThis.process && // eslint-disable-next-line no-undef
|
|
914
|
+
process.env.NODE_ENV === 'production';
|
|
915
|
+
|
|
913
916
|
/**
|
|
914
917
|
* Prints a string as a GraphQL StringValue literal. Replaces control characters
|
|
915
918
|
* and excluded characters (" U+0022 and \\ U+005C) with escape sequences.
|
|
@@ -3142,7 +3145,6 @@ const EntryMethods = {
|
|
|
3142
3145
|
};
|
|
3143
3146
|
function dep(options) {
|
|
3144
3147
|
const depsByKey = new Map();
|
|
3145
|
-
const subscribe = options && options.subscribe;
|
|
3146
3148
|
function depend(key) {
|
|
3147
3149
|
const parent = parentEntrySlot.getValue();
|
|
3148
3150
|
if (parent) {
|
|
@@ -3151,10 +3153,6 @@ function dep(options) {
|
|
|
3151
3153
|
depsByKey.set(key, dep = new Set);
|
|
3152
3154
|
}
|
|
3153
3155
|
parent.dependOn(dep);
|
|
3154
|
-
if (typeof subscribe === "function") {
|
|
3155
|
-
maybeUnsubscribe(dep);
|
|
3156
|
-
dep.unsubscribe = subscribe(key);
|
|
3157
|
-
}
|
|
3158
3156
|
}
|
|
3159
3157
|
}
|
|
3160
3158
|
depend.dirty = function dirty(key, entryMethodName) {
|
|
@@ -3845,7 +3843,7 @@ var DeepMerger = /** @class */ function() {
|
|
|
3845
3843
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
3846
3844
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
3847
3845
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
3848
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike
|
|
3846
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
|
|
3849
3847
|
if (it) o = it;
|
|
3850
3848
|
var i = 0;
|
|
3851
3849
|
return function() {
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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-uO21FlYI.js';
|
|
5
|
+
export { c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-uO21FlYI.js';
|
|
6
|
+
export { u as useQuilttClient } from './useQuilttClient-client-4no_TYct.js';
|
|
7
|
+
import { u as useQuilttConnector } from './useQuilttConnector-client-BR0_z143.js';
|
|
8
|
+
export { u as useQuilttSession } from './useQuilttSession-client-D2WZ1XHW.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';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
|
-
import { Q as QuilttSettingsProvider } from './QuilttSettingsProvider-client-
|
|
13
|
+
import { Q as QuilttSettingsProvider } from './QuilttSettingsProvider-client-BJFjBWHn.js';
|
|
14
14
|
|
|
15
15
|
const QuilttProvider = ({ clientId, token, children })=>{
|
|
16
16
|
return /*#__PURE__*/ jsx(QuilttSettingsProvider, {
|
package/dist/{useQuilttConnector-client-DGOhCF0v.js → useQuilttConnector-client-BR0_z143.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-D2WZ1XHW.js';
|
|
5
5
|
import { u as useScript } from './useScript-client-Cx5nb9RW.js';
|
|
6
6
|
|
|
7
7
|
// Generated by genversion.
|
|
8
|
-
const version = '3.6.
|
|
8
|
+
const version = '3.6.11';
|
|
9
9
|
|
|
10
10
|
const useQuilttConnector = (connectorId, options)=>{
|
|
11
11
|
const status = useScript(`${cdnBase}/v1/connector.js?agent=react-${version}`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { AuthAPI } from '@quiltt/core';
|
|
4
|
-
import {
|
|
5
|
-
import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-CU3f0mM4.js';
|
|
4
|
+
import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-uO21FlYI.js';
|
|
6
5
|
import { u as useQuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
|
|
6
|
+
import { u as useSession } from './useSession-client-CG5lGS9F.js';
|
|
7
7
|
|
|
8
8
|
const useQuilttSession = (environmentId)=>{
|
|
9
9
|
const { clientId } = useQuilttSettings();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiltt/react",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.11",
|
|
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.6.
|
|
40
|
+
"@quiltt/core": "3.6.11"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@apollo/client": "3.9.9",
|
|
44
|
-
"@biomejs/biome": "1.8.
|
|
45
|
-
"@types/node": "20.14.
|
|
46
|
-
"@types/react": "18.
|
|
44
|
+
"@biomejs/biome": "1.8.3",
|
|
45
|
+
"@types/node": "20.14.10",
|
|
46
|
+
"@types/react": "18.3.3",
|
|
47
47
|
"@types/react-dom": "18.2.6",
|
|
48
|
-
"bunchee": "
|
|
48
|
+
"bunchee": "5.2.2",
|
|
49
49
|
"react": "18.2.0",
|
|
50
50
|
"react-dom": "18.2.0",
|
|
51
|
-
"rimraf": "
|
|
52
|
-
"typescript": "5.
|
|
51
|
+
"rimraf": "6.0.0",
|
|
52
|
+
"typescript": "5.5.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -5,7 +5,6 @@ import { useCallback } from 'react'
|
|
|
5
5
|
import { AuthAPI } from '@quiltt/core'
|
|
6
6
|
import type { Maybe, QuilttJWT } from '@quiltt/core'
|
|
7
7
|
|
|
8
|
-
import { useSession } from './useSession'
|
|
9
8
|
import {
|
|
10
9
|
useAuthenticateSession,
|
|
11
10
|
useIdentifySession,
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
} from './session'
|
|
15
14
|
import type { AuthenticateSession, IdentifySession, ImportSession, RevokeSession } from './session'
|
|
16
15
|
import { useQuilttSettings } from './useQuilttSettings'
|
|
16
|
+
import { useSession } from './useSession'
|
|
17
17
|
|
|
18
18
|
export type UseQuilttSession = (environmentId?: string) => {
|
|
19
19
|
session: Maybe<QuilttJWT> | undefined
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '3.6.
|
|
2
|
+
export const version = '3.6.11'
|
package/dist/{QuilttSettingsProvider-client-DkJG70n_.js → QuilttSettingsProvider-client-BJFjBWHn.js}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import '@quiltt/core';
|
|
5
|
-
import './useSession-client-CG5lGS9F.js';
|
|
6
5
|
import { Q as QuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
|
|
6
|
+
import './useSession-client-CG5lGS9F.js';
|
|
7
7
|
|
|
8
8
|
const QuilttSettingsProvider = ({ clientId, children })=>{
|
|
9
9
|
const [_clientId] = useState(clientId);
|