@jotx-labs/standard-lib 2.4.183 → 2.4.203

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.
@@ -13,7 +13,7 @@ exports.ChartBlock = {
13
13
  charttype: {
14
14
  type: 'enum',
15
15
  required: true,
16
- options: ['bar', 'line', 'pie', 'doughnut', 'radar', 'polar']
16
+ options: ['bar', 'line', 'pie', 'doughnut', 'radar', 'polar', 'heatmap', 'treemap', 'scatterplot', 'sankey']
17
17
  },
18
18
  showsource: {
19
19
  type: 'boolean',
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx-labs/registry';
2
+ export declare const ColumnBlock: BlockDefinition;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ColumnBlock = void 0;
4
+ exports.ColumnBlock = {
5
+ type: 'column',
6
+ syntax: {
7
+ keyword: 'column',
8
+ hasText: false
9
+ },
10
+ schema: {
11
+ properties: {}
12
+ },
13
+ ui: {
14
+ label: 'Column',
15
+ icon: 'square'
16
+ }
17
+ };
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx-labs/registry';
2
+ export declare const ColumnsBlock: BlockDefinition;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ColumnsBlock = void 0;
4
+ exports.ColumnsBlock = {
5
+ type: 'columns',
6
+ syntax: {
7
+ keyword: 'columns',
8
+ hasText: false
9
+ },
10
+ schema: {
11
+ properties: {
12
+ cols: {
13
+ type: 'number',
14
+ required: false,
15
+ default: 2,
16
+ description: 'Number of columns (1-4)'
17
+ }
18
+ }
19
+ },
20
+ ui: {
21
+ label: 'Columns',
22
+ icon: 'columns'
23
+ }
24
+ };
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx-labs/registry';
2
+ export declare const SlidePropertiesBlock: BlockDefinition;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlidePropertiesBlock = void 0;
4
+ exports.SlidePropertiesBlock = {
5
+ type: 'slideproperties',
6
+ syntax: {
7
+ keyword: 'slideproperties',
8
+ hasText: true
9
+ },
10
+ schema: {
11
+ properties: {
12
+ theme: {
13
+ type: 'string',
14
+ required: false,
15
+ default: 'dark',
16
+ description: 'Presentation theme (dark, light, corporate, minimal)'
17
+ },
18
+ transition: {
19
+ type: 'string',
20
+ required: false,
21
+ default: 'slide',
22
+ description: 'Slide transition effect (slide, fade, convex, zoom, none)'
23
+ },
24
+ footertext: {
25
+ type: 'string',
26
+ required: false,
27
+ default: '',
28
+ description: 'Footer text shown on every slide'
29
+ },
30
+ footerlogo: {
31
+ type: 'string',
32
+ required: false,
33
+ default: '',
34
+ description: 'Path to footer logo image'
35
+ },
36
+ ratio: {
37
+ type: 'string',
38
+ required: false,
39
+ default: '16:9',
40
+ description: 'Slide aspect ratio (16:9 or 4:3)'
41
+ },
42
+ shownumbers: {
43
+ type: 'boolean',
44
+ required: false,
45
+ default: true,
46
+ description: 'Show slide numbers'
47
+ }
48
+ }
49
+ },
50
+ ui: {
51
+ label: 'Slide Properties',
52
+ icon: 'presentation'
53
+ }
54
+ };
package/dist/index.d.ts CHANGED
@@ -32,3 +32,6 @@ export * from './blocks/GridCard';
32
32
  export * from './blocks/Card';
33
33
  export * from './blocks/Button';
34
34
  export * from './blocks/ButtonStrip';
35
+ export * from './blocks/Columns';
36
+ export * from './blocks/Column';
37
+ export * from './blocks/SlideProperties';
package/dist/index.js CHANGED
@@ -50,6 +50,9 @@ const GridCard_1 = require("./blocks/GridCard");
50
50
  const Card_1 = require("./blocks/Card");
51
51
  const Button_1 = require("./blocks/Button");
52
52
  const ButtonStrip_1 = require("./blocks/ButtonStrip");
53
+ const Columns_1 = require("./blocks/Columns");
54
+ const Column_1 = require("./blocks/Column");
55
+ const SlideProperties_1 = require("./blocks/SlideProperties");
53
56
  function registerStandardBlocks() {
54
57
  // Text blocks
55
58
  registry_1.registry.register(Paragraph_1.ParagraphBlock);
@@ -97,6 +100,11 @@ function registerStandardBlocks() {
97
100
  registry_1.registry.register(Card_1.CardBlock);
98
101
  registry_1.registry.register(Button_1.ButtonBlock);
99
102
  registry_1.registry.register(ButtonStrip_1.ButtonStripBlock);
103
+ // Layout blocks
104
+ registry_1.registry.register(Columns_1.ColumnsBlock);
105
+ registry_1.registry.register(Column_1.ColumnBlock);
106
+ // Presentation blocks
107
+ registry_1.registry.register(SlideProperties_1.SlidePropertiesBlock);
100
108
  // DEBUG: Log registry state
101
109
  console.log('[StandardLib] Registered standard blocks. Registry keys:', registry_1.registry.getAll().map(b => b.type).join(', '));
102
110
  }
@@ -134,3 +142,6 @@ __exportStar(require("./blocks/GridCard"), exports);
134
142
  __exportStar(require("./blocks/Card"), exports);
135
143
  __exportStar(require("./blocks/Button"), exports);
136
144
  __exportStar(require("./blocks/ButtonStrip"), exports);
145
+ __exportStar(require("./blocks/Columns"), exports);
146
+ __exportStar(require("./blocks/Column"), exports);
147
+ __exportStar(require("./blocks/SlideProperties"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotx-labs/standard-lib",
3
- "version": "2.4.183",
3
+ "version": "2.4.203",
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.130"
22
+ "@jotx-labs/registry": "file:../registry"
23
23
  },
24
24
  "devDependencies": {
25
25
  "typescript": "^5.0.0"