@contello/store 3.0.0 → 3.1.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/dist/fragments.d.ts +3 -1
- package/dist/fragments.d.ts.map +1 -0
- package/dist/fragments.js +18 -11
- package/dist/fragments.js.map +1 -0
- package/dist/index.cjs +1571 -1950
- package/dist/index.d.cts +326 -324
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +326 -324
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1559 -1952
- package/dist/index.js.map +1 -0
- package/package.json +10 -9
package/dist/fragments.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/fragments.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* resolved absolute paths to the `.gql` fragment files that store-backed
|
|
3
4
|
* codegen should include. combines media's primitives with store's own
|
|
@@ -5,5 +6,6 @@
|
|
|
5
6
|
* codegen `documents` config.
|
|
6
7
|
*/
|
|
7
8
|
declare const fragments: string[];
|
|
8
|
-
|
|
9
|
+
//#endregion
|
|
9
10
|
export { fragments };
|
|
11
|
+
//# sourceMappingURL=fragments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragments.d.ts","names":[],"sources":["../src/fragments.ts"],"mappings":";;AAYA;;;;AAIC;cAJY,SAAA"}
|
package/dist/fragments.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { fragments as fragments$1 } from "@contello/media/fragments";
|
|
3
|
+
//#region src/fragments.ts
|
|
4
|
+
const packageRoot = fileURLToPath(new URL("..", import.meta.url));
|
|
5
|
+
/**
|
|
6
|
+
* resolved absolute paths to the `.gql` fragment files that store-backed
|
|
7
|
+
* codegen should include. combines media's primitives with store's own
|
|
8
|
+
* `StoreAsset` / `StoreRoute` fragments. intended for use in a project's
|
|
9
|
+
* codegen `documents` config.
|
|
10
|
+
*/
|
|
11
|
+
const fragments = [
|
|
12
|
+
...fragments$1,
|
|
13
|
+
`${packageRoot}fragments/asset.gql`,
|
|
14
|
+
`${packageRoot}fragments/route.gql`
|
|
9
15
|
];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
//#endregion
|
|
17
|
+
export { fragments };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=fragments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragments.js","names":["mediaFragments"],"sources":["../src/fragments.ts"],"sourcesContent":["import { fileURLToPath } from 'node:url';\n\nimport { fragments as mediaFragments } from '@contello/media/fragments';\n\nconst packageRoot = fileURLToPath(new URL('..', import.meta.url));\n\n/**\n * resolved absolute paths to the `.gql` fragment files that store-backed\n * codegen should include. combines media's primitives with store's own\n * `StoreAsset` / `StoreRoute` fragments. intended for use in a project's\n * codegen `documents` config.\n */\nexport const fragments: string[] = [\n ...mediaFragments,\n `${packageRoot}fragments/asset.gql`,\n `${packageRoot}fragments/route.gql`,\n];\n"],"mappings":";;;AAIA,MAAM,cAAc,cAAc,IAAI,IAAI,MAAM,OAAO,KAAK,GAAG,CAAC;;;;;;;AAQhE,MAAa,YAAsB;CACjC,GAAGA;CACH,GAAG,YAAY;CACf,GAAG,YAAY;AACjB"}
|