@jotx-labs/standard-lib 2.2.0

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.
Files changed (67) hide show
  1. package/dist/blocks/Attachment.d.ts +2 -0
  2. package/dist/blocks/Attachment.js +20 -0
  3. package/dist/blocks/BlockRef.d.ts +2 -0
  4. package/dist/blocks/BlockRef.js +19 -0
  5. package/dist/blocks/Callout.d.ts +2 -0
  6. package/dist/blocks/Callout.js +19 -0
  7. package/dist/blocks/Cell.d.ts +2 -0
  8. package/dist/blocks/Cell.js +17 -0
  9. package/dist/blocks/Chart.d.ts +2 -0
  10. package/dist/blocks/Chart.js +32 -0
  11. package/dist/blocks/Checklist.d.ts +3 -0
  12. package/dist/blocks/Checklist.js +36 -0
  13. package/dist/blocks/Code.d.ts +2 -0
  14. package/dist/blocks/Code.js +21 -0
  15. package/dist/blocks/CodeReference.d.ts +2 -0
  16. package/dist/blocks/CodeReference.js +21 -0
  17. package/dist/blocks/DateTime.d.ts +2 -0
  18. package/dist/blocks/DateTime.js +20 -0
  19. package/dist/blocks/Divider.d.ts +2 -0
  20. package/dist/blocks/Divider.js +18 -0
  21. package/dist/blocks/FloatImage.d.ts +2 -0
  22. package/dist/blocks/FloatImage.js +24 -0
  23. package/dist/blocks/Header.d.ts +2 -0
  24. package/dist/blocks/Header.js +17 -0
  25. package/dist/blocks/Heading.d.ts +2 -0
  26. package/dist/blocks/Heading.js +25 -0
  27. package/dist/blocks/Image.d.ts +2 -0
  28. package/dist/blocks/Image.js +24 -0
  29. package/dist/blocks/JotxLink.d.ts +2 -0
  30. package/dist/blocks/JotxLink.js +22 -0
  31. package/dist/blocks/Link.d.ts +2 -0
  32. package/dist/blocks/Link.js +20 -0
  33. package/dist/blocks/LinkCard.d.ts +2 -0
  34. package/dist/blocks/LinkCard.js +23 -0
  35. package/dist/blocks/List.d.ts +3 -0
  36. package/dist/blocks/List.js +37 -0
  37. package/dist/blocks/Math.d.ts +2 -0
  38. package/dist/blocks/Math.js +21 -0
  39. package/dist/blocks/Mermaid.d.ts +2 -0
  40. package/dist/blocks/Mermaid.js +20 -0
  41. package/dist/blocks/Paragraph.d.ts +2 -0
  42. package/dist/blocks/Paragraph.js +24 -0
  43. package/dist/blocks/Properties.d.ts +2 -0
  44. package/dist/blocks/Properties.js +17 -0
  45. package/dist/blocks/Property.d.ts +2 -0
  46. package/dist/blocks/Property.js +21 -0
  47. package/dist/blocks/Quote.d.ts +2 -0
  48. package/dist/blocks/Quote.js +20 -0
  49. package/dist/blocks/Row.d.ts +2 -0
  50. package/dist/blocks/Row.js +13 -0
  51. package/dist/blocks/Section.d.ts +2 -0
  52. package/dist/blocks/Section.js +20 -0
  53. package/dist/blocks/Table.d.ts +5 -0
  54. package/dist/blocks/Table.js +61 -0
  55. package/dist/blocks/Toggle.d.ts +2 -0
  56. package/dist/blocks/Toggle.js +20 -0
  57. package/dist/blocks/Video.d.ts +2 -0
  58. package/dist/blocks/Video.js +27 -0
  59. package/dist/index 2.js +121 -0
  60. package/dist/index.d 2.ts +30 -0
  61. package/dist/index.d.ts +30 -0
  62. package/dist/index.js +121 -0
  63. package/dist/verify-stdlib 2.js +16 -0
  64. package/dist/verify-stdlib.d 2.ts +1 -0
  65. package/dist/verify-stdlib.d.ts +1 -0
  66. package/dist/verify-stdlib.js +16 -0
  67. package/package.json +27 -0
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuoteBlock = void 0;
4
+ exports.QuoteBlock = {
5
+ type: 'quote',
6
+ syntax: {
7
+ keyword: 'quote',
8
+ markdownPrefix: '>',
9
+ hasText: true
10
+ },
11
+ schema: {
12
+ properties: {
13
+ text: { type: 'string', required: true }
14
+ }
15
+ },
16
+ ui: {
17
+ label: 'Quote',
18
+ icon: 'quote'
19
+ }
20
+ };
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx/registry';
2
+ export declare const RowBlock: BlockDefinition;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RowBlock = void 0;
4
+ exports.RowBlock = {
5
+ type: 'row',
6
+ syntax: {
7
+ keyword: 'row',
8
+ hasChildren: true
9
+ },
10
+ schema: {
11
+ properties: {}
12
+ }
13
+ };
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx/registry';
2
+ export declare const SectionBlock: BlockDefinition;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SectionBlock = void 0;
4
+ exports.SectionBlock = {
5
+ type: 'section',
6
+ syntax: {
7
+ keyword: 'section',
8
+ hasChildren: true
9
+ },
10
+ schema: {
11
+ properties: {
12
+ title: { type: 'string', required: true },
13
+ collapsed: { type: 'boolean', default: false }
14
+ }
15
+ },
16
+ ui: {
17
+ label: 'Section',
18
+ icon: 'folder'
19
+ }
20
+ };
@@ -0,0 +1,5 @@
1
+ import { BlockDefinition } from '@jotx/registry';
2
+ export declare const TableBlock: BlockDefinition;
3
+ export declare const TableRowBlock: BlockDefinition;
4
+ export declare const TableCellBlock: BlockDefinition;
5
+ export declare const TableHeaderBlock: BlockDefinition;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TableHeaderBlock = exports.TableCellBlock = exports.TableRowBlock = exports.TableBlock = void 0;
4
+ exports.TableBlock = {
5
+ type: 'table',
6
+ syntax: {
7
+ hasChildren: true
8
+ },
9
+ schema: {
10
+ properties: {
11
+ columns: { type: 'string', required: false } // Legacy prop, ideally derived from headers
12
+ }
13
+ },
14
+ ui: {
15
+ label: 'Table',
16
+ icon: 'table'
17
+ }
18
+ };
19
+ exports.TableRowBlock = {
20
+ type: 'row',
21
+ syntax: {
22
+ hasChildren: true
23
+ },
24
+ schema: {
25
+ properties: {}
26
+ },
27
+ ui: {
28
+ label: 'Row',
29
+ icon: 'rows'
30
+ }
31
+ };
32
+ exports.TableCellBlock = {
33
+ type: 'cell',
34
+ syntax: {
35
+ hasChildren: true
36
+ },
37
+ schema: {
38
+ properties: {
39
+ text: { type: 'string', required: false } // can contain just text or other blocks
40
+ }
41
+ },
42
+ ui: {
43
+ label: 'Cell',
44
+ icon: 'square'
45
+ }
46
+ };
47
+ exports.TableHeaderBlock = {
48
+ type: 'header',
49
+ syntax: {
50
+ hasChildren: true
51
+ },
52
+ schema: {
53
+ properties: {
54
+ text: { type: 'string', required: false }
55
+ }
56
+ },
57
+ ui: {
58
+ label: 'Header',
59
+ icon: 'heading'
60
+ }
61
+ };
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx/registry';
2
+ export declare const ToggleBlock: BlockDefinition;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ToggleBlock = void 0;
4
+ exports.ToggleBlock = {
5
+ type: 'toggle',
6
+ syntax: {
7
+ keyword: 'toggle',
8
+ hasChildren: true
9
+ },
10
+ schema: {
11
+ properties: {
12
+ title: { type: 'string', required: true },
13
+ collapsed: { type: 'boolean', default: true }
14
+ }
15
+ },
16
+ ui: {
17
+ label: 'Toggle',
18
+ icon: 'chevron-down'
19
+ }
20
+ };
@@ -0,0 +1,2 @@
1
+ import { BlockDefinition } from '@jotx/registry';
2
+ export declare const VideoBlock: BlockDefinition;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoBlock = void 0;
4
+ exports.VideoBlock = {
5
+ type: 'video',
6
+ syntax: {
7
+ keyword: 'video',
8
+ hasText: false
9
+ },
10
+ schema: {
11
+ properties: {
12
+ type: { type: 'enum', options: ['youtube', 'local'], default: 'youtube' },
13
+ src: { type: 'string', required: true },
14
+ title: { type: 'string', default: '' },
15
+ width: { type: 'number', default: 800 },
16
+ height: { type: 'number', default: 450 },
17
+ controls: { type: 'boolean', default: true },
18
+ autoplay: { type: 'boolean', default: false },
19
+ muted: { type: 'boolean', default: false },
20
+ loop: { type: 'boolean', default: false }
21
+ }
22
+ },
23
+ ui: {
24
+ label: 'Video',
25
+ icon: 'video'
26
+ }
27
+ };
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.registerStandardBlocks = registerStandardBlocks;
18
+ const registry_1 = require("@jotx/registry");
19
+ // Import all blocks
20
+ const Paragraph_1 = require("./blocks/Paragraph");
21
+ const Heading_1 = require("./blocks/Heading");
22
+ const Quote_1 = require("./blocks/Quote");
23
+ const List_1 = require("./blocks/List");
24
+ const Code_1 = require("./blocks/Code");
25
+ const Checklist_1 = require("./blocks/Checklist");
26
+ const Math_1 = require("./blocks/Math");
27
+ const Image_1 = require("./blocks/Image");
28
+ const FloatImage_1 = require("./blocks/FloatImage");
29
+ const Video_1 = require("./blocks/Video");
30
+ const CodeReference_1 = require("./blocks/CodeReference");
31
+ const Callout_1 = require("./blocks/Callout");
32
+ const Section_1 = require("./blocks/Section");
33
+ const Toggle_1 = require("./blocks/Toggle");
34
+ const Table_1 = require("./blocks/Table");
35
+ const Properties_1 = require("./blocks/Properties");
36
+ const Property_1 = require("./blocks/Property");
37
+ const Divider_1 = require("./blocks/Divider");
38
+ const Link_1 = require("./blocks/Link");
39
+ const Attachment_1 = require("./blocks/Attachment");
40
+ const Mermaid_1 = require("./blocks/Mermaid");
41
+ const Chart_1 = require("./blocks/Chart");
42
+ const DateTime_1 = require("./blocks/DateTime");
43
+ const LinkCard_1 = require("./blocks/LinkCard");
44
+ const JotxLink_1 = require("./blocks/JotxLink");
45
+ const BlockRef_1 = require("./blocks/BlockRef");
46
+ const Row_1 = require("./blocks/Row");
47
+ const Cell_1 = require("./blocks/Cell");
48
+ const Header_1 = require("./blocks/Header");
49
+ function registerStandardBlocks() {
50
+ // Text blocks
51
+ registry_1.registry.register(Paragraph_1.ParagraphBlock);
52
+ registry_1.registry.register(Heading_1.HeadingBlock);
53
+ registry_1.registry.register(Quote_1.QuoteBlock);
54
+ // List blocks
55
+ registry_1.registry.register(List_1.ListBlock);
56
+ registry_1.registry.register(List_1.ListItemBlock);
57
+ registry_1.registry.register(Checklist_1.ChecklistBlock);
58
+ registry_1.registry.register(Checklist_1.TaskItemBlock);
59
+ // Code & media blocks
60
+ registry_1.registry.register(Code_1.CodeBlock);
61
+ registry_1.registry.register(Math_1.MathBlock);
62
+ registry_1.registry.register(Image_1.ImageBlock);
63
+ registry_1.registry.register(FloatImage_1.FloatImageBlock);
64
+ registry_1.registry.register(Video_1.VideoBlock);
65
+ registry_1.registry.register(CodeReference_1.CodeReferenceBlock);
66
+ // Container blocks
67
+ registry_1.registry.register(Callout_1.CalloutBlock);
68
+ registry_1.registry.register(Section_1.SectionBlock);
69
+ registry_1.registry.register(Toggle_1.ToggleBlock);
70
+ // Data blocks
71
+ registry_1.registry.register(Table_1.TableBlock);
72
+ registry_1.registry.register(Table_1.TableRowBlock);
73
+ registry_1.registry.register(Table_1.TableCellBlock);
74
+ registry_1.registry.register(Table_1.TableHeaderBlock);
75
+ registry_1.registry.register(Properties_1.PropertiesBlock);
76
+ registry_1.registry.register(Property_1.PropertyBlock);
77
+ // Separator & embed blocks
78
+ registry_1.registry.register(Divider_1.DividerBlock);
79
+ registry_1.registry.register(Link_1.LinkBlock);
80
+ registry_1.registry.register(Attachment_1.AttachmentBlock);
81
+ // Rich/interactive blocks
82
+ registry_1.registry.register(Mermaid_1.MermaidBlock);
83
+ registry_1.registry.register(Chart_1.ChartBlock);
84
+ registry_1.registry.register(DateTime_1.DateTimeBlock);
85
+ registry_1.registry.register(LinkCard_1.LinkCardBlock);
86
+ registry_1.registry.register(JotxLink_1.JotxLinkBlock);
87
+ registry_1.registry.register(BlockRef_1.BlockRefBlock);
88
+ registry_1.registry.register(Row_1.RowBlock);
89
+ registry_1.registry.register(Cell_1.CellBlock);
90
+ registry_1.registry.register(Header_1.HeaderBlock);
91
+ }
92
+ // Export all blocks
93
+ __exportStar(require("./blocks/Paragraph"), exports);
94
+ __exportStar(require("./blocks/Heading"), exports);
95
+ __exportStar(require("./blocks/Quote"), exports);
96
+ __exportStar(require("./blocks/List"), exports);
97
+ __exportStar(require("./blocks/Code"), exports);
98
+ __exportStar(require("./blocks/Checklist"), exports);
99
+ __exportStar(require("./blocks/Math"), exports);
100
+ __exportStar(require("./blocks/Image"), exports);
101
+ __exportStar(require("./blocks/FloatImage"), exports);
102
+ __exportStar(require("./blocks/Video"), exports);
103
+ __exportStar(require("./blocks/CodeReference"), exports);
104
+ __exportStar(require("./blocks/Callout"), exports);
105
+ __exportStar(require("./blocks/Section"), exports);
106
+ __exportStar(require("./blocks/Toggle"), exports);
107
+ __exportStar(require("./blocks/Table"), exports);
108
+ __exportStar(require("./blocks/Properties"), exports);
109
+ __exportStar(require("./blocks/Property"), exports);
110
+ __exportStar(require("./blocks/Divider"), exports);
111
+ __exportStar(require("./blocks/Link"), exports);
112
+ __exportStar(require("./blocks/Attachment"), exports);
113
+ __exportStar(require("./blocks/Mermaid"), exports);
114
+ __exportStar(require("./blocks/Chart"), exports);
115
+ __exportStar(require("./blocks/DateTime"), exports);
116
+ __exportStar(require("./blocks/LinkCard"), exports);
117
+ __exportStar(require("./blocks/JotxLink"), exports);
118
+ __exportStar(require("./blocks/BlockRef"), exports);
119
+ __exportStar(require("./blocks/Row"), exports);
120
+ __exportStar(require("./blocks/Cell"), exports);
121
+ __exportStar(require("./blocks/Header"), exports);
@@ -0,0 +1,30 @@
1
+ export declare function registerStandardBlocks(): void;
2
+ export * from './blocks/Paragraph';
3
+ export * from './blocks/Heading';
4
+ export * from './blocks/Quote';
5
+ export * from './blocks/List';
6
+ export * from './blocks/Code';
7
+ export * from './blocks/Checklist';
8
+ export * from './blocks/Math';
9
+ export * from './blocks/Image';
10
+ export * from './blocks/FloatImage';
11
+ export * from './blocks/Video';
12
+ export * from './blocks/CodeReference';
13
+ export * from './blocks/Callout';
14
+ export * from './blocks/Section';
15
+ export * from './blocks/Toggle';
16
+ export * from './blocks/Table';
17
+ export * from './blocks/Properties';
18
+ export * from './blocks/Property';
19
+ export * from './blocks/Divider';
20
+ export * from './blocks/Link';
21
+ export * from './blocks/Attachment';
22
+ export * from './blocks/Mermaid';
23
+ export * from './blocks/Chart';
24
+ export * from './blocks/DateTime';
25
+ export * from './blocks/LinkCard';
26
+ export * from './blocks/JotxLink';
27
+ export * from './blocks/BlockRef';
28
+ export * from './blocks/Row';
29
+ export * from './blocks/Cell';
30
+ export * from './blocks/Header';
@@ -0,0 +1,30 @@
1
+ export declare function registerStandardBlocks(): void;
2
+ export * from './blocks/Paragraph';
3
+ export * from './blocks/Heading';
4
+ export * from './blocks/Quote';
5
+ export * from './blocks/List';
6
+ export * from './blocks/Code';
7
+ export * from './blocks/Checklist';
8
+ export * from './blocks/Math';
9
+ export * from './blocks/Image';
10
+ export * from './blocks/FloatImage';
11
+ export * from './blocks/Video';
12
+ export * from './blocks/CodeReference';
13
+ export * from './blocks/Callout';
14
+ export * from './blocks/Section';
15
+ export * from './blocks/Toggle';
16
+ export * from './blocks/Table';
17
+ export * from './blocks/Properties';
18
+ export * from './blocks/Property';
19
+ export * from './blocks/Divider';
20
+ export * from './blocks/Link';
21
+ export * from './blocks/Attachment';
22
+ export * from './blocks/Mermaid';
23
+ export * from './blocks/Chart';
24
+ export * from './blocks/DateTime';
25
+ export * from './blocks/LinkCard';
26
+ export * from './blocks/JotxLink';
27
+ export * from './blocks/BlockRef';
28
+ export * from './blocks/Row';
29
+ export * from './blocks/Cell';
30
+ export * from './blocks/Header';
package/dist/index.js ADDED
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.registerStandardBlocks = registerStandardBlocks;
18
+ const registry_1 = require("@jotx/registry");
19
+ // Import all blocks
20
+ const Paragraph_1 = require("./blocks/Paragraph");
21
+ const Heading_1 = require("./blocks/Heading");
22
+ const Quote_1 = require("./blocks/Quote");
23
+ const List_1 = require("./blocks/List");
24
+ const Code_1 = require("./blocks/Code");
25
+ const Checklist_1 = require("./blocks/Checklist");
26
+ const Math_1 = require("./blocks/Math");
27
+ const Image_1 = require("./blocks/Image");
28
+ const FloatImage_1 = require("./blocks/FloatImage");
29
+ const Video_1 = require("./blocks/Video");
30
+ const CodeReference_1 = require("./blocks/CodeReference");
31
+ const Callout_1 = require("./blocks/Callout");
32
+ const Section_1 = require("./blocks/Section");
33
+ const Toggle_1 = require("./blocks/Toggle");
34
+ const Table_1 = require("./blocks/Table");
35
+ const Properties_1 = require("./blocks/Properties");
36
+ const Property_1 = require("./blocks/Property");
37
+ const Divider_1 = require("./blocks/Divider");
38
+ const Link_1 = require("./blocks/Link");
39
+ const Attachment_1 = require("./blocks/Attachment");
40
+ const Mermaid_1 = require("./blocks/Mermaid");
41
+ const Chart_1 = require("./blocks/Chart");
42
+ const DateTime_1 = require("./blocks/DateTime");
43
+ const LinkCard_1 = require("./blocks/LinkCard");
44
+ const JotxLink_1 = require("./blocks/JotxLink");
45
+ const BlockRef_1 = require("./blocks/BlockRef");
46
+ const Row_1 = require("./blocks/Row");
47
+ const Cell_1 = require("./blocks/Cell");
48
+ const Header_1 = require("./blocks/Header");
49
+ function registerStandardBlocks() {
50
+ // Text blocks
51
+ registry_1.registry.register(Paragraph_1.ParagraphBlock);
52
+ registry_1.registry.register(Heading_1.HeadingBlock);
53
+ registry_1.registry.register(Quote_1.QuoteBlock);
54
+ // List blocks
55
+ registry_1.registry.register(List_1.ListBlock);
56
+ registry_1.registry.register(List_1.ListItemBlock);
57
+ registry_1.registry.register(Checklist_1.ChecklistBlock);
58
+ registry_1.registry.register(Checklist_1.TaskItemBlock);
59
+ // Code & media blocks
60
+ registry_1.registry.register(Code_1.CodeBlock);
61
+ registry_1.registry.register(Math_1.MathBlock);
62
+ registry_1.registry.register(Image_1.ImageBlock);
63
+ registry_1.registry.register(FloatImage_1.FloatImageBlock);
64
+ registry_1.registry.register(Video_1.VideoBlock);
65
+ registry_1.registry.register(CodeReference_1.CodeReferenceBlock);
66
+ // Container blocks
67
+ registry_1.registry.register(Callout_1.CalloutBlock);
68
+ registry_1.registry.register(Section_1.SectionBlock);
69
+ registry_1.registry.register(Toggle_1.ToggleBlock);
70
+ // Data blocks
71
+ registry_1.registry.register(Table_1.TableBlock);
72
+ registry_1.registry.register(Table_1.TableRowBlock);
73
+ registry_1.registry.register(Table_1.TableCellBlock);
74
+ registry_1.registry.register(Table_1.TableHeaderBlock);
75
+ registry_1.registry.register(Properties_1.PropertiesBlock);
76
+ registry_1.registry.register(Property_1.PropertyBlock);
77
+ // Separator & embed blocks
78
+ registry_1.registry.register(Divider_1.DividerBlock);
79
+ registry_1.registry.register(Link_1.LinkBlock);
80
+ registry_1.registry.register(Attachment_1.AttachmentBlock);
81
+ // Rich/interactive blocks
82
+ registry_1.registry.register(Mermaid_1.MermaidBlock);
83
+ registry_1.registry.register(Chart_1.ChartBlock);
84
+ registry_1.registry.register(DateTime_1.DateTimeBlock);
85
+ registry_1.registry.register(LinkCard_1.LinkCardBlock);
86
+ registry_1.registry.register(JotxLink_1.JotxLinkBlock);
87
+ registry_1.registry.register(BlockRef_1.BlockRefBlock);
88
+ registry_1.registry.register(Row_1.RowBlock);
89
+ registry_1.registry.register(Cell_1.CellBlock);
90
+ registry_1.registry.register(Header_1.HeaderBlock);
91
+ }
92
+ // Export all blocks
93
+ __exportStar(require("./blocks/Paragraph"), exports);
94
+ __exportStar(require("./blocks/Heading"), exports);
95
+ __exportStar(require("./blocks/Quote"), exports);
96
+ __exportStar(require("./blocks/List"), exports);
97
+ __exportStar(require("./blocks/Code"), exports);
98
+ __exportStar(require("./blocks/Checklist"), exports);
99
+ __exportStar(require("./blocks/Math"), exports);
100
+ __exportStar(require("./blocks/Image"), exports);
101
+ __exportStar(require("./blocks/FloatImage"), exports);
102
+ __exportStar(require("./blocks/Video"), exports);
103
+ __exportStar(require("./blocks/CodeReference"), exports);
104
+ __exportStar(require("./blocks/Callout"), exports);
105
+ __exportStar(require("./blocks/Section"), exports);
106
+ __exportStar(require("./blocks/Toggle"), exports);
107
+ __exportStar(require("./blocks/Table"), exports);
108
+ __exportStar(require("./blocks/Properties"), exports);
109
+ __exportStar(require("./blocks/Property"), exports);
110
+ __exportStar(require("./blocks/Divider"), exports);
111
+ __exportStar(require("./blocks/Link"), exports);
112
+ __exportStar(require("./blocks/Attachment"), exports);
113
+ __exportStar(require("./blocks/Mermaid"), exports);
114
+ __exportStar(require("./blocks/Chart"), exports);
115
+ __exportStar(require("./blocks/DateTime"), exports);
116
+ __exportStar(require("./blocks/LinkCard"), exports);
117
+ __exportStar(require("./blocks/JotxLink"), exports);
118
+ __exportStar(require("./blocks/BlockRef"), exports);
119
+ __exportStar(require("./blocks/Row"), exports);
120
+ __exportStar(require("./blocks/Cell"), exports);
121
+ __exportStar(require("./blocks/Header"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const index_1 = require("./index");
4
+ const registry_1 = require("@jotx/registry");
5
+ console.log('🚀 Verifying Standard Library...');
6
+ registry_1.registry.clear();
7
+ (0, index_1.registerStandardBlocks)();
8
+ const expected = ['paragraph', 'heading', 'list', 'listItem', 'code'];
9
+ const missing = expected.filter(type => !registry_1.registry.get(type));
10
+ if (missing.length === 0) {
11
+ console.log('✅ All standard blocks registered successfully!');
12
+ }
13
+ else {
14
+ console.error('❌ Missing blocks:', missing);
15
+ process.exit(1);
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const index_1 = require("./index");
4
+ const registry_1 = require("@jotx/registry");
5
+ console.log('🚀 Verifying Standard Library...');
6
+ registry_1.registry.clear();
7
+ (0, index_1.registerStandardBlocks)();
8
+ const expected = ['paragraph', 'heading', 'list', 'listItem', 'code'];
9
+ const missing = expected.filter(type => !registry_1.registry.get(type));
10
+ if (missing.length === 0) {
11
+ console.log('✅ All standard blocks registered successfully!');
12
+ }
13
+ else {
14
+ console.error('❌ Missing blocks:', missing);
15
+ process.exit(1);
16
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@jotx-labs/standard-lib",
3
+ "version": "2.2.0",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "description": "Standard library of blocks for jotx (Heading, Paragraph, List, etc.)",
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "watch": "tsc -w"
13
+ },
14
+ "keywords": [
15
+ "jotx",
16
+ "standard-lib",
17
+ "blocks"
18
+ ],
19
+ "author": "balajiboominathan",
20
+ "license": "Apache-2.0",
21
+ "dependencies": {
22
+ "@jotx/registry": "file:../registry"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.0.0"
26
+ }
27
+ }