@onivoro/server-html 0.0.5 → 0.1.1

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 (131) hide show
  1. package/dist/cjs/index.d.ts +20 -0
  2. package/dist/cjs/index.js +36 -0
  3. package/{src/lib → dist/cjs/lib/deprecated}/a.function.js +0 -1
  4. package/{src/lib → dist/cjs/lib/deprecated}/html-element-renderer.type.js +0 -1
  5. package/{src/lib → dist/cjs/lib/deprecated}/html.function.js +0 -1
  6. package/{src/lib → dist/cjs/lib/deprecated}/login-button.function.js +3 -8
  7. package/dist/cjs/lib/deprecated/self-closing-html-element-renderer.type.js +2 -0
  8. package/{src/lib → dist/cjs/lib/deprecated}/self-closing-tag.function.js +0 -1
  9. package/{src/lib → dist/cjs/lib/deprecated}/tag.function.js +2 -3
  10. package/{src/lib → dist/cjs/lib/deprecated}/tags.js +0 -1
  11. package/{src → dist/cjs}/lib/email-body.function.d.ts +1 -1
  12. package/{src → dist/cjs}/lib/email-body.function.js +3 -7
  13. package/dist/cjs/lib/primitives/element.function.d.ts +2 -0
  14. package/{src/lib → dist/cjs/lib/primitives}/element.function.js +0 -1
  15. package/{src/lib → dist/cjs/lib/primitives}/elements.d.ts +3 -2
  16. package/{src/lib → dist/cjs/lib/primitives}/elements.js +8 -3
  17. package/{src/lib → dist/cjs/lib/primitives}/format-attributes.function.js +0 -1
  18. package/{src/lib → dist/cjs/lib/primitives}/inline-style.function.js +0 -1
  19. package/{src/lib → dist/cjs/lib/primitives}/self-closing-element.function.d.ts +1 -1
  20. package/{src/lib → dist/cjs/lib/primitives}/self-closing-element.function.js +0 -1
  21. package/dist/cjs/lib/styles/button-styles.constant.d.ts +11 -0
  22. package/dist/cjs/lib/styles/button-styles.constant.js +14 -0
  23. package/dist/cjs/lib/styles/font-styles.constant.d.ts +7 -0
  24. package/dist/cjs/lib/styles/font-styles.constant.js +10 -0
  25. package/dist/cjs/lib/table.function.js +13 -0
  26. package/{src/lib → dist/cjs/lib/types}/attributes.type.js +0 -1
  27. package/{src/lib → dist/cjs/lib/types}/element-renderer.type.js +0 -1
  28. package/{src/lib → dist/cjs/lib/types}/self-closing-element-renderer.type.js +0 -1
  29. package/dist/esm/index.d.ts +20 -0
  30. package/dist/esm/index.js +36 -0
  31. package/dist/esm/lib/deprecated/a.function.d.ts +1 -0
  32. package/dist/esm/lib/deprecated/a.function.js +8 -0
  33. package/dist/esm/lib/deprecated/html-element-renderer.type.d.ts +1 -0
  34. package/dist/esm/lib/deprecated/html-element-renderer.type.js +2 -0
  35. package/dist/esm/lib/deprecated/html.function.d.ts +1 -0
  36. package/dist/esm/lib/deprecated/html.function.js +43 -0
  37. package/dist/esm/lib/deprecated/login-button.function.d.ts +1 -0
  38. package/dist/esm/lib/deprecated/login-button.function.js +15 -0
  39. package/dist/esm/lib/deprecated/self-closing-html-element-renderer.type.d.ts +1 -0
  40. package/dist/esm/lib/deprecated/self-closing-html-element-renderer.type.js +2 -0
  41. package/dist/esm/lib/deprecated/self-closing-tag.function.d.ts +1 -0
  42. package/dist/esm/lib/deprecated/self-closing-tag.function.js +8 -0
  43. package/dist/esm/lib/deprecated/tag.function.d.ts +1 -0
  44. package/dist/esm/lib/deprecated/tag.function.js +12 -0
  45. package/dist/esm/lib/deprecated/tags.d.ts +24 -0
  46. package/dist/esm/lib/deprecated/tags.js +27 -0
  47. package/dist/esm/lib/email-body.function.d.ts +2 -0
  48. package/dist/esm/lib/email-body.function.js +25 -0
  49. package/dist/esm/lib/primitives/element.function.d.ts +2 -0
  50. package/dist/esm/lib/primitives/element.function.js +13 -0
  51. package/dist/esm/lib/primitives/elements.d.ts +26 -0
  52. package/dist/esm/lib/primitives/elements.js +34 -0
  53. package/dist/esm/lib/primitives/format-attributes.function.d.ts +1 -0
  54. package/dist/esm/lib/primitives/format-attributes.function.js +9 -0
  55. package/dist/esm/lib/primitives/inline-style.function.d.ts +1 -0
  56. package/dist/esm/lib/primitives/inline-style.function.js +10 -0
  57. package/dist/esm/lib/primitives/self-closing-element.function.d.ts +2 -0
  58. package/dist/esm/lib/primitives/self-closing-element.function.js +8 -0
  59. package/dist/esm/lib/styles/button-styles.constant.d.ts +11 -0
  60. package/dist/esm/lib/styles/button-styles.constant.js +14 -0
  61. package/dist/esm/lib/styles/font-styles.constant.d.ts +7 -0
  62. package/dist/esm/lib/styles/font-styles.constant.js +10 -0
  63. package/dist/esm/lib/table.function.d.ts +1 -0
  64. package/dist/esm/lib/table.function.js +13 -0
  65. package/dist/esm/lib/types/attributes.type.d.ts +4 -0
  66. package/dist/esm/lib/types/attributes.type.js +2 -0
  67. package/dist/esm/lib/types/element-renderer.type.d.ts +2 -0
  68. package/dist/esm/lib/types/element-renderer.type.js +2 -0
  69. package/dist/esm/lib/types/self-closing-element-renderer.type.d.ts +2 -0
  70. package/dist/esm/lib/types/self-closing-element-renderer.type.js +2 -0
  71. package/dist/types/index.d.ts +20 -0
  72. package/dist/types/lib/deprecated/a.function.d.ts +1 -0
  73. package/dist/types/lib/deprecated/html-element-renderer.type.d.ts +1 -0
  74. package/dist/types/lib/deprecated/html.function.d.ts +1 -0
  75. package/dist/types/lib/deprecated/login-button.function.d.ts +1 -0
  76. package/dist/types/lib/deprecated/self-closing-html-element-renderer.type.d.ts +1 -0
  77. package/dist/types/lib/deprecated/self-closing-tag.function.d.ts +1 -0
  78. package/dist/types/lib/deprecated/tag.function.d.ts +1 -0
  79. package/dist/types/lib/deprecated/tags.d.ts +24 -0
  80. package/dist/types/lib/email-body.function.d.ts +2 -0
  81. package/dist/types/lib/primitives/element.function.d.ts +2 -0
  82. package/dist/types/lib/primitives/elements.d.ts +26 -0
  83. package/dist/types/lib/primitives/format-attributes.function.d.ts +1 -0
  84. package/dist/types/lib/primitives/inline-style.function.d.ts +1 -0
  85. package/dist/types/lib/primitives/self-closing-element.function.d.ts +2 -0
  86. package/dist/types/lib/styles/button-styles.constant.d.ts +11 -0
  87. package/dist/types/lib/styles/font-styles.constant.d.ts +7 -0
  88. package/dist/types/lib/table.function.d.ts +1 -0
  89. package/dist/types/lib/types/attributes.type.d.ts +4 -0
  90. package/dist/types/lib/types/element-renderer.type.d.ts +2 -0
  91. package/dist/types/lib/types/self-closing-element-renderer.type.d.ts +2 -0
  92. package/package.json +40 -5
  93. package/README.md +0 -11
  94. package/src/index.d.ts +0 -18
  95. package/src/index.js +0 -22
  96. package/src/index.js.map +0 -1
  97. package/src/lib/a.function.js.map +0 -1
  98. package/src/lib/attributes.type.js.map +0 -1
  99. package/src/lib/element-renderer.type.js.map +0 -1
  100. package/src/lib/element.function.d.ts +0 -2
  101. package/src/lib/element.function.js.map +0 -1
  102. package/src/lib/elements.js.map +0 -1
  103. package/src/lib/email-body.function.js.map +0 -1
  104. package/src/lib/format-attributes.function.js.map +0 -1
  105. package/src/lib/html-element-renderer.type.js.map +0 -1
  106. package/src/lib/html.function.js.map +0 -1
  107. package/src/lib/inline-style.function.js.map +0 -1
  108. package/src/lib/login-button.function.js.map +0 -1
  109. package/src/lib/self-closing-element-renderer.type.js.map +0 -1
  110. package/src/lib/self-closing-element.function.js.map +0 -1
  111. package/src/lib/self-closing-html-element-renderer.type.js +0 -3
  112. package/src/lib/self-closing-html-element-renderer.type.js.map +0 -1
  113. package/src/lib/self-closing-tag.function.js.map +0 -1
  114. package/src/lib/table.function.js +0 -12
  115. package/src/lib/table.function.js.map +0 -1
  116. package/src/lib/tag.function.js.map +0 -1
  117. package/src/lib/tags.js.map +0 -1
  118. /package/{src/lib → dist/cjs/lib/deprecated}/a.function.d.ts +0 -0
  119. /package/{src/lib → dist/cjs/lib/deprecated}/html-element-renderer.type.d.ts +0 -0
  120. /package/{src/lib → dist/cjs/lib/deprecated}/html.function.d.ts +0 -0
  121. /package/{src/lib → dist/cjs/lib/deprecated}/login-button.function.d.ts +0 -0
  122. /package/{src/lib → dist/cjs/lib/deprecated}/self-closing-html-element-renderer.type.d.ts +0 -0
  123. /package/{src/lib → dist/cjs/lib/deprecated}/self-closing-tag.function.d.ts +0 -0
  124. /package/{src/lib → dist/cjs/lib/deprecated}/tag.function.d.ts +0 -0
  125. /package/{src/lib → dist/cjs/lib/deprecated}/tags.d.ts +0 -0
  126. /package/{src/lib → dist/cjs/lib/primitives}/format-attributes.function.d.ts +0 -0
  127. /package/{src/lib → dist/cjs/lib/primitives}/inline-style.function.d.ts +0 -0
  128. /package/{src → dist/cjs}/lib/table.function.d.ts +0 -0
  129. /package/{src/lib → dist/cjs/lib/types}/attributes.type.d.ts +0 -0
  130. /package/{src/lib → dist/cjs/lib/types}/element-renderer.type.d.ts +0 -0
  131. /package/{src/lib → dist/cjs/lib/types}/self-closing-element-renderer.type.d.ts +0 -0
@@ -0,0 +1,26 @@
1
+ import { TElementRenderer } from "../types/element-renderer.type";
2
+ import { TSelfClosingElementRenderer } from "../types/self-closing-element-renderer.type";
3
+ export declare const anchor: TElementRenderer;
4
+ export declare const body: TElementRenderer;
5
+ export declare const button: TElementRenderer;
6
+ export declare const div: TElementRenderer;
7
+ export declare const h1: TElementRenderer;
8
+ export declare const h2: TElementRenderer;
9
+ export declare const h3: TElementRenderer;
10
+ export declare const h4: TElementRenderer;
11
+ export declare const h5: TElementRenderer;
12
+ export declare const h6: TElementRenderer;
13
+ export declare const head: TElementRenderer;
14
+ export declare const header: TElementRenderer;
15
+ export declare const htm: TElementRenderer;
16
+ export declare const img: TSelfClosingElementRenderer;
17
+ export declare const main: TElementRenderer;
18
+ export declare const p: TElementRenderer;
19
+ export declare const pre: TElementRenderer;
20
+ export declare const tab: TElementRenderer;
21
+ export declare const tbody: TElementRenderer;
22
+ export declare const td: TElementRenderer;
23
+ export declare const th: TElementRenderer;
24
+ export declare const thead: TElementRenderer;
25
+ export declare const tr: TElementRenderer;
26
+ export declare const style: any;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.style = exports.tr = exports.thead = exports.th = exports.td = exports.tbody = exports.tab = exports.pre = exports.p = exports.main = exports.img = exports.htm = exports.header = exports.head = exports.h6 = exports.h5 = exports.h4 = exports.h3 = exports.h2 = exports.h1 = exports.div = exports.button = exports.body = exports.anchor = void 0;
4
+ const element_function_1 = require("./element.function");
5
+ const self_closing_element_function_1 = require("./self-closing-element.function");
6
+ const button_styles_constant_1 = require("../styles/button-styles.constant");
7
+ const anchor = (content, attributes) => (0, element_function_1.element)('a', content, { ...attributes, style: { ...button_styles_constant_1.buttonStyles, ...attributes?.style } });
8
+ exports.anchor = anchor;
9
+ exports.body = element_function_1.element.bind(null, 'body');
10
+ const button = (content, attributes) => (0, element_function_1.element)('button', content, { ...attributes, style: { ...button_styles_constant_1.buttonStyles, ...attributes?.style } });
11
+ exports.button = button;
12
+ exports.div = element_function_1.element.bind(null, 'div');
13
+ exports.h1 = element_function_1.element.bind(null, 'h1');
14
+ exports.h2 = element_function_1.element.bind(null, 'h2');
15
+ exports.h3 = element_function_1.element.bind(null, 'h3');
16
+ exports.h4 = element_function_1.element.bind(null, 'h4');
17
+ exports.h5 = element_function_1.element.bind(null, 'h5');
18
+ exports.h6 = element_function_1.element.bind(null, 'h6');
19
+ exports.head = element_function_1.element.bind(null, 'head');
20
+ exports.header = element_function_1.element.bind(null, 'header');
21
+ exports.htm = element_function_1.element.bind(null, 'html');
22
+ exports.img = self_closing_element_function_1.selfClosingElement.bind(null, 'img');
23
+ exports.main = element_function_1.element.bind(null, 'main');
24
+ exports.p = element_function_1.element.bind(null, 'p');
25
+ exports.pre = element_function_1.element.bind(null, 'pre');
26
+ exports.tab = element_function_1.element.bind(null, 'table');
27
+ exports.tbody = element_function_1.element.bind(null, 'tbody');
28
+ exports.td = element_function_1.element.bind(null, 'td');
29
+ exports.th = element_function_1.element.bind(null, 'th');
30
+ exports.thead = element_function_1.element.bind(null, 'thead');
31
+ exports.tr = element_function_1.element.bind(null, 'tr');
32
+ // todo: make this take a Record<string, Record<string, string>> instead of the terrible raw string formatting used now
33
+ // todo: apply kebab-casing to camelCased keys so that consumers can write { fontWeight: 600 } instead of {'font-weight': 600 } (do this for all style properties of primitives' attributes)
34
+ exports.style = element_function_1.element.bind(null, 'style');
@@ -0,0 +1 @@
1
+ export declare function formatAttributes(attributes: Record<string, any>): string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatAttributes = void 0;
4
+ function formatAttributes(attributes) {
5
+ return Object.entries(attributes)
6
+ .map(([k, v]) => `${k}="${v}"`)
7
+ .join(' ');
8
+ }
9
+ exports.formatAttributes = formatAttributes;
@@ -0,0 +1 @@
1
+ export declare function inlineStyle(styles: Record<string, string>): string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inlineStyle = void 0;
4
+ function inlineStyle(styles) {
5
+ const rules = Object.entries(styles)
6
+ .map(([k, v]) => `${k}: ${v};`)
7
+ .join(' ');
8
+ return `style="${rules}"`;
9
+ }
10
+ exports.inlineStyle = inlineStyle;
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "../types/attributes.type";
2
+ export declare function selfClosingElement(tag: string, attributes: TAttributes): string;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.selfClosingElement = void 0;
4
+ const element_function_1 = require("./element.function");
5
+ function selfClosingElement(tag, attributes) {
6
+ return (0, element_function_1.element)(tag, [], attributes).replace(`></${tag}>`, '/>');
7
+ }
8
+ exports.selfClosingElement = selfClosingElement;
@@ -0,0 +1,11 @@
1
+ export declare const buttonStyles: {
2
+ padding: string;
3
+ border: string;
4
+ 'border-radius': string;
5
+ display: string;
6
+ 'font-weight': string;
7
+ 'text-align': string;
8
+ 'text-decoration': string;
9
+ 'box-sizing': string;
10
+ color: string;
11
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buttonStyles = void 0;
4
+ exports.buttonStyles = {
5
+ padding: '1rem 1.5rem',
6
+ border: 'solid 1px',
7
+ 'border-radius': '4px',
8
+ display: 'inline-block',
9
+ 'font-weight': '600',
10
+ 'text-align': 'center',
11
+ 'text-decoration': 'none',
12
+ 'box-sizing': 'border-box',
13
+ color: 'inherit'
14
+ };
@@ -0,0 +1,7 @@
1
+ export declare const fontStyles: {
2
+ 'font-family': string;
3
+ 'font-size': string;
4
+ '-webkit-font-smoothing': string;
5
+ '-moz-osx-font-smoothing': string;
6
+ color: string;
7
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fontStyles = void 0;
4
+ exports.fontStyles = {
5
+ 'font-family': `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important`,
6
+ 'font-size': `1rem;`,
7
+ '-webkit-font-smoothing': `antialiased`,
8
+ '-moz-osx-font-smoothing': `grayscale`,
9
+ color: 'rgba(0, 0, 0, 0.5) !important',
10
+ };
@@ -0,0 +1 @@
1
+ export declare function table(columns: string[], rows: Array<any[]>): string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.table = void 0;
4
+ const elements_1 = require("./primitives/elements");
5
+ const padding = '0.5rem';
6
+ const color = 'inherit';
7
+ function table(columns, rows) {
8
+ return (0, elements_1.tab)([
9
+ (0, elements_1.thead)([(0, elements_1.tr)(columns.map((c) => (0, elements_1.th)([c], { style: { 'text-align': 'left', padding, color } })), { style: { 'border-bottom-color': color, 'border-bottom-style': 'solid', 'border-top-style': 'none', 'border-left-style': 'none', 'border-right-style': 'none' } })]),
10
+ (0, elements_1.tbody)(rows.map((row, i) => (0, elements_1.tr)(row.map((cell) => (0, elements_1.td)([cell], { style: { padding, color } })), { style: { 'background-color': i % 2 ? '' : 'rgba(0, 0, 0, 0.2)', padding, color } }))),
11
+ ], { style: { 'border-collapse': 'collapse', width: '100%', color } });
12
+ }
13
+ exports.table = table;
@@ -0,0 +1,4 @@
1
+ export type TAttributes = Record<string, any> & {
2
+ cssClass?: string;
3
+ style?: Record<string, string>;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export type TElementRenderer = (content: Array<string | number>, attributes?: TAttributes) => string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export type TSelfClosingElementRenderer = (attributes?: TAttributes) => string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ export * from './lib/deprecated/a.function';
2
+ export * from './lib/deprecated/html-element-renderer.type';
3
+ export * from './lib/deprecated/html.function';
4
+ export * from './lib/deprecated/login-button.function';
5
+ export * from './lib/deprecated/self-closing-html-element-renderer.type';
6
+ export * from './lib/deprecated/self-closing-tag.function';
7
+ export * from './lib/deprecated/tag.function';
8
+ export * from './lib/deprecated/tags';
9
+ export * from './lib/primitives/element.function';
10
+ export * from './lib/primitives/elements';
11
+ export * from './lib/primitives/format-attributes.function';
12
+ export * from './lib/primitives/inline-style.function';
13
+ export * from './lib/primitives/self-closing-element.function';
14
+ export * from './lib/styles/button-styles.constant';
15
+ export * from './lib/styles/font-styles.constant';
16
+ export * from './lib/types/attributes.type';
17
+ export * from './lib/types/element-renderer.type';
18
+ export * from './lib/types/self-closing-element-renderer.type';
19
+ export * from './lib/email-body.function';
20
+ export * from './lib/table.function';
@@ -0,0 +1 @@
1
+ export declare function a(text: string, href: string, cssClass?: string): string;
@@ -0,0 +1 @@
1
+ export type THtmlElementRenderer = (content: Array<string | number>, cssClass?: string, attributes?: Record<string, any>, styles?: Record<string, string>) => string;
@@ -0,0 +1 @@
1
+ export declare function html(title: string, subtitle: string, markup: Array<string | number>, logoUrl?: string): string;
@@ -0,0 +1 @@
1
+ export declare function loginButton(text: string, href: string, extraStyles?: Record<string, string>): string;
@@ -0,0 +1 @@
1
+ export type TSelfClosingHtmlElementRenderer = (cssClass?: string, attributes?: Record<string, any>, styles?: Record<string, string>) => string;
@@ -0,0 +1 @@
1
+ export declare function selfClosingTag(tag: string, cssClass?: string, attributes?: Record<string, any>, styles?: Record<string, string>): string;
@@ -0,0 +1 @@
1
+ export declare function tag(tag: string, content: Array<string | number>, cssClass?: string, attributes?: Record<string, any>, styles?: Record<string, string>): string;
@@ -0,0 +1,24 @@
1
+ import { THtmlElementRenderer } from "./html-element-renderer.type";
2
+ import { TSelfClosingHtmlElementRenderer } from "./self-closing-html-element-renderer.type";
3
+ export declare const _body: THtmlElementRenderer;
4
+ export declare const _div: THtmlElementRenderer;
5
+ export declare const _h1: THtmlElementRenderer;
6
+ export declare const _h2: THtmlElementRenderer;
7
+ export declare const _h3: THtmlElementRenderer;
8
+ export declare const _h4: THtmlElementRenderer;
9
+ export declare const _h5: THtmlElementRenderer;
10
+ export declare const _h6: THtmlElementRenderer;
11
+ export declare const _head: THtmlElementRenderer;
12
+ export declare const _header: THtmlElementRenderer;
13
+ export declare const _htm: THtmlElementRenderer;
14
+ export declare const _img: TSelfClosingHtmlElementRenderer;
15
+ export declare const _main: THtmlElementRenderer;
16
+ export declare const _p: THtmlElementRenderer;
17
+ export declare const _pre: THtmlElementRenderer;
18
+ export declare const _tab: THtmlElementRenderer;
19
+ export declare const _tbody: THtmlElementRenderer;
20
+ export declare const _td: THtmlElementRenderer;
21
+ export declare const _th: THtmlElementRenderer;
22
+ export declare const _thead: THtmlElementRenderer;
23
+ export declare const _tr: THtmlElementRenderer;
24
+ export declare const _style: any;
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from './types/attributes.type';
2
+ export declare function emailBody(title: string, subtitle: string, markup: Array<string | number>, logoUrl?: string, extraStyles?: TAttributes['style']): string;
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "../types/attributes.type";
2
+ export declare function element(tag: string, content: Array<string | number>, attributes?: TAttributes): string;
@@ -0,0 +1,26 @@
1
+ import { TElementRenderer } from "../types/element-renderer.type";
2
+ import { TSelfClosingElementRenderer } from "../types/self-closing-element-renderer.type";
3
+ export declare const anchor: TElementRenderer;
4
+ export declare const body: TElementRenderer;
5
+ export declare const button: TElementRenderer;
6
+ export declare const div: TElementRenderer;
7
+ export declare const h1: TElementRenderer;
8
+ export declare const h2: TElementRenderer;
9
+ export declare const h3: TElementRenderer;
10
+ export declare const h4: TElementRenderer;
11
+ export declare const h5: TElementRenderer;
12
+ export declare const h6: TElementRenderer;
13
+ export declare const head: TElementRenderer;
14
+ export declare const header: TElementRenderer;
15
+ export declare const htm: TElementRenderer;
16
+ export declare const img: TSelfClosingElementRenderer;
17
+ export declare const main: TElementRenderer;
18
+ export declare const p: TElementRenderer;
19
+ export declare const pre: TElementRenderer;
20
+ export declare const tab: TElementRenderer;
21
+ export declare const tbody: TElementRenderer;
22
+ export declare const td: TElementRenderer;
23
+ export declare const th: TElementRenderer;
24
+ export declare const thead: TElementRenderer;
25
+ export declare const tr: TElementRenderer;
26
+ export declare const style: any;
@@ -0,0 +1 @@
1
+ export declare function formatAttributes(attributes: Record<string, any>): string;
@@ -0,0 +1 @@
1
+ export declare function inlineStyle(styles: Record<string, string>): string;
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "../types/attributes.type";
2
+ export declare function selfClosingElement(tag: string, attributes: TAttributes): string;
@@ -0,0 +1,11 @@
1
+ export declare const buttonStyles: {
2
+ padding: string;
3
+ border: string;
4
+ 'border-radius': string;
5
+ display: string;
6
+ 'font-weight': string;
7
+ 'text-align': string;
8
+ 'text-decoration': string;
9
+ 'box-sizing': string;
10
+ color: string;
11
+ };
@@ -0,0 +1,7 @@
1
+ export declare const fontStyles: {
2
+ 'font-family': string;
3
+ 'font-size': string;
4
+ '-webkit-font-smoothing': string;
5
+ '-moz-osx-font-smoothing': string;
6
+ color: string;
7
+ };
@@ -0,0 +1 @@
1
+ export declare function table(columns: string[], rows: Array<any[]>): string;
@@ -0,0 +1,4 @@
1
+ export type TAttributes = Record<string, any> & {
2
+ cssClass?: string;
3
+ style?: Record<string, string>;
4
+ };
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export type TElementRenderer = (content: Array<string | number>, attributes?: TAttributes) => string;
@@ -0,0 +1,2 @@
1
+ import { TAttributes } from "./attributes.type";
2
+ export type TSelfClosingElementRenderer = (attributes?: TAttributes) => string;
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
- "name": "@onivoro/server-html",
3
- "version": "0.0.5",
4
- "main": "./src/index.js",
5
- "type": "commonjs"
6
- }
2
+ "name": "@onivoro/server-html",
3
+ "version": "0.1.1",
4
+ "repository": {
5
+ "url": "git+https://github.com/onivoro/server-html.git"
6
+ },
7
+ "main": "dist/cjs/index.js",
8
+ "module": "dist/esm/index.js",
9
+ "types": "dist/types/index.d.ts",
10
+ "files": [
11
+ "dist/*"
12
+ ],
13
+ "scripts": {
14
+ "onx": "onx",
15
+ "build": "onx Build",
16
+ "deploy": "onx Publish",
17
+ "test": "onx Test",
18
+ "update": "onx Update"
19
+ },
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/types/index.d.ts",
23
+ "require": "./dist/cjs/index.js",
24
+ "import": "./dist/esm/index.js",
25
+ "default": "./dist/esm/lib.js"
26
+ }
27
+ },
28
+ "onx": {
29
+ "platform": "server"
30
+ },
31
+ "devDependencies": {
32
+ "@onivoro/cli": "*",
33
+ "@types/jest": "*",
34
+ "@types/node": "18.19.1",
35
+ "typescript": "*"
36
+ },
37
+ "engines": {
38
+ "node": "18.19.1",
39
+ "npm": "10.2.4"
40
+ }
41
+ }
package/README.md DELETED
@@ -1,11 +0,0 @@
1
- # server-html
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Running unit tests
6
-
7
- Run `nx test server-html` to execute the unit tests via [Jest](https://jestjs.io).
8
-
9
- ## Running lint
10
-
11
- Run `nx lint server-html` to execute the lint via [ESLint](https://eslint.org/).
package/src/index.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export * from './lib/a.function';
2
- export * from './lib/attributes.type';
3
- export * from './lib/element.function';
4
- export * from './lib/elements';
5
- export * from './lib/element-renderer.type';
6
- export * from './lib/email-body.function';
7
- export * from './lib/format-attributes.function';
8
- export * from './lib/html-element-renderer.type';
9
- export * from './lib/html.function';
10
- export * from './lib/inline-style.function';
11
- export * from './lib/login-button.function';
12
- export * from './lib/self-closing-element-renderer.type';
13
- export * from './lib/self-closing-element.function';
14
- export * from './lib/self-closing-html-element-renderer.type';
15
- export * from './lib/self-closing-tag.function';
16
- export * from './lib/table.function';
17
- export * from './lib/tag.function';
18
- export * from './lib/tags';
package/src/index.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./lib/a.function"), exports);
5
- tslib_1.__exportStar(require("./lib/attributes.type"), exports);
6
- tslib_1.__exportStar(require("./lib/element.function"), exports);
7
- tslib_1.__exportStar(require("./lib/elements"), exports);
8
- tslib_1.__exportStar(require("./lib/element-renderer.type"), exports);
9
- tslib_1.__exportStar(require("./lib/email-body.function"), exports);
10
- tslib_1.__exportStar(require("./lib/format-attributes.function"), exports);
11
- tslib_1.__exportStar(require("./lib/html-element-renderer.type"), exports);
12
- tslib_1.__exportStar(require("./lib/html.function"), exports);
13
- tslib_1.__exportStar(require("./lib/inline-style.function"), exports);
14
- tslib_1.__exportStar(require("./lib/login-button.function"), exports);
15
- tslib_1.__exportStar(require("./lib/self-closing-element-renderer.type"), exports);
16
- tslib_1.__exportStar(require("./lib/self-closing-element.function"), exports);
17
- tslib_1.__exportStar(require("./lib/self-closing-html-element-renderer.type"), exports);
18
- tslib_1.__exportStar(require("./lib/self-closing-tag.function"), exports);
19
- tslib_1.__exportStar(require("./lib/table.function"), exports);
20
- tslib_1.__exportStar(require("./lib/tag.function"), exports);
21
- tslib_1.__exportStar(require("./lib/tags"), exports);
22
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/server-html/src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,gEAAsC;AACtC,iEAAuC;AACvC,yDAA+B;AAC/B,sEAA4C;AAC5C,oEAA0C;AAC1C,2EAAiD;AACjD,2EAAiD;AACjD,8DAAoC;AACpC,sEAA4C;AAC5C,sEAA4C;AAC5C,mFAAyD;AACzD,8EAAoD;AACpD,wFAA8D;AAC9D,0EAAgD;AAChD,+DAAqC;AACrC,6DAAmC;AACnC,qDAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"a.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/a.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,CAAC,CAAC,IAAY,EAAE,IAAY,EAAE,QAAiB;IAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,UAAU,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACvD,OAAO,4BAA4B,IAAI,KAAK,QAAQ,IAAI,IAAI,MAAM,CAAC;AACrE,CAAC;AAHD,cAGC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"attributes.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/attributes.type.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"element-renderer.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/element-renderer.type.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { TAttributes } from "./attributes.type";
2
- export declare function element(tag: string, content: Array<string | number>, attributes: TAttributes): string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"element.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/element.function.ts"],"names":[],"mappings":";;;AACA,6EAAgE;AAChE,mEAAsD;AAEtD,SAAgB,OAAO,CACnB,GAAW,EACX,OAA+B,EAC/B,UAAuB;IAEvB,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,UAAU,IAAI,EAAE,CAAC;IACxE,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,WAAW,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAA,6CAAgB,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,IAAA,mCAAW,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEvD,OAAO,IAAI,GAAG,GAAG,QAAQ,GAAG,aAAa,GAAG,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC;AAC1F,CAAC;AAXD,0BAWC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"elements.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/elements.ts"],"names":[],"mappings":";;;AACA,yDAA6C;AAE7C,mFAAqE;AAExD,QAAA,MAAM,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACnD,QAAA,IAAI,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,QAAA,GAAG,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,QAAA,EAAE,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChD,QAAA,EAAE,GAAqB,0BAAO,CAAC,IA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E,IAAI,CAAC,CAAC;AAChD,QAAA,KAAK,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACtD,QAAA,EAAE,GAAqB,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAEhD,QAAA,KAAK,GAAG,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"email-body.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/email-body.function.ts"],"names":[],"mappings":";;;AACA,yCAAyC;AAEzC,SAAgB,SAAS,CACvB,KAAa,EACb,QAAgB,EAChB,MAA8B,EAC9B,OAAgB,EAChB,cAAoC,EAAE;IAEtC,OAAO,IAAA,cAAG,EAAC;QACT,IAAA,cAAG,EAAC;YACF,IAAA,cAAG,EACD;gBACE,OAAO;oBACL,CAAC,CAAC,sCAAsC,OAAO,MAAM;oBACrD,CAAC,CAAC,SAAS;gBACb,KAAK,CAAC,CAAC,CAAC,IAAA,aAAE,EAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC/B,QAAQ,CAAC,CAAC,CAAC,IAAA,aAAE,EAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;aACtC,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB;YACD,IAAA,cAAG,EAAC,MAAM,CAAC;SACZ,EAAE;YACD,KAAK,EAAE;gBACL,aAAa,EAAE,0JAA0J;gBACzK,WAAW,EAAE,OAAO;gBACpB,wBAAwB,EAAE,aAAa;gBACvC,yBAAyB,EAAE,WAAW;gBACtC,KAAK,EAAE,+BAA+B;gBACtC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC;aACvB;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AA9BD,8BA8BC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-attributes.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/format-attributes.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB,CAAC,UAA+B;IAC5D,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;SAC5B,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;SAC9B,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC;AAJD,4CAIC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"html-element-renderer.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/html-element-renderer.type.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/html.function.ts"],"names":[],"mappings":";;;AAAA,iCAA4I;AAE5I,SAAgB,IAAI,CAClB,KAAa,EACb,QAAgB,EAChB,MAA8B,EAC9B,OAAgB;IAEhB,OAAO,IAAA,WAAG,EAAC;QACT,IAAA,YAAI,EAAC;YACH,IAAA,aAAK,EAAC;gBACJ,QAAQ;gBACR,gBAAgB;gBAChB,6JAA6J;gBAC7J,kBAAkB;gBAClB,sCAAsC;gBACtC,qCAAqC;gBACrC,yBAAyB;gBACzB,GAAG;gBACH,4DAA4D;gBAC5D,2CAA2C;gBAC3C,kDAAkD;gBAClD,sGAAsG;gBACtG,8GAA8G;gBAC9G,wDAAwD;gBACxD,wDAAwD;gBACxD,2HAA2H;gBAC3H,yBAAyB;gBACzB,yCAAyC;gBACzC,gFAAgF;gBAChF,iHAAiH;aAClH,CAAC;SACH,CAAC;QACF,IAAA,YAAI,EAAC;YACH,IAAA,cAAM,EACJ;gBACE,OAAO;oBACL,CAAC,CAAC,sCAAsC,OAAO,MAAM;oBACrD,CAAC,CAAC,SAAS;gBACb,IAAA,UAAE,EAAC,CAAC,KAAK,CAAC,CAAC;gBACX,IAAA,UAAE,EAAC,CAAC,QAAQ,CAAC,CAAC;aACf,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB;YACD,IAAA,YAAI,EAAC,MAAM,CAAC;SACb,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AA5CD,oBA4CC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"inline-style.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/inline-style.function.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,MAA8B;IACxD,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;SAC9B,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,UAAU,KAAK,GAAG,CAAC;AAC5B,CAAC;AALD,kCAKC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"login-button.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/login-button.function.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY,EAAE,WAAoC;IAC1F,OAAO,IAAA,iBAAM,EAAC,CAAC,IAAI,CAAC,EAAE;QACpB,IAAI;QACJ,KAAK,EAAE;YACL,OAAO,EAAE,aAAa;YACtB,MAAM,EAAE,WAAW;YACnB,eAAe,EAAE,KAAK;YACtB,OAAO,EAAE,cAAc;YACvB,YAAY,EAAE,QAAQ;YACtB,iBAAiB,EAAE,MAAM;YACzB,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC;SACvB;KACF,CAAC,CAAC;AACL,CAAC;AAbD,kCAaC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"self-closing-element-renderer.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/self-closing-element-renderer.type.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"self-closing-element.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/self-closing-element.function.ts"],"names":[],"mappings":";;;AACA,yDAA6C;AAE7C,SAAgB,kBAAkB,CAC9B,GAAW,EACX,UAAuB;IAEvB,OAAO,IAAA,0BAAO,EACV,GAAG,EACH,EAAE,EACF,UAAU,CACb,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AACjC,CAAC;AATD,gDASC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=self-closing-html-element-renderer.type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"self-closing-html-element-renderer.type.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/self-closing-html-element-renderer.type.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"self-closing-tag.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/self-closing-tag.function.ts"],"names":[],"mappings":";;;AAAA,iDAAoD;AAEpD,SAAgB,cAAc,CAC1B,GAAW,EACX,QAAiB,EACjB,UAAgC,EAChC,MAA+B;IAE/B,OAAO,IAAA,kBAAW,EACd,GAAG,EACH,EAAE,EACF,QAAQ,EACR,UAAU,EACV,MAAM,CACT,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AACjC,CAAC;AAbD,wCAaC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.table = void 0;
4
- const tags_1 = require("./tags");
5
- function table(columns, rows) {
6
- return (0, tags_1._tab)([
7
- (0, tags_1._thead)([(0, tags_1._tr)(columns.map((c) => (0, tags_1._th)([c])))]),
8
- (0, tags_1._tbody)(rows.map((row, i) => (0, tags_1._tr)(row.map((cell) => (0, tags_1._td)([cell])), i % 2 ? 'bg-gray' : ''))),
9
- ]);
10
- }
11
- exports.table = table;
12
- //# sourceMappingURL=table.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/table.function.ts"],"names":[],"mappings":";;;AAAA,iCAAwG;AAExG,SAAgB,KAAK,CAAC,OAAiB,EAAE,IAAkB;IACzD,OAAO,IAAA,WAAG,EAAC;QACT,IAAA,aAAK,EAAC,CAAC,IAAA,UAAE,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,UAAE,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAA,aAAK,EACH,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAClB,IAAA,UAAE,EACA,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,UAAE,EAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAC7B,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACvB,CACF,CACF;KACF,CAAC,CAAC;AACL,CAAC;AAZD,sBAYC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag.function.js","sourceRoot":"","sources":["../../../../../libs/server-html/src/lib/tag.function.ts"],"names":[],"mappings":";;;AAAA,6EAAgE;AAChE,mEAAsD;AAEtD,SAAgB,GAAG,CACf,GAAW,EACX,OAA+B,EAC/B,QAAiB,EACjB,UAAgC,EAChC,MAA+B;IAE/B,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,WAAW,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,MAAM,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,IAAA,6CAAgB,EAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3E,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,IAAA,mCAAW,EAAC,MAAM,CAAC,EAAE,CAA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