@ldo/solid-react 0.0.1-alpha.18 → 0.0.1-alpha.19
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/useLdoMethods.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { LdoBase, ShapeType } from "@ldo/ldo";
|
|
2
2
|
import type { SubjectNode } from "@ldo/rdf-utils";
|
|
3
|
-
import type { Resource, SolidLdoDataset } from "@ldo/solid";
|
|
3
|
+
import type { Resource, SolidLdoDataset, SolidLdoTransactionDataset } from "@ldo/solid";
|
|
4
4
|
export interface UseLdoMethods {
|
|
5
5
|
dataset: SolidLdoDataset;
|
|
6
6
|
getResource: SolidLdoDataset["getResource"];
|
|
7
7
|
getSubject<Type extends LdoBase>(shapeType: ShapeType<Type>, subject: string | SubjectNode): Type;
|
|
8
8
|
createData<Type extends LdoBase>(shapeType: ShapeType<Type>, subject: string | SubjectNode, resource: Resource, ...additionalResources: Resource[]): Type;
|
|
9
9
|
changeData<Type extends LdoBase>(input: Type, resource: Resource, ...additionalResources: Resource[]): Type;
|
|
10
|
-
commitData(input: LdoBase): ReturnType<
|
|
10
|
+
commitData(input: LdoBase): ReturnType<SolidLdoTransactionDataset["commitToPod"]>;
|
|
11
11
|
}
|
|
12
12
|
export declare function createUseLdoMethods(dataset: SolidLdoDataset): UseLdoMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLdoMethods.js","sourceRoot":"","sources":["../src/useLdoMethods.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useLdoMethods.js","sourceRoot":"","sources":["../src/useLdoMethods.ts"],"names":[],"mappings":";;;AAOA,sCAAoD;AAyBpD,SAAgB,mBAAmB,CAAC,OAAwB;IAC1D,OAAO;QACL,OAAO,EAAE,OAAO;QAIhB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC;QAO9C,UAAU,CACR,SAA0B,EAC1B,OAA6B;YAE7B,OAAO,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3D,CAAC;QAQD,UAAU,CACR,SAA0B,EAC1B,OAA6B,EAC7B,QAAkB,EAClB,GAAG,mBAA+B;YAElC,OAAO,OAAO,CAAC,UAAU,CACvB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,GAAG,mBAAmB,CACvB,CAAC;QACJ,CAAC;QAMD,UAAU,EAAE,kBAAU;QAKtB,UAAU,EAAE,kBAAU;KACvB,CAAC;AACJ,CAAC;AAnDD,kDAmDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldo/solid-react",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.19",
|
|
4
4
|
"description": "A React library for LDO and Solid",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@inrupt/solid-client": "^2.0.0",
|
|
40
40
|
"@ldo/dataset": "^0.0.1-alpha.17",
|
|
41
|
-
"@ldo/jsonld-dataset-proxy": "^0.0.1-alpha.
|
|
42
|
-
"@ldo/ldo": "^0.0.1-alpha.
|
|
43
|
-
"@ldo/solid": "^0.0.1-alpha.
|
|
44
|
-
"@ldo/subscribable-dataset": "^0.0.1-alpha.
|
|
41
|
+
"@ldo/jsonld-dataset-proxy": "^0.0.1-alpha.19",
|
|
42
|
+
"@ldo/ldo": "^0.0.1-alpha.19",
|
|
43
|
+
"@ldo/solid": "^0.0.1-alpha.19",
|
|
44
|
+
"@ldo/subscribable-dataset": "^0.0.1-alpha.19",
|
|
45
45
|
"@rdfjs/data-model": "^1.2.0",
|
|
46
46
|
"cross-fetch": "^3.1.6"
|
|
47
47
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "c21144a5552978622d05c3f1db4a3b68d304813c"
|
|
56
56
|
}
|
package/src/useLdoMethods.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { LdoBase, ShapeType } from "@ldo/ldo";
|
|
2
2
|
import type { SubjectNode } from "@ldo/rdf-utils";
|
|
3
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
Resource,
|
|
5
|
+
SolidLdoDataset,
|
|
6
|
+
SolidLdoTransactionDataset,
|
|
7
|
+
} from "@ldo/solid";
|
|
4
8
|
import { changeData, commitData } from "@ldo/solid";
|
|
5
9
|
|
|
6
10
|
export interface UseLdoMethods {
|
|
@@ -21,7 +25,9 @@ export interface UseLdoMethods {
|
|
|
21
25
|
resource: Resource,
|
|
22
26
|
...additionalResources: Resource[]
|
|
23
27
|
): Type;
|
|
24
|
-
commitData(
|
|
28
|
+
commitData(
|
|
29
|
+
input: LdoBase,
|
|
30
|
+
): ReturnType<SolidLdoTransactionDataset["commitToPod"]>;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
export function createUseLdoMethods(dataset: SolidLdoDataset): UseLdoMethods {
|