@monimesl/dot-runtime 0.1.0-alpha.11 → 0.1.0-alpha.12
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/README.md +10 -0
- package/dot.schema.json +2 -16
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
1
|
# @monimesl/dot-runtime
|
|
2
|
+
|
|
3
|
+
Everything a dot needs: `defineDot`, `definePage`, the `dash` calls, and the renderer that draws its
|
|
4
|
+
pages. It also ships `dot.schema.json`, the schema editors use to check and complete `dot.json`.
|
|
5
|
+
|
|
6
|
+
## Which Dash opens a dot
|
|
7
|
+
|
|
8
|
+
The build writes the runtime's version into the dot's `manifest.json`. Dash opens the dot unless it
|
|
9
|
+
was built with a newer major version than the runtime Dash has. A newer minor version can add Dash
|
|
10
|
+
calls that an older Dash doesn't have yet. There, such a call fails with a `HostError` whose `code`
|
|
11
|
+
is `unsupported`, so catch it and carry on without the feature.
|
package/dot.schema.json
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"type": "string"
|
|
15
15
|
},
|
|
16
16
|
"package": {
|
|
17
|
-
"description": "The dot's package name: a reverse domain name, such as \"com.
|
|
17
|
+
"description": "The dot's package name: a reverse domain name you own, such as \"com.mysalone.thing\". It never changes once the dot is published.",
|
|
18
18
|
"type": "string",
|
|
19
19
|
"pattern": "^(?=[a-z])[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$",
|
|
20
20
|
"maxLength": 128,
|
|
21
|
-
"patternErrorMessage": "Use
|
|
21
|
+
"patternErrorMessage": "Use lowercase words joined by dots, such as \"com.mysalone.thing\"."
|
|
22
22
|
},
|
|
23
23
|
"name": {
|
|
24
24
|
"description": "The dot's display name, which Dash shows.",
|
|
@@ -64,20 +64,6 @@
|
|
|
64
64
|
},
|
|
65
65
|
"required": ["hosts"],
|
|
66
66
|
"additionalProperties": false
|
|
67
|
-
},
|
|
68
|
-
"dash": {
|
|
69
|
-
"description": "What the dot needs from Dash, the app it runs in.",
|
|
70
|
-
"type": "object",
|
|
71
|
-
"properties": {
|
|
72
|
-
"minVersion": {
|
|
73
|
-
"description": "The oldest Dash version the dot runs in, such as \"2.4.0\". Older versions of Dash should not open it.",
|
|
74
|
-
"type": "string",
|
|
75
|
-
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
|
|
76
|
-
"patternErrorMessage": "Use a semantic version, such as \"2.4.0\".",
|
|
77
|
-
"examples": ["2.4.0"]
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"additionalProperties": false
|
|
81
67
|
}
|
|
82
68
|
},
|
|
83
69
|
"required": ["package", "name", "version"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monimesl/dot-runtime",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.12",
|
|
4
4
|
"description": "A composer of the service and webview runtimes and the default React renderer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"main": "./dist/index.js",
|
|
55
55
|
"types": "./dist/index.d.ts",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@monimesl/dot-
|
|
58
|
-
"@monimesl/dot-
|
|
59
|
-
"@monimesl/dot-webview": "0.1.0-alpha.
|
|
60
|
-
"@monimesl/dot-
|
|
57
|
+
"@monimesl/dot-renderer-react": "0.1.0-alpha.12",
|
|
58
|
+
"@monimesl/dot-dash": "0.1.0-alpha.12",
|
|
59
|
+
"@monimesl/dot-webview": "0.1.0-alpha.12",
|
|
60
|
+
"@monimesl/dot-service": "0.1.0-alpha.12"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"publint": "^0.3.24",
|