@syntrologie/adapt-gamification 2.8.0-canary.62 → 2.8.0-canary.621

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/types.d.ts CHANGED
@@ -4,6 +4,5 @@
4
4
  * Minimal type definitions for building this app independently.
5
5
  * These match the types exported from @syntrologie/runtime-sdk/types.
6
6
  */
7
- export type { EditorPanelProps } from '@syntrologie/sdk-contracts';
8
7
  export type { ActionExecutor, ExecutorCleanup, ExecutorContext, ExecutorResult, ExecutorUpdate, } from '@syntrologie/sdk-contracts';
9
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,YAAY,EACV,cAAc,EACd,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,GACf,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EACV,cAAc,EACd,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,GACf,MAAM,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntrologie/adapt-gamification",
3
- "version": "2.8.0-canary.62",
3
+ "version": "2.8.0-canary.621",
4
4
  "description": "Adaptive Gamification app - Badges, rewards, points, and engagement mechanics",
5
5
  "license": "Proprietary",
6
6
  "private": false,
@@ -22,10 +22,6 @@
22
22
  "./schema": {
23
23
  "types": "./dist/schema.d.ts",
24
24
  "import": "./dist/schema.js"
25
- },
26
- "./editor": {
27
- "types": "./dist/editor.d.ts",
28
- "import": "./dist/editor.js"
29
25
  }
30
26
  },
31
27
  "files": [
@@ -36,27 +32,15 @@
36
32
  ],
37
33
  "scripts": {
38
34
  "prepack": "node ../../../scripts/prepare-bundled-deps.mjs",
39
- "build": "tsc",
35
+ "build": "tsc --emitDeclarationOnly && node ../scripts/build-lib.mjs",
40
36
  "typecheck": "tsc --noEmit",
41
37
  "clean": "rm -rf dist",
42
38
  "test": "vitest run",
43
39
  "test:watch": "vitest"
44
40
  },
45
- "peerDependencies": {
46
- "react": ">=18.0.0",
47
- "react-dom": ">=18.0.0",
48
- "zod": "^3.0.0"
49
- },
50
- "dependencies": {
51
- "@syntrologie/sdk-contracts": "*"
52
- },
53
41
  "devDependencies": {
54
42
  "@syntrologie/sdk-contracts": "*",
55
- "@testing-library/react": "16.3.2",
56
- "@types/react": "19.2.14",
57
43
  "jsdom": "26.1.0",
58
- "react": "19.2.1",
59
- "react-dom": "19.2.1",
60
44
  "typescript": "5.9.3",
61
45
  "vitest": "4.0.18",
62
46
  "zod": "3.25.76"
package/dist/cdn.js DELETED
@@ -1,40 +0,0 @@
1
- /**
2
- * CDN Entry Point for Adaptive Gamification
3
- *
4
- * This module is bundled for CDN delivery and self-registers with the global
5
- * SynOS app registry when loaded dynamically via the AppLoader.
6
- */
7
- import { editor } from './editor';
8
- import { eventHandlers, executors, runtime } from './runtime';
9
- /**
10
- * App manifest for registry registration.
11
- * Follows the AppManifest interface expected by AppLoader/AppRegistry.
12
- */
13
- export const manifest = {
14
- id: 'adaptive-gamification',
15
- version: runtime.version,
16
- name: runtime.name,
17
- description: runtime.description,
18
- runtime: {
19
- actions: executors.map(({ kind, executor }) => ({
20
- kind,
21
- executor,
22
- })),
23
- events: eventHandlers,
24
- },
25
- editor,
26
- metadata: {
27
- isBuiltIn: false,
28
- },
29
- };
30
- /**
31
- * Self-register with global registry if available.
32
- * This happens when loaded via script tag (UMD).
33
- */
34
- if (typeof window !== 'undefined') {
35
- const registry = window.SynOS?.appRegistry;
36
- if (registry && typeof registry.register === 'function') {
37
- registry.register(manifest);
38
- }
39
- }
40
- export default manifest;
package/dist/editor.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /**
2
- * Adaptive Gamification - Editor Module
3
- *
4
- * Editor panel for configuring gamification features.
5
- */
6
- import type { EditorPanelProps } from './types';
7
- /**
8
- * Gamification editor panel component.
9
- */
10
- export declare function GamificationEditor({ config: _config, onChange: _onChange, editor: _editor, }: EditorPanelProps): import("react/jsx-runtime").JSX.Element;
11
- /**
12
- * Editor module configuration.
13
- */
14
- export declare const editor: {
15
- panel: {
16
- title: string;
17
- icon: string;
18
- description: string;
19
- };
20
- component: typeof GamificationEditor;
21
- };
22
- //# sourceMappingURL=editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,OAAO,GAChB,EAAE,gBAAgB,2CAOlB;AAED;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC"}
package/dist/editor.js DELETED
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Gamification editor panel component.
4
- */
5
- export function GamificationEditor({ config: _config, onChange: _onChange, editor: _editor, }) {
6
- return (_jsxs("div", { className: "syntro-gamification-editor", children: [_jsx("p", { children: "Gamification editor coming soon..." }), _jsx("p", { children: "Configure badges, points, rewards, and leaderboards." })] }));
7
- }
8
- /**
9
- * Editor module configuration.
10
- */
11
- export const editor = {
12
- panel: {
13
- title: 'Gamification',
14
- icon: '🎮',
15
- description: 'Badges, rewards, and engagement',
16
- },
17
- component: GamificationEditor,
18
- };
package/dist/types.js DELETED
@@ -1,7 +0,0 @@
1
- /**
2
- * Types from @syntrologie/runtime-sdk
3
- *
4
- * Minimal type definitions for building this app independently.
5
- * These match the types exported from @syntrologie/runtime-sdk/types.
6
- */
7
- export {};