@sandboxsonny/ace-kit 0.6.0 → 0.7.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.
@@ -1,4 +1,8 @@
1
- import { type RouteConfig, route } from "@react-router/dev/routes";
1
+ import { type RouteConfig, index, route } from "@react-router/dev/routes";
2
2
 
3
- // One route draws every page: "/" is the home entry and "/{content type}/{entry}" any other.
4
- export default [route("*", "routes/page.tsx")] satisfies RouteConfig;
3
+ // One route draws every page: "/" is the home entry and "/{content type}/{entry}" any other. The home page needs its own
4
+ // `index` line: a "*" route doesn't match "/", so with only that line the home page would come out empty.
5
+ export default [
6
+ index("routes/page.tsx", { id: "home" }),
7
+ route("*", "routes/page.tsx", { id: "page" }),
8
+ ] satisfies RouteConfig;
@@ -0,0 +1,109 @@
1
+ {
2
+ "sections": [
3
+ {
4
+ "handle": "faq",
5
+ "name": "FAQ",
6
+ "fields": [
7
+ {
8
+ "handle": "heading",
9
+ "label": "Heading",
10
+ "component_key": "text",
11
+ "config": {}
12
+ }
13
+ ],
14
+ "blocks": [
15
+ {
16
+ "handle": "question",
17
+ "name": "Question",
18
+ "fields": [
19
+ {
20
+ "handle": "question",
21
+ "label": "Question",
22
+ "component_key": "text",
23
+ "config": {
24
+ "required": true
25
+ }
26
+ },
27
+ {
28
+ "handle": "answer",
29
+ "label": "Answer",
30
+ "component_key": "richtext",
31
+ "config": {}
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ "handle": "gallery",
39
+ "name": "Gallery",
40
+ "fields": [
41
+ {
42
+ "handle": "heading",
43
+ "label": "Heading",
44
+ "component_key": "text",
45
+ "config": {}
46
+ },
47
+ {
48
+ "handle": "published",
49
+ "label": "Published",
50
+ "component_key": "date",
51
+ "config": {}
52
+ }
53
+ ],
54
+ "blocks": [
55
+ {
56
+ "handle": "photo",
57
+ "name": "Photo",
58
+ "fields": [
59
+ {
60
+ "handle": "image",
61
+ "label": "Image",
62
+ "component_key": "image",
63
+ "config": {}
64
+ },
65
+ {
66
+ "handle": "caption",
67
+ "label": "Caption",
68
+ "component_key": "text",
69
+ "config": {}
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "handle": "hero",
77
+ "name": "Hero",
78
+ "fields": [
79
+ {
80
+ "handle": "heading",
81
+ "label": "Heading",
82
+ "component_key": "text",
83
+ "config": {
84
+ "required": true
85
+ }
86
+ },
87
+ {
88
+ "handle": "subheading",
89
+ "label": "Subheading",
90
+ "component_key": "textarea",
91
+ "config": {}
92
+ },
93
+ {
94
+ "handle": "picture",
95
+ "label": "Picture",
96
+ "component_key": "image",
97
+ "config": {}
98
+ },
99
+ {
100
+ "handle": "button",
101
+ "label": "Button",
102
+ "component_key": "link",
103
+ "config": {}
104
+ }
105
+ ],
106
+ "blocks": []
107
+ }
108
+ ]
109
+ }