@syntrologie/adapt-gamification 0.0.0-semantically-released

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 ADDED
@@ -0,0 +1,31 @@
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
+ /**
8
+ * App manifest for registry registration.
9
+ * Follows the AppManifest interface expected by AppLoader/AppRegistry.
10
+ */
11
+ export declare const manifest: {
12
+ id: string;
13
+ version: string;
14
+ name: string;
15
+ description: string;
16
+ runtime: {
17
+ actions: {
18
+ kind: "gamification:awardBadge" | "gamification:addPoints";
19
+ executor: import("./types").ActionExecutor<import("./runtime").AwardBadgeAction> | import("./types").ActionExecutor<import("./runtime").AddPointsAction>;
20
+ }[];
21
+ events: {
22
+ names: string[];
23
+ handler: (_event: unknown, _ctx: unknown) => void;
24
+ }[];
25
+ };
26
+ metadata: {
27
+ isBuiltIn: boolean;
28
+ };
29
+ };
30
+ export default manifest;
31
+ //# sourceMappingURL=cdn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../src/cdn.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;CAepB,CAAC;AAaF,eAAe,QAAQ,CAAC"}
package/dist/cdn.js ADDED
@@ -0,0 +1,38 @@
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 { executors, eventHandlers, runtime } from './runtime';
8
+ /**
9
+ * App manifest for registry registration.
10
+ * Follows the AppManifest interface expected by AppLoader/AppRegistry.
11
+ */
12
+ export const manifest = {
13
+ id: 'gamification',
14
+ version: runtime.version,
15
+ name: runtime.name,
16
+ description: runtime.description,
17
+ runtime: {
18
+ actions: executors.map(({ kind, executor }) => ({
19
+ kind,
20
+ executor,
21
+ })),
22
+ events: eventHandlers,
23
+ },
24
+ metadata: {
25
+ isBuiltIn: false,
26
+ },
27
+ };
28
+ /**
29
+ * Self-register with global registry if available.
30
+ * This happens when loaded via script tag (UMD).
31
+ */
32
+ if (typeof window !== 'undefined') {
33
+ const globalRegistry = window.__SYNOS_APP_REGISTRY__;
34
+ if (globalRegistry && typeof globalRegistry.register === 'function') {
35
+ globalRegistry.register(manifest);
36
+ }
37
+ }
38
+ export default manifest;
@@ -0,0 +1,22 @@
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
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,18 @@
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
+ };
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Adaptive Gamification - Runtime Module
3
+ *
4
+ * Gamification actions: awardBadge, addPoints.
5
+ * Provides gamification features like badges, points, and rewards.
6
+ */
7
+ import type { ActionExecutor } from './types';
8
+ /**
9
+ * Award badge action
10
+ */
11
+ export interface AwardBadgeAction {
12
+ kind: 'gamification:awardBadge';
13
+ badgeId: string;
14
+ anchorId?: string;
15
+ label?: string;
16
+ }
17
+ /**
18
+ * Add points action
19
+ */
20
+ export interface AddPointsAction {
21
+ kind: 'gamification:addPoints';
22
+ points: number;
23
+ reason?: string;
24
+ label?: string;
25
+ }
26
+ /**
27
+ * Execute an awardBadge action
28
+ *
29
+ * Note: This executor uses publishEvent to track badge awards.
30
+ * State management is handled at the app level via AppContext,
31
+ * not at the action executor level.
32
+ */
33
+ export declare const executeAwardBadge: ActionExecutor<AwardBadgeAction>;
34
+ /**
35
+ * Execute an addPoints action
36
+ *
37
+ * Note: This executor uses publishEvent to track points.
38
+ * State management is handled at the app level via AppContext,
39
+ * not at the action executor level.
40
+ */
41
+ export declare const executeAddPoints: ActionExecutor<AddPointsAction>;
42
+ /**
43
+ * Event handler for auto-awarding badges based on triggers.
44
+ */
45
+ export declare const badgeTriggerHandler: {
46
+ names: string[];
47
+ handler: (_event: unknown, _ctx: unknown) => void;
48
+ };
49
+ /**
50
+ * All executors provided by this app.
51
+ * These are registered with the runtime's ExecutorRegistry.
52
+ */
53
+ export declare const executors: readonly [{
54
+ readonly kind: "gamification:awardBadge";
55
+ readonly executor: ActionExecutor<AwardBadgeAction>;
56
+ }, {
57
+ readonly kind: "gamification:addPoints";
58
+ readonly executor: ActionExecutor<AddPointsAction>;
59
+ }];
60
+ /**
61
+ * Event handlers provided by this app.
62
+ */
63
+ export declare const eventHandlers: {
64
+ names: string[];
65
+ handler: (_event: unknown, _ctx: unknown) => void;
66
+ }[];
67
+ /**
68
+ * App runtime manifest.
69
+ */
70
+ export declare const runtime: {
71
+ id: string;
72
+ version: string;
73
+ name: string;
74
+ description: string;
75
+ executors: readonly [{
76
+ readonly kind: "gamification:awardBadge";
77
+ readonly executor: ActionExecutor<AwardBadgeAction>;
78
+ }, {
79
+ readonly kind: "gamification:addPoints";
80
+ readonly executor: ActionExecutor<AddPointsAction>;
81
+ }];
82
+ eventHandlers: {
83
+ names: string[];
84
+ handler: (_event: unknown, _ctx: unknown) => void;
85
+ }[];
86
+ };
87
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,SAAS,CAAC;AAM9D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,gBAAgB,CAiB9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,eAAe,CAkB5D,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;sBAEZ,OAAO,QAAQ,OAAO;CAKzC,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;EAGZ,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;sBAvBN,OAAO,QAAQ,OAAO;GAuBQ,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;0BA5BA,OAAO,QAAQ,OAAO;;CAmCzC,CAAC"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Adaptive Gamification - Runtime Module
3
+ *
4
+ * Gamification actions: awardBadge, addPoints.
5
+ * Provides gamification features like badges, points, and rewards.
6
+ */
7
+ // ============================================================================
8
+ // Executors
9
+ // ============================================================================
10
+ /**
11
+ * Execute an awardBadge action
12
+ *
13
+ * Note: This executor uses publishEvent to track badge awards.
14
+ * State management is handled at the app level via AppContext,
15
+ * not at the action executor level.
16
+ */
17
+ export const executeAwardBadge = async (action, context) => {
18
+ const { badgeId } = action;
19
+ // Emit telemetry event (state management handled at app level)
20
+ context.publishEvent('gamification.badge_awarded', {
21
+ badgeId,
22
+ awardedAt: Date.now(),
23
+ });
24
+ return {
25
+ cleanup: () => {
26
+ // Badge awards are permanent, no cleanup needed
27
+ },
28
+ };
29
+ };
30
+ /**
31
+ * Execute an addPoints action
32
+ *
33
+ * Note: This executor uses publishEvent to track points.
34
+ * State management is handled at the app level via AppContext,
35
+ * not at the action executor level.
36
+ */
37
+ export const executeAddPoints = async (action, context) => {
38
+ const { points, reason } = action;
39
+ // Emit telemetry event (state management handled at app level)
40
+ context.publishEvent('gamification.points_added', {
41
+ points,
42
+ reason,
43
+ timestamp: Date.now(),
44
+ });
45
+ return {
46
+ cleanup: () => {
47
+ // Points are permanent, no cleanup needed
48
+ },
49
+ };
50
+ };
51
+ // ============================================================================
52
+ // Event Handlers
53
+ // ============================================================================
54
+ /**
55
+ * Event handler for auto-awarding badges based on triggers.
56
+ */
57
+ export const badgeTriggerHandler = {
58
+ names: ['page_view', 'button_click'],
59
+ handler: (_event, _ctx) => {
60
+ // Auto-award badges based on event triggers
61
+ // This would check badge trigger conditions in the config
62
+ console.log('[Gamification] Event received for badge trigger check');
63
+ },
64
+ };
65
+ // ============================================================================
66
+ // Executor Definitions for Registration
67
+ // ============================================================================
68
+ /**
69
+ * All executors provided by this app.
70
+ * These are registered with the runtime's ExecutorRegistry.
71
+ */
72
+ export const executors = [
73
+ { kind: 'gamification:awardBadge', executor: executeAwardBadge },
74
+ { kind: 'gamification:addPoints', executor: executeAddPoints },
75
+ ];
76
+ /**
77
+ * Event handlers provided by this app.
78
+ */
79
+ export const eventHandlers = [badgeTriggerHandler];
80
+ /**
81
+ * App runtime manifest.
82
+ */
83
+ export const runtime = {
84
+ id: 'adaptive-gamification',
85
+ version: '1.0.0',
86
+ name: 'Gamification',
87
+ description: 'Badges, rewards, points, and engagement mechanics',
88
+ executors,
89
+ eventHandlers,
90
+ };
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Adaptive Gamification - Config Schema
3
+ *
4
+ * Zod schema for validating gamification app configuration.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Gamification app config schema.
9
+ */
10
+ export declare const configSchema: z.ZodObject<{
11
+ badges: z.ZodDefault<z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ name: z.ZodString;
14
+ icon: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ trigger: z.ZodObject<{
17
+ event: z.ZodString;
18
+ conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ event: string;
21
+ conditions?: unknown[] | undefined;
22
+ }, {
23
+ event: string;
24
+ conditions?: unknown[] | undefined;
25
+ }>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ id: string;
28
+ name: string;
29
+ icon: string;
30
+ trigger: {
31
+ event: string;
32
+ conditions?: unknown[] | undefined;
33
+ };
34
+ description?: string | undefined;
35
+ }, {
36
+ id: string;
37
+ name: string;
38
+ icon: string;
39
+ trigger: {
40
+ event: string;
41
+ conditions?: unknown[] | undefined;
42
+ };
43
+ description?: string | undefined;
44
+ }>, "many">>;
45
+ leaderboard: z.ZodOptional<z.ZodObject<{
46
+ enabled: z.ZodDefault<z.ZodBoolean>;
47
+ refreshInterval: z.ZodDefault<z.ZodNumber>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ enabled: boolean;
50
+ refreshInterval: number;
51
+ }, {
52
+ enabled?: boolean | undefined;
53
+ refreshInterval?: number | undefined;
54
+ }>>;
55
+ points: z.ZodOptional<z.ZodObject<{
56
+ enabled: z.ZodDefault<z.ZodBoolean>;
57
+ multiplier: z.ZodDefault<z.ZodNumber>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ enabled: boolean;
60
+ multiplier: number;
61
+ }, {
62
+ enabled?: boolean | undefined;
63
+ multiplier?: number | undefined;
64
+ }>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ badges: {
67
+ id: string;
68
+ name: string;
69
+ icon: string;
70
+ trigger: {
71
+ event: string;
72
+ conditions?: unknown[] | undefined;
73
+ };
74
+ description?: string | undefined;
75
+ }[];
76
+ points?: {
77
+ enabled: boolean;
78
+ multiplier: number;
79
+ } | undefined;
80
+ leaderboard?: {
81
+ enabled: boolean;
82
+ refreshInterval: number;
83
+ } | undefined;
84
+ }, {
85
+ points?: {
86
+ enabled?: boolean | undefined;
87
+ multiplier?: number | undefined;
88
+ } | undefined;
89
+ badges?: {
90
+ id: string;
91
+ name: string;
92
+ icon: string;
93
+ trigger: {
94
+ event: string;
95
+ conditions?: unknown[] | undefined;
96
+ };
97
+ description?: string | undefined;
98
+ }[] | undefined;
99
+ leaderboard?: {
100
+ enabled?: boolean | undefined;
101
+ refreshInterval?: number | undefined;
102
+ } | undefined;
103
+ }>;
104
+ export type GamificationConfig = z.infer<typeof configSchema>;
105
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
package/dist/schema.js ADDED
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Adaptive Gamification - Config Schema
3
+ *
4
+ * Zod schema for validating gamification app configuration.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Badge definition schema.
9
+ */
10
+ const badgeSchema = z.object({
11
+ id: z.string(),
12
+ name: z.string(),
13
+ icon: z.string(),
14
+ description: z.string().optional(),
15
+ trigger: z.object({
16
+ event: z.string(),
17
+ conditions: z.array(z.unknown()).optional(),
18
+ }),
19
+ });
20
+ /**
21
+ * Leaderboard configuration schema.
22
+ */
23
+ const leaderboardConfigSchema = z.object({
24
+ enabled: z.boolean().default(false),
25
+ refreshInterval: z.number().default(60000),
26
+ });
27
+ /**
28
+ * Gamification app config schema.
29
+ */
30
+ export const configSchema = z.object({
31
+ badges: z.array(badgeSchema).default([]),
32
+ leaderboard: leaderboardConfigSchema.optional(),
33
+ points: z
34
+ .object({
35
+ enabled: z.boolean().default(false),
36
+ multiplier: z.number().default(1),
37
+ })
38
+ .optional(),
39
+ });
@@ -0,0 +1,32 @@
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 interface EditorPanelProps {
8
+ config: Record<string, unknown>;
9
+ onChange: (config: Record<string, unknown>) => void;
10
+ editor: {
11
+ setDirty: (dirty: boolean) => void;
12
+ navigateHome: () => Promise<boolean>;
13
+ save: () => Promise<void>;
14
+ publish: (captureScreenshot?: boolean) => Promise<void>;
15
+ };
16
+ platformClient?: unknown;
17
+ }
18
+ export type ExecutorCleanup = () => void | Promise<void>;
19
+ export type ExecutorUpdate = (changes: Record<string, unknown>) => void | Promise<void>;
20
+ export interface ExecutorResult {
21
+ cleanup: ExecutorCleanup;
22
+ updateFn?: ExecutorUpdate;
23
+ }
24
+ export interface ExecutorContext {
25
+ overlayRoot: HTMLElement;
26
+ resolveAnchor: (anchorId: string) => HTMLElement | null;
27
+ generateId: () => string;
28
+ publishEvent: (name: string, props?: Record<string, unknown>) => void;
29
+ adaptiveId?: string;
30
+ }
31
+ export type ActionExecutor<T> = (action: T, context: ExecutorContext) => Promise<ExecutorResult>;
32
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE;QACN,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;QACnC,YAAY,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;KACzD,CAAC;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAMD,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAExF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,WAAW,GAAG,IAAI,CAAC;IACxD,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,7 @@
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 {};
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@syntrologie/adapt-gamification",
3
+ "version": "0.0.0-semantically-released",
4
+ "description": "Adaptive Gamification app - Badges, rewards, points, and engagement mechanics",
5
+ "license": "Proprietary",
6
+ "private": false,
7
+ "author": "Syntrologie <eng@syntrologie.com>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/SyntropyForge/amazing-demos.git",
11
+ "directory": "tech-core/sdks/adaptives/adaptive-gamification"
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "type": "module",
17
+ "exports": {
18
+ "./runtime": {
19
+ "types": "./dist/runtime.d.ts",
20
+ "import": "./dist/runtime.js"
21
+ },
22
+ "./schema": {
23
+ "types": "./dist/schema.d.ts",
24
+ "import": "./dist/schema.js"
25
+ },
26
+ "./editor": {
27
+ "types": "./dist/editor.d.ts",
28
+ "import": "./dist/editor.js"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "scripts": {
35
+ "build": "tsc",
36
+ "clean": "rm -rf dist"
37
+ },
38
+ "peerDependencies": {
39
+ "@syntrologie/runtime-sdk": "^2.0.0",
40
+ "react": ">=18.0.0",
41
+ "react-dom": ">=18.0.0",
42
+ "zod": "^3.0.0"
43
+ },
44
+ "devDependencies": {
45
+ "@types/react": "^18.0.0",
46
+ "typescript": "^5.0.0",
47
+ "zod": "^3.25.0"
48
+ }
49
+ }