@quiltt/core 3.9.0 → 3.9.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @quiltt/core
2
2
 
3
+ ## 3.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#316](https://github.com/quiltt/quiltt-js/pull/316) [`de5d43e`](https://github.com/quiltt/quiltt-js/commit/de5d43e664a8bbb04595816718f5c645a9c3df27) Thanks [@rubendinho](https://github.com/rubendinho)! - Updated `main` param to `package.json` to improve analyzing the package.
8
+
9
+ - [#313](https://github.com/quiltt/quiltt-js/pull/313) [`3b789c9`](https://github.com/quiltt/quiltt-js/commit/3b789c9413ab2f9bdda965248ed7a8ccaf270172) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update typings for QuilttButton onLoad handler
10
+
11
+ - [#312](https://github.com/quiltt/quiltt-js/pull/312) [`11ba6a3`](https://github.com/quiltt/quiltt-js/commit/11ba6a3af1975349a63640bb99ed0e34ffee3f1c) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update session handling in QuilttAuthProvider
12
+
13
+ ## 3.9.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#310](https://github.com/quiltt/quiltt-js/pull/310) [`86b39ac`](https://github.com/quiltt/quiltt-js/commit/86b39ac7015fcf21d1c1962df1a76f84c2af9801) Thanks [@rubendinho](https://github.com/rubendinho)! - Added explicit file extensions to import statements to comply with strict ESM module resolution.
18
+
3
19
  ## 3.9.0
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -7,11 +7,21 @@
7
7
 
8
8
  ## Install
9
9
 
10
+ With `npm`:
11
+
10
12
  ```shell
11
13
  $ npm install @quiltt/core
12
- # or
14
+ ```
15
+
16
+ With `yarn`:
17
+
18
+ ```shell
13
19
  $ yarn add @quiltt/core
14
- # or
20
+ ```
21
+
22
+ With `pnpm`:
23
+
24
+ ```shell
15
25
  $ pnpm add @quiltt/core
16
26
  ```
17
27
 
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { ApolloLink } from '@apollo/client/core';
3
- import { Observable as Observable$1 } from '@apollo/client/utilities';
2
+ import { ApolloLink } from '@apollo/client/core/index.js';
3
+ import { Observable as Observable$1 } from '@apollo/client/utilities/index.js';
4
4
  import { createConsumer } from '@rails/actioncable';
5
5
  import { print } from 'graphql';
6
6
 
@@ -204,7 +204,7 @@ import { print } from 'graphql';
204
204
  */ const GlobalStorage = new Storage();
205
205
 
206
206
  var name = "@quiltt/core";
207
- var version$1 = "3.9.0";
207
+ var version$1 = "3.9.2";
208
208
 
209
209
  const QUILTT_API_INSECURE = (()=>{
210
210
  try {
package/dist/index.d.ts CHANGED
@@ -1,14 +1,18 @@
1
1
  import * as _apollo_client_core from '@apollo/client/core';
2
- import { ApolloLink, Operation, NextLink, FetchResult, ApolloClientOptions, ApolloClient } from '@apollo/client/core';
3
- export { ApolloError, OperationVariables, gql } from '@apollo/client/core';
2
+ import { Operation, NextLink, FetchResult, ApolloClientOptions } from '@apollo/client/core';
3
+ export { ApolloError, OperationVariables } from '@apollo/client/core';
4
+ import { ApolloLink, ApolloClient } from '@apollo/client/core/index.js';
5
+ export { gql } from '@apollo/client/core/index.js';
4
6
  import { Observable as Observable$1 } from '@apollo/client/utilities';
5
- import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http';
6
- import { HttpLink as HttpLink$1 } from '@apollo/client/link/http';
7
- import { RetryLink as RetryLink$1 } from '@apollo/client/link/retry';
7
+ import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
8
+ import { HttpLink as HttpLink$1 } from '@apollo/client/link/http/index.js';
9
+ import { RetryLink as RetryLink$1 } from '@apollo/client/link/retry/index.js';
10
+ import { Observable as Observable$2 } from '@apollo/client/utilities/index.js';
8
11
  import { Consumer } from '@rails/actioncable';
9
12
  import { Dispatch, SetStateAction } from 'react';
10
- export { InMemoryCache, NormalizedCacheObject } from '@apollo/client/cache';
11
- export { useMutation, useQuery, useSubscription } from '@apollo/client/react/hooks';
13
+ export { InMemoryCache } from '@apollo/client/cache/index.js';
14
+ export { NormalizedCacheObject } from '@apollo/client/cache';
15
+ export { useMutation, useQuery, useSubscription } from '@apollo/client/react/hooks/index.js';
12
16
 
13
17
  interface CallbackManager {
14
18
  onEvent(callback: ConnectorSDKOnEventCallback): void;
@@ -161,7 +165,7 @@ declare class ActionCableLink extends ApolloLink {
161
165
  actionName?: string;
162
166
  connectionParams?: ConnectionParams;
163
167
  });
164
- request(operation: Operation, _next: NextLink): Observable$1<RequestResult> | null;
168
+ request(operation: Operation, _next: NextLink): Observable$2<RequestResult> | null;
165
169
  }
166
170
 
167
171
  declare class SubscriptionLink extends ActionCableLink {
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { ApolloLink, ApolloClient } from '@apollo/client/core';
2
- export { gql } from '@apollo/client/core';
3
- import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-DwoIOVtr.js';
4
- export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-DwoIOVtr.js';
5
- import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http';
1
+ import { ApolloLink, ApolloClient } from '@apollo/client/core/index.js';
2
+ export { gql } from '@apollo/client/core/index.js';
3
+ import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-CvVnhUQS.js';
4
+ export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-CvVnhUQS.js';
5
+ import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
6
6
  import crossfetch from 'cross-fetch';
7
- import { onError } from '@apollo/client/link/error';
8
- import { HttpLink as HttpLink$1 } from '@apollo/client/link/http';
9
- import { RetryLink as RetryLink$1 } from '@apollo/client/link/retry';
10
- export { InMemoryCache } from '@apollo/client/cache';
11
- export { useMutation, useQuery, useSubscription } from '@apollo/client/react/hooks';
7
+ import { onError } from '@apollo/client/link/error/index.js';
8
+ import { HttpLink as HttpLink$1 } from '@apollo/client/link/http/index.js';
9
+ import { RetryLink as RetryLink$1 } from '@apollo/client/link/retry/index.js';
10
+ export { InMemoryCache } from '@apollo/client/cache/index.js';
11
+ export { useMutation, useQuery, useSubscription } from '@apollo/client/react/hooks/index.js';
12
12
 
13
13
  /**
14
14
  * Enum representing the different types of events emitted by the Connector.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/core",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
4
4
  "description": "Javascript API client and utilities for Quiltt",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -13,10 +13,10 @@
13
13
  "directory": "packages/core"
14
14
  },
15
15
  "license": "MIT",
16
- "sideEffects": [
17
- "./src/Storage/Local.ts",
18
- "./src/api/graphql/links/SubscriptionLink.ts"
19
- ],
16
+ "bugs": {
17
+ "url": "https://github.com/quiltt/quiltt-js/issues"
18
+ },
19
+ "sideEffects": [],
20
20
  "type": "module",
21
21
  "exports": {
22
22
  ".": {
@@ -30,12 +30,13 @@
30
30
  "src/**",
31
31
  "CHANGELOG.md"
32
32
  ],
33
+ "main": "dist/index.js",
33
34
  "dependencies": {
34
35
  "@apollo/client": "^3.11.8",
35
- "@rails/actioncable": "^7.2.200",
36
+ "@rails/actioncable": "^7.2.201",
36
37
  "braces": "^3.0.3",
37
38
  "cross-fetch": "^4.0.0",
38
- "graphql": "^16.9.0",
39
+ "graphql": "^16.10.0",
39
40
  "graphql-ruby-client": "^1.14.5"
40
41
  },
41
42
  "devDependencies": {
@@ -45,8 +46,11 @@
45
46
  "@types/react": "18.3.12",
46
47
  "bunchee": "5.6.1",
47
48
  "rimraf": "6.0.1",
48
- "typescript": "5.6.3"
49
+ "typescript": "5.7.2"
49
50
  },
51
+ "tags": [
52
+ "quiltt"
53
+ ],
50
54
  "publishConfig": {
51
55
  "access": "public"
52
56
  },
@@ -1,5 +1,5 @@
1
1
  import type { ApolloClientOptions, Operation } from '@apollo/client/core'
2
- import { ApolloClient, ApolloLink } from '@apollo/client/core'
2
+ import { ApolloClient, ApolloLink } from '@apollo/client/core/index.js'
3
3
 
4
4
  import { debugging } from '../../configuration'
5
5
  import {
@@ -50,10 +50,10 @@ export class QuilttClient<T> extends ApolloClient<T> {
50
50
  */
51
51
 
52
52
  /** Client and Tooling */
53
- export { gql } from '@apollo/client/core'
54
- export { InMemoryCache } from '@apollo/client/cache'
53
+ export { gql } from '@apollo/client/core/index.js'
54
+ export { InMemoryCache } from '@apollo/client/cache/index.js'
55
55
  export type { ApolloError, OperationVariables } from '@apollo/client/core'
56
56
  export type { NormalizedCacheObject } from '@apollo/client/cache'
57
57
 
58
58
  /** React hooks used by @quiltt/react-native and @quiltt/react */
59
- export { useMutation, useQuery, useSubscription } from '@apollo/client/react/hooks'
59
+ export { useMutation, useQuery, useSubscription } from '@apollo/client/react/hooks/index.js'
@@ -1,6 +1,6 @@
1
- import { ApolloLink } from '@apollo/client/core'
2
- import { Observable } from '@apollo/client/utilities'
3
1
  import type { FetchResult, NextLink, Operation } from '@apollo/client/core'
2
+ import { ApolloLink } from '@apollo/client/core/index.js'
3
+ import { Observable } from '@apollo/client/utilities/index.js'
4
4
 
5
5
  import { createConsumer } from '@rails/actioncable'
6
6
  import type { Consumer } from '@rails/actioncable'
@@ -1,5 +1,5 @@
1
- import { ApolloLink } from '@apollo/client/core'
2
1
  import type { FetchResult, NextLink, Operation } from '@apollo/client/core'
2
+ import { ApolloLink } from '@apollo/client/core/index.js'
3
3
  import type { Observable } from '@apollo/client/utilities'
4
4
 
5
5
  import { GlobalStorage } from '@/storage'
@@ -1,4 +1,4 @@
1
- import { BatchHttpLink as ApolloHttpLink } from '@apollo/client/link/batch-http'
1
+ import { BatchHttpLink as ApolloHttpLink } from '@apollo/client/link/batch-http/index.js'
2
2
  import crossfetch from 'cross-fetch'
3
3
 
4
4
  import { endpointGraphQL } from '@/configuration'
@@ -1,7 +1,7 @@
1
- import { GlobalStorage } from '@/storage'
2
-
3
1
  import type { ServerError } from '@apollo/client/core'
4
- import { onError } from '@apollo/client/link/error'
2
+ import { onError } from '@apollo/client/link/error/index.js'
3
+
4
+ import { GlobalStorage } from '@/storage'
5
5
 
6
6
  export const ErrorLink = onError(({ graphQLErrors, networkError }) => {
7
7
  if (graphQLErrors) {
@@ -1,4 +1,4 @@
1
- import { ApolloLink } from '@apollo/client/core'
1
+ import { ApolloLink } from '@apollo/client/core/index.js'
2
2
 
3
3
  export const ForwardableLink = new ApolloLink((operation, forward) => forward(operation))
4
4
 
@@ -1,4 +1,4 @@
1
- import { HttpLink as ApolloHttpLink } from '@apollo/client/link/http'
1
+ import { HttpLink as ApolloHttpLink } from '@apollo/client/link/http/index.js'
2
2
  import crossfetch from 'cross-fetch'
3
3
 
4
4
  // Use `cross-fetch` only if `fetch` is not available on the `globalThis` object
@@ -1,4 +1,4 @@
1
- import { RetryLink as ApolloRetryLink } from '@apollo/client/link/retry'
1
+ import { RetryLink as ApolloRetryLink } from '@apollo/client/link/retry/index.js'
2
2
 
3
3
  export const RetryLink = new ApolloRetryLink({
4
4
  attempts: {
@@ -1,4 +1,4 @@
1
- import { ApolloLink } from '@apollo/client/core'
1
+ import { ApolloLink } from '@apollo/client/core/index.js'
2
2
 
3
3
  export const TerminatingLink = new ApolloLink(() => null)
4
4
 
@@ -1,4 +1,4 @@
1
- import { ApolloLink } from '@apollo/client/core'
1
+ import { ApolloLink } from '@apollo/client/core/index.js'
2
2
 
3
3
  import { version } from '@/configuration'
4
4