@quiltt/react 3.6.6 → 3.6.7

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 CHANGED
@@ -1,13 +1,13 @@
1
1
  # @quiltt/react
2
2
 
3
- ## 3.6.6
3
+ ## 3.6.7
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [#251](https://github.com/quiltt/quiltt-js/pull/251) [`07a3eb1`](https://github.com/quiltt/quiltt-js/commit/07a3eb1b2b719ae1073287079d6a0e61e432cc96) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update @quiltt/react-native OAuthURL handling
7
+ - [#256](https://github.com/quiltt/quiltt-js/pull/256) [`824e21e`](https://github.com/quiltt/quiltt-js/commit/824e21e14b4731e5ebb0d8bd3ba141ca7d9418e2) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Add Google recaptcha to allowed URLs
8
8
 
9
- - Updated dependencies [[`07a3eb1`](https://github.com/quiltt/quiltt-js/commit/07a3eb1b2b719ae1073287079d6a0e61e432cc96)]:
10
- - @quiltt/core@3.6.6
9
+ - Updated dependencies [[`824e21e`](https://github.com/quiltt/quiltt-js/commit/824e21e14b4731e5ebb0d8bd3ba141ca7d9418e2)]:
10
+ - @quiltt/core@3.6.7
11
11
 
12
12
  ## 3.6.5
13
13
 
@@ -5,7 +5,7 @@ import { JsonWebTokenParse, QuilttClient, InMemoryCache as InMemoryCache$1 } fro
5
5
  import './useSession-client-Cew1m26_.js';
6
6
  import './useQuilttSettings-client-DU_Qfc8X.js';
7
7
  import { jsx } from 'react/jsx-runtime';
8
- import { u as useQuilttSession } from './useQuilttSession-client-Hh1rEsMx.js';
8
+ import { u as useQuilttSession } from './useQuilttSession-client-C2Wc0RQE.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 = // add leading and trailing new lines only if it improves readability
785
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // 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));
@@ -3142,6 +3142,7 @@ const EntryMethods = {
3142
3142
  };
3143
3143
  function dep(options) {
3144
3144
  const depsByKey = new Map();
3145
+ const subscribe = options && options.subscribe;
3145
3146
  function depend(key) {
3146
3147
  const parent = parentEntrySlot.getValue();
3147
3148
  if (parent) {
@@ -3150,6 +3151,10 @@ function dep(options) {
3150
3151
  depsByKey.set(key, dep = new Set);
3151
3152
  }
3152
3153
  parent.dependOn(dep);
3154
+ if (typeof subscribe === "function") {
3155
+ maybeUnsubscribe(dep);
3156
+ dep.unsubscribe = subscribe(key);
3157
+ }
3153
3158
  }
3154
3159
  }
3155
3160
  depend.dirty = function dirty(key, entryMethodName) {
@@ -3840,7 +3845,7 @@ var DeepMerger = /** @class */ function() {
3840
3845
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
3841
3846
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
3842
3847
  if (it) return (it = it.call(o)).next.bind(it);
3843
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
3848
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
3844
3849
  if (it) o = it;
3845
3850
  var i = 0;
3846
3851
  return 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-CTa_g_PX.js';
3
3
  export { u as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-client-DeTHOKz1.js';
4
- import { Q as QuilttAuthProvider } from './QuilttAuthProvider-client-D9WOsdFJ.js';
5
- export { c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-D9WOsdFJ.js';
6
- export { u as useQuilttClient } from './useQuilttClient-client-BFyKsOQV.js';
7
- import { u as useQuilttConnector } from './useQuilttConnector-client-DZJYlrF7.js';
8
- export { u as useQuilttSession } from './useQuilttSession-client-Hh1rEsMx.js';
4
+ import { Q as QuilttAuthProvider } from './QuilttAuthProvider-client-DzZJ_7r3.js';
5
+ export { c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-DzZJ_7r3.js';
6
+ export { u as useQuilttClient } from './useQuilttClient-client-4g4cdtMX.js';
7
+ import { u as useQuilttConnector } from './useQuilttConnector-client-FU6_7lmN.js';
8
+ export { u as useQuilttSession } from './useQuilttSession-client-C2Wc0RQE.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-Cew1m26_.js';
11
11
  export { u as useStorage } from './useStorage-client-C91C8oXS.js';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { u as useApolloClient } from './QuilttAuthProvider-client-D9WOsdFJ.js';
2
+ import { u as useApolloClient } from './QuilttAuthProvider-client-DzZJ_7r3.js';
3
3
 
4
4
  const useQuilttClient = useApolloClient;
5
5
 
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { useState, useEffect, useCallback } from 'react';
3
- import { u as useQuilttSession } from './useQuilttSession-client-Hh1rEsMx.js';
3
+ import { u as useQuilttSession } from './useQuilttSession-client-C2Wc0RQE.js';
4
4
  import { u as useScript } from './useScript-client-Cx5nb9RW.js';
5
5
  import { cdnBase } from '@quiltt/core';
6
6
 
7
7
  // Generated by genversion.
8
- const version = '3.6.6';
8
+ const version = '3.6.7';
9
9
 
10
10
  const useQuilttConnector = (connectorId, options)=>{
11
11
  const status = useScript(`${cdnBase}/v1/connector.js?agent=react-${version}`);
@@ -2,7 +2,7 @@
2
2
  import { useCallback } from 'react';
3
3
  import { u as useSession } from './useSession-client-Cew1m26_.js';
4
4
  import { AuthAPI } from '@quiltt/core';
5
- import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-D9WOsdFJ.js';
5
+ import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-DzZJ_7r3.js';
6
6
  import { u as useQuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
7
7
 
8
8
  const useQuilttSession = (environmentId)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/react",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "React components and hooks for Quiltt Connector",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -37,12 +37,12 @@
37
37
  "CHANGELOG.md"
38
38
  ],
39
39
  "dependencies": {
40
- "@quiltt/core": "3.6.6"
40
+ "@quiltt/core": "3.6.7"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@apollo/client": "3.9.9",
44
44
  "@trivago/prettier-plugin-sort-imports": "4.1.1",
45
- "@types/node": "20.12.10",
45
+ "@types/node": "20.12.7",
46
46
  "@types/react": "18.2.73",
47
47
  "@types/react-dom": "18.2.6",
48
48
  "@typescript-eslint/eslint-plugin": "5.60.1",
@@ -58,7 +58,7 @@
58
58
  "react": "18.2.0",
59
59
  "react-dom": "18.2.0",
60
60
  "rimraf": "5.0.5",
61
- "typescript": "5.4.5"
61
+ "typescript": "5.4.3"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "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.6.6'
2
+ export const version = '3.6.7'