@arpproject/recrate 0.1.42-test → 0.1.43
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/crate-builder/CrateManager/crate-manager-operations.spec.d.ts +1 -0
- package/dist/crate-builder/CrateManager/profile-manager.d.ts +1 -7
- package/dist/crate-builder/RenderEntity/DialogAddProperty.d.ts +0 -1
- package/dist/crate-builder/RenderEntity/EntityType.d.ts +7 -0
- package/dist/crate-builder/locales/en.d.ts +0 -68
- package/dist/crate-builder/locales/hu.d.ts +8 -70
- package/dist/recrate.css +2 -2
- package/dist/recrate.es.js +1325 -9697
- package/package.json +1 -2
- package/dist/crate-builder/RenderEntity/DialogAddProperty.spec.d.ts +0 -1
- package/dist/crate-builder/RenderEntity/DialogSchemaSettings.d.ts +0 -7
- package/dist/crate-builder/RenderEntity/DialogSchemaSettings.spec.d.ts +0 -1
- package/dist/crate-builder/schema-registry.d.ts +0 -84
- package/dist/crate-builder/schema-registry.spec.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arpproject/recrate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/recrate.es.js",
|
|
6
6
|
"module": "./dist/recrate.es.js",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
28
28
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
29
29
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
30
|
-
"@frogcat/ttl2jsonld": "^0.0.10",
|
|
31
30
|
"@mui/icons-material": "^7.1.0",
|
|
32
31
|
"@mui/material": "^7.1.0",
|
|
33
32
|
"@mui/system": "^7.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export type RoCrateSpecification = "1.1" | "1.2";
|
|
2
|
-
export interface RegisteredSchema {
|
|
3
|
-
id: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
matchesUrls: string[];
|
|
6
|
-
schemaUrl: string;
|
|
7
|
-
activeOnSpec: RoCrateSpecification[];
|
|
8
|
-
}
|
|
9
|
-
export interface SchemaClass {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
label: string;
|
|
13
|
-
comment: string;
|
|
14
|
-
parents: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface SchemaProperty {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
label: string;
|
|
20
|
-
comment: string;
|
|
21
|
-
domains: string[];
|
|
22
|
-
ranges: string[];
|
|
23
|
-
}
|
|
24
|
-
export interface RuntimeProfileInput {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
label?: string;
|
|
28
|
-
help?: string;
|
|
29
|
-
multiple: boolean;
|
|
30
|
-
type: string[];
|
|
31
|
-
}
|
|
32
|
-
export interface LoadedSchema {
|
|
33
|
-
classes: SchemaClass[];
|
|
34
|
-
properties: SchemaProperty[];
|
|
35
|
-
nodeCount: number;
|
|
36
|
-
}
|
|
37
|
-
export interface SchemaSource {
|
|
38
|
-
id: string;
|
|
39
|
-
displayName: string;
|
|
40
|
-
}
|
|
41
|
-
export interface SchemaLoadResult {
|
|
42
|
-
id: string;
|
|
43
|
-
displayName: string;
|
|
44
|
-
status: "loaded" | "already-loaded" | "built-in" | "skipped" | "failed";
|
|
45
|
-
message?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface SchemaRegistrySnapshot {
|
|
48
|
-
registeredSchemas: RegisteredSchema[];
|
|
49
|
-
loadedSchemas: Record<string, LoadedSchema>;
|
|
50
|
-
loadingSchemaIds: string[];
|
|
51
|
-
schemaErrors: Record<string, string>;
|
|
52
|
-
activeSpecification: RoCrateSpecification;
|
|
53
|
-
revision: number;
|
|
54
|
-
}
|
|
55
|
-
export declare const DEFAULT_SCHEMAS: RegisteredSchema[];
|
|
56
|
-
export declare const selectLoadedSchemas: (snapshot: Pick<SchemaRegistrySnapshot, "registeredSchemas" | "loadedSchemas" | "activeSpecification">) => RegisteredSchema[];
|
|
57
|
-
export declare const parseSchemaDocument: (document: any) => LoadedSchema;
|
|
58
|
-
export declare class SchemaRegistry {
|
|
59
|
-
private listeners;
|
|
60
|
-
private fetches;
|
|
61
|
-
private snapshot;
|
|
62
|
-
constructor();
|
|
63
|
-
getSnapshot: () => SchemaRegistrySnapshot;
|
|
64
|
-
subscribe: (listener: () => void) => () => boolean;
|
|
65
|
-
private update;
|
|
66
|
-
private hydrate;
|
|
67
|
-
private persist;
|
|
68
|
-
upsert(schema: RegisteredSchema, previousId?: string): void;
|
|
69
|
-
delete(id: string): void;
|
|
70
|
-
unload(id: string): boolean;
|
|
71
|
-
setActiveSpecification(specification: RoCrateSpecification): void;
|
|
72
|
-
load(id: string, force?: boolean): Promise<SchemaLoadResult>;
|
|
73
|
-
loadAll(): Promise<SchemaLoadResult[]>;
|
|
74
|
-
private getActiveLoadedSchemas;
|
|
75
|
-
getActiveSchemas(): RegisteredSchema[];
|
|
76
|
-
getLoadedSchemas(): RegisteredSchema[];
|
|
77
|
-
getSchemaSource(termId: string): SchemaSource | undefined;
|
|
78
|
-
getClasses(): string[];
|
|
79
|
-
getParents(types: string[]): string[];
|
|
80
|
-
getInputs(types: string[]): RuntimeProfileInput[];
|
|
81
|
-
getAllPropertyInputs(): RuntimeProfileInput[];
|
|
82
|
-
}
|
|
83
|
-
export declare const schemaRegistry: SchemaRegistry;
|
|
84
|
-
export declare const useSchemaRegistry: () => SchemaRegistrySnapshot;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|