@sonicjs-cms/core 2.19.0 → 3.0.0-beta.3
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/README.md +4 -3
- package/dist/admin-documents-form.template-KN7JF66Q.cjs +19 -0
- package/dist/{admin-layout-catalyst.template-UMTIN66R.js.map → admin-documents-form.template-KN7JF66Q.cjs.map} +1 -1
- package/dist/admin-documents-form.template-NLSI6Z42.js +6 -0
- package/dist/{admin-layout-catalyst.template-HFD37TY5.cjs.map → admin-documents-form.template-NLSI6Z42.js.map} +1 -1
- package/dist/admin-layout-catalyst.template-WHJGSWWD.js +7 -0
- package/dist/admin-layout-catalyst.template-WHJGSWWD.js.map +1 -0
- package/dist/admin-layout-catalyst.template-ZK5HD545.cjs +17 -0
- package/dist/admin-layout-catalyst.template-ZK5HD545.cjs.map +1 -0
- package/dist/app-Bo0X1OWX.d.ts +1268 -0
- package/dist/app-Do66yCcV.d.cts +1268 -0
- package/dist/cache-DDARE4QE.js +4 -0
- package/dist/cache-DDARE4QE.js.map +1 -0
- package/dist/cache-LVYS4BPL.cjs +33 -0
- package/dist/cache-LVYS4BPL.cjs.map +1 -0
- package/dist/chunk-2CB4KY7I.cjs +771 -0
- package/dist/chunk-2CB4KY7I.cjs.map +1 -0
- package/dist/chunk-2JTWQZHG.cjs +276 -0
- package/dist/chunk-2JTWQZHG.cjs.map +1 -0
- package/dist/{chunk-55RDMDOP.js → chunk-3TB6AT6X.js} +148 -55
- package/dist/chunk-3TB6AT6X.js.map +1 -0
- package/dist/{chunk-E4YFJBM2.cjs → chunk-673S7EBY.cjs} +621 -829
- package/dist/chunk-673S7EBY.cjs.map +1 -0
- package/dist/{chunk-ON5ZMSU4.js → chunk-6JQOUUOB.js} +3 -3
- package/dist/chunk-6JQOUUOB.js.map +1 -0
- package/dist/chunk-7LHUVREV.cjs +158 -0
- package/dist/chunk-7LHUVREV.cjs.map +1 -0
- package/dist/chunk-AI663NBO.js +821 -0
- package/dist/chunk-AI663NBO.js.map +1 -0
- package/dist/chunk-BDDABDAB.cjs +1149 -0
- package/dist/chunk-BDDABDAB.cjs.map +1 -0
- package/dist/chunk-BLMTL57B.js +767 -0
- package/dist/chunk-BLMTL57B.js.map +1 -0
- package/dist/{chunk-ABB34XUS.cjs → chunk-CHCBHIBM.cjs} +667 -19
- package/dist/chunk-CHCBHIBM.cjs.map +1 -0
- package/dist/chunk-DNQCEKUK.cjs +327 -0
- package/dist/chunk-DNQCEKUK.cjs.map +1 -0
- package/dist/chunk-EF2NQUIQ.js +323 -0
- package/dist/chunk-EF2NQUIQ.js.map +1 -0
- package/dist/chunk-GCDZZNIN.js +192 -0
- package/dist/chunk-GCDZZNIN.js.map +1 -0
- package/dist/{chunk-XWIA3HVX.js → chunk-HDWE5FRJ.js} +6 -1249
- package/dist/chunk-HDWE5FRJ.js.map +1 -0
- package/dist/chunk-HIKBY7MS.cjs +70 -0
- package/dist/chunk-HIKBY7MS.cjs.map +1 -0
- package/dist/chunk-IESEVHXL.js +66 -0
- package/dist/chunk-IESEVHXL.js.map +1 -0
- package/dist/chunk-IVPRUGTY.js +242 -0
- package/dist/chunk-IVPRUGTY.js.map +1 -0
- package/dist/{chunk-JZVHLLSI.cjs → chunk-IXUHXTHW.cjs} +2 -151
- package/dist/chunk-IXUHXTHW.cjs.map +1 -0
- package/dist/{chunk-7A4CB7T3.cjs → chunk-J5DCX3F6.cjs} +509 -91
- package/dist/chunk-J5DCX3F6.cjs.map +1 -0
- package/dist/chunk-J6JTWD2A.cjs +100 -0
- package/dist/chunk-J6JTWD2A.cjs.map +1 -0
- package/dist/chunk-JEQ7FLOD.cjs +199 -0
- package/dist/chunk-JEQ7FLOD.cjs.map +1 -0
- package/dist/chunk-K25XHMM3.js +566 -0
- package/dist/chunk-K25XHMM3.js.map +1 -0
- package/dist/{chunk-R4FOLLFB.cjs → chunk-LO6MEPRW.cjs} +8730 -11520
- package/dist/chunk-LO6MEPRW.cjs.map +1 -0
- package/dist/chunk-MHP7HYTT.js +273 -0
- package/dist/chunk-MHP7HYTT.js.map +1 -0
- package/dist/chunk-MP3Q2W76.js +387 -0
- package/dist/chunk-MP3Q2W76.js.map +1 -0
- package/dist/{chunk-OHYBNCVL.cjs → chunk-MVIZJOO5.cjs} +10 -1256
- package/dist/chunk-MVIZJOO5.cjs.map +1 -0
- package/dist/{chunk-UYJ6TJHX.cjs → chunk-NAVPFIG5.cjs} +148 -55
- package/dist/chunk-NAVPFIG5.cjs.map +1 -0
- package/dist/chunk-NUKJ54GA.cjs +245 -0
- package/dist/chunk-NUKJ54GA.cjs.map +1 -0
- package/dist/{chunk-BU7SFHGP.js → chunk-QZGABF2M.js} +3 -149
- package/dist/chunk-QZGABF2M.js.map +1 -0
- package/dist/{chunk-JZV22DEV.js → chunk-RJV6UXLZ.js} +611 -817
- package/dist/chunk-RJV6UXLZ.js.map +1 -0
- package/dist/chunk-RNZFGN4R.js +88 -0
- package/dist/chunk-RNZFGN4R.js.map +1 -0
- package/dist/{chunk-TFNTM3OA.js → chunk-SL6XS6YT.js} +645 -15
- package/dist/chunk-SL6XS6YT.js.map +1 -0
- package/dist/{chunk-OCL3HMEG.js → chunk-SO2T3OXR.js} +7004 -9807
- package/dist/chunk-SO2T3OXR.js.map +1 -0
- package/dist/chunk-VQHAJUZZ.cjs +408 -0
- package/dist/chunk-VQHAJUZZ.cjs.map +1 -0
- package/dist/{chunk-4NPCDK6B.js → chunk-VZ3NHR5Z.js} +505 -90
- package/dist/chunk-VZ3NHR5Z.js.map +1 -0
- package/dist/{chunk-4ZSNJDLS.cjs → chunk-WULONYGB.cjs} +9 -9
- package/dist/chunk-WULONYGB.cjs.map +1 -0
- package/dist/chunk-XFQHK64T.js +154 -0
- package/dist/chunk-XFQHK64T.js.map +1 -0
- package/dist/chunk-YA3TJ65D.cjs +575 -0
- package/dist/chunk-YA3TJ65D.cjs.map +1 -0
- package/dist/chunk-YP7GW2G5.cjs +866 -0
- package/dist/chunk-YP7GW2G5.cjs.map +1 -0
- package/dist/{chunk-QFWHAFEO.js → chunk-ZEZ245PW.js} +148 -858
- package/dist/chunk-ZEZ245PW.js.map +1 -0
- package/dist/{collection-config-B4PG-AaF.d.cts → collection-config-JgHOpFCG.d.cts} +30 -2
- package/dist/{collection-config-B4PG-AaF.d.ts → collection-config-JgHOpFCG.d.ts} +30 -2
- package/dist/config-HFXANXCC.js +6 -0
- package/dist/config-HFXANXCC.js.map +1 -0
- package/dist/config-ON6FNMYX.cjs +19 -0
- package/dist/config-ON6FNMYX.cjs.map +1 -0
- package/dist/define-plugin-BzNHc1ZI.d.ts +1321 -0
- package/dist/define-plugin-IWDKYaVm.d.cts +1321 -0
- package/dist/document-projection-TDWRJX3Z.cjs +13 -0
- package/dist/document-projection-TDWRJX3Z.cjs.map +1 -0
- package/dist/document-projection-YYMC6I4U.js +4 -0
- package/dist/document-projection-YYMC6I4U.js.map +1 -0
- package/dist/index.cjs +13734 -4328
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +329 -492
- package/dist/index.d.ts +329 -492
- package/dist/index.js +13385 -3998
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +36 -32
- package/dist/middleware.d.cts +50 -7
- package/dist/middleware.d.ts +50 -7
- package/dist/middleware.js +7 -3
- package/dist/migrations-DK2YFPLR.js +4 -0
- package/dist/{migrations-H5IXZNCO.js.map → migrations-DK2YFPLR.js.map} +1 -1
- package/dist/migrations-YHNHTJOO.cjs +13 -0
- package/dist/{migrations-566IIPS2.cjs.map → migrations-YHNHTJOO.cjs.map} +1 -1
- package/dist/{plugin-bootstrap-DfVerYV4.d.cts → plugin-bootstrap-B8ThJU21.d.cts} +4315 -1661
- package/dist/{plugin-bootstrap-P_ciLp_C.d.ts → plugin-bootstrap-qu8hJgUt.d.ts} +4315 -1661
- package/dist/plugins.cjs +171 -12
- package/dist/plugins.d.cts +36 -2
- package/dist/plugins.d.ts +36 -2
- package/dist/plugins.js +5 -2
- package/dist/rbac-O73MFKDA.js +5 -0
- package/dist/rbac-O73MFKDA.js.map +1 -0
- package/dist/rbac-VONLJJKB.cjs +14 -0
- package/dist/rbac-VONLJJKB.cjs.map +1 -0
- package/dist/routes.cjs +41 -45
- package/dist/routes.d.cts +56 -146
- package/dist/routes.d.ts +56 -146
- package/dist/routes.js +17 -9
- package/dist/services.cjs +39 -72
- package/dist/services.d.cts +79 -54
- package/dist/services.d.ts +79 -54
- package/dist/services.js +6 -3
- package/dist/templates.cjs +17 -29
- package/dist/templates.d.cts +1 -66
- package/dist/templates.d.ts +1 -66
- package/dist/templates.js +3 -3
- package/dist/types-Dea1eNxU.d.cts +286 -0
- package/dist/types-Dea1eNxU.d.ts +286 -0
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.cjs +18 -17
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -1
- package/migrations/0001_core.sql +184 -0
- package/migrations/0002_documents.sql +163 -0
- package/package.json +12 -7
- package/dist/admin-layout-catalyst.template-HFD37TY5.cjs +0 -17
- package/dist/admin-layout-catalyst.template-UMTIN66R.js +0 -7
- package/dist/app-C9esKLmh.d.cts +0 -112
- package/dist/app-C9esKLmh.d.ts +0 -112
- package/dist/chunk-4NPCDK6B.js.map +0 -1
- package/dist/chunk-4ZSNJDLS.cjs.map +0 -1
- package/dist/chunk-55RDMDOP.js.map +0 -1
- package/dist/chunk-635JAMSE.cjs +0 -653
- package/dist/chunk-635JAMSE.cjs.map +0 -1
- package/dist/chunk-7A4CB7T3.cjs.map +0 -1
- package/dist/chunk-ABB34XUS.cjs.map +0 -1
- package/dist/chunk-BU7SFHGP.js.map +0 -1
- package/dist/chunk-E4YFJBM2.cjs.map +0 -1
- package/dist/chunk-EXNEW5US.js +0 -648
- package/dist/chunk-EXNEW5US.js.map +0 -1
- package/dist/chunk-JZV22DEV.js.map +0 -1
- package/dist/chunk-JZVHLLSI.cjs.map +0 -1
- package/dist/chunk-OCL3HMEG.js.map +0 -1
- package/dist/chunk-OHYBNCVL.cjs.map +0 -1
- package/dist/chunk-ON5ZMSU4.js.map +0 -1
- package/dist/chunk-QFWHAFEO.js.map +0 -1
- package/dist/chunk-R4FOLLFB.cjs.map +0 -1
- package/dist/chunk-RLMUFFUD.cjs +0 -2219
- package/dist/chunk-RLMUFFUD.cjs.map +0 -1
- package/dist/chunk-TFNTM3OA.js.map +0 -1
- package/dist/chunk-UYJ6TJHX.cjs.map +0 -1
- package/dist/chunk-WAEQXGCX.cjs +0 -1898
- package/dist/chunk-WAEQXGCX.cjs.map +0 -1
- package/dist/chunk-XWIA3HVX.js.map +0 -1
- package/dist/chunk-ZYAYUIZE.js +0 -2217
- package/dist/chunk-ZYAYUIZE.js.map +0 -1
- package/dist/migrations-566IIPS2.cjs +0 -13
- package/dist/migrations-H5IXZNCO.js +0 -4
- package/dist/plugin-manager-BoM3Q7o7.d.cts +0 -328
- package/dist/plugin-manager-Efx9RyDX.d.ts +0 -328
- package/migrations/001_initial_schema.sql +0 -170
- package/migrations/002_faq_plugin.sql +0 -86
- package/migrations/003_stage5_enhancements.sql +0 -121
- package/migrations/004_stage6_user_management.sql +0 -183
- package/migrations/005_stage7_workflow_automation.sql +0 -294
- package/migrations/006_plugin_system.sql +0 -155
- package/migrations/007_demo_login_plugin.sql +0 -23
- package/migrations/008_fix_slug_validation.sql +0 -22
- package/migrations/009_system_logging.sql +0 -57
- package/migrations/011_config_managed_collections.sql +0 -15
- package/migrations/012_testimonials_plugin.sql +0 -80
- package/migrations/013_code_examples_plugin.sql +0 -177
- package/migrations/014_fix_plugin_registry.sql +0 -88
- package/migrations/015_add_remaining_plugins.sql +0 -89
- package/migrations/016_remove_duplicate_cache_plugin.sql +0 -17
- package/migrations/017_auth_configurable_fields.sql +0 -49
- package/migrations/018_settings_table.sql +0 -23
- package/migrations/019_remove_blog_posts_collection.sql +0 -15
- package/migrations/020_add_email_plugin.sql +0 -22
- package/migrations/021_add_magic_link_auth_plugin.sql +0 -42
- package/migrations/022_add_tinymce_plugin.sql +0 -25
- package/migrations/023_add_easy_mdx_plugin.sql +0 -25
- package/migrations/024_add_quill_editor_plugin.sql +0 -25
- package/migrations/025_add_easymde_plugin.sql +0 -25
- package/migrations/026_add_otp_login.sql +0 -42
- package/migrations/027_fix_slug_field_type.sql +0 -18
- package/migrations/028_fix_slug_field_type_in_schemas.sql +0 -30
- package/migrations/029_add_forms_system.sql +0 -184
- package/migrations/030_add_turnstile_to_forms.sql +0 -14
- package/migrations/031_ai_search_plugin.sql +0 -45
- package/migrations/032_user_profiles.sql +0 -37
- package/migrations/033_form_content_integration.sql +0 -19
- package/migrations/034_security_audit_plugin.sql +0 -27
- package/migrations/035_user_profiles_data_column.sql +0 -16
- package/migrations/036_analytics_events.sql +0 -22
package/dist/templates.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkWULONYGB_cjs = require('./chunk-WULONYGB.cjs');
|
|
4
|
+
var chunkMVIZJOO5_cjs = require('./chunk-MVIZJOO5.cjs');
|
|
5
|
+
var chunkNAVPFIG5_cjs = require('./chunk-NAVPFIG5.cjs');
|
|
6
6
|
require('./chunk-MNWKYY5E.cjs');
|
|
7
7
|
require('./chunk-IGJUBJBW.cjs');
|
|
8
8
|
|
|
@@ -10,71 +10,59 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWULONYGB_cjs.renderFilterBar; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "renderFormsDocsPage", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWULONYGB_cjs.renderFormsDocsPage; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "renderFormsExamplesPage", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWULONYGB_cjs.renderFormsExamplesPage; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getConfirmationDialogScript", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMVIZJOO5_cjs.getConfirmationDialogScript; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "renderAdminLayout", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkMVIZJOO5_cjs.renderAdminLayout; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "renderAlert", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMVIZJOO5_cjs.renderAlert; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "renderCheckboxPage", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "renderCodeExamplesList", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkOHYBNCVL_cjs.renderCodeExamplesList; }
|
|
37
|
+
get: function () { return chunkMVIZJOO5_cjs.renderCheckboxPage; }
|
|
42
38
|
});
|
|
43
39
|
Object.defineProperty(exports, "renderConfirmationDialog", {
|
|
44
40
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "renderDesignPage", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunkOHYBNCVL_cjs.renderDesignPage; }
|
|
41
|
+
get: function () { return chunkMVIZJOO5_cjs.renderConfirmationDialog; }
|
|
50
42
|
});
|
|
51
43
|
Object.defineProperty(exports, "renderForm", {
|
|
52
44
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMVIZJOO5_cjs.renderForm; }
|
|
54
46
|
});
|
|
55
47
|
Object.defineProperty(exports, "renderFormField", {
|
|
56
48
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMVIZJOO5_cjs.renderFormField; }
|
|
58
50
|
});
|
|
59
51
|
Object.defineProperty(exports, "renderPagination", {
|
|
60
52
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMVIZJOO5_cjs.renderPagination; }
|
|
62
54
|
});
|
|
63
55
|
Object.defineProperty(exports, "renderTable", {
|
|
64
56
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "renderTestimonialsList", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () { return chunkOHYBNCVL_cjs.renderTestimonialsList; }
|
|
57
|
+
get: function () { return chunkMVIZJOO5_cjs.renderTable; }
|
|
70
58
|
});
|
|
71
59
|
Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
|
|
72
60
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkNAVPFIG5_cjs.renderAdminLayoutCatalyst; }
|
|
74
62
|
});
|
|
75
63
|
Object.defineProperty(exports, "renderLogo", {
|
|
76
64
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkNAVPFIG5_cjs.renderLogo; }
|
|
78
66
|
});
|
|
79
67
|
//# sourceMappingURL=templates.cjs.map
|
|
80
68
|
//# sourceMappingURL=templates.cjs.map
|
package/dist/templates.d.cts
CHANGED
|
@@ -56,16 +56,6 @@ interface LogoData {
|
|
|
56
56
|
}
|
|
57
57
|
declare function renderLogo(data?: LogoData): string;
|
|
58
58
|
|
|
59
|
-
interface DesignPageData {
|
|
60
|
-
user?: {
|
|
61
|
-
name: string;
|
|
62
|
-
email: string;
|
|
63
|
-
role: string;
|
|
64
|
-
};
|
|
65
|
-
version?: string;
|
|
66
|
-
}
|
|
67
|
-
declare function renderDesignPage(data: DesignPageData): string;
|
|
68
|
-
|
|
69
59
|
interface CheckboxPageData {
|
|
70
60
|
user?: {
|
|
71
61
|
name: string;
|
|
@@ -75,61 +65,6 @@ interface CheckboxPageData {
|
|
|
75
65
|
}
|
|
76
66
|
declare function renderCheckboxPage(data: CheckboxPageData): string;
|
|
77
67
|
|
|
78
|
-
interface Testimonial {
|
|
79
|
-
id: number;
|
|
80
|
-
author_name: string;
|
|
81
|
-
author_title?: string;
|
|
82
|
-
author_company?: string;
|
|
83
|
-
testimonial_text: string;
|
|
84
|
-
rating?: number;
|
|
85
|
-
isPublished: boolean;
|
|
86
|
-
sortOrder: number;
|
|
87
|
-
created_at: number;
|
|
88
|
-
updated_at: number;
|
|
89
|
-
}
|
|
90
|
-
interface TestimonialsListData {
|
|
91
|
-
testimonials: Testimonial[];
|
|
92
|
-
totalCount: number;
|
|
93
|
-
currentPage: number;
|
|
94
|
-
totalPages: number;
|
|
95
|
-
user?: {
|
|
96
|
-
name: string;
|
|
97
|
-
email: string;
|
|
98
|
-
role: string;
|
|
99
|
-
};
|
|
100
|
-
message?: string;
|
|
101
|
-
messageType?: 'success' | 'error' | 'warning' | 'info';
|
|
102
|
-
}
|
|
103
|
-
declare function renderTestimonialsList(data: TestimonialsListData): string;
|
|
104
|
-
|
|
105
|
-
interface CodeExample {
|
|
106
|
-
id: number;
|
|
107
|
-
title: string;
|
|
108
|
-
description?: string;
|
|
109
|
-
code: string;
|
|
110
|
-
language: string;
|
|
111
|
-
category?: string;
|
|
112
|
-
tags?: string;
|
|
113
|
-
isPublished: boolean;
|
|
114
|
-
sortOrder: number;
|
|
115
|
-
created_at: number;
|
|
116
|
-
updated_at: number;
|
|
117
|
-
}
|
|
118
|
-
interface CodeExamplesListData {
|
|
119
|
-
codeExamples: CodeExample[];
|
|
120
|
-
totalCount: number;
|
|
121
|
-
currentPage: number;
|
|
122
|
-
totalPages: number;
|
|
123
|
-
user?: {
|
|
124
|
-
name: string;
|
|
125
|
-
email: string;
|
|
126
|
-
role: string;
|
|
127
|
-
};
|
|
128
|
-
message?: string;
|
|
129
|
-
messageType?: 'success' | 'error' | 'warning' | 'info';
|
|
130
|
-
}
|
|
131
|
-
declare function renderCodeExamplesList(data: CodeExamplesListData): string;
|
|
132
|
-
|
|
133
68
|
interface FormsDocsPageData {
|
|
134
69
|
user?: {
|
|
135
70
|
name: string;
|
|
@@ -150,4 +85,4 @@ interface FormsExamplesPageData {
|
|
|
150
85
|
}
|
|
151
86
|
declare function renderFormsExamplesPage(data: FormsExamplesPageData): string;
|
|
152
87
|
|
|
153
|
-
export { type AdminLayoutCatalystData, type AdminLayoutData, type CheckboxPageData, type
|
|
88
|
+
export { type AdminLayoutCatalystData, type AdminLayoutData, type CheckboxPageData, type FormsDocsPageData, type FormsExamplesPageData, renderAdminLayout, renderAdminLayoutCatalyst, renderCheckboxPage, renderFormsDocsPage, renderFormsExamplesPage, renderLogo };
|
package/dist/templates.d.ts
CHANGED
|
@@ -56,16 +56,6 @@ interface LogoData {
|
|
|
56
56
|
}
|
|
57
57
|
declare function renderLogo(data?: LogoData): string;
|
|
58
58
|
|
|
59
|
-
interface DesignPageData {
|
|
60
|
-
user?: {
|
|
61
|
-
name: string;
|
|
62
|
-
email: string;
|
|
63
|
-
role: string;
|
|
64
|
-
};
|
|
65
|
-
version?: string;
|
|
66
|
-
}
|
|
67
|
-
declare function renderDesignPage(data: DesignPageData): string;
|
|
68
|
-
|
|
69
59
|
interface CheckboxPageData {
|
|
70
60
|
user?: {
|
|
71
61
|
name: string;
|
|
@@ -75,61 +65,6 @@ interface CheckboxPageData {
|
|
|
75
65
|
}
|
|
76
66
|
declare function renderCheckboxPage(data: CheckboxPageData): string;
|
|
77
67
|
|
|
78
|
-
interface Testimonial {
|
|
79
|
-
id: number;
|
|
80
|
-
author_name: string;
|
|
81
|
-
author_title?: string;
|
|
82
|
-
author_company?: string;
|
|
83
|
-
testimonial_text: string;
|
|
84
|
-
rating?: number;
|
|
85
|
-
isPublished: boolean;
|
|
86
|
-
sortOrder: number;
|
|
87
|
-
created_at: number;
|
|
88
|
-
updated_at: number;
|
|
89
|
-
}
|
|
90
|
-
interface TestimonialsListData {
|
|
91
|
-
testimonials: Testimonial[];
|
|
92
|
-
totalCount: number;
|
|
93
|
-
currentPage: number;
|
|
94
|
-
totalPages: number;
|
|
95
|
-
user?: {
|
|
96
|
-
name: string;
|
|
97
|
-
email: string;
|
|
98
|
-
role: string;
|
|
99
|
-
};
|
|
100
|
-
message?: string;
|
|
101
|
-
messageType?: 'success' | 'error' | 'warning' | 'info';
|
|
102
|
-
}
|
|
103
|
-
declare function renderTestimonialsList(data: TestimonialsListData): string;
|
|
104
|
-
|
|
105
|
-
interface CodeExample {
|
|
106
|
-
id: number;
|
|
107
|
-
title: string;
|
|
108
|
-
description?: string;
|
|
109
|
-
code: string;
|
|
110
|
-
language: string;
|
|
111
|
-
category?: string;
|
|
112
|
-
tags?: string;
|
|
113
|
-
isPublished: boolean;
|
|
114
|
-
sortOrder: number;
|
|
115
|
-
created_at: number;
|
|
116
|
-
updated_at: number;
|
|
117
|
-
}
|
|
118
|
-
interface CodeExamplesListData {
|
|
119
|
-
codeExamples: CodeExample[];
|
|
120
|
-
totalCount: number;
|
|
121
|
-
currentPage: number;
|
|
122
|
-
totalPages: number;
|
|
123
|
-
user?: {
|
|
124
|
-
name: string;
|
|
125
|
-
email: string;
|
|
126
|
-
role: string;
|
|
127
|
-
};
|
|
128
|
-
message?: string;
|
|
129
|
-
messageType?: 'success' | 'error' | 'warning' | 'info';
|
|
130
|
-
}
|
|
131
|
-
declare function renderCodeExamplesList(data: CodeExamplesListData): string;
|
|
132
|
-
|
|
133
68
|
interface FormsDocsPageData {
|
|
134
69
|
user?: {
|
|
135
70
|
name: string;
|
|
@@ -150,4 +85,4 @@ interface FormsExamplesPageData {
|
|
|
150
85
|
}
|
|
151
86
|
declare function renderFormsExamplesPage(data: FormsExamplesPageData): string;
|
|
152
87
|
|
|
153
|
-
export { type AdminLayoutCatalystData, type AdminLayoutData, type CheckboxPageData, type
|
|
88
|
+
export { type AdminLayoutCatalystData, type AdminLayoutData, type CheckboxPageData, type FormsDocsPageData, type FormsExamplesPageData, renderAdminLayout, renderAdminLayoutCatalyst, renderCheckboxPage, renderFormsDocsPage, renderFormsExamplesPage, renderLogo };
|
package/dist/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { renderFilterBar, renderFormsDocsPage, renderFormsExamplesPage } from './chunk-
|
|
2
|
-
export { getConfirmationDialogScript, renderAdminLayout, renderAlert, renderCheckboxPage,
|
|
3
|
-
export { renderAdminLayoutCatalyst, renderLogo } from './chunk-
|
|
1
|
+
export { renderFilterBar, renderFormsDocsPage, renderFormsExamplesPage } from './chunk-6JQOUUOB.js';
|
|
2
|
+
export { getConfirmationDialogScript, renderAdminLayout, renderAlert, renderCheckboxPage, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-HDWE5FRJ.js';
|
|
3
|
+
export { renderAdminLayoutCatalyst, renderLogo } from './chunk-3TB6AT6X.js';
|
|
4
4
|
import './chunk-TQABQWOP.js';
|
|
5
5
|
import './chunk-V4OQ3NZ2.js';
|
|
6
6
|
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed hook event catalog
|
|
3
|
+
*
|
|
4
|
+
* The single source of truth for which lifecycle events a plugin may subscribe
|
|
5
|
+
* to, and the payload shape each one carries. Subscribing through the typed
|
|
6
|
+
* facade (`createTypedHooks`) gives a plugin the narrowed payload type with no
|
|
7
|
+
* casting — TypeScript rejects a wrong field name at the `.on()` call site.
|
|
8
|
+
*
|
|
9
|
+
* Scope note: this catalog lists the events that are (or are being) dispatched
|
|
10
|
+
* in production. The legacy string-keyed `HOOKS` map in `../types` declared many
|
|
11
|
+
* more events than were ever fired; reconciling that list down to what actually
|
|
12
|
+
* dispatches is tracked in the plugin-overhaul plan. Add an event here only when
|
|
13
|
+
* a real dispatch site exists (or is landing in the same change).
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* The acting user on a hook event. ONE canonical shape across every event —
|
|
17
|
+
* always `id` (never `userId`), so a plugin reading `payload.user.id` works on
|
|
18
|
+
* content events and auth events alike.
|
|
19
|
+
*/
|
|
20
|
+
interface HookActor {
|
|
21
|
+
id: string;
|
|
22
|
+
email: string;
|
|
23
|
+
role?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Common shape for content lifecycle events. */
|
|
26
|
+
interface ContentEventPayload {
|
|
27
|
+
/** Collection / content-type slug the event is about. */
|
|
28
|
+
collection: string;
|
|
29
|
+
/** Content row id, when known (absent for pre-create events). */
|
|
30
|
+
id?: string;
|
|
31
|
+
/** The content data being read/written. Mutable by `before` handlers in the chain. */
|
|
32
|
+
data: Record<string, unknown>;
|
|
33
|
+
/** The acting user, when the event originates from an authenticated request. */
|
|
34
|
+
user?: HookActor;
|
|
35
|
+
}
|
|
36
|
+
/** Emitted after a user completes self-registration. */
|
|
37
|
+
interface AuthRegistrationCompletedPayload {
|
|
38
|
+
user: HookActor;
|
|
39
|
+
}
|
|
40
|
+
/** Emitted when a password reset is requested (carries the reset token internally). */
|
|
41
|
+
interface AuthPasswordResetRequestedPayload {
|
|
42
|
+
user: HookActor;
|
|
43
|
+
/** Single-use reset token. Never expose this in an API response. */
|
|
44
|
+
resetToken: string;
|
|
45
|
+
}
|
|
46
|
+
/** Emitted after a password reset is confirmed. */
|
|
47
|
+
interface AuthPasswordResetCompletedPayload {
|
|
48
|
+
user: HookActor;
|
|
49
|
+
}
|
|
50
|
+
/** Emitted after a magic-link sign-in link is successfully consumed. */
|
|
51
|
+
interface AuthMagicLinkConsumedPayload {
|
|
52
|
+
user: HookActor;
|
|
53
|
+
}
|
|
54
|
+
/** Emitted after an OTP code is successfully verified. */
|
|
55
|
+
interface AuthOtpVerifiedPayload {
|
|
56
|
+
user: HookActor;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The catalog: event name → payload type.
|
|
60
|
+
*
|
|
61
|
+
* Keep keys in sync with `HookEventName` (derived below) and with the dispatch
|
|
62
|
+
* sites. This is an interface (not a const) so it participates in type-level
|
|
63
|
+
* lookups and can be augmented via declaration merging if a downstream package
|
|
64
|
+
* needs to extend it.
|
|
65
|
+
*/
|
|
66
|
+
interface HookEventPayloads {
|
|
67
|
+
'content:read': ContentEventPayload;
|
|
68
|
+
'content:before:create': ContentEventPayload;
|
|
69
|
+
'content:before:update': ContentEventPayload;
|
|
70
|
+
'content:before:delete': ContentEventPayload;
|
|
71
|
+
'content:after:create': ContentEventPayload;
|
|
72
|
+
'content:after:update': ContentEventPayload;
|
|
73
|
+
'content:after:delete': ContentEventPayload;
|
|
74
|
+
'content:after:publish': ContentEventPayload;
|
|
75
|
+
'auth:registration:completed': AuthRegistrationCompletedPayload;
|
|
76
|
+
'auth:password-reset:requested': AuthPasswordResetRequestedPayload;
|
|
77
|
+
'auth:password-reset:completed': AuthPasswordResetCompletedPayload;
|
|
78
|
+
'auth:magic-link:consumed': AuthMagicLinkConsumedPayload;
|
|
79
|
+
'auth:otp:verified': AuthOtpVerifiedPayload;
|
|
80
|
+
}
|
|
81
|
+
/** Union of all catalog event names. */
|
|
82
|
+
type HookEventName = keyof HookEventPayloads;
|
|
83
|
+
/** The payload type for a given event name. */
|
|
84
|
+
type HookPayload<E extends HookEventName> = HookEventPayloads[E];
|
|
85
|
+
/**
|
|
86
|
+
* Runtime list of catalog event names.
|
|
87
|
+
*
|
|
88
|
+
* Useful for validation (e.g. "is this a known event?") and for diagnostics.
|
|
89
|
+
* Kept as a typed tuple so it can't silently drift from the interface: any new
|
|
90
|
+
* key added to `HookEventPayloads` should be added here too, and the
|
|
91
|
+
* `satisfies` check below fails the build if the list references an unknown
|
|
92
|
+
* event.
|
|
93
|
+
*/
|
|
94
|
+
declare const HOOK_EVENT_NAMES: readonly ["content:read", "content:before:create", "content:before:update", "content:before:delete", "content:after:create", "content:after:update", "content:after:delete", "content:after:publish", "auth:registration:completed", "auth:password-reset:requested", "auth:password-reset:completed", "auth:magic-link:consumed", "auth:otp:verified"];
|
|
95
|
+
/** True if `name` is a canonical catalog event. */
|
|
96
|
+
declare function isKnownHookEvent(name: string): name is HookEventName;
|
|
97
|
+
/** Deprecated event names mapped to their canonical payload type. */
|
|
98
|
+
interface LegacyHookEventPayloads {
|
|
99
|
+
'content:create': ContentEventPayload;
|
|
100
|
+
'content:update': ContentEventPayload;
|
|
101
|
+
'content:delete': ContentEventPayload;
|
|
102
|
+
'content:publish': ContentEventPayload;
|
|
103
|
+
/** No after-only successor; folded into update. */
|
|
104
|
+
'content:save': ContentEventPayload;
|
|
105
|
+
}
|
|
106
|
+
/** Map each deprecated name to the canonical name it resolves to. */
|
|
107
|
+
declare const LEGACY_EVENT_ALIASES: {
|
|
108
|
+
readonly 'content:create': "content:after:create";
|
|
109
|
+
readonly 'content:update': "content:after:update";
|
|
110
|
+
readonly 'content:delete': "content:after:delete";
|
|
111
|
+
readonly 'content:publish': "content:after:publish";
|
|
112
|
+
readonly 'content:save': "content:after:update";
|
|
113
|
+
};
|
|
114
|
+
/** A deprecated event name accepted (with a warning) at subscribe time. */
|
|
115
|
+
type LegacyHookEventName = keyof LegacyHookEventPayloads;
|
|
116
|
+
/** True if `name` is a deprecated alias. */
|
|
117
|
+
declare function isLegacyHookEvent(name: string): name is LegacyHookEventName;
|
|
118
|
+
/**
|
|
119
|
+
* Resolve a subscribe-time event name to its canonical form: returns the name
|
|
120
|
+
* itself if canonical, the aliased canonical name if deprecated, or `undefined`
|
|
121
|
+
* if unknown.
|
|
122
|
+
*/
|
|
123
|
+
declare function resolveHookEventName(name: string): HookEventName | undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Typed hook facade
|
|
127
|
+
*
|
|
128
|
+
* Wraps the (string-keyed, untyped) hook system in a catalog-aware API:
|
|
129
|
+
*
|
|
130
|
+
* const hooks = createTypedHooks(hookSystem)
|
|
131
|
+
* hooks.on('auth:registration:completed', (payload) => {
|
|
132
|
+
* payload.user.email // ✓ narrowed — no cast
|
|
133
|
+
* payload.user.nope // ✗ type error
|
|
134
|
+
* })
|
|
135
|
+
* await hooks.dispatch('auth:registration:completed', { user: {...} })
|
|
136
|
+
*
|
|
137
|
+
* The facade is intentionally structural about the underlying hook system (see
|
|
138
|
+
* `HookSystemLike`) so both `HookSystemImpl` and `ScopedHookSystem` — and the
|
|
139
|
+
* `src`/`dist` duplicate type identities — all satisfy it without casts.
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
/** A name accepted at subscribe time: a canonical event or a deprecated alias. */
|
|
143
|
+
type SubscribableEvent = HookEventName | LegacyHookEventName;
|
|
144
|
+
/** The payload type for a subscribable name — canonical payload, even for aliases. */
|
|
145
|
+
type PayloadForEvent<E extends SubscribableEvent> = E extends HookEventName ? HookPayload<E> : E extends LegacyHookEventName ? LegacyHookEventPayloads[E] : never;
|
|
146
|
+
/**
|
|
147
|
+
* Minimal structural contract the typed facade needs from a hook system.
|
|
148
|
+
* Satisfied by `HookSystemImpl` and `ScopedHookSystem`.
|
|
149
|
+
*/
|
|
150
|
+
interface HookSystemLike {
|
|
151
|
+
register(hookName: string, handler: (data: any, context: any) => any, priority?: number): void;
|
|
152
|
+
execute(hookName: string, data: any, context?: any): Promise<any>;
|
|
153
|
+
unregister?(hookName: string, handler: (data: any, context: any) => any): void;
|
|
154
|
+
}
|
|
155
|
+
/** Context passed to a typed hook handler (kept loose; mirrors the legacy HookContext). */
|
|
156
|
+
interface TypedHookContext {
|
|
157
|
+
/** Plugin that registered the hook, if known. */
|
|
158
|
+
plugin?: string;
|
|
159
|
+
/** Cancel the remaining hook chain. */
|
|
160
|
+
cancel?: () => void;
|
|
161
|
+
[key: string]: unknown;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A typed hook handler. May mutate and return the payload (threaded to the next
|
|
165
|
+
* handler), or return nothing (the current payload is preserved).
|
|
166
|
+
*/
|
|
167
|
+
type TypedHookHandler<E extends HookEventName> = (payload: HookPayload<E>, context: TypedHookContext) => HookPayload<E> | void | Promise<HookPayload<E> | void>;
|
|
168
|
+
interface TypedHooks {
|
|
169
|
+
/**
|
|
170
|
+
* Subscribe to a catalog event. Accepts canonical names and (for one release)
|
|
171
|
+
* deprecated aliases — an alias resolves to its canonical name and emits a
|
|
172
|
+
* one-time deprecation warning. Lower priority runs earlier (default 10).
|
|
173
|
+
*/
|
|
174
|
+
on<E extends SubscribableEvent>(event: E, handler: (payload: PayloadForEvent<E>, context: TypedHookContext) => PayloadForEvent<E> | void | Promise<PayloadForEvent<E> | void>, priority?: number): void;
|
|
175
|
+
/**
|
|
176
|
+
* Dispatch a catalog event through the handler chain. Canonical names only —
|
|
177
|
+
* the host owns dispatch sites. Returns the (possibly mutated) payload.
|
|
178
|
+
*/
|
|
179
|
+
dispatch<E extends HookEventName>(event: E, payload: HookPayload<E>, context?: TypedHookContext): Promise<HookPayload<E>>;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Build a typed facade over a hook system.
|
|
183
|
+
*
|
|
184
|
+
* `on()` resolves deprecated aliases to canonical names (warning once), then
|
|
185
|
+
* registers under the canonical name so a legacy subscriber fires when the host
|
|
186
|
+
* dispatches the canonical event. Returning `void` from a handler preserves the
|
|
187
|
+
* current payload in the chain (the underlying `execute()` threads whatever each
|
|
188
|
+
* handler returns, so we coalesce `undefined` back to the incoming data).
|
|
189
|
+
*/
|
|
190
|
+
declare function createTypedHooks(hookSystem: HookSystemLike): TypedHooks;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Provider-agnostic email types
|
|
194
|
+
*
|
|
195
|
+
* The whole point of this layer: a SonicJS app sends mail through one
|
|
196
|
+
* `EmailService` chokepoint, and the *transport* is a swappable `EmailProvider`.
|
|
197
|
+
* Built-ins ship for Resend and SendGrid, but a developer can drop in any
|
|
198
|
+
* implementation of `EmailProvider` (Postmark, SES, an internal relay, a mock in
|
|
199
|
+
* tests) without touching call sites. Every send is recorded in `email_log`.
|
|
200
|
+
*/
|
|
201
|
+
/** A message as authored by a caller. `from` is optional (the service fills a default). */
|
|
202
|
+
interface EmailMessage {
|
|
203
|
+
to: string | string[];
|
|
204
|
+
subject: string;
|
|
205
|
+
html?: string;
|
|
206
|
+
text?: string;
|
|
207
|
+
/** Overrides the service's default from-address. */
|
|
208
|
+
from?: string;
|
|
209
|
+
replyTo?: string;
|
|
210
|
+
cc?: string | string[];
|
|
211
|
+
bcc?: string | string[];
|
|
212
|
+
/** Extra transport headers. */
|
|
213
|
+
headers?: Record<string, string>;
|
|
214
|
+
/**
|
|
215
|
+
* Logical flow this send belongs to (e.g. `'password-reset'`, `'otp'`,
|
|
216
|
+
* `'magic-link'`, `'welcome'`, `'test'`). Recorded in `email_log.flow` for
|
|
217
|
+
* observability; does not affect delivery.
|
|
218
|
+
*/
|
|
219
|
+
flow?: string;
|
|
220
|
+
/** Free-form metadata recorded (as JSON) in `email_log.metadata`. */
|
|
221
|
+
metadata?: Record<string, unknown>;
|
|
222
|
+
}
|
|
223
|
+
/** A message after the service has resolved defaults — what a provider receives. */
|
|
224
|
+
interface NormalizedEmailMessage extends Omit<EmailMessage, 'to' | 'cc' | 'bcc'> {
|
|
225
|
+
to: string[];
|
|
226
|
+
from: string;
|
|
227
|
+
cc?: string[];
|
|
228
|
+
bcc?: string[];
|
|
229
|
+
}
|
|
230
|
+
/** Outcome of a single send attempt. */
|
|
231
|
+
interface SendResult {
|
|
232
|
+
ok: boolean;
|
|
233
|
+
/** Provider that handled (or attempted) the send. */
|
|
234
|
+
provider: string;
|
|
235
|
+
/** Provider-side message id, when the transport returns one. */
|
|
236
|
+
providerId?: string;
|
|
237
|
+
/** Error message when `ok` is false. */
|
|
238
|
+
error?: string;
|
|
239
|
+
/** id of the `email_log` row written for this attempt, when logging is enabled. */
|
|
240
|
+
logId?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A swappable email transport.
|
|
244
|
+
*
|
|
245
|
+
* Implement this to support any provider. `isConfigured()` lets the service (and
|
|
246
|
+
* `resolveEmailProvider`) decide whether a provider is usable before attempting a
|
|
247
|
+
* send — e.g. a Resend provider with no API key reports `false`.
|
|
248
|
+
*/
|
|
249
|
+
/**
|
|
250
|
+
* An email_log entry as seen by the reconciliation method.
|
|
251
|
+
* Derived from the documents row data JSON for type_id='email_log'.
|
|
252
|
+
* `id` is the document root_id used to identify the row.
|
|
253
|
+
*/
|
|
254
|
+
interface EmailLogRow {
|
|
255
|
+
id: string;
|
|
256
|
+
provider_id?: string | null;
|
|
257
|
+
provider: string;
|
|
258
|
+
status: 'sent' | 'failed' | string;
|
|
259
|
+
delivery_state?: string | null;
|
|
260
|
+
}
|
|
261
|
+
interface EmailProvider {
|
|
262
|
+
/** Stable identifier recorded in `email_log.provider` (e.g. `'resend'`). */
|
|
263
|
+
readonly name: string;
|
|
264
|
+
/** True if the provider has everything it needs to send (credentials, etc.). */
|
|
265
|
+
isConfigured(): boolean;
|
|
266
|
+
/** Attempt delivery. Must not throw for ordinary failures — return `ok: false`. */
|
|
267
|
+
send(message: NormalizedEmailMessage): Promise<SendResult>;
|
|
268
|
+
/**
|
|
269
|
+
* Optional: reconcile delivery state for a batch of recently-sent messages.
|
|
270
|
+
*
|
|
271
|
+
* Called by the core `email-reconciliation` cron. Providers that expose a
|
|
272
|
+
* delivery/event API (e.g. Cloudflare Email with delivery webhooks) implement
|
|
273
|
+
* this to backfill `delivery_state`. Providers without delivery status APIs
|
|
274
|
+
* (e.g. Resend, SendGrid at the current integration level) leave this undefined
|
|
275
|
+
* — those rows stay with `delivery_state = null`.
|
|
276
|
+
*
|
|
277
|
+
* Returning an array of `{ id, delivery_state }` updates the matching rows in
|
|
278
|
+
* `email_log`. Errors do not propagate (cron is fire-and-log).
|
|
279
|
+
*/
|
|
280
|
+
reconcile?(rows: EmailLogRow[]): Promise<Array<{
|
|
281
|
+
id: string;
|
|
282
|
+
delivery_state: string;
|
|
283
|
+
}>>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export { type AuthMagicLinkConsumedPayload as A, type ContentEventPayload as C, type EmailProvider as E, HOOK_EVENT_NAMES as H, LEGACY_EVENT_ALIASES as L, type NormalizedEmailMessage as N, type PayloadForEvent as P, type SubscribableEvent as S, type TypedHookContext as T, type AuthOtpVerifiedPayload as a, type AuthPasswordResetCompletedPayload as b, type AuthPasswordResetRequestedPayload as c, type AuthRegistrationCompletedPayload as d, type HookActor as e, type HookEventName as f, type HookEventPayloads as g, type HookPayload as h, type HookSystemLike as i, type LegacyHookEventName as j, type LegacyHookEventPayloads as k, type TypedHookHandler as l, type TypedHooks as m, createTypedHooks as n, isKnownHookEvent as o, isLegacyHookEvent as p, type SendResult as q, resolveHookEventName as r, type EmailLogRow as s, type EmailMessage as t };
|