@isograph/react 0.0.0-main-17c5c4de → 0.0.0-main-c3e3c34d
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/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/package.json +3 -3
- package/src/index.tsx +0 -2
- package/dist/iso.d.ts +0 -1
- package/dist/iso.js +0 -16
- package/src/iso.tsx +0 -19
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { DataId, IsographEnvironment, Link, StoreRecord } from './IsographEnvironment';
|
2
2
|
export { makeNetworkRequest, subscribe } from './cache';
|
3
3
|
export { IsographEnvironmentContext, ROOT_ID, type DataId, type DataTypeValue, type IsographEnvironment, IsographEnvironmentProvider, type IsographEnvironmentProviderProps, type IsographNetworkFunction, type IsographStore, type Link, type StoreRecord, useIsographEnvironment, createIsographEnvironment, createIsographStore, } from './IsographEnvironment';
|
4
|
-
export { iso } from './iso';
|
5
4
|
export type IsographEntrypoint<TReadFromStore extends Object, TResolverProps, TResolverResult> = {
|
6
5
|
kind: 'Entrypoint';
|
7
6
|
queryText: string;
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.defaultMissingFieldHandler = exports.readButDoNotEvaluate = exports.read = exports.useRead = exports.useLazyReference = exports.
|
3
|
+
exports.defaultMissingFieldHandler = exports.readButDoNotEvaluate = exports.read = exports.useRead = exports.useLazyReference = exports.createIsographStore = exports.createIsographEnvironment = exports.useIsographEnvironment = exports.IsographEnvironmentProvider = exports.ROOT_ID = exports.IsographEnvironmentContext = exports.subscribe = exports.makeNetworkRequest = void 0;
|
4
4
|
const cache_1 = require("./cache");
|
5
5
|
const react_disposable_state_1 = require("@isograph/react-disposable-state");
|
6
6
|
const componentCache_1 = require("./componentCache");
|
@@ -16,8 +16,6 @@ Object.defineProperty(exports, "IsographEnvironmentProvider", { enumerable: true
|
|
16
16
|
Object.defineProperty(exports, "useIsographEnvironment", { enumerable: true, get: function () { return IsographEnvironment_2.useIsographEnvironment; } });
|
17
17
|
Object.defineProperty(exports, "createIsographEnvironment", { enumerable: true, get: function () { return IsographEnvironment_2.createIsographEnvironment; } });
|
18
18
|
Object.defineProperty(exports, "createIsographStore", { enumerable: true, get: function () { return IsographEnvironment_2.createIsographStore; } });
|
19
|
-
var iso_1 = require("./iso");
|
20
|
-
Object.defineProperty(exports, "iso", { enumerable: true, get: function () { return iso_1.iso; } });
|
21
19
|
function assertIsEntrypoint(value) {
|
22
20
|
if (typeof value === 'function')
|
23
21
|
throw new Error('Not a string');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@isograph/react",
|
3
|
-
"version": "0.0.0-main-
|
3
|
+
"version": "0.0.0-main-c3e3c34d",
|
4
4
|
"description": "Use Isograph with React",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -15,8 +15,8 @@
|
|
15
15
|
"prepack": "yarn run test && yarn run compile"
|
16
16
|
},
|
17
17
|
"dependencies": {
|
18
|
-
"@isograph/disposable-types": "0.0.0-main-
|
19
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
18
|
+
"@isograph/disposable-types": "0.0.0-main-c3e3c34d",
|
19
|
+
"@isograph/react-disposable-state": "0.0.0-main-c3e3c34d",
|
20
20
|
"react": "^18.2.0"
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
package/src/index.tsx
CHANGED
package/dist/iso.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare function iso<TResolverParameter>(_queryText: TemplateStringsArray): <TResolverReturn>(x: (param: TResolverParameter) => TResolverReturn) => (param: TResolverParameter) => TResolverReturn;
|
package/dist/iso.js
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.iso = void 0;
|
4
|
-
function iso(_queryText) {
|
5
|
-
// The name `identity` here is a bit of a double entendre.
|
6
|
-
// First, it is the identity function, constrained to operate
|
7
|
-
// on a very specific type. Thus, the value of b Declare`...`(
|
8
|
-
// someFunction) is someFunction. But furthermore, if one
|
9
|
-
// write b Declare`...` and passes no function, the resolver itself
|
10
|
-
// is the identity function. At that point, the types
|
11
|
-
// TResolverParameter and TResolverReturn must be identical.
|
12
|
-
return function identity(x) {
|
13
|
-
return x;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
exports.iso = iso;
|
package/src/iso.tsx
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
export function iso<TResolverParameter>(
|
2
|
-
_queryText: TemplateStringsArray,
|
3
|
-
): <TResolverReturn>(
|
4
|
-
x: (param: TResolverParameter) => TResolverReturn,
|
5
|
-
) => (param: TResolverParameter) => TResolverReturn {
|
6
|
-
// The name `identity` here is a bit of a double entendre.
|
7
|
-
// First, it is the identity function, constrained to operate
|
8
|
-
// on a very specific type. Thus, the value of b Declare`...`(
|
9
|
-
// someFunction) is someFunction. But furthermore, if one
|
10
|
-
// write b Declare`...` and passes no function, the resolver itself
|
11
|
-
// is the identity function. At that point, the types
|
12
|
-
// TResolverParameter and TResolverReturn must be identical.
|
13
|
-
|
14
|
-
return function identity<TResolverReturn>(
|
15
|
-
x: (param: TResolverParameter) => TResolverReturn,
|
16
|
-
): (param: TResolverParameter) => TResolverReturn {
|
17
|
-
return x;
|
18
|
-
};
|
19
|
-
}
|