@slices.sh/assets 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Severin MARCOMBES
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ export { assetUrl } from "./services/types";
2
+ export type { AssetDefinition, AssetManifest, AssetsClient } from "./services/types";
package/dist/client.js ADDED
@@ -0,0 +1,4 @@
1
+ import { assetUrl } from "./services/types.js";
2
+ export {
3
+ assetUrl
4
+ };
@@ -0,0 +1,34 @@
1
+ {
2
+ ".": {
3
+ "types": "./dist/index.d.ts",
4
+ "default": "./dist/index.js"
5
+ },
6
+ "./client": {
7
+ "types": "./dist/client.d.ts",
8
+ "default": "./dist/client.js"
9
+ },
10
+ "./next": {
11
+ "types": "./dist/next.d.ts",
12
+ "default": "./dist/next.js"
13
+ },
14
+ "./react/use-asset-url": {
15
+ "types": "./dist/hooks/use-asset-url.d.ts",
16
+ "default": "./dist/hooks/use-asset-url.js"
17
+ },
18
+ "./services/capabilities": {
19
+ "types": "./dist/services/capabilities.d.ts",
20
+ "default": "./dist/services/capabilities.js"
21
+ },
22
+ "./services/collect": {
23
+ "types": "./dist/services/collect.d.ts",
24
+ "default": "./dist/services/collect.js"
25
+ },
26
+ "./services/declared": {
27
+ "types": "./dist/services/declared.d.ts",
28
+ "default": "./dist/services/declared.js"
29
+ },
30
+ "./services/types": {
31
+ "types": "./dist/services/types.d.ts",
32
+ "default": "./dist/services/types.js"
33
+ }
34
+ }
@@ -0,0 +1,4 @@
1
+ /** The URL of a named file, inside a component. It only builds the address; the route serves it. */
2
+ export declare function useAssetUrl(name: string, options?: {
3
+ config?: string;
4
+ }): string;
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import { assetUrl } from "../services/types.js";
3
+ function useAssetUrl(name, options = {}) {
4
+ return assetUrl(name, options);
5
+ }
6
+ export {
7
+ useAssetUrl
8
+ };
@@ -0,0 +1,21 @@
1
+ import { type Provider } from "@slices.sh/core";
2
+ import type { AssetDefinition, AssetsClient } from "./services/types";
3
+ export type { AssetDefinition, AssetManifest, AssetsClient, AssetsService } from "./services/types";
4
+ export type { AssetsCapabilities } from "./services/capabilities";
5
+ /** What a config of this service says besides its provider. */
6
+ export type AssetsConfigOptions = {
7
+ /**
8
+ * Your own pinned files, next to the ones packages declare: `{ url, sha256, bytes, mediaType,
9
+ * package, version, packagePath, license, versionPolicy? }`. Packages declare theirs in their own
10
+ * package.json, so no install writes into a file of yours.
11
+ */
12
+ entries?: Record<string, AssetDefinition>;
13
+ };
14
+ /**
15
+ * Configures the assets service: services/assets/<config>.config.ts has
16
+ * `export default assets({ provider: cdn() })`. This module is client-safe: it holds a description,
17
+ * and the server half of the provider is loaded lazily.
18
+ */
19
+ export declare function assets(options: {
20
+ provider: Provider<AssetsClient>;
21
+ } & AssetsConfigOptions): import("@slices.sh/core").ServiceConfig<AssetsClient>;
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { defineService } from "@slices.sh/core";
2
+ const configure = defineService("assets");
3
+ function assets(options) {
4
+ return configure(options);
5
+ }
6
+ export {
7
+ assets
8
+ };
package/dist/next.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import "server-only";
2
+ /**
3
+ * app/api/assets/[config]/[[...path]]/route.ts re-exports this, beside `export const runtime = "nodejs"`:
4
+ * the route hashes bytes and reads public/assets, and a segment option has to be written in the
5
+ * route file itself.
6
+ */
7
+ export declare const GET: (request: Request, context: {
8
+ params: Promise<{
9
+ config?: string;
10
+ path?: string[];
11
+ }> | {
12
+ config?: string;
13
+ path?: string[];
14
+ };
15
+ }) => Promise<Response>;
package/dist/next.js ADDED
@@ -0,0 +1,6 @@
1
+ import "server-only";
2
+ import { serviceRoute } from "@slices.sh/core/server";
3
+ const { GET } = serviceRoute("assets");
4
+ export {
5
+ GET
6
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * What an assets provider can do. Both are answered at request time and not claimed by a config:
3
+ * the names a config serves are every installed package's declared files plus its own entries,
4
+ * and whether a verified copy sits in public/assets is a question about the disk, which
5
+ * `npx slices assets --check` and the route answer.
6
+ */
7
+ export type AssetsCapabilities = {
8
+ /** The config serves the files packages declare, plus its own `entries`. */
9
+ entries: boolean;
10
+ /** A verified copy in public/assets is served by a redirect to the static file. */
11
+ local: boolean;
12
+ };
File without changes
@@ -0,0 +1,15 @@
1
+ import "server-only";
2
+ import type { AssetDefinition, AssetManifest } from "./types";
3
+ /** Each part of a name, so a name can never climb out of public/assets or name a hidden file. */
4
+ export declare const safeName: (name: string) => boolean;
5
+ /** Whether an entry is one a request may fetch bytes for: a pinned https file of a bounded size. */
6
+ export declare function validDefinition(asset: AssetDefinition): boolean;
7
+ /**
8
+ * Every file the installed packages declare, found when the first request needs them.
9
+ *
10
+ * The list is read once per process: a package that is added or upgraded shows up when the server
11
+ * restarts, which is also when the app's own copy of the package changes. An entry that is not a
12
+ * valid name or definition is left out and said once, so a bad declaration costs its own file
13
+ * and not the rest.
14
+ */
15
+ export declare function collectEntries(project?: string): AssetManifest;
@@ -0,0 +1,56 @@
1
+ import "server-only";
2
+ import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
3
+ import { join, resolve, sep } from "node:path";
4
+ import { declared } from "./declared.js";
5
+ const MAX_BYTES = 16 * 1024 * 1024;
6
+ const safeName = (name) => name.split("/").every((part) => /^[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(part) && part !== "..");
7
+ function validDefinition(asset) {
8
+ return /^https:\/\//.test(asset.url) && /^[a-f0-9]{64}$/i.test(asset.sha256) && Number.isSafeInteger(asset.bytes) && asset.bytes > 0 && asset.bytes <= MAX_BYTES;
9
+ }
10
+ const ROOTS = [join("node_modules", "@slices"), join("vendor", "slices")];
11
+ function declaredBy(directory) {
12
+ let manifest;
13
+ try {
14
+ manifest = JSON.parse(readFileSync(join(directory, "package.json"), "utf8"));
15
+ } catch {
16
+ return {};
17
+ }
18
+ let entries = manifest.slices?.assets;
19
+ if (typeof entries === "string") {
20
+ const file = resolve(directory, entries);
21
+ if (!file.startsWith(resolve(directory) + sep)) return {};
22
+ try {
23
+ entries = JSON.parse(readFileSync(file, "utf8"));
24
+ } catch {
25
+ return {};
26
+ }
27
+ }
28
+ return entries && typeof entries === "object" && !Array.isArray(entries) ? entries : {};
29
+ }
30
+ let collected;
31
+ function collectEntries(project = process.cwd()) {
32
+ if (collected?.project === project) return collected.entries;
33
+ const entries = { ...declared };
34
+ for (const root of ROOTS) {
35
+ const base = join(project, root);
36
+ if (!existsSync(base)) continue;
37
+ for (const folder of readdirSync(base)) {
38
+ const directory = join(base, folder);
39
+ if (!statSync(directory).isDirectory()) continue;
40
+ for (const [name, asset] of Object.entries(declaredBy(directory))) {
41
+ if (!safeName(name) || !asset || typeof asset !== "object" || !validDefinition(asset)) {
42
+ console.warn(`[slices assets] ${folder} declares ${name}, which is not a valid pinned asset; it is not served.`);
43
+ continue;
44
+ }
45
+ entries[name] = asset;
46
+ }
47
+ }
48
+ }
49
+ collected = { project, entries };
50
+ return entries;
51
+ }
52
+ export {
53
+ collectEntries,
54
+ safeName,
55
+ validDefinition
56
+ };
@@ -0,0 +1,134 @@
1
+ /**
2
+ * The files v1 libraries pinned in services/assets/manifest.ts, which no install writes any more.
3
+ *
4
+ * A package declares its own files in `package.json` (`"slices": { "assets": { … } }`, see
5
+ * `collect.ts`), and a declaration there wins over the same name here. Until each package below
6
+ * carries its own, this list keeps the viewers and the map working: it is shipped code, not an
7
+ * app file, so it moves with the version of the package it describes.
8
+ */
9
+ export declare const declared: {
10
+ "document-pdf/2.15.1/pdfium.wasm": {
11
+ url: string;
12
+ sha256: string;
13
+ bytes: number;
14
+ mediaType: string;
15
+ package: string;
16
+ version: string;
17
+ packagePath: string;
18
+ license: string;
19
+ };
20
+ "document-pptx/0.2.1/native-parser-worker.js": {
21
+ url: string;
22
+ sha256: string;
23
+ bytes: number;
24
+ mediaType: string;
25
+ package: string;
26
+ version: string;
27
+ packagePath: string;
28
+ license: string;
29
+ };
30
+ "document-pptx/0.2.1/pptx_wasm_bg.wasm": {
31
+ url: string;
32
+ sha256: string;
33
+ bytes: number;
34
+ mediaType: string;
35
+ package: string;
36
+ version: string;
37
+ packagePath: string;
38
+ license: string;
39
+ };
40
+ "maplibre/6.11.2/maplibre-gl.mjs": {
41
+ url: string;
42
+ sha256: string;
43
+ bytes: number;
44
+ mediaType: string;
45
+ package: string;
46
+ version: string;
47
+ packagePath: string;
48
+ license: string;
49
+ };
50
+ "maplibre/6.11.2/maplibre-gl-shared.mjs": {
51
+ url: string;
52
+ sha256: string;
53
+ bytes: number;
54
+ mediaType: string;
55
+ package: string;
56
+ version: string;
57
+ packagePath: string;
58
+ license: string;
59
+ };
60
+ "maplibre/6.11.2/maplibre-gl-worker.mjs": {
61
+ url: string;
62
+ sha256: string;
63
+ bytes: number;
64
+ mediaType: string;
65
+ package: string;
66
+ version: string;
67
+ packagePath: string;
68
+ license: string;
69
+ };
70
+ "maplibre/6.11.2/maplibre-gl.css": {
71
+ url: string;
72
+ sha256: string;
73
+ bytes: number;
74
+ mediaType: string;
75
+ package: string;
76
+ version: string;
77
+ packagePath: string;
78
+ license: string;
79
+ };
80
+ "markdown-diagram/11.17.2/mermaid.tiny.js": {
81
+ url: string;
82
+ sha256: string;
83
+ bytes: number;
84
+ mediaType: string;
85
+ package: string;
86
+ version: string;
87
+ packagePath: string;
88
+ license: string;
89
+ };
90
+ "artifact-runtime/react/19.2.4/react.production.js": {
91
+ url: string;
92
+ sha256: string;
93
+ bytes: number;
94
+ mediaType: string;
95
+ package: string;
96
+ version: string;
97
+ packagePath: string;
98
+ license: string;
99
+ versionPolicy: "independent";
100
+ };
101
+ "artifact-runtime/react-dom/19.2.4/react-dom.production.js": {
102
+ url: string;
103
+ sha256: string;
104
+ bytes: number;
105
+ mediaType: string;
106
+ package: string;
107
+ version: string;
108
+ packagePath: string;
109
+ license: string;
110
+ versionPolicy: "independent";
111
+ };
112
+ "artifact-runtime/react-dom/19.2.4/react-dom-client.production.js": {
113
+ url: string;
114
+ sha256: string;
115
+ bytes: number;
116
+ mediaType: string;
117
+ package: string;
118
+ version: string;
119
+ packagePath: string;
120
+ license: string;
121
+ versionPolicy: "independent";
122
+ };
123
+ "artifact-runtime/scheduler/0.27.0/scheduler.production.js": {
124
+ url: string;
125
+ sha256: string;
126
+ bytes: number;
127
+ mediaType: string;
128
+ package: string;
129
+ version: string;
130
+ packagePath: string;
131
+ license: string;
132
+ versionPolicy: "independent";
133
+ };
134
+ };
@@ -0,0 +1,134 @@
1
+ const declared = {
2
+ // @slices.sh/document-pdf
3
+ "document-pdf/2.15.1/pdfium.wasm": {
4
+ url: "https://cdn.jsdelivr.net/npm/@embedpdf/snippet@2.15.1/dist/pdfium.wasm",
5
+ sha256: "5e4cd023c3dad4a895b3571ca573d3fc51bac6de48360d95283134385b954eaa",
6
+ bytes: 4646932,
7
+ mediaType: "application/wasm",
8
+ package: "@embedpdf/snippet",
9
+ version: "2.15.1",
10
+ packagePath: "dist/pdfium.wasm",
11
+ license: "MIT"
12
+ },
13
+ // @slices.sh/document-pptx
14
+ "document-pptx/0.2.1/native-parser-worker.js": {
15
+ url: "https://cdn.jsdelivr.net/npm/@extend-ai/react-pptx@0.2.1/dist/native-parser-worker.js",
16
+ sha256: "70e6cf8b2937a8df90800f17e5e2df6315a8a61a79af1f932ea85d4381dc540d",
17
+ bytes: 10039,
18
+ mediaType: "text/javascript",
19
+ package: "@extend-ai/react-pptx",
20
+ version: "0.2.1",
21
+ packagePath: "dist/native-parser-worker.js",
22
+ license: "MIT"
23
+ },
24
+ "document-pptx/0.2.1/pptx_wasm_bg.wasm": {
25
+ url: "https://cdn.jsdelivr.net/npm/@extend-ai/react-pptx@0.2.1/dist/pptx_wasm_bg.wasm",
26
+ sha256: "6cd3fb9f1082477f155009bd583a1d18deb8b46bde829d25cf9ab00b120b4c90",
27
+ bytes: 573411,
28
+ mediaType: "application/wasm",
29
+ package: "@extend-ai/react-pptx",
30
+ version: "0.2.1",
31
+ packagePath: "dist/pptx_wasm_bg.wasm",
32
+ license: "MIT"
33
+ },
34
+ // @slices.sh/map-surface
35
+ "maplibre/6.11.2/maplibre-gl.mjs": {
36
+ url: "https://cdn.jsdelivr.net/npm/maplibre-gl@6.11.2/dist/maplibre-gl.mjs",
37
+ sha256: "3f55566295583644617fe17d008a36c580414b8c71dd2e1fcff1309de6fdee5d",
38
+ bytes: 590228,
39
+ mediaType: "text/javascript",
40
+ package: "maplibre-gl",
41
+ version: "6.11.2",
42
+ packagePath: "dist/maplibre-gl.mjs",
43
+ license: "BSD-3-Clause"
44
+ },
45
+ "maplibre/6.11.2/maplibre-gl-shared.mjs": {
46
+ url: "https://cdn.jsdelivr.net/npm/maplibre-gl@6.11.2/dist/maplibre-gl-shared.mjs",
47
+ sha256: "76b5f55bdee928c65d592684aaff2b913d50b6b17b0ec6334e88b09b6aa47960",
48
+ bytes: 515924,
49
+ mediaType: "text/javascript",
50
+ package: "maplibre-gl",
51
+ version: "6.11.2",
52
+ packagePath: "dist/maplibre-gl-shared.mjs",
53
+ license: "BSD-3-Clause"
54
+ },
55
+ "maplibre/6.11.2/maplibre-gl-worker.mjs": {
56
+ url: "https://cdn.jsdelivr.net/npm/maplibre-gl@6.11.2/dist/maplibre-gl-worker.mjs",
57
+ sha256: "01ad197aa7f4cec258a890febd71b7515e96309881b036a7095befc01a45296e",
58
+ bytes: 19133,
59
+ mediaType: "text/javascript",
60
+ package: "maplibre-gl",
61
+ version: "6.11.2",
62
+ packagePath: "dist/maplibre-gl-worker.mjs",
63
+ license: "BSD-3-Clause"
64
+ },
65
+ "maplibre/6.11.2/maplibre-gl.css": {
66
+ url: "https://cdn.jsdelivr.net/npm/maplibre-gl@6.11.2/dist/maplibre-gl.css",
67
+ sha256: "d8617d8421930e3fc6185365400e788c374c1a5d9fbe87999998c0bc14a202d3",
68
+ bytes: 83310,
69
+ mediaType: "text/css",
70
+ package: "maplibre-gl",
71
+ version: "6.11.2",
72
+ packagePath: "dist/maplibre-gl.css",
73
+ license: "BSD-3-Clause"
74
+ },
75
+ // @slices.sh/markdown-diagram
76
+ "markdown-diagram/11.17.2/mermaid.tiny.js": {
77
+ url: "https://cdn.jsdelivr.net/npm/@mermaid-js/tiny@11.17.2/dist/mermaid.tiny.js",
78
+ sha256: "7a644017d37f93c8359790884e6b67fb1f747c78eb20475952404bd87190a3f8",
79
+ bytes: 2555146,
80
+ mediaType: "text/javascript",
81
+ package: "@mermaid-js/tiny",
82
+ version: "11.17.2",
83
+ packagePath: "dist/mermaid.tiny.js",
84
+ license: "MIT"
85
+ },
86
+ // @slices.sh/artifact-runtime
87
+ "artifact-runtime/react/19.2.4/react.production.js": {
88
+ url: "https://cdn.jsdelivr.net/npm/react@19.2.4/cjs/react.production.js",
89
+ sha256: "6a3554a5287116df819640334924348287618dcdcd7124a05eb126dcbbecd5f9",
90
+ bytes: 17217,
91
+ mediaType: "text/javascript",
92
+ package: "react",
93
+ version: "19.2.4",
94
+ packagePath: "cjs/react.production.js",
95
+ license: "MIT",
96
+ versionPolicy: "independent"
97
+ },
98
+ "artifact-runtime/react-dom/19.2.4/react-dom.production.js": {
99
+ url: "https://cdn.jsdelivr.net/npm/react-dom@19.2.4/cjs/react-dom.production.js",
100
+ sha256: "7a5e56724be242e34ddc14f9d0dc7fc6a32f1367ae994f02d3699b00c085eff4",
101
+ bytes: 6655,
102
+ mediaType: "text/javascript",
103
+ package: "react-dom",
104
+ version: "19.2.4",
105
+ packagePath: "cjs/react-dom.production.js",
106
+ license: "MIT",
107
+ versionPolicy: "independent"
108
+ },
109
+ "artifact-runtime/react-dom/19.2.4/react-dom-client.production.js": {
110
+ url: "https://cdn.jsdelivr.net/npm/react-dom@19.2.4/cjs/react-dom-client.production.js",
111
+ sha256: "764ffa6adc2c9b02b4dc00f4a58ef13d050e7825898bd9e5dc808d3a3f9d4bb9",
112
+ bytes: 536016,
113
+ mediaType: "text/javascript",
114
+ package: "react-dom",
115
+ version: "19.2.4",
116
+ packagePath: "cjs/react-dom-client.production.js",
117
+ license: "MIT",
118
+ versionPolicy: "independent"
119
+ },
120
+ "artifact-runtime/scheduler/0.27.0/scheduler.production.js": {
121
+ url: "https://cdn.jsdelivr.net/npm/scheduler@0.27.0/cjs/scheduler.production.js",
122
+ sha256: "679adff761d31e9426604f80c0e99be44a3e6f4c6834b0218ecf0312a67c171f",
123
+ bytes: 10181,
124
+ mediaType: "text/javascript",
125
+ package: "scheduler",
126
+ version: "0.27.0",
127
+ packagePath: "cjs/scheduler.production.js",
128
+ license: "MIT",
129
+ versionPolicy: "independent"
130
+ }
131
+ };
132
+ export {
133
+ declared
134
+ };
@@ -0,0 +1,33 @@
1
+ export type AssetDefinition = {
2
+ url: string;
3
+ sha256: string;
4
+ bytes: number;
5
+ mediaType: string;
6
+ package: string;
7
+ version: string;
8
+ packagePath: string;
9
+ license: string;
10
+ /** Separate runtimes may pin bytes independently of the app’s installed package. Default: match-installed. */
11
+ versionPolicy?: "match-installed" | "independent";
12
+ };
13
+ export type AssetManifest = Record<string, AssetDefinition>;
14
+ /** The configured service as server code sees it: `await sdk("assets")`. */
15
+ export type AssetsService = {
16
+ /** What the route delegates to: the redirect, the verified bytes or the refusal. */
17
+ serve(name: string): Promise<Response>;
18
+ /** Everything the config serves, for a CSP or a preload list. */
19
+ entries(): Record<string, AssetDefinition>;
20
+ };
21
+ /** What a browser holds of a config: where its files are. Nothing is fetched until a part asks for a name. */
22
+ export type AssetsClient = {
23
+ url(name: string): string;
24
+ };
25
+ /**
26
+ * The URL of a named file, served by `/api/assets/<config>/<name>`.
27
+ *
28
+ * Names are manifest keys, never arbitrary upstream URLs.
29
+ */
30
+ export declare function assetUrl(name: string, { config, basePath }?: {
31
+ config?: string;
32
+ basePath?: string;
33
+ }): string;
@@ -0,0 +1,6 @@
1
+ function assetUrl(name, { config = "default", basePath = "/api/assets" } = {}) {
2
+ return `${basePath}/${encodeURIComponent(config)}/${name.split("/").map(encodeURIComponent).join("/")}`;
3
+ }
4
+ export {
5
+ assetUrl
6
+ };
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@slices.sh/assets",
3
+ "version": "0.1.0",
4
+ "description": "slices v2: assets",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./client": {
14
+ "types": "./dist/client.d.ts",
15
+ "default": "./dist/client.js"
16
+ },
17
+ "./next": {
18
+ "types": "./dist/next.d.ts",
19
+ "default": "./dist/next.js"
20
+ },
21
+ "./react/use-asset-url": {
22
+ "types": "./dist/hooks/use-asset-url.d.ts",
23
+ "default": "./dist/hooks/use-asset-url.js"
24
+ },
25
+ "./services/capabilities": {
26
+ "types": "./dist/services/capabilities.d.ts",
27
+ "default": "./dist/services/capabilities.js"
28
+ },
29
+ "./services/collect": {
30
+ "types": "./dist/services/collect.d.ts",
31
+ "default": "./dist/services/collect.js"
32
+ },
33
+ "./services/declared": {
34
+ "types": "./dist/services/declared.d.ts",
35
+ "default": "./dist/services/declared.js"
36
+ },
37
+ "./services/types": {
38
+ "types": "./dist/services/types.d.ts",
39
+ "default": "./dist/services/types.js"
40
+ }
41
+ },
42
+ "files": [
43
+ "dist"
44
+ ],
45
+ "dependencies": {
46
+ "@slices.sh/core": "^0.1.0",
47
+ "server-only": "^0.0.1"
48
+ },
49
+ "peerDependencies": {
50
+ "react": "^19.2.0"
51
+ },
52
+ "author": "Severin MARCOMBES",
53
+ "main": "./dist/index.js",
54
+ "types": "./dist/index.d.ts"
55
+ }