@apollo/client 3.8.3 → 3.8.5
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/README.md +8 -6
- package/apollo-client.cjs +57 -73
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/config/jest/setup.js +10 -0
- package/config/jest/setup.js.map +1 -1
- package/core/ObservableQuery.d.ts.map +1 -1
- package/core/ObservableQuery.js +5 -6
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +0 -2
- package/core/QueryInfo.d.ts.map +1 -1
- package/core/QueryInfo.js +0 -2
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +1 -1
- package/core/QueryManager.d.ts.map +1 -1
- package/core/QueryManager.js +2 -2
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +8 -11
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +8 -11
- package/dev/dev.cjs +30 -16
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +30 -16
- package/dev/loadErrorMessageHandler.js +1 -1
- package/dev/loadErrorMessageHandler.js.map +1 -1
- package/package.json +30 -23
- package/react/cache/index.d.ts +0 -4
- package/react/cache/index.d.ts.map +1 -1
- package/react/cache/index.js +0 -14
- package/react/cache/index.js.map +1 -1
- package/react/index.d.ts +0 -1
- package/react/index.d.ts.map +1 -1
- package/react/index.js +0 -1
- package/react/index.js.map +1 -1
- package/react/react.cjs +1 -218
- package/react/react.cjs.map +1 -1
- package/react/react.cjs.native.js +1 -218
- package/react/types/types.d.ts +0 -3
- package/react/types/types.d.ts.map +1 -1
- package/react/types/types.js.map +1 -1
- package/testing/core/withConsoleSpy.d.ts.map +1 -1
- package/testing/core/withConsoleSpy.js.map +1 -1
- package/testing/internal/ObservableStream.d.ts +26 -0
- package/testing/internal/ObservableStream.d.ts.map +1 -0
- package/testing/internal/ObservableStream.js +101 -0
- package/testing/internal/ObservableStream.js.map +1 -0
- package/testing/internal/disposables/index.d.ts +3 -0
- package/testing/internal/disposables/index.d.ts.map +1 -0
- package/testing/internal/disposables/index.js +3 -0
- package/testing/internal/disposables/index.js.map +1 -0
- package/testing/internal/disposables/spyOnConsole.d.ts +10 -0
- package/testing/internal/disposables/spyOnConsole.d.ts.map +1 -0
- package/testing/internal/disposables/spyOnConsole.js +33 -0
- package/testing/internal/disposables/spyOnConsole.js.map +1 -0
- package/testing/internal/disposables/withCleanup.d.ts +3 -0
- package/testing/internal/disposables/withCleanup.d.ts.map +1 -0
- package/testing/internal/disposables/withCleanup.js +11 -0
- package/testing/internal/disposables/withCleanup.js.map +1 -0
- package/testing/internal/index.d.ts +4 -0
- package/testing/internal/index.d.ts.map +1 -0
- package/testing/internal/index.js +4 -0
- package/testing/internal/index.js.map +1 -0
- package/testing/internal/profile/Render.d.ts +140 -0
- package/testing/internal/profile/Render.d.ts.map +1 -0
- package/testing/internal/profile/Render.js +132 -0
- package/testing/internal/profile/Render.js.map +1 -0
- package/testing/internal/profile/index.d.ts +4 -0
- package/testing/internal/profile/index.d.ts.map +1 -0
- package/testing/internal/profile/index.js +2 -0
- package/testing/internal/profile/index.js.map +1 -0
- package/testing/internal/profile/profile.d.ts +55 -0
- package/testing/internal/profile/profile.d.ts.map +1 -0
- package/testing/internal/profile/profile.js +222 -0
- package/testing/internal/profile/profile.js.map +1 -0
- package/testing/internal/profile/traces.d.ts +3 -0
- package/testing/internal/profile/traces.d.ts.map +1 -0
- package/testing/internal/profile/traces.js +26 -0
- package/testing/internal/profile/traces.js.map +1 -0
- package/testing/matchers/ProfiledComponent.d.ts +8 -0
- package/testing/matchers/ProfiledComponent.d.ts.map +1 -0
- package/testing/matchers/ProfiledComponent.js +107 -0
- package/testing/matchers/ProfiledComponent.js.map +1 -0
- package/testing/matchers/index.js +3 -0
- package/testing/matchers/index.js.map +1 -1
- package/utilities/globals/globals.cjs +31 -16
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +31 -16
- package/utilities/globals/invariantWrappers.d.ts.map +1 -1
- package/utilities/globals/invariantWrappers.js +30 -15
- package/utilities/globals/invariantWrappers.js.map +1 -1
- package/utilities/observables/asyncMap.d.ts.map +1 -1
- package/utilities/observables/asyncMap.js +17 -34
- package/utilities/observables/asyncMap.js.map +1 -1
- package/utilities/utilities.cjs +17 -34
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +17 -34
- package/version.js +1 -1
package/react/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import "../utilities/globals/index.js";
|
|
|
2
2
|
export type { ApolloContextValue } from "./context/index.js";
|
|
3
3
|
export { ApolloProvider, ApolloConsumer, getApolloContext, resetApolloContext, } from "./context/index.js";
|
|
4
4
|
export * from "./hooks/index.js";
|
|
5
|
-
export { SuspenseCache } from "./cache/index.js";
|
|
6
5
|
export type { IDocumentDefinition } from "./parser/index.js";
|
|
7
6
|
export { DocumentType, operationName, parser } from "./parser/index.js";
|
|
8
7
|
export * from "./types/types.js";
|
package/react/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AAEjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AAEjC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAExE,cAAc,kBAAkB,CAAC"}
|
package/react/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "../utilities/globals/index.js";
|
|
2
2
|
export { ApolloProvider, ApolloConsumer, getApolloContext, resetApolloContext, } from "./context/index.js";
|
|
3
3
|
export * from "./hooks/index.js";
|
|
4
|
-
export { SuspenseCache } from "./cache/index.js";
|
|
5
4
|
export { DocumentType, operationName, parser } from "./parser/index.js";
|
|
6
5
|
export * from "./types/types.js";
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
package/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAGvC,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAGvC,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAExE,cAAc,kBAAkB,CAAC","sourcesContent":["import \"../utilities/globals/index.js\";\n\nexport type { ApolloContextValue } from \"./context/index.js\";\nexport {\n ApolloProvider,\n ApolloConsumer,\n getApolloContext,\n resetApolloContext,\n} from \"./context/index.js\";\n\nexport * from \"./hooks/index.js\";\n\nexport type { IDocumentDefinition } from \"./parser/index.js\";\nexport { DocumentType, operationName, parser } from \"./parser/index.js\";\n\nexport * from \"./types/types.js\";\n"]}
|
package/react/react.cjs
CHANGED
|
@@ -5,225 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('../utilities/globals');
|
|
6
6
|
var context = require('./context');
|
|
7
7
|
var hooks = require('./hooks');
|
|
8
|
-
var tslib = require('tslib');
|
|
9
|
-
var trie = require('@wry/trie');
|
|
10
|
-
var utilities = require('../utilities');
|
|
11
|
-
var equality = require('@wry/equality');
|
|
12
|
-
var core = require('../core');
|
|
13
8
|
var parser = require('./parser');
|
|
14
9
|
|
|
15
|
-
var OBSERVED_CHANGED_OPTIONS = [
|
|
16
|
-
"canonizeResults",
|
|
17
|
-
"context",
|
|
18
|
-
"errorPolicy",
|
|
19
|
-
"fetchPolicy",
|
|
20
|
-
"refetchWritePolicy",
|
|
21
|
-
"returnPartialData",
|
|
22
|
-
];
|
|
23
|
-
var InternalQueryReference = (function () {
|
|
24
|
-
function InternalQueryReference(observable, options) {
|
|
25
|
-
var _this = this;
|
|
26
|
-
var _a;
|
|
27
|
-
this.listeners = new Set();
|
|
28
|
-
this.status = "loading";
|
|
29
|
-
this.references = 0;
|
|
30
|
-
this.handleNext = this.handleNext.bind(this);
|
|
31
|
-
this.handleError = this.handleError.bind(this);
|
|
32
|
-
this.dispose = this.dispose.bind(this);
|
|
33
|
-
this.observable = observable;
|
|
34
|
-
this.result = observable.getCurrentResult(false);
|
|
35
|
-
this.key = options.key;
|
|
36
|
-
if (options.onDispose) {
|
|
37
|
-
this.onDispose = options.onDispose;
|
|
38
|
-
}
|
|
39
|
-
if (core.isNetworkRequestSettled(this.result.networkStatus) ||
|
|
40
|
-
(this.result.data &&
|
|
41
|
-
(!this.result.partial || this.watchQueryOptions.returnPartialData))) {
|
|
42
|
-
this.promise = utilities.createFulfilledPromise(this.result);
|
|
43
|
-
this.status = "idle";
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
47
|
-
_this.resolve = resolve;
|
|
48
|
-
_this.reject = reject;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
this.subscription = observable
|
|
52
|
-
.filter(function (_a) {
|
|
53
|
-
var data = _a.data;
|
|
54
|
-
return !equality.equal(data, {});
|
|
55
|
-
})
|
|
56
|
-
.subscribe({
|
|
57
|
-
next: this.handleNext,
|
|
58
|
-
error: this.handleError,
|
|
59
|
-
});
|
|
60
|
-
this.autoDisposeTimeoutId = setTimeout(this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);
|
|
61
|
-
}
|
|
62
|
-
Object.defineProperty(InternalQueryReference.prototype, "watchQueryOptions", {
|
|
63
|
-
get: function () {
|
|
64
|
-
return this.observable.options;
|
|
65
|
-
},
|
|
66
|
-
enumerable: false,
|
|
67
|
-
configurable: true
|
|
68
|
-
});
|
|
69
|
-
InternalQueryReference.prototype.retain = function () {
|
|
70
|
-
var _this = this;
|
|
71
|
-
this.references++;
|
|
72
|
-
clearTimeout(this.autoDisposeTimeoutId);
|
|
73
|
-
var disposed = false;
|
|
74
|
-
return function () {
|
|
75
|
-
if (disposed) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
disposed = true;
|
|
79
|
-
_this.references--;
|
|
80
|
-
setTimeout(function () {
|
|
81
|
-
if (!_this.references) {
|
|
82
|
-
_this.dispose();
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
InternalQueryReference.prototype.didChangeOptions = function (watchQueryOptions) {
|
|
88
|
-
var _this = this;
|
|
89
|
-
return OBSERVED_CHANGED_OPTIONS.some(function (option) {
|
|
90
|
-
return !equality.equal(_this.watchQueryOptions[option], watchQueryOptions[option]);
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
InternalQueryReference.prototype.applyOptions = function (watchQueryOptions) {
|
|
94
|
-
var _a = this.watchQueryOptions, currentFetchPolicy = _a.fetchPolicy, currentCanonizeResults = _a.canonizeResults;
|
|
95
|
-
if (currentFetchPolicy === "standby" &&
|
|
96
|
-
currentFetchPolicy !== watchQueryOptions.fetchPolicy) {
|
|
97
|
-
this.initiateFetch(this.observable.reobserve(watchQueryOptions));
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.observable.silentSetOptions(watchQueryOptions);
|
|
101
|
-
if (currentCanonizeResults !== watchQueryOptions.canonizeResults) {
|
|
102
|
-
this.result = tslib.__assign(tslib.__assign({}, this.result), this.observable.getCurrentResult());
|
|
103
|
-
this.promise = utilities.createFulfilledPromise(this.result);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return this.promise;
|
|
107
|
-
};
|
|
108
|
-
InternalQueryReference.prototype.listen = function (listener) {
|
|
109
|
-
var _this = this;
|
|
110
|
-
this.listeners.add(listener);
|
|
111
|
-
return function () {
|
|
112
|
-
_this.listeners.delete(listener);
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
InternalQueryReference.prototype.refetch = function (variables) {
|
|
116
|
-
return this.initiateFetch(this.observable.refetch(variables));
|
|
117
|
-
};
|
|
118
|
-
InternalQueryReference.prototype.fetchMore = function (options) {
|
|
119
|
-
return this.initiateFetch(this.observable.fetchMore(options));
|
|
120
|
-
};
|
|
121
|
-
InternalQueryReference.prototype.dispose = function () {
|
|
122
|
-
this.subscription.unsubscribe();
|
|
123
|
-
this.onDispose();
|
|
124
|
-
};
|
|
125
|
-
InternalQueryReference.prototype.onDispose = function () {
|
|
126
|
-
};
|
|
127
|
-
InternalQueryReference.prototype.handleNext = function (result) {
|
|
128
|
-
var _a;
|
|
129
|
-
switch (this.status) {
|
|
130
|
-
case "loading": {
|
|
131
|
-
if (result.data === void 0) {
|
|
132
|
-
result.data = this.result.data;
|
|
133
|
-
}
|
|
134
|
-
this.status = "idle";
|
|
135
|
-
this.result = result;
|
|
136
|
-
(_a = this.resolve) === null || _a === void 0 ? void 0 : _a.call(this, result);
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
case "idle": {
|
|
140
|
-
if (result.data === this.result.data) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (result.data === void 0) {
|
|
144
|
-
result.data = this.result.data;
|
|
145
|
-
}
|
|
146
|
-
this.result = result;
|
|
147
|
-
this.promise = utilities.createFulfilledPromise(result);
|
|
148
|
-
this.deliver(this.promise);
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
InternalQueryReference.prototype.handleError = function (error) {
|
|
154
|
-
var _a;
|
|
155
|
-
this.subscription.unsubscribe();
|
|
156
|
-
this.subscription = this.observable.resubscribeAfterError(this.handleNext, this.handleError);
|
|
157
|
-
switch (this.status) {
|
|
158
|
-
case "loading": {
|
|
159
|
-
this.status = "idle";
|
|
160
|
-
(_a = this.reject) === null || _a === void 0 ? void 0 : _a.call(this, error);
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
case "idle": {
|
|
164
|
-
this.promise = utilities.createRejectedPromise(error);
|
|
165
|
-
this.deliver(this.promise);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
InternalQueryReference.prototype.deliver = function (promise) {
|
|
170
|
-
this.listeners.forEach(function (listener) { return listener(promise); });
|
|
171
|
-
};
|
|
172
|
-
InternalQueryReference.prototype.initiateFetch = function (returnedPromise) {
|
|
173
|
-
var _this = this;
|
|
174
|
-
this.status = "loading";
|
|
175
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
176
|
-
_this.resolve = resolve;
|
|
177
|
-
_this.reject = reject;
|
|
178
|
-
});
|
|
179
|
-
this.promise.catch(function () { });
|
|
180
|
-
returnedPromise
|
|
181
|
-
.then(function (result) {
|
|
182
|
-
var _a;
|
|
183
|
-
if (_this.status === "loading") {
|
|
184
|
-
_this.status = "idle";
|
|
185
|
-
_this.result = result;
|
|
186
|
-
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result);
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
|
-
.catch(function () { });
|
|
190
|
-
return returnedPromise;
|
|
191
|
-
};
|
|
192
|
-
return InternalQueryReference;
|
|
193
|
-
}());
|
|
194
10
|
|
|
195
|
-
var SuspenseCache$1 = (function () {
|
|
196
|
-
function SuspenseCache(options) {
|
|
197
|
-
if (options === void 0) { options = Object.create(null); }
|
|
198
|
-
this.queryRefs = new trie.Trie(utilities.canUseWeakMap);
|
|
199
|
-
this.options = options;
|
|
200
|
-
}
|
|
201
|
-
SuspenseCache.prototype.getQueryRef = function (cacheKey, createObservable) {
|
|
202
|
-
var ref = this.queryRefs.lookupArray(cacheKey);
|
|
203
|
-
if (!ref.current) {
|
|
204
|
-
ref.current = new InternalQueryReference(createObservable(), {
|
|
205
|
-
key: cacheKey,
|
|
206
|
-
autoDisposeTimeoutMs: this.options.autoDisposeTimeoutMs,
|
|
207
|
-
onDispose: function () {
|
|
208
|
-
delete ref.current;
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
return ref.current;
|
|
213
|
-
};
|
|
214
|
-
return SuspenseCache;
|
|
215
|
-
}());
|
|
216
|
-
|
|
217
|
-
var SuspenseCache = (function (_super) {
|
|
218
|
-
tslib.__extends(SuspenseCache, _super);
|
|
219
|
-
function SuspenseCache() {
|
|
220
|
-
_super.call(this) || this;
|
|
221
|
-
throw new Error("It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\n" +
|
|
222
|
-
"Please remove this code from your application. \n\n" +
|
|
223
|
-
"This export will be removed with the final 3.8 release.");
|
|
224
|
-
}
|
|
225
|
-
return SuspenseCache;
|
|
226
|
-
}(SuspenseCache$1));
|
|
227
11
|
|
|
228
12
|
exports.ApolloConsumer = context.ApolloConsumer;
|
|
229
13
|
exports.ApolloProvider = context.ApolloProvider;
|
|
@@ -232,8 +16,7 @@ exports.resetApolloContext = context.resetApolloContext;
|
|
|
232
16
|
exports.DocumentType = parser.DocumentType;
|
|
233
17
|
exports.operationName = parser.operationName;
|
|
234
18
|
exports.parser = parser.parser;
|
|
235
|
-
exports.SuspenseCache = SuspenseCache;
|
|
236
19
|
for (var k in hooks) {
|
|
237
|
-
|
|
20
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = hooks[k];
|
|
238
21
|
}
|
|
239
22
|
//# sourceMappingURL=react.cjs.map
|
package/react/react.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.cjs","sources":["cache/QueryReference.js","cache/SuspenseCache.js","cache/index.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { equal } from \"@wry/equality\";\nimport { isNetworkRequestSettled } from \"../../core/index.js\";\nimport { createFulfilledPromise, createRejectedPromise, } from \"../../utilities/index.js\";\nvar QUERY_REFERENCE_SYMBOL = Symbol();\nexport function wrapQueryRef(internalQueryRef) {\n var _a;\n return _a = {}, _a[QUERY_REFERENCE_SYMBOL] = internalQueryRef, _a;\n}\nexport function unwrapQueryRef(queryRef) {\n return queryRef[QUERY_REFERENCE_SYMBOL];\n}\nvar OBSERVED_CHANGED_OPTIONS = [\n \"canonizeResults\",\n \"context\",\n \"errorPolicy\",\n \"fetchPolicy\",\n \"refetchWritePolicy\",\n \"returnPartialData\",\n];\nvar InternalQueryReference = (function () {\n function InternalQueryReference(observable, options) {\n var _this = this;\n var _a;\n this.listeners = new Set();\n this.status = \"loading\";\n this.references = 0;\n this.handleNext = this.handleNext.bind(this);\n this.handleError = this.handleError.bind(this);\n this.dispose = this.dispose.bind(this);\n this.observable = observable;\n this.result = observable.getCurrentResult(false);\n this.key = options.key;\n if (options.onDispose) {\n this.onDispose = options.onDispose;\n }\n if (isNetworkRequestSettled(this.result.networkStatus) ||\n (this.result.data &&\n (!this.result.partial || this.watchQueryOptions.returnPartialData))) {\n this.promise = createFulfilledPromise(this.result);\n this.status = \"idle\";\n }\n else {\n this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n }\n this.subscription = observable\n .filter(function (_a) {\n var data = _a.data;\n return !equal(data, {});\n })\n .subscribe({\n next: this.handleNext,\n error: this.handleError,\n });\n this.autoDisposeTimeoutId = setTimeout(this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);\n }\n Object.defineProperty(InternalQueryReference.prototype, \"watchQueryOptions\", {\n get: function () {\n return this.observable.options;\n },\n enumerable: false,\n configurable: true\n });\n InternalQueryReference.prototype.retain = function () {\n var _this = this;\n this.references++;\n clearTimeout(this.autoDisposeTimeoutId);\n var disposed = false;\n return function () {\n if (disposed) {\n return;\n }\n disposed = true;\n _this.references--;\n setTimeout(function () {\n if (!_this.references) {\n _this.dispose();\n }\n });\n };\n };\n InternalQueryReference.prototype.didChangeOptions = function (watchQueryOptions) {\n var _this = this;\n return OBSERVED_CHANGED_OPTIONS.some(function (option) {\n return !equal(_this.watchQueryOptions[option], watchQueryOptions[option]);\n });\n };\n InternalQueryReference.prototype.applyOptions = function (watchQueryOptions) {\n var _a = this.watchQueryOptions, currentFetchPolicy = _a.fetchPolicy, currentCanonizeResults = _a.canonizeResults;\n if (currentFetchPolicy === \"standby\" &&\n currentFetchPolicy !== watchQueryOptions.fetchPolicy) {\n this.initiateFetch(this.observable.reobserve(watchQueryOptions));\n }\n else {\n this.observable.silentSetOptions(watchQueryOptions);\n if (currentCanonizeResults !== watchQueryOptions.canonizeResults) {\n this.result = __assign(__assign({}, this.result), this.observable.getCurrentResult());\n this.promise = createFulfilledPromise(this.result);\n }\n }\n return this.promise;\n };\n InternalQueryReference.prototype.listen = function (listener) {\n var _this = this;\n this.listeners.add(listener);\n return function () {\n _this.listeners.delete(listener);\n };\n };\n InternalQueryReference.prototype.refetch = function (variables) {\n return this.initiateFetch(this.observable.refetch(variables));\n };\n InternalQueryReference.prototype.fetchMore = function (options) {\n return this.initiateFetch(this.observable.fetchMore(options));\n };\n InternalQueryReference.prototype.dispose = function () {\n this.subscription.unsubscribe();\n this.onDispose();\n };\n InternalQueryReference.prototype.onDispose = function () {\n };\n InternalQueryReference.prototype.handleNext = function (result) {\n var _a;\n switch (this.status) {\n case \"loading\": {\n if (result.data === void 0) {\n result.data = this.result.data;\n }\n this.status = \"idle\";\n this.result = result;\n (_a = this.resolve) === null || _a === void 0 ? void 0 : _a.call(this, result);\n break;\n }\n case \"idle\": {\n if (result.data === this.result.data) {\n return;\n }\n if (result.data === void 0) {\n result.data = this.result.data;\n }\n this.result = result;\n this.promise = createFulfilledPromise(result);\n this.deliver(this.promise);\n break;\n }\n }\n };\n InternalQueryReference.prototype.handleError = function (error) {\n var _a;\n this.subscription.unsubscribe();\n this.subscription = this.observable.resubscribeAfterError(this.handleNext, this.handleError);\n switch (this.status) {\n case \"loading\": {\n this.status = \"idle\";\n (_a = this.reject) === null || _a === void 0 ? void 0 : _a.call(this, error);\n break;\n }\n case \"idle\": {\n this.promise = createRejectedPromise(error);\n this.deliver(this.promise);\n }\n }\n };\n InternalQueryReference.prototype.deliver = function (promise) {\n this.listeners.forEach(function (listener) { return listener(promise); });\n };\n InternalQueryReference.prototype.initiateFetch = function (returnedPromise) {\n var _this = this;\n this.status = \"loading\";\n this.promise = new Promise(function (resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n this.promise.catch(function () { });\n returnedPromise\n .then(function (result) {\n var _a;\n if (_this.status === \"loading\") {\n _this.status = \"idle\";\n _this.result = result;\n (_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result);\n }\n })\n .catch(function () { });\n return returnedPromise;\n };\n return InternalQueryReference;\n}());\nexport { InternalQueryReference };\n//# sourceMappingURL=QueryReference.js.map","import { Trie } from \"@wry/trie\";\nimport { canUseWeakMap } from \"../../utilities/index.js\";\nimport { InternalQueryReference } from \"./QueryReference.js\";\nvar SuspenseCache = (function () {\n function SuspenseCache(options) {\n if (options === void 0) { options = Object.create(null); }\n this.queryRefs = new Trie(canUseWeakMap);\n this.options = options;\n }\n SuspenseCache.prototype.getQueryRef = function (cacheKey, createObservable) {\n var ref = this.queryRefs.lookupArray(cacheKey);\n if (!ref.current) {\n ref.current = new InternalQueryReference(createObservable(), {\n key: cacheKey,\n autoDisposeTimeoutMs: this.options.autoDisposeTimeoutMs,\n onDispose: function () {\n delete ref.current;\n },\n });\n }\n return ref.current;\n };\n return SuspenseCache;\n}());\nexport { SuspenseCache };\n//# sourceMappingURL=SuspenseCache.js.map","import { __extends } from \"tslib\";\nexport { getSuspenseCache } from \"./getSuspenseCache.js\";\nimport { SuspenseCache as RealSuspenseCache } from \"./SuspenseCache.js\";\nvar SuspenseCache = (function (_super) {\n __extends(SuspenseCache, _super);\n function SuspenseCache() {\n var _this = _super.call(this) || this;\n throw new Error(\"It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\\n\" +\n \"Please remove this code from your application. \\n\\n\" +\n \"This export will be removed with the final 3.8 release.\");\n return _this;\n }\n return SuspenseCache;\n}(RealSuspenseCache));\nexport { SuspenseCache };\n//# sourceMappingURL=index.js.map"],"names":["isNetworkRequestSettled","createFulfilledPromise","equal","__assign","createRejectedPromise","SuspenseCache","Trie","canUseWeakMap","__extends","RealSuspenseCache"],"mappings":";;;;;;;;;;;;;;AAYA,IAAI,wBAAwB,GAAG;AAC/B,IAAI,iBAAiB;AACrB,IAAI,SAAS;AACb,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,oBAAoB;AACxB,IAAI,mBAAmB;AACvB,CAAC,CAAC;AACF,IAAI,sBAAsB,IAAI,YAAY;AAC1C,IAAI,SAAS,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE;AACzD,QAAQ,IAAI,KAAK,GAAG,IAAI,CAAC;AACzB,QAAQ,IAAI,EAAE,CAAC;AACf,QAAQ,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;AACnC,QAAQ,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;AAChC,QAAQ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,YAAY,GAAG,CAAC,OAAO,GAAG,IAAI,sBAAsB,CAAC,gBAAgB,EAAE,EAAE;AACzE,gBAAgB,GAAG,EAAE,QAAQ;AAC7B,gBAAgB,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB;AACvE,gBAAgB,SAAS,EAAE,YAAY;AACvC,oBAAoB,OAAO,GAAG,CAAC,OAAO,CAAC;AACvC,iBAAiB;AACjB,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,OAAO,GAAG,CAAC,OAAO,CAAC;AAC3B,KAAK,CAAC;AACN,IAAI,OAAO,aAAa,CAAC;AACzB,CAAC,EAAE,CAAC;;ACpBD,IAAC,aAAa,IAAI,UAAU,MAAM,EAAE;AACvC,IAAIC,eAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AACrC,IAAI,SAAS,aAAa,GAAG;AAC7B,QAAoB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK;AAC9C,QAAQ,MAAM,IAAI,KAAK,CAAC,yGAAyG;AACjI,YAAY,qDAAqD;AACjE,YAAY,yDAAyD,CAAC,CAAC;AAEvE,KAAK;AACL,IAAI,OAAO,aAAa,CAAC;AACzB,CAAC,CAACC,eAAiB,CAAC;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"react.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,225 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('../utilities/globals');
|
|
6
6
|
var context = require('./context');
|
|
7
7
|
var hooks = require('./hooks');
|
|
8
|
-
var tslib = require('tslib');
|
|
9
|
-
var trie = require('@wry/trie');
|
|
10
|
-
var utilities = require('../utilities');
|
|
11
|
-
var equality = require('@wry/equality');
|
|
12
|
-
var core = require('../core');
|
|
13
8
|
var parser = require('./parser');
|
|
14
9
|
|
|
15
|
-
var OBSERVED_CHANGED_OPTIONS = [
|
|
16
|
-
"canonizeResults",
|
|
17
|
-
"context",
|
|
18
|
-
"errorPolicy",
|
|
19
|
-
"fetchPolicy",
|
|
20
|
-
"refetchWritePolicy",
|
|
21
|
-
"returnPartialData",
|
|
22
|
-
];
|
|
23
|
-
var InternalQueryReference = (function () {
|
|
24
|
-
function InternalQueryReference(observable, options) {
|
|
25
|
-
var _this = this;
|
|
26
|
-
var _a;
|
|
27
|
-
this.listeners = new Set();
|
|
28
|
-
this.status = "loading";
|
|
29
|
-
this.references = 0;
|
|
30
|
-
this.handleNext = this.handleNext.bind(this);
|
|
31
|
-
this.handleError = this.handleError.bind(this);
|
|
32
|
-
this.dispose = this.dispose.bind(this);
|
|
33
|
-
this.observable = observable;
|
|
34
|
-
this.result = observable.getCurrentResult(false);
|
|
35
|
-
this.key = options.key;
|
|
36
|
-
if (options.onDispose) {
|
|
37
|
-
this.onDispose = options.onDispose;
|
|
38
|
-
}
|
|
39
|
-
if (core.isNetworkRequestSettled(this.result.networkStatus) ||
|
|
40
|
-
(this.result.data &&
|
|
41
|
-
(!this.result.partial || this.watchQueryOptions.returnPartialData))) {
|
|
42
|
-
this.promise = utilities.createFulfilledPromise(this.result);
|
|
43
|
-
this.status = "idle";
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
47
|
-
_this.resolve = resolve;
|
|
48
|
-
_this.reject = reject;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
this.subscription = observable
|
|
52
|
-
.filter(function (_a) {
|
|
53
|
-
var data = _a.data;
|
|
54
|
-
return !equality.equal(data, {});
|
|
55
|
-
})
|
|
56
|
-
.subscribe({
|
|
57
|
-
next: this.handleNext,
|
|
58
|
-
error: this.handleError,
|
|
59
|
-
});
|
|
60
|
-
this.autoDisposeTimeoutId = setTimeout(this.dispose, (_a = options.autoDisposeTimeoutMs) !== null && _a !== void 0 ? _a : 30000);
|
|
61
|
-
}
|
|
62
|
-
Object.defineProperty(InternalQueryReference.prototype, "watchQueryOptions", {
|
|
63
|
-
get: function () {
|
|
64
|
-
return this.observable.options;
|
|
65
|
-
},
|
|
66
|
-
enumerable: false,
|
|
67
|
-
configurable: true
|
|
68
|
-
});
|
|
69
|
-
InternalQueryReference.prototype.retain = function () {
|
|
70
|
-
var _this = this;
|
|
71
|
-
this.references++;
|
|
72
|
-
clearTimeout(this.autoDisposeTimeoutId);
|
|
73
|
-
var disposed = false;
|
|
74
|
-
return function () {
|
|
75
|
-
if (disposed) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
disposed = true;
|
|
79
|
-
_this.references--;
|
|
80
|
-
setTimeout(function () {
|
|
81
|
-
if (!_this.references) {
|
|
82
|
-
_this.dispose();
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
InternalQueryReference.prototype.didChangeOptions = function (watchQueryOptions) {
|
|
88
|
-
var _this = this;
|
|
89
|
-
return OBSERVED_CHANGED_OPTIONS.some(function (option) {
|
|
90
|
-
return !equality.equal(_this.watchQueryOptions[option], watchQueryOptions[option]);
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
InternalQueryReference.prototype.applyOptions = function (watchQueryOptions) {
|
|
94
|
-
var _a = this.watchQueryOptions, currentFetchPolicy = _a.fetchPolicy, currentCanonizeResults = _a.canonizeResults;
|
|
95
|
-
if (currentFetchPolicy === "standby" &&
|
|
96
|
-
currentFetchPolicy !== watchQueryOptions.fetchPolicy) {
|
|
97
|
-
this.initiateFetch(this.observable.reobserve(watchQueryOptions));
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
this.observable.silentSetOptions(watchQueryOptions);
|
|
101
|
-
if (currentCanonizeResults !== watchQueryOptions.canonizeResults) {
|
|
102
|
-
this.result = tslib.__assign(tslib.__assign({}, this.result), this.observable.getCurrentResult());
|
|
103
|
-
this.promise = utilities.createFulfilledPromise(this.result);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return this.promise;
|
|
107
|
-
};
|
|
108
|
-
InternalQueryReference.prototype.listen = function (listener) {
|
|
109
|
-
var _this = this;
|
|
110
|
-
this.listeners.add(listener);
|
|
111
|
-
return function () {
|
|
112
|
-
_this.listeners.delete(listener);
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
InternalQueryReference.prototype.refetch = function (variables) {
|
|
116
|
-
return this.initiateFetch(this.observable.refetch(variables));
|
|
117
|
-
};
|
|
118
|
-
InternalQueryReference.prototype.fetchMore = function (options) {
|
|
119
|
-
return this.initiateFetch(this.observable.fetchMore(options));
|
|
120
|
-
};
|
|
121
|
-
InternalQueryReference.prototype.dispose = function () {
|
|
122
|
-
this.subscription.unsubscribe();
|
|
123
|
-
this.onDispose();
|
|
124
|
-
};
|
|
125
|
-
InternalQueryReference.prototype.onDispose = function () {
|
|
126
|
-
};
|
|
127
|
-
InternalQueryReference.prototype.handleNext = function (result) {
|
|
128
|
-
var _a;
|
|
129
|
-
switch (this.status) {
|
|
130
|
-
case "loading": {
|
|
131
|
-
if (result.data === void 0) {
|
|
132
|
-
result.data = this.result.data;
|
|
133
|
-
}
|
|
134
|
-
this.status = "idle";
|
|
135
|
-
this.result = result;
|
|
136
|
-
(_a = this.resolve) === null || _a === void 0 ? void 0 : _a.call(this, result);
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
case "idle": {
|
|
140
|
-
if (result.data === this.result.data) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (result.data === void 0) {
|
|
144
|
-
result.data = this.result.data;
|
|
145
|
-
}
|
|
146
|
-
this.result = result;
|
|
147
|
-
this.promise = utilities.createFulfilledPromise(result);
|
|
148
|
-
this.deliver(this.promise);
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
InternalQueryReference.prototype.handleError = function (error) {
|
|
154
|
-
var _a;
|
|
155
|
-
this.subscription.unsubscribe();
|
|
156
|
-
this.subscription = this.observable.resubscribeAfterError(this.handleNext, this.handleError);
|
|
157
|
-
switch (this.status) {
|
|
158
|
-
case "loading": {
|
|
159
|
-
this.status = "idle";
|
|
160
|
-
(_a = this.reject) === null || _a === void 0 ? void 0 : _a.call(this, error);
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
case "idle": {
|
|
164
|
-
this.promise = utilities.createRejectedPromise(error);
|
|
165
|
-
this.deliver(this.promise);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
InternalQueryReference.prototype.deliver = function (promise) {
|
|
170
|
-
this.listeners.forEach(function (listener) { return listener(promise); });
|
|
171
|
-
};
|
|
172
|
-
InternalQueryReference.prototype.initiateFetch = function (returnedPromise) {
|
|
173
|
-
var _this = this;
|
|
174
|
-
this.status = "loading";
|
|
175
|
-
this.promise = new Promise(function (resolve, reject) {
|
|
176
|
-
_this.resolve = resolve;
|
|
177
|
-
_this.reject = reject;
|
|
178
|
-
});
|
|
179
|
-
this.promise.catch(function () { });
|
|
180
|
-
returnedPromise
|
|
181
|
-
.then(function (result) {
|
|
182
|
-
var _a;
|
|
183
|
-
if (_this.status === "loading") {
|
|
184
|
-
_this.status = "idle";
|
|
185
|
-
_this.result = result;
|
|
186
|
-
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result);
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
|
-
.catch(function () { });
|
|
190
|
-
return returnedPromise;
|
|
191
|
-
};
|
|
192
|
-
return InternalQueryReference;
|
|
193
|
-
}());
|
|
194
10
|
|
|
195
|
-
var SuspenseCache$1 = (function () {
|
|
196
|
-
function SuspenseCache(options) {
|
|
197
|
-
if (options === void 0) { options = Object.create(null); }
|
|
198
|
-
this.queryRefs = new trie.Trie(utilities.canUseWeakMap);
|
|
199
|
-
this.options = options;
|
|
200
|
-
}
|
|
201
|
-
SuspenseCache.prototype.getQueryRef = function (cacheKey, createObservable) {
|
|
202
|
-
var ref = this.queryRefs.lookupArray(cacheKey);
|
|
203
|
-
if (!ref.current) {
|
|
204
|
-
ref.current = new InternalQueryReference(createObservable(), {
|
|
205
|
-
key: cacheKey,
|
|
206
|
-
autoDisposeTimeoutMs: this.options.autoDisposeTimeoutMs,
|
|
207
|
-
onDispose: function () {
|
|
208
|
-
delete ref.current;
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
return ref.current;
|
|
213
|
-
};
|
|
214
|
-
return SuspenseCache;
|
|
215
|
-
}());
|
|
216
|
-
|
|
217
|
-
var SuspenseCache = (function (_super) {
|
|
218
|
-
tslib.__extends(SuspenseCache, _super);
|
|
219
|
-
function SuspenseCache() {
|
|
220
|
-
_super.call(this) || this;
|
|
221
|
-
throw new Error("It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\n" +
|
|
222
|
-
"Please remove this code from your application. \n\n" +
|
|
223
|
-
"This export will be removed with the final 3.8 release.");
|
|
224
|
-
}
|
|
225
|
-
return SuspenseCache;
|
|
226
|
-
}(SuspenseCache$1));
|
|
227
11
|
|
|
228
12
|
exports.ApolloConsumer = context.ApolloConsumer;
|
|
229
13
|
exports.ApolloProvider = context.ApolloProvider;
|
|
@@ -232,8 +16,7 @@ exports.resetApolloContext = context.resetApolloContext;
|
|
|
232
16
|
exports.DocumentType = parser.DocumentType;
|
|
233
17
|
exports.operationName = parser.operationName;
|
|
234
18
|
exports.parser = parser.parser;
|
|
235
|
-
exports.SuspenseCache = SuspenseCache;
|
|
236
19
|
for (var k in hooks) {
|
|
237
|
-
|
|
20
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = hooks[k];
|
|
238
21
|
}
|
|
239
22
|
//# sourceMappingURL=react.cjs.map
|
package/react/types/types.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type { Observable, ObservableSubscription } from "../../utilities/index.j
|
|
|
5
5
|
import type { FetchResult } from "../../link/core/index.js";
|
|
6
6
|
import type { ApolloError } from "../../errors/index.js";
|
|
7
7
|
import type { ApolloCache, ApolloClient, DefaultContext, FetchPolicy, MutationOptions, NetworkStatus, ObservableQuery, OperationVariables, InternalRefetchQueriesInclude, WatchQueryOptions, WatchQueryFetchPolicy } from "../../core/index.js";
|
|
8
|
-
import type { SuspenseCache } from "../cache/index.js";
|
|
9
8
|
export type { QueryReference } from "../cache/QueryReference.js";
|
|
10
9
|
export type { DefaultContext as Context } from "../../core/index.js";
|
|
11
10
|
export type CommonOptions<TOptions> = TOptions & {
|
|
@@ -47,14 +46,12 @@ export interface LazyQueryHookExecOptions<TData = any, TVariables extends Operat
|
|
|
47
46
|
export type SuspenseQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;
|
|
48
47
|
export interface SuspenseQueryHookOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables> extends Pick<QueryHookOptions<TData, TVariables>, "client" | "variables" | "errorPolicy" | "context" | "canonizeResults" | "returnPartialData" | "refetchWritePolicy"> {
|
|
49
48
|
fetchPolicy?: SuspenseQueryHookFetchPolicy;
|
|
50
|
-
suspenseCache?: SuspenseCache;
|
|
51
49
|
queryKey?: string | number | any[];
|
|
52
50
|
skip?: boolean;
|
|
53
51
|
}
|
|
54
52
|
export type BackgroundQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;
|
|
55
53
|
export interface BackgroundQueryHookOptions<TData = unknown, TVariables extends OperationVariables = OperationVariables> extends Pick<QueryHookOptions<TData, TVariables>, "client" | "variables" | "errorPolicy" | "context" | "canonizeResults" | "returnPartialData" | "refetchWritePolicy"> {
|
|
56
54
|
fetchPolicy?: BackgroundQueryHookFetchPolicy;
|
|
57
|
-
suspenseCache?: SuspenseCache;
|
|
58
55
|
queryKey?: string | number | any[];
|
|
59
56
|
skip?: boolean;
|
|
60
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,KAAK,EACV,UAAU,EACV,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,KAAK,EACV,UAAU,EACV,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAI7B,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,YA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