@nesso-how/plugin 0.6.0 → 0.8.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/README.md +109 -38
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/node/data.js +15 -4
- package/dist/node/definitions.d.ts +0 -24
- package/dist/node/definitions.js +1 -22
- package/dist/node/errors.d.ts +2 -0
- package/dist/node/errors.js +15 -0
- package/dist/node/files.d.ts +7 -2
- package/dist/node/files.js +24 -7
- package/dist/node/images.d.ts +11 -0
- package/dist/node/images.js +10 -0
- package/dist/node/index.d.ts +2 -1
- package/dist/node/package.d.ts +0 -7
- package/dist/node/package.js +13 -81
- package/dist/node/runtime.d.ts +36 -6
- package/dist/node/runtime.js +14 -17
- package/dist/node/storage.d.ts +31 -5
- package/dist/node/storage.js +5 -1
- package/dist/package.d.ts +1 -8
- package/dist/package.js +16 -77
- package/dist/{runtime-BxtTAcko.d.ts → runtime-DCyJA620.d.ts} +90 -40
- package/dist/{runtime-BM45o1qi.js → runtime-uvKgm2yV.js} +108 -77
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/example/README.md +13 -17
- package/example/package.json +4 -4
- package/example/src/Quiz.tsx +1 -1
- package/package.json +1 -1
- package/dist/node/theme-fonts.d.ts +0 -2
- package/dist/node/theme-fonts.js +0 -11
package/example/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nesso-how/plugin-example",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Official example showing how to build Nesso plugins with the SDK and plugin APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nesso-plugin"
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"prepack": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nesso-how/ui": "1.0.0-beta.
|
|
31
|
+
"@nesso-how/ui": "1.0.0-beta.8",
|
|
32
32
|
"react": "^19.2.8",
|
|
33
33
|
"react-dom": "^19.2.8"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@nesso-how/plugin": "0.
|
|
36
|
+
"@nesso-how/plugin": "0.8.0",
|
|
37
37
|
"@types/react": "^19.2.18",
|
|
38
38
|
"@types/react-dom": "^19.2.7",
|
|
39
39
|
"typescript": "~7.0.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"nesso": {
|
|
57
|
-
"apiVersion":
|
|
57
|
+
"apiVersion": 3,
|
|
58
58
|
"kind": "actions",
|
|
59
59
|
"entry": "dist/index.js",
|
|
60
60
|
"writes": [
|
package/example/src/Quiz.tsx
CHANGED
|
@@ -11,7 +11,7 @@ export function Quiz({ document, storage, viewId }: ActionContext) {
|
|
|
11
11
|
useEffect(() => {
|
|
12
12
|
void storage.list().then((records) => {
|
|
13
13
|
const value = records.find(
|
|
14
|
-
(record) => record.key === key && record.
|
|
14
|
+
(record) => record.key === key && record.scope === undefined,
|
|
15
15
|
)?.value
|
|
16
16
|
setStep(typeof value === 'number' ? value : 0)
|
|
17
17
|
})
|
package/package.json
CHANGED
package/dist/node/theme-fonts.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const fontFaces = (ranges, stem, weight) => ({
|
|
2
|
-
faces: Object.entries(ranges).map(([subset, intervals]) => ({
|
|
3
|
-
path: `fonts/${stem.replace('{subset}', subset)}.woff2`,
|
|
4
|
-
weight,
|
|
5
|
-
style: 'normal',
|
|
6
|
-
unicodeRange: intervals.split(',').map((interval) => {
|
|
7
|
-
const [from, to = from] = interval.slice(2).split('-');
|
|
8
|
-
return [parseInt(from, 16), parseInt(to, 16)];
|
|
9
|
-
}),
|
|
10
|
-
})),
|
|
11
|
-
});
|