@nesso-how/plugin-example 0.6.0 → 0.7.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/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/Quiz.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -10151,7 +10151,7 @@ function Wu({ document: e, storage: t, viewId: s }) {
|
|
|
10151
10151
|
let [c, l] = r(null), [u, d] = r(!1), f = `quiz:${s ?? "all"}`;
|
|
10152
10152
|
n(() => {
|
|
10153
10153
|
t.list().then((e) => {
|
|
10154
|
-
let t = e.find((e) => e.key === f && e.
|
|
10154
|
+
let t = e.find((e) => e.key === f && e.scope === void 0)?.value;
|
|
10155
10155
|
l(typeof t == "number" ? t : 0);
|
|
10156
10156
|
});
|
|
10157
10157
|
}, [t, f]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nesso-how/plugin-example",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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.2",
|
|
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.7.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": 2,
|
|
58
58
|
"kind": "actions",
|
|
59
59
|
"entry": "dist/index.js",
|
|
60
60
|
"writes": [
|
package/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
|
})
|