@contello/store 1.0.0
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 +27 -0
- package/dist/index.cjs +1124 -0
- package/dist/index.d.cts +355 -0
- package/dist/index.d.ts +355 -0
- package/dist/index.js +1084 -0
- package/fragments/asset.gql +27 -0
- package/fragments/route.gql +37 -0
- package/package.json +54 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
fragment StoreFile on ContelloFile {
|
|
2
|
+
uid
|
|
3
|
+
mimeType
|
|
4
|
+
metadata {
|
|
5
|
+
... on ContelloImageMetadata {
|
|
6
|
+
width
|
|
7
|
+
height
|
|
8
|
+
}
|
|
9
|
+
... on ContelloVideoMetadata {
|
|
10
|
+
width
|
|
11
|
+
height
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
fragment StoreAsset on ContelloAsset {
|
|
17
|
+
id
|
|
18
|
+
original {
|
|
19
|
+
...StoreFile
|
|
20
|
+
}
|
|
21
|
+
preview {
|
|
22
|
+
...StoreFile
|
|
23
|
+
}
|
|
24
|
+
optimized {
|
|
25
|
+
...StoreFile
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
fragment StoreRoute on ContelloRoute {
|
|
2
|
+
id
|
|
3
|
+
path
|
|
4
|
+
target {
|
|
5
|
+
__typename
|
|
6
|
+
... on ContelloRouteTargetEntity {
|
|
7
|
+
entity {
|
|
8
|
+
__typename
|
|
9
|
+
... on ContelloEntityBase {
|
|
10
|
+
id
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
... on ContelloRouteTargetAsset {
|
|
15
|
+
asset {
|
|
16
|
+
id
|
|
17
|
+
original {
|
|
18
|
+
uid
|
|
19
|
+
mimeType
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
contentDisposition
|
|
23
|
+
}
|
|
24
|
+
... on ContelloRouteTargetRedirect {
|
|
25
|
+
location
|
|
26
|
+
responseCode
|
|
27
|
+
}
|
|
28
|
+
... on ContelloRouteTargetText {
|
|
29
|
+
content
|
|
30
|
+
mimeType
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
customHeaders {
|
|
34
|
+
name
|
|
35
|
+
value
|
|
36
|
+
}
|
|
37
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@contello/store",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Framework-agnostic store for Contello CMS with reactive collections and automatic dependency tracking",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "admin@entwico.com",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/entwico/contello-js",
|
|
11
|
+
"directory": "packages/store"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsup",
|
|
15
|
+
"generate": "graphql-codegen",
|
|
16
|
+
"lint": "eslint .",
|
|
17
|
+
"lint:fix": "eslint . --fix",
|
|
18
|
+
"typecheck": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@contello/sdk-client": ">=8.22.0",
|
|
22
|
+
"projected": ">=2.0.0",
|
|
23
|
+
"rxjs": ">=7.0.0"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"backoff-rxjs": "^7.0.0",
|
|
27
|
+
"lru-cache": "^11.2.7"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@contello/sdk-client": "workspace:*",
|
|
31
|
+
"@graphql-codegen/add": "^6.0.0",
|
|
32
|
+
"@graphql-codegen/cli": "^6.2.1",
|
|
33
|
+
"@graphql-codegen/typescript": "^5.0.9",
|
|
34
|
+
"@graphql-codegen/typescript-operations": "^5.0.9",
|
|
35
|
+
"graphql": "^16.13.1",
|
|
36
|
+
"projected": "^2.2.0",
|
|
37
|
+
"rxjs": "^7.8.2"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"fragments"
|
|
42
|
+
],
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"exports": {
|
|
45
|
+
".": {
|
|
46
|
+
"import": "./dist/index.js",
|
|
47
|
+
"require": "./dist/index.cjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public",
|
|
52
|
+
"registry": "https://registry.npmjs.org"
|
|
53
|
+
}
|
|
54
|
+
}
|