@jotx-labs/standard-lib 2.4.212 → 2.4.213

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.
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx-labs/registry';
2
+ export declare const MotionBlock: BlockDefinition;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MotionBlock = void 0;
4
+ exports.MotionBlock = {
5
+ type: 'motion',
6
+ syntax: {
7
+ hasChildren: false,
8
+ hasText: false
9
+ },
10
+ schema: {
11
+ properties: {
12
+ title: { type: 'string', required: false, description: 'Animation title' },
13
+ motiontype: {
14
+ type: 'enum',
15
+ required: true,
16
+ options: ['math', 'flow', 'code', 'timeline', 'custom']
17
+ },
18
+ scene: {
19
+ type: 'string',
20
+ required: true,
21
+ description: 'Motion DSL scene description'
22
+ },
23
+ duration: {
24
+ type: 'string',
25
+ required: false,
26
+ description: 'Animation duration in seconds'
27
+ },
28
+ autoplay: {
29
+ type: 'boolean',
30
+ default: false
31
+ },
32
+ loop: {
33
+ type: 'boolean',
34
+ default: false
35
+ },
36
+ background: {
37
+ type: 'string',
38
+ required: false,
39
+ description: 'Canvas background color'
40
+ },
41
+ showsource: {
42
+ type: 'boolean',
43
+ default: false
44
+ }
45
+ }
46
+ },
47
+ ui: {
48
+ label: 'Motion',
49
+ icon: 'wand-2'
50
+ }
51
+ };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './blocks/Link';
21
21
  export * from './blocks/Attachment';
22
22
  export * from './blocks/Mermaid';
23
23
  export * from './blocks/Chart';
24
+ export * from './blocks/Motion';
24
25
  export * from './blocks/DateTime';
25
26
  export * from './blocks/LinkCard';
26
27
  export * from './blocks/JotxLink';
package/dist/index.js CHANGED
@@ -39,6 +39,7 @@ const Link_1 = require("./blocks/Link");
39
39
  const Attachment_1 = require("./blocks/Attachment");
40
40
  const Mermaid_1 = require("./blocks/Mermaid");
41
41
  const Chart_1 = require("./blocks/Chart");
42
+ const Motion_1 = require("./blocks/Motion");
42
43
  const DateTime_1 = require("./blocks/DateTime");
43
44
  const LinkCard_1 = require("./blocks/LinkCard");
44
45
  const JotxLink_1 = require("./blocks/JotxLink");
@@ -88,6 +89,7 @@ function registerStandardBlocks() {
88
89
  // Rich/interactive blocks
89
90
  registry_1.registry.register(Mermaid_1.MermaidBlock);
90
91
  registry_1.registry.register(Chart_1.ChartBlock);
92
+ registry_1.registry.register(Motion_1.MotionBlock);
91
93
  registry_1.registry.register(DateTime_1.DateTimeBlock);
92
94
  registry_1.registry.register(LinkCard_1.LinkCardBlock);
93
95
  registry_1.registry.register(JotxLink_1.JotxLinkBlock);
@@ -131,6 +133,7 @@ __exportStar(require("./blocks/Link"), exports);
131
133
  __exportStar(require("./blocks/Attachment"), exports);
132
134
  __exportStar(require("./blocks/Mermaid"), exports);
133
135
  __exportStar(require("./blocks/Chart"), exports);
136
+ __exportStar(require("./blocks/Motion"), exports);
134
137
  __exportStar(require("./blocks/DateTime"), exports);
135
138
  __exportStar(require("./blocks/LinkCard"), exports);
136
139
  __exportStar(require("./blocks/JotxLink"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotx-labs/standard-lib",
3
- "version": "2.4.212",
3
+ "version": "2.4.213",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -19,7 +19,7 @@
19
19
  "author": "balajiboominathan",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@jotx-labs/registry": "^2.4.212"
22
+ "@jotx-labs/registry": "^2.4.213"
23
23
  },
24
24
  "devDependencies": {
25
25
  "typescript": "^5.0.0"