@syntrologie/adapt-gamification 0.0.0-semantically-released → 2.0.1
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/cdn.d.ts +8 -0
- package/dist/cdn.d.ts.map +1 -1
- package/dist/cdn.js +6 -4
- package/package.json +4 -4
package/dist/cdn.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ export declare const manifest: {
|
|
|
23
23
|
handler: (_event: unknown, _ctx: unknown) => void;
|
|
24
24
|
}[];
|
|
25
25
|
};
|
|
26
|
+
editor: {
|
|
27
|
+
panel: {
|
|
28
|
+
title: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
component: typeof import("./editor").GamificationEditor;
|
|
33
|
+
};
|
|
26
34
|
metadata: {
|
|
27
35
|
isBuiltIn: boolean;
|
|
28
36
|
};
|
package/dist/cdn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBpB,CAAC;AAaF,eAAe,QAAQ,CAAC"}
|
package/dist/cdn.js
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
* This module is bundled for CDN delivery and self-registers with the global
|
|
5
5
|
* SynOS app registry when loaded dynamically via the AppLoader.
|
|
6
6
|
*/
|
|
7
|
+
import { editor } from './editor';
|
|
7
8
|
import { executors, eventHandlers, runtime } from './runtime';
|
|
8
9
|
/**
|
|
9
10
|
* App manifest for registry registration.
|
|
10
11
|
* Follows the AppManifest interface expected by AppLoader/AppRegistry.
|
|
11
12
|
*/
|
|
12
13
|
export const manifest = {
|
|
13
|
-
id: 'gamification',
|
|
14
|
+
id: 'adaptive-gamification',
|
|
14
15
|
version: runtime.version,
|
|
15
16
|
name: runtime.name,
|
|
16
17
|
description: runtime.description,
|
|
@@ -21,6 +22,7 @@ export const manifest = {
|
|
|
21
22
|
})),
|
|
22
23
|
events: eventHandlers,
|
|
23
24
|
},
|
|
25
|
+
editor,
|
|
24
26
|
metadata: {
|
|
25
27
|
isBuiltIn: false,
|
|
26
28
|
},
|
|
@@ -30,9 +32,9 @@ export const manifest = {
|
|
|
30
32
|
* This happens when loaded via script tag (UMD).
|
|
31
33
|
*/
|
|
32
34
|
if (typeof window !== 'undefined') {
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
-
|
|
35
|
+
const registry = window.SynOS?.appRegistry;
|
|
36
|
+
if (registry && typeof registry.register === 'function') {
|
|
37
|
+
registry.register(manifest);
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
export default manifest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syntrologie/adapt-gamification",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Adaptive Gamification app - Badges, rewards, points, and engagement mechanics",
|
|
5
5
|
"license": "Proprietary",
|
|
6
6
|
"private": false,
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"zod": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/react": "^
|
|
46
|
-
"typescript": "^5.
|
|
47
|
-
"zod": "^3.25.
|
|
45
|
+
"@types/react": "^19.1.0",
|
|
46
|
+
"typescript": "^5.7.3",
|
|
47
|
+
"zod": "^3.25.76"
|
|
48
48
|
}
|
|
49
49
|
}
|