@supersuit/artifacts 0.1.0 → 0.3.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/CHANGELOG.md +76 -0
- package/README.md +157 -1
- package/lib/artifacts/front-matter.d.ts +4 -0
- package/lib/artifacts/front-matter.js +21 -1
- package/lib/artifacts/index.d.ts +4 -0
- package/lib/artifacts/index.js +4 -0
- package/lib/artifacts/notes-place.d.ts +27 -0
- package/lib/artifacts/notes-place.js +25 -0
- package/lib/artifacts/render.d.ts +7 -1
- package/lib/artifacts/render.js +41 -3
- package/lib/artifacts/state-store.d.ts +62 -0
- package/lib/artifacts/state-store.js +153 -0
- package/lib/artifacts/state-view.d.ts +38 -0
- package/lib/artifacts/state-view.js +66 -0
- package/lib/artifacts/state.d.ts +35 -0
- package/lib/artifacts/state.js +83 -0
- package/lib/artifacts/store.d.ts +2 -0
- package/lib/artifacts/store.js +4 -1
- package/lib/artifacts/widgets.d.ts +38 -0
- package/lib/artifacts/widgets.js +141 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/routes/artifacts.d.ts +25 -2
- package/lib/routes/artifacts.js +51 -8
- package/lib/routes/ids.d.ts +1 -0
- package/lib/routes/ids.js +3 -0
- package/lib/routes/state-routes.d.ts +35 -0
- package/lib/routes/state-routes.js +216 -0
- package/lib/widgets/notes.d.ts +21 -0
- package/lib/widgets/notes.js +134 -0
- package/package.json +39 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersuit/artifacts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Publish markdown as branded, read-aloud pages from a Next.js app: the artifacts store, the route factory, the read-along reader, brand packs, password and confidential pages, and share cards.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,16 +10,41 @@
|
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/SupersuitUp/artifacts#readme",
|
|
12
12
|
"bugs": "https://github.com/SupersuitUp/artifacts/issues",
|
|
13
|
-
"keywords": [
|
|
13
|
+
"keywords": [
|
|
14
|
+
"nextjs",
|
|
15
|
+
"markdown",
|
|
16
|
+
"publishing",
|
|
17
|
+
"firestore",
|
|
18
|
+
"read-aloud",
|
|
19
|
+
"og-image"
|
|
20
|
+
],
|
|
14
21
|
"main": "lib/index.js",
|
|
15
22
|
"types": "lib/index.d.ts",
|
|
16
23
|
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"./
|
|
22
|
-
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./lib/index.d.ts",
|
|
26
|
+
"default": "./lib/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./artifacts": {
|
|
29
|
+
"types": "./lib/artifacts/index.d.ts",
|
|
30
|
+
"default": "./lib/artifacts/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./routes": {
|
|
33
|
+
"types": "./lib/routes/artifacts.d.ts",
|
|
34
|
+
"default": "./lib/routes/artifacts.js"
|
|
35
|
+
},
|
|
36
|
+
"./brand": {
|
|
37
|
+
"types": "./lib/brand/index.d.ts",
|
|
38
|
+
"default": "./lib/brand/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./reader": {
|
|
41
|
+
"types": "./lib/reader/artifact-reader.d.ts",
|
|
42
|
+
"default": "./lib/reader/artifact-reader.js"
|
|
43
|
+
},
|
|
44
|
+
"./gate": {
|
|
45
|
+
"types": "./lib/gate.d.ts",
|
|
46
|
+
"default": "./lib/gate.js"
|
|
47
|
+
},
|
|
23
48
|
"./fonts/*": "./fonts/*",
|
|
24
49
|
"./package.json": "./package.json"
|
|
25
50
|
},
|
|
@@ -46,7 +71,9 @@
|
|
|
46
71
|
"react-dom": ">=19"
|
|
47
72
|
},
|
|
48
73
|
"peerDependenciesMeta": {
|
|
49
|
-
"@google-cloud/storage": {
|
|
74
|
+
"@google-cloud/storage": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
50
77
|
},
|
|
51
78
|
"dependencies": {
|
|
52
79
|
"gray-matter": "^4.0.3",
|
|
@@ -70,5 +97,7 @@
|
|
|
70
97
|
"typescript": "~5.9.0",
|
|
71
98
|
"vitest": "^4.0.18"
|
|
72
99
|
},
|
|
73
|
-
"engines": {
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": ">=20"
|
|
102
|
+
}
|
|
74
103
|
}
|