@mapled/react 0.0.1

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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +52 -0
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # @mapled/react
2
+
3
+ React helpers for [Mapled](https://mapled.io), the hosted headless CMS for sites built with AI: published content in a React single-page app (Vite and the like).
4
+
5
+ **This version holds no code yet.** 0.0.1 exists so that the releases that follow can be published from CI; the first release is 0.1.0.
6
+
7
+ Until then:
8
+
9
+ - a Next.js site uses [`@mapled/next`](https://www.npmjs.com/package/@mapled/next);
10
+ - any other site reads the Delivery API over HTTP — «Without Next.js: the HTTP API» in the [`@mapled/next` README](https://www.npmjs.com/package/@mapled/next).
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@mapled/react",
3
+ "version": "0.0.1",
4
+ "description": "React helpers for Mapled, the hosted headless CMS for sites built with AI — published content in a React single-page app. 0.0.1 holds no code yet; 0.1.0 is the first release.",
5
+ "license": "MIT",
6
+ "homepage": "https://mapled.io",
7
+ "keywords": [
8
+ "mapled",
9
+ "cms",
10
+ "headless-cms",
11
+ "react",
12
+ "spa",
13
+ "vite"
14
+ ],
15
+ "engines": {
16
+ "node": ">=18"
17
+ },
18
+ "sideEffects": false,
19
+ "type": "module",
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "README.md"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsc -p tsconfig.json",
33
+ "prepack": "npm run build",
34
+ "test": "vitest run",
35
+ "typecheck": "tsc --noEmit -p tsconfig.json"
36
+ },
37
+ "dependencies": {
38
+ "@mapled/client": "^0.0.1"
39
+ },
40
+ "peerDependencies": {
41
+ "react": ">=18"
42
+ },
43
+ "devDependencies": {
44
+ "@testing-library/react": "^16.3.0",
45
+ "@types/react": "^19.0.0",
46
+ "jsdom": "^26.0.0",
47
+ "react": "^19.1.0",
48
+ "react-dom": "^19.1.0",
49
+ "typescript": "^5.9.0",
50
+ "vitest": "^4.1.11"
51
+ }
52
+ }