@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nesso-how/plugin-example",
3
- "version": "0.6.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.1",
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.6.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": 1,
57
+ "apiVersion": 3,
58
58
  "kind": "actions",
59
59
  "entry": "dist/index.js",
60
60
  "writes": [
@@ -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.conceptId === undefined,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nesso-how/plugin",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Types, validation, and asynchronous clients for isolated Nesso plugins",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,2 +0,0 @@
1
- import type { ThemeDefinition } from './definitions.ts';
2
- export declare const fontFaces: (ranges: Record<string, string>, stem: string, weight: [number, number]) => ThemeDefinition['fonts']['sans'];
@@ -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
- });