@jxsuite/starters 1.8.2 → 2.0.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 +1 -1
- package/package.json +4 -4
- package/sites/blog/document.schema.json +28 -0
- package/sites/blog/package.json +3 -3
- package/sites/blog/project.schema.json +169 -1
- package/sites/course/document.schema.json +28 -0
- package/sites/course/package.json +3 -3
- package/sites/course/project.schema.json +169 -1
- package/sites/event/document.schema.json +28 -0
- package/sites/event/package.json +3 -3
- package/sites/event/project.schema.json +169 -1
- package/sites/fitness-studio/document.schema.json +28 -0
- package/sites/fitness-studio/package.json +3 -3
- package/sites/fitness-studio/project.schema.json +169 -1
- package/sites/home-services/document.schema.json +28 -0
- package/sites/home-services/package.json +3 -3
- package/sites/home-services/project.schema.json +169 -1
- package/sites/museum/document.schema.json +28 -0
- package/sites/museum/package.json +3 -3
- package/sites/museum/project.schema.json +169 -1
- package/sites/nonprofit/document.schema.json +28 -0
- package/sites/nonprofit/package.json +3 -3
- package/sites/nonprofit/project.schema.json +169 -1
- package/sites/portfolio/document.schema.json +28 -0
- package/sites/portfolio/package.json +3 -3
- package/sites/portfolio/project.schema.json +169 -1
- package/sites/professional-firm/document.schema.json +28 -0
- package/sites/professional-firm/package.json +3 -3
- package/sites/professional-firm/project.schema.json +169 -1
- package/sites/real-estate/document.schema.json +28 -0
- package/sites/real-estate/package.json +3 -3
- package/sites/real-estate/project.schema.json +169 -1
- package/sites/restaurant/document.schema.json +28 -0
- package/sites/restaurant/package.json +3 -3
- package/sites/restaurant/project.schema.json +169 -1
- package/sites/saas/document.schema.json +28 -0
- package/sites/saas/package.json +3 -3
- package/sites/saas/project.schema.json +169 -1
- package/sites/shop/document.schema.json +28 -0
- package/sites/shop/package.json +3 -3
- package/sites/shop/project.schema.json +169 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/starters",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Starter site templates for new Jx projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"test:coverage": "bun test --isolate --coverage"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@jxsuite/parser": "^
|
|
30
|
-
"@jxsuite/runtime": "^4.0.
|
|
31
|
-
"@jxsuite/schema": "^
|
|
29
|
+
"@jxsuite/parser": "^2.0.0",
|
|
30
|
+
"@jxsuite/runtime": "^4.0.3",
|
|
31
|
+
"@jxsuite/schema": "^3.0.0",
|
|
32
32
|
"ajv": "^8.20.0",
|
|
33
33
|
"ajv-formats": "^3.0.1"
|
|
34
34
|
}
|
|
@@ -5710,6 +5710,34 @@
|
|
|
5710
5710
|
}
|
|
5711
5711
|
]
|
|
5712
5712
|
},
|
|
5713
|
+
"ontoolactivated": {
|
|
5714
|
+
"description": "Event handler for the \"toolactivated\" event.",
|
|
5715
|
+
"oneOf": [
|
|
5716
|
+
{
|
|
5717
|
+
"$ref": "#/$defs/v1/$defs/RefObject"
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
"$ref": "#/$defs/v1/$defs/ExpressionEntry"
|
|
5721
|
+
},
|
|
5722
|
+
{
|
|
5723
|
+
"$ref": "#/$defs/v1/$defs/FunctionDef"
|
|
5724
|
+
}
|
|
5725
|
+
]
|
|
5726
|
+
},
|
|
5727
|
+
"ontoolcancel": {
|
|
5728
|
+
"description": "Event handler for the \"toolcancel\" event.",
|
|
5729
|
+
"oneOf": [
|
|
5730
|
+
{
|
|
5731
|
+
"$ref": "#/$defs/v1/$defs/RefObject"
|
|
5732
|
+
},
|
|
5733
|
+
{
|
|
5734
|
+
"$ref": "#/$defs/v1/$defs/ExpressionEntry"
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"$ref": "#/$defs/v1/$defs/FunctionDef"
|
|
5738
|
+
}
|
|
5739
|
+
]
|
|
5740
|
+
},
|
|
5713
5741
|
"ontoolchange": {
|
|
5714
5742
|
"description": "Event handler for the \"toolchange\" event.",
|
|
5715
5743
|
"oneOf": [
|
package/sites/blog/package.json
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"dev": "jx dev"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@jxsuite/parser": "^
|
|
12
|
+
"@jxsuite/parser": "^2.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@jxsuite/compiler": "^
|
|
16
|
-
"@jxsuite/runtime": "^4.0.
|
|
15
|
+
"@jxsuite/compiler": "^5.0.0",
|
|
16
|
+
"@jxsuite/runtime": "^4.0.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
"description": "File-based content collections. Each key names a content type; entries are loaded from the named source through the format registry.",
|
|
938
938
|
"type": "object",
|
|
939
939
|
"additionalProperties": {
|
|
940
|
-
"description": "Content type definition. Defines the source
|
|
940
|
+
"description": "Content type definition. Defines the source, how entries are filtered, identified and routed, and their schema and element dependencies.",
|
|
941
941
|
"type": "object",
|
|
942
942
|
"properties": {
|
|
943
943
|
"$elements": {
|
|
@@ -996,6 +996,174 @@
|
|
|
996
996
|
"./content/docs/"
|
|
997
997
|
],
|
|
998
998
|
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
"exclude": {
|
|
1001
|
+
"description": "Glob patterns, relative to the source directory, for files that are never read: `internal/**`, `STYLE.md`, `**/node_modules/**`, `.*/**`. `*` and `?` stop at `/`, `**` crosses directories, `{a,b}` alternates, and dotfiles are ordinary files. A bare name with no extension (`internal`) excludes that folder as well as a file of the name. A pattern cannot climb out of the source (`../`). Excluded files are not parsed, validated, routed, linked to, searched or published, and the collection's asset mount does not serve them either: a note that refers to one gets a warning and the reference is left as written.",
|
|
1002
|
+
"type": "array",
|
|
1003
|
+
"items": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"minLength": 1
|
|
1006
|
+
},
|
|
1007
|
+
"examples": [
|
|
1008
|
+
[
|
|
1009
|
+
"internal/**",
|
|
1010
|
+
"STYLE.md",
|
|
1011
|
+
".*/**",
|
|
1012
|
+
"**/node_modules/**"
|
|
1013
|
+
]
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"where": {
|
|
1017
|
+
"description": "Declarative frontmatter filter: only entries whose frontmatter satisfies every key are kept. A value is a literal to equal (a scalar also matches an array field that contains it; an array or an object with no `$` keys is compared whole) or an operator object: `$eq`, `$ne`, `$in`, `$nin`, `$exists`, `$gt`, `$gte`, `$lt`, `$lte`. Keys combine with AND; there is no OR and nothing is evaluated. A filter that removes every entry is reported. Filtered entries are not validated, routed, linked to, queried or searched, and are not served from the collection's asset mount.",
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"propertyNames": {
|
|
1020
|
+
"pattern": "^[^$]"
|
|
1021
|
+
},
|
|
1022
|
+
"additionalProperties": {
|
|
1023
|
+
"anyOf": [
|
|
1024
|
+
{
|
|
1025
|
+
"type": "object",
|
|
1026
|
+
"propertyNames": {
|
|
1027
|
+
"enum": [
|
|
1028
|
+
"$eq",
|
|
1029
|
+
"$ne",
|
|
1030
|
+
"$in",
|
|
1031
|
+
"$nin",
|
|
1032
|
+
"$exists",
|
|
1033
|
+
"$gt",
|
|
1034
|
+
"$gte",
|
|
1035
|
+
"$lt",
|
|
1036
|
+
"$lte"
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
"minProperties": 1,
|
|
1040
|
+
"properties": {
|
|
1041
|
+
"$eq": {},
|
|
1042
|
+
"$ne": {},
|
|
1043
|
+
"$in": {
|
|
1044
|
+
"type": "array"
|
|
1045
|
+
},
|
|
1046
|
+
"$nin": {
|
|
1047
|
+
"type": "array"
|
|
1048
|
+
},
|
|
1049
|
+
"$exists": {
|
|
1050
|
+
"type": "boolean"
|
|
1051
|
+
},
|
|
1052
|
+
"$gt": {
|
|
1053
|
+
"type": [
|
|
1054
|
+
"string",
|
|
1055
|
+
"number"
|
|
1056
|
+
]
|
|
1057
|
+
},
|
|
1058
|
+
"$gte": {
|
|
1059
|
+
"type": [
|
|
1060
|
+
"string",
|
|
1061
|
+
"number"
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
"$lt": {
|
|
1065
|
+
"type": [
|
|
1066
|
+
"string",
|
|
1067
|
+
"number"
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
"$lte": {
|
|
1071
|
+
"type": [
|
|
1072
|
+
"string",
|
|
1073
|
+
"number"
|
|
1074
|
+
]
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"type": [
|
|
1080
|
+
"string",
|
|
1081
|
+
"number",
|
|
1082
|
+
"boolean",
|
|
1083
|
+
"null",
|
|
1084
|
+
"array"
|
|
1085
|
+
]
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"type": "object",
|
|
1089
|
+
"propertyNames": {
|
|
1090
|
+
"pattern": "^[^$]"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
]
|
|
1094
|
+
},
|
|
1095
|
+
"examples": [
|
|
1096
|
+
{
|
|
1097
|
+
"publish": true,
|
|
1098
|
+
"status": {
|
|
1099
|
+
"$ne": "draft"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
]
|
|
1103
|
+
},
|
|
1104
|
+
"idField": {
|
|
1105
|
+
"description": "Frontmatter field whose value is the entry id, instead of the path-derived id. An entry without the field keeps its path id and is reported.",
|
|
1106
|
+
"type": "string",
|
|
1107
|
+
"minLength": 1,
|
|
1108
|
+
"examples": [
|
|
1109
|
+
"slug"
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
"route": {
|
|
1113
|
+
"description": "A site-absolute path template. `{name}` inserts the entry id (`id`), the file's directory (`dir`), its name (`file`) or a frontmatter field (dotted paths allowed); `{name:slug}` slugifies it, and `lower`, `upper` and `raw` are also available.",
|
|
1114
|
+
"examples": [
|
|
1115
|
+
"/kb/{category:slug}/{slug}/"
|
|
1116
|
+
],
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"pattern": "^/"
|
|
1119
|
+
},
|
|
1120
|
+
"indexRoute": {
|
|
1121
|
+
"description": "The route template for a directory's `README.md` or `index.md`, the file a folder stands for, when it should differ from `route` (a section's page at `/kb/{dir:slug}/` rather than `/kb/{category:slug}/{slug}/`). It takes the same placeholders and transforms as `route`, and needs a `route` for every other entry.",
|
|
1122
|
+
"examples": [
|
|
1123
|
+
"/kb/{dir:slug}/"
|
|
1124
|
+
],
|
|
1125
|
+
"type": "string",
|
|
1126
|
+
"pattern": "^/"
|
|
1127
|
+
},
|
|
1128
|
+
"links": {
|
|
1129
|
+
"description": "How a relative link to an entry that has no page (excluded, filtered out by `where`, unrouted, or missing) is reported. The link renders as plain text in every mode. Relative links are only rewritten for content types that declare a `route`.",
|
|
1130
|
+
"enum": [
|
|
1131
|
+
"warn",
|
|
1132
|
+
"error",
|
|
1133
|
+
"ignore"
|
|
1134
|
+
],
|
|
1135
|
+
"default": "warn"
|
|
1136
|
+
},
|
|
1137
|
+
"alerts": {
|
|
1138
|
+
"description": "How GitHub-style alerts (`> [!NOTE]`) in Markdown entries render. `false` turns callouts off for the whole type; `true`, or leaving the option out, renders NOTE, TIP, IMPORTANT, WARNING and CAUTION as built-in accessible markup. An object maps an alert type (case-insensitive) to the custom element that renders it, e.g. { \"NOTE\": \"doc-note\" }; `true` renders a type with the built-in markup (how a type beyond GitHub's five, such as Obsidian's `info`, is switched on); null or false leaves a type an ordinary blockquote. A well-formed marker of a type that is not enabled is reported when the file loads.",
|
|
1139
|
+
"type": [
|
|
1140
|
+
"object",
|
|
1141
|
+
"boolean"
|
|
1142
|
+
],
|
|
1143
|
+
"propertyNames": {
|
|
1144
|
+
"pattern": "^[A-Za-z][\\w-]*$"
|
|
1145
|
+
},
|
|
1146
|
+
"additionalProperties": {
|
|
1147
|
+
"oneOf": [
|
|
1148
|
+
{
|
|
1149
|
+
"type": "string",
|
|
1150
|
+
"pattern": "^[A-Za-z][\\w.-]*$"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"type": "null"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"type": "boolean"
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"examples": [
|
|
1161
|
+
{
|
|
1162
|
+
"NOTE": "doc-note",
|
|
1163
|
+
"TIP": "doc-tip",
|
|
1164
|
+
"WARNING": "doc-warning"
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
999
1167
|
}
|
|
1000
1168
|
}
|
|
1001
1169
|
}
|
|
@@ -5710,6 +5710,34 @@
|
|
|
5710
5710
|
}
|
|
5711
5711
|
]
|
|
5712
5712
|
},
|
|
5713
|
+
"ontoolactivated": {
|
|
5714
|
+
"description": "Event handler for the \"toolactivated\" event.",
|
|
5715
|
+
"oneOf": [
|
|
5716
|
+
{
|
|
5717
|
+
"$ref": "#/$defs/v1/$defs/RefObject"
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
"$ref": "#/$defs/v1/$defs/ExpressionEntry"
|
|
5721
|
+
},
|
|
5722
|
+
{
|
|
5723
|
+
"$ref": "#/$defs/v1/$defs/FunctionDef"
|
|
5724
|
+
}
|
|
5725
|
+
]
|
|
5726
|
+
},
|
|
5727
|
+
"ontoolcancel": {
|
|
5728
|
+
"description": "Event handler for the \"toolcancel\" event.",
|
|
5729
|
+
"oneOf": [
|
|
5730
|
+
{
|
|
5731
|
+
"$ref": "#/$defs/v1/$defs/RefObject"
|
|
5732
|
+
},
|
|
5733
|
+
{
|
|
5734
|
+
"$ref": "#/$defs/v1/$defs/ExpressionEntry"
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"$ref": "#/$defs/v1/$defs/FunctionDef"
|
|
5738
|
+
}
|
|
5739
|
+
]
|
|
5740
|
+
},
|
|
5713
5741
|
"ontoolchange": {
|
|
5714
5742
|
"description": "Event handler for the \"toolchange\" event.",
|
|
5715
5743
|
"oneOf": [
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"dev": "jx dev"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@jxsuite/parser": "^
|
|
12
|
+
"@jxsuite/parser": "^2.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@jxsuite/compiler": "^
|
|
16
|
-
"@jxsuite/runtime": "^4.0.
|
|
15
|
+
"@jxsuite/compiler": "^5.0.0",
|
|
16
|
+
"@jxsuite/runtime": "^4.0.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
"description": "File-based content collections. Each key names a content type; entries are loaded from the named source through the format registry.",
|
|
938
938
|
"type": "object",
|
|
939
939
|
"additionalProperties": {
|
|
940
|
-
"description": "Content type definition. Defines the source
|
|
940
|
+
"description": "Content type definition. Defines the source, how entries are filtered, identified and routed, and their schema and element dependencies.",
|
|
941
941
|
"type": "object",
|
|
942
942
|
"properties": {
|
|
943
943
|
"$elements": {
|
|
@@ -996,6 +996,174 @@
|
|
|
996
996
|
"./content/docs/"
|
|
997
997
|
],
|
|
998
998
|
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
"exclude": {
|
|
1001
|
+
"description": "Glob patterns, relative to the source directory, for files that are never read: `internal/**`, `STYLE.md`, `**/node_modules/**`, `.*/**`. `*` and `?` stop at `/`, `**` crosses directories, `{a,b}` alternates, and dotfiles are ordinary files. A bare name with no extension (`internal`) excludes that folder as well as a file of the name. A pattern cannot climb out of the source (`../`). Excluded files are not parsed, validated, routed, linked to, searched or published, and the collection's asset mount does not serve them either: a note that refers to one gets a warning and the reference is left as written.",
|
|
1002
|
+
"type": "array",
|
|
1003
|
+
"items": {
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"minLength": 1
|
|
1006
|
+
},
|
|
1007
|
+
"examples": [
|
|
1008
|
+
[
|
|
1009
|
+
"internal/**",
|
|
1010
|
+
"STYLE.md",
|
|
1011
|
+
".*/**",
|
|
1012
|
+
"**/node_modules/**"
|
|
1013
|
+
]
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"where": {
|
|
1017
|
+
"description": "Declarative frontmatter filter: only entries whose frontmatter satisfies every key are kept. A value is a literal to equal (a scalar also matches an array field that contains it; an array or an object with no `$` keys is compared whole) or an operator object: `$eq`, `$ne`, `$in`, `$nin`, `$exists`, `$gt`, `$gte`, `$lt`, `$lte`. Keys combine with AND; there is no OR and nothing is evaluated. A filter that removes every entry is reported. Filtered entries are not validated, routed, linked to, queried or searched, and are not served from the collection's asset mount.",
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"propertyNames": {
|
|
1020
|
+
"pattern": "^[^$]"
|
|
1021
|
+
},
|
|
1022
|
+
"additionalProperties": {
|
|
1023
|
+
"anyOf": [
|
|
1024
|
+
{
|
|
1025
|
+
"type": "object",
|
|
1026
|
+
"propertyNames": {
|
|
1027
|
+
"enum": [
|
|
1028
|
+
"$eq",
|
|
1029
|
+
"$ne",
|
|
1030
|
+
"$in",
|
|
1031
|
+
"$nin",
|
|
1032
|
+
"$exists",
|
|
1033
|
+
"$gt",
|
|
1034
|
+
"$gte",
|
|
1035
|
+
"$lt",
|
|
1036
|
+
"$lte"
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
"minProperties": 1,
|
|
1040
|
+
"properties": {
|
|
1041
|
+
"$eq": {},
|
|
1042
|
+
"$ne": {},
|
|
1043
|
+
"$in": {
|
|
1044
|
+
"type": "array"
|
|
1045
|
+
},
|
|
1046
|
+
"$nin": {
|
|
1047
|
+
"type": "array"
|
|
1048
|
+
},
|
|
1049
|
+
"$exists": {
|
|
1050
|
+
"type": "boolean"
|
|
1051
|
+
},
|
|
1052
|
+
"$gt": {
|
|
1053
|
+
"type": [
|
|
1054
|
+
"string",
|
|
1055
|
+
"number"
|
|
1056
|
+
]
|
|
1057
|
+
},
|
|
1058
|
+
"$gte": {
|
|
1059
|
+
"type": [
|
|
1060
|
+
"string",
|
|
1061
|
+
"number"
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
"$lt": {
|
|
1065
|
+
"type": [
|
|
1066
|
+
"string",
|
|
1067
|
+
"number"
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
"$lte": {
|
|
1071
|
+
"type": [
|
|
1072
|
+
"string",
|
|
1073
|
+
"number"
|
|
1074
|
+
]
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"type": [
|
|
1080
|
+
"string",
|
|
1081
|
+
"number",
|
|
1082
|
+
"boolean",
|
|
1083
|
+
"null",
|
|
1084
|
+
"array"
|
|
1085
|
+
]
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"type": "object",
|
|
1089
|
+
"propertyNames": {
|
|
1090
|
+
"pattern": "^[^$]"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
]
|
|
1094
|
+
},
|
|
1095
|
+
"examples": [
|
|
1096
|
+
{
|
|
1097
|
+
"publish": true,
|
|
1098
|
+
"status": {
|
|
1099
|
+
"$ne": "draft"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
]
|
|
1103
|
+
},
|
|
1104
|
+
"idField": {
|
|
1105
|
+
"description": "Frontmatter field whose value is the entry id, instead of the path-derived id. An entry without the field keeps its path id and is reported.",
|
|
1106
|
+
"type": "string",
|
|
1107
|
+
"minLength": 1,
|
|
1108
|
+
"examples": [
|
|
1109
|
+
"slug"
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
"route": {
|
|
1113
|
+
"description": "A site-absolute path template. `{name}` inserts the entry id (`id`), the file's directory (`dir`), its name (`file`) or a frontmatter field (dotted paths allowed); `{name:slug}` slugifies it, and `lower`, `upper` and `raw` are also available.",
|
|
1114
|
+
"examples": [
|
|
1115
|
+
"/kb/{category:slug}/{slug}/"
|
|
1116
|
+
],
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"pattern": "^/"
|
|
1119
|
+
},
|
|
1120
|
+
"indexRoute": {
|
|
1121
|
+
"description": "The route template for a directory's `README.md` or `index.md`, the file a folder stands for, when it should differ from `route` (a section's page at `/kb/{dir:slug}/` rather than `/kb/{category:slug}/{slug}/`). It takes the same placeholders and transforms as `route`, and needs a `route` for every other entry.",
|
|
1122
|
+
"examples": [
|
|
1123
|
+
"/kb/{dir:slug}/"
|
|
1124
|
+
],
|
|
1125
|
+
"type": "string",
|
|
1126
|
+
"pattern": "^/"
|
|
1127
|
+
},
|
|
1128
|
+
"links": {
|
|
1129
|
+
"description": "How a relative link to an entry that has no page (excluded, filtered out by `where`, unrouted, or missing) is reported. The link renders as plain text in every mode. Relative links are only rewritten for content types that declare a `route`.",
|
|
1130
|
+
"enum": [
|
|
1131
|
+
"warn",
|
|
1132
|
+
"error",
|
|
1133
|
+
"ignore"
|
|
1134
|
+
],
|
|
1135
|
+
"default": "warn"
|
|
1136
|
+
},
|
|
1137
|
+
"alerts": {
|
|
1138
|
+
"description": "How GitHub-style alerts (`> [!NOTE]`) in Markdown entries render. `false` turns callouts off for the whole type; `true`, or leaving the option out, renders NOTE, TIP, IMPORTANT, WARNING and CAUTION as built-in accessible markup. An object maps an alert type (case-insensitive) to the custom element that renders it, e.g. { \"NOTE\": \"doc-note\" }; `true` renders a type with the built-in markup (how a type beyond GitHub's five, such as Obsidian's `info`, is switched on); null or false leaves a type an ordinary blockquote. A well-formed marker of a type that is not enabled is reported when the file loads.",
|
|
1139
|
+
"type": [
|
|
1140
|
+
"object",
|
|
1141
|
+
"boolean"
|
|
1142
|
+
],
|
|
1143
|
+
"propertyNames": {
|
|
1144
|
+
"pattern": "^[A-Za-z][\\w-]*$"
|
|
1145
|
+
},
|
|
1146
|
+
"additionalProperties": {
|
|
1147
|
+
"oneOf": [
|
|
1148
|
+
{
|
|
1149
|
+
"type": "string",
|
|
1150
|
+
"pattern": "^[A-Za-z][\\w.-]*$"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"type": "null"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"type": "boolean"
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"examples": [
|
|
1161
|
+
{
|
|
1162
|
+
"NOTE": "doc-note",
|
|
1163
|
+
"TIP": "doc-tip",
|
|
1164
|
+
"WARNING": "doc-warning"
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
999
1167
|
}
|
|
1000
1168
|
}
|
|
1001
1169
|
}
|
|
@@ -5710,6 +5710,34 @@
|
|
|
5710
5710
|
}
|
|
5711
5711
|
]
|
|
5712
5712
|
},
|
|
5713
|
+
"ontoolactivated": {
|
|
5714
|
+
"description": "Event handler for the \"toolactivated\" event.",
|
|
5715
|
+
"oneOf": [
|
|
5716
|
+
{
|
|
5717
|
+
"$ref": "#/$defs/v1/$defs/RefObject"
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
"$ref": "#/$defs/v1/$defs/ExpressionEntry"
|
|
5721
|
+
},
|
|
5722
|
+
{
|
|
5723
|
+
"$ref": "#/$defs/v1/$defs/FunctionDef"
|
|
5724
|
+
}
|
|
5725
|
+
]
|
|
5726
|
+
},
|
|
5727
|
+
"ontoolcancel": {
|
|
5728
|
+
"description": "Event handler for the \"toolcancel\" event.",
|
|
5729
|
+
"oneOf": [
|
|
5730
|
+
{
|
|
5731
|
+
"$ref": "#/$defs/v1/$defs/RefObject"
|
|
5732
|
+
},
|
|
5733
|
+
{
|
|
5734
|
+
"$ref": "#/$defs/v1/$defs/ExpressionEntry"
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"$ref": "#/$defs/v1/$defs/FunctionDef"
|
|
5738
|
+
}
|
|
5739
|
+
]
|
|
5740
|
+
},
|
|
5713
5741
|
"ontoolchange": {
|
|
5714
5742
|
"description": "Event handler for the \"toolchange\" event.",
|
|
5715
5743
|
"oneOf": [
|
package/sites/event/package.json
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"dev": "jx dev"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@jxsuite/parser": "^
|
|
12
|
+
"@jxsuite/parser": "^2.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@jxsuite/compiler": "^
|
|
16
|
-
"@jxsuite/runtime": "^4.0.
|
|
15
|
+
"@jxsuite/compiler": "^5.0.0",
|
|
16
|
+
"@jxsuite/runtime": "^4.0.3"
|
|
17
17
|
}
|
|
18
18
|
}
|