@tetherto/dev-websites-core 0.3.6 → 0.3.7
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/dist/cache/handler.d.mts.map +1 -1
- package/dist/cms/index.d.mts +2 -2
- package/dist/cms/index.mjs +2 -2
- package/dist/cms.mjs +32 -7
- package/dist/cms.mjs.map +1 -1
- package/dist/i18n/index.mjs +1 -2
- package/dist/index.d.mts +6 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index5.d.mts +2 -2
- package/dist/ui/carousel/index.mjs +1 -2
- package/dist/ui/components/Accordion/index.mjs +1 -2
- package/dist/ui/components/Avatar/index.mjs +1 -2
- package/dist/ui/components/Badge/index.mjs +1 -2
- package/dist/ui/components/BadgeVersion/index.mjs +1 -2
- package/dist/ui/components/Button/index.mjs +1 -2
- package/dist/ui/components/Card/index.mjs +1 -2
- package/dist/ui/components/Carousel/index.mjs +1 -2
- package/dist/ui/components/Checkbox/index.mjs +1 -2
- package/dist/ui/components/CodeBlock/index.mjs +1 -2
- package/dist/ui/components/CodeBlockTabs/index.mjs +1 -2
- package/dist/ui/components/CollapsibleSection/index.mjs +1 -2
- package/dist/ui/components/CopyButton/index.mjs +1 -2
- package/dist/ui/components/CustomHtml/CustomHtml.d.mts +8 -0
- package/dist/ui/components/CustomHtml/CustomHtml.d.mts.map +1 -0
- package/dist/ui/components/CustomHtml/CustomHtml.mjs +31 -0
- package/dist/ui/components/CustomHtml/CustomHtml.mjs.map +1 -0
- package/dist/ui/components/CustomHtml/converters.d.mts +14 -0
- package/dist/ui/components/CustomHtml/converters.d.mts.map +1 -0
- package/dist/ui/components/CustomHtml/converters.mjs +9 -0
- package/dist/ui/components/CustomHtml/converters.mjs.map +1 -0
- package/dist/ui/components/CustomHtml/index.d.mts +3 -0
- package/dist/ui/components/CustomHtml/index.mjs +3 -0
- package/dist/ui/components/Dialog/index.mjs +1 -2
- package/dist/ui/components/EmptyState/index.mjs +1 -2
- package/dist/ui/components/FieldError/index.mjs +1 -2
- package/dist/ui/components/FormattedDate/index.mjs +1 -2
- package/dist/ui/components/GoogleOAuthButton/index.mjs +1 -2
- package/dist/ui/components/IconButton/index.mjs +1 -2
- package/dist/ui/components/Input/index.mjs +1 -2
- package/dist/ui/components/Label/index.mjs +1 -2
- package/dist/ui/components/LazyVideo/index.mjs +1 -2
- package/dist/ui/components/Pagination/index.mjs +1 -2
- package/dist/ui/components/PaginationItem/index.mjs +1 -2
- package/dist/ui/components/PasswordInput/index.mjs +1 -2
- package/dist/ui/components/ProgressStepper/index.mjs +1 -2
- package/dist/ui/components/Prose/index.mjs +1 -2
- package/dist/ui/components/Radio/index.mjs +1 -2
- package/dist/ui/components/Reveal/index.mjs +1 -2
- package/dist/ui/components/SearchInput/index.mjs +1 -2
- package/dist/ui/components/Select/index.mjs +1 -2
- package/dist/ui/components/Sheet/index.mjs +1 -2
- package/dist/ui/components/StaggerReveal/index.mjs +1 -2
- package/dist/ui/components/Stepper/index.mjs +1 -2
- package/dist/ui/components/Switch/index.mjs +1 -2
- package/dist/ui/components/TextButton/index.mjs +1 -2
- package/dist/ui/components/Textarea/index.mjs +1 -2
- package/dist/ui/components/Toast/index.mjs +1 -2
- package/dist/ui/components/Tooltip/index.mjs +1 -2
- package/dist/ui/components/VisuallyHidden/index.mjs +1 -2
- package/dist/ui/hooks/index.mjs +1 -2
- package/dist/ui/index.d.mts +4 -1
- package/dist/ui/index.mjs +1 -0
- package/dist/ui/utils/index.mjs +1 -2
- package/package.json +18 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.mts","names":[],"sources":["../../src/cache/types.ts","../../src/cache/createMongoCacheHandler.ts","../../src/cache/handler.ts"],"mappings":";;;;;;KAgCY;EACV;EACA;EACA;EACA,UAAU;;EAEV,cAAc,0BAA0B;GACvC;;KAWS;EACV;EACA,OAAO;;;KAIG;EACV;;;;KCtBU;EACV,IAAI,cAAc,QAAQ;EAC1B,IAAI,aAAa,OAAO,oBAAoB,MAAM,kBAAkB;EACpE,OAAO,cAAc;EACrB;EACA,cAAc,yBAAyB,sBAAsB;;;;;;KAOnD,oCAAoC,kBAAkB"}
|
|
1
|
+
{"version":3,"file":"handler.d.mts","names":["_$__createMongoCacheHandler_js0.MongoCacheHandlerConstructor"],"sources":["../../src/cache/types.ts","../../src/cache/createMongoCacheHandler.ts","../../src/cache/handler.ts"],"mappings":";;;;;;KAgCY;EACV;EACA;EACA;EACA,UAAU;;EAEV,cAAc,0BAA0B;GACvC;;KAWS;EACV;EACA,OAAO;;;KAIG;EACV;;;;KCtBU;EACV,IAAI,cAAc,QAAQ;EAC1B,IAAI,aAAa,OAAO,oBAAoB,MAAM,kBAAkB;EACpE,OAAO,cAAc;EACrB;EACA,cAAc,yBAAyB,sBAAsB;;;;;;KAOnD,oCAAoC,kBAAkB"}
|
package/dist/cms/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as AccessOptions, A as downloadCtaBlock, B as slugify, C as codeBlockLanguages, D as sectionHeadingBlock, E as leafBlocks, F as codeBlock, G as Overrides, H as draftsWithAutosave, I as richTextBlock, J as CollectionOverride, K as STOCK_COLLECTION_SLUGS, L as coerceBlogPostCategoriesOnRead, M as videoBlock, N as imageBlock, O as accordionBlock, P as codeTabsBlock, Q as AccessHelpers, R as coerceBlogPostCategoriesOnWrite, S as showcaseContentBlocks, T as languageOptions, U as BuildCmsConfigOptions, V as seoFields, W as buildCmsConfig, X as applyCollectionOverride, Y as GlobalOverride, Z as applyGlobalOverride, _ as requireEnvAtRuntime, _t as withRoles, a as createChangelog, at as RoleOption, b as blogContentBlocks, c as createPages, ct as adminRoleAccess, d as createAuthors, dt as globalRoleRule, et as createAccessHelpers, f as createMedia, ft as hiddenUnless, g as createS3MediaPlugin, gt as userHasAnyRole, h as CreateS3MediaPluginOptions, ht as resolveRoleOptions, i as createEventTags, it as DEFAULT_ROLES, j as customHtmlBlock, k as stepsBlock, l as createBlogPosts, lt as collectionRoleRule, m as createUsers, mt as publishedOrRoleRead, n as createSiteSettings, nt as DEFAULT_COLLECTION_ROLES, o as createChangelogTags, ot as RoleRule, p as createApiTokens, pt as isCmsAdmin, q as StockCollectionSlug, r as createEvents, rt as DEFAULT_GLOBAL_ROLES, s as createLegalPages, st as RolesOptions, t as createAnnouncementBanner, tt as ADMIN_ROLE, u as createCategories, ut as effectiveRoles, v as getRichTextEditorConfig, vt as writeAccess, w as defaultCodeLanguage, x as pageContentBlocks, y as richTextEditor, z as setPublishedAt } from "../index.mjs";
|
|
2
2
|
import { n as readPayloadMediaAsDataUrl, r as readPayloadMediaBuffer, t as PayloadMedia } from "../readMediaBuffer.mjs";
|
|
3
|
-
export { ADMIN_ROLE, type AccessHelpers, type AccessOptions, type BuildCmsConfigOptions, type CollectionOverride, type CreateS3MediaPluginOptions, DEFAULT_COLLECTION_ROLES, DEFAULT_GLOBAL_ROLES, DEFAULT_ROLES, type GlobalOverride, type Overrides, type PayloadMedia, type RoleOption, type RoleRule, type RolesOptions, STOCK_COLLECTION_SLUGS, type StockCollectionSlug, accordionBlock, adminRoleAccess, applyCollectionOverride, applyGlobalOverride, blogContentBlocks, buildCmsConfig, codeBlock, codeBlockLanguages, codeTabsBlock, coerceBlogPostCategoriesOnRead, coerceBlogPostCategoriesOnWrite, collectionRoleRule, createAccessHelpers, createAnnouncementBanner, createApiTokens, createAuthors, createBlogPosts, createCategories, createChangelog, createChangelogTags, createEventTags, createEvents, createLegalPages, createMedia, createPages, createS3MediaPlugin, createSiteSettings, createUsers, defaultCodeLanguage, downloadCtaBlock, draftsWithAutosave, effectiveRoles, getRichTextEditorConfig, globalRoleRule, hiddenUnless, imageBlock, isCmsAdmin, languageOptions, leafBlocks, pageContentBlocks, publishedOrRoleRead, readPayloadMediaAsDataUrl, readPayloadMediaBuffer, requireEnvAtRuntime, resolveRoleOptions, richTextBlock, richTextEditor, sectionHeadingBlock, seoFields, setPublishedAt, showcaseContentBlocks, slugify, stepsBlock, userHasAnyRole, videoBlock, withRoles, writeAccess };
|
|
3
|
+
export { ADMIN_ROLE, type AccessHelpers, type AccessOptions, type BuildCmsConfigOptions, type CollectionOverride, type CreateS3MediaPluginOptions, DEFAULT_COLLECTION_ROLES, DEFAULT_GLOBAL_ROLES, DEFAULT_ROLES, type GlobalOverride, type Overrides, type PayloadMedia, type RoleOption, type RoleRule, type RolesOptions, STOCK_COLLECTION_SLUGS, type StockCollectionSlug, accordionBlock, adminRoleAccess, applyCollectionOverride, applyGlobalOverride, blogContentBlocks, buildCmsConfig, codeBlock, codeBlockLanguages, codeTabsBlock, coerceBlogPostCategoriesOnRead, coerceBlogPostCategoriesOnWrite, collectionRoleRule, createAccessHelpers, createAnnouncementBanner, createApiTokens, createAuthors, createBlogPosts, createCategories, createChangelog, createChangelogTags, createEventTags, createEvents, createLegalPages, createMedia, createPages, createS3MediaPlugin, createSiteSettings, createUsers, customHtmlBlock, defaultCodeLanguage, downloadCtaBlock, draftsWithAutosave, effectiveRoles, getRichTextEditorConfig, globalRoleRule, hiddenUnless, imageBlock, isCmsAdmin, languageOptions, leafBlocks, pageContentBlocks, publishedOrRoleRead, readPayloadMediaAsDataUrl, readPayloadMediaBuffer, requireEnvAtRuntime, resolveRoleOptions, richTextBlock, richTextEditor, sectionHeadingBlock, seoFields, setPublishedAt, showcaseContentBlocks, slugify, stepsBlock, userHasAnyRole, videoBlock, withRoles, writeAccess };
|
package/dist/cms/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as globalRoleRule, A as richTextBlock, B as defaultCodeLanguage, C as blogContentBlocks, D as accordionBlock, E as sectionHeadingBlock, F as downloadCtaBlock, G as createApiTokens, H as createAuthors, I as customHtmlBlock, J as DEFAULT_GLOBAL_ROLES, K as ADMIN_ROLE, L as codeTabsBlock, M as richTextEditor, N as videoBlock, O as leafBlocks, P as imageBlock, Q as effectiveRoles, R as codeBlock, S as coerceBlogPostCategoriesOnWrite, T as showcaseContentBlocks, U as seoFields, V as languageOptions, W as slugify, X as adminRoleAccess, Y as DEFAULT_ROLES, Z as collectionRoleRule, _ as createCategories, a as STOCK_COLLECTION_SLUGS, at as withRoles, b as setPublishedAt, c as createSiteSettings, d as createPages, et as hiddenUnless, f as createMedia, g as createChangelog, h as createChangelogTags, i as buildCmsConfig, it as userHasAnyRole, j as getRichTextEditorConfig, k as stepsBlock, l as createUsers, m as createEventTags, n as createS3MediaPlugin, nt as publishedOrRoleRead, o as applyCollectionOverride, ot as writeAccess, p as createEvents, q as DEFAULT_COLLECTION_ROLES, r as requireEnvAtRuntime, rt as resolveRoleOptions, s as applyGlobalOverride, st as createAccessHelpers, t as createAnnouncementBanner, tt as isCmsAdmin, u as createLegalPages, v as createBlogPosts, w as pageContentBlocks, x as coerceBlogPostCategoriesOnRead, y as draftsWithAutosave, z as codeBlockLanguages } from "../cms.mjs";
|
|
2
2
|
import { n as readPayloadMediaBuffer, t as readPayloadMediaAsDataUrl } from "../readMediaBuffer.mjs";
|
|
3
|
-
export { ADMIN_ROLE, DEFAULT_COLLECTION_ROLES, DEFAULT_GLOBAL_ROLES, DEFAULT_ROLES, STOCK_COLLECTION_SLUGS, accordionBlock, adminRoleAccess, applyCollectionOverride, applyGlobalOverride, blogContentBlocks, buildCmsConfig, codeBlock, codeBlockLanguages, codeTabsBlock, coerceBlogPostCategoriesOnRead, coerceBlogPostCategoriesOnWrite, collectionRoleRule, createAccessHelpers, createAnnouncementBanner, createApiTokens, createAuthors, createBlogPosts, createCategories, createChangelog, createChangelogTags, createEventTags, createEvents, createLegalPages, createMedia, createPages, createS3MediaPlugin, createSiteSettings, createUsers, defaultCodeLanguage, downloadCtaBlock, draftsWithAutosave, effectiveRoles, getRichTextEditorConfig, globalRoleRule, hiddenUnless, imageBlock, isCmsAdmin, languageOptions, leafBlocks, pageContentBlocks, publishedOrRoleRead, readPayloadMediaAsDataUrl, readPayloadMediaBuffer, requireEnvAtRuntime, resolveRoleOptions, richTextBlock, richTextEditor, sectionHeadingBlock, seoFields, setPublishedAt, showcaseContentBlocks, slugify, stepsBlock, userHasAnyRole, videoBlock, withRoles, writeAccess };
|
|
3
|
+
export { ADMIN_ROLE, DEFAULT_COLLECTION_ROLES, DEFAULT_GLOBAL_ROLES, DEFAULT_ROLES, STOCK_COLLECTION_SLUGS, accordionBlock, adminRoleAccess, applyCollectionOverride, applyGlobalOverride, blogContentBlocks, buildCmsConfig, codeBlock, codeBlockLanguages, codeTabsBlock, coerceBlogPostCategoriesOnRead, coerceBlogPostCategoriesOnWrite, collectionRoleRule, createAccessHelpers, createAnnouncementBanner, createApiTokens, createAuthors, createBlogPosts, createCategories, createChangelog, createChangelogTags, createEventTags, createEvents, createLegalPages, createMedia, createPages, createS3MediaPlugin, createSiteSettings, createUsers, customHtmlBlock, defaultCodeLanguage, downloadCtaBlock, draftsWithAutosave, effectiveRoles, getRichTextEditorConfig, globalRoleRule, hiddenUnless, imageBlock, isCmsAdmin, languageOptions, leafBlocks, pageContentBlocks, publishedOrRoleRead, readPayloadMediaAsDataUrl, readPayloadMediaBuffer, requireEnvAtRuntime, resolveRoleOptions, richTextBlock, richTextEditor, sectionHeadingBlock, seoFields, setPublishedAt, showcaseContentBlocks, slugify, stepsBlock, userHasAnyRole, videoBlock, withRoles, writeAccess };
|
package/dist/cms.mjs
CHANGED
|
@@ -889,6 +889,25 @@ const codeTabsBlock = {
|
|
|
889
889
|
}]
|
|
890
890
|
};
|
|
891
891
|
//#endregion
|
|
892
|
+
//#region src/cms/blocks/custom-html.ts
|
|
893
|
+
const customHtmlBlock = {
|
|
894
|
+
slug: "custom-html",
|
|
895
|
+
labels: {
|
|
896
|
+
singular: "Custom HTML",
|
|
897
|
+
plural: "Custom HTML"
|
|
898
|
+
},
|
|
899
|
+
fields: [{
|
|
900
|
+
name: "html",
|
|
901
|
+
type: "code",
|
|
902
|
+
required: true,
|
|
903
|
+
localized: true,
|
|
904
|
+
admin: {
|
|
905
|
+
language: "html",
|
|
906
|
+
description: "Raw HTML, CSS, and scripts. Rendered as-is. Inline scripts run in the browser, same as a WordPress Custom HTML block."
|
|
907
|
+
}
|
|
908
|
+
}]
|
|
909
|
+
};
|
|
910
|
+
//#endregion
|
|
892
911
|
//#region src/cms/blocks/download-cta.ts
|
|
893
912
|
const downloadCtaBlock = {
|
|
894
913
|
slug: "download-cta",
|
|
@@ -1043,17 +1062,21 @@ const richTextFeatures = ({ defaultFeatures }) => [
|
|
|
1043
1062
|
name: "caption",
|
|
1044
1063
|
type: "text"
|
|
1045
1064
|
}] } } }),
|
|
1046
|
-
BlocksFeature({ blocks: [
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1065
|
+
BlocksFeature({ blocks: [
|
|
1066
|
+
CodeBlock({
|
|
1067
|
+
languages: codeBlockLanguages,
|
|
1068
|
+
defaultLanguage: defaultCodeLanguage
|
|
1069
|
+
}),
|
|
1070
|
+
videoBlock,
|
|
1071
|
+
customHtmlBlock
|
|
1072
|
+
] }),
|
|
1050
1073
|
EXPERIMENTAL_TableFeature()
|
|
1051
1074
|
];
|
|
1052
1075
|
/**
|
|
1053
1076
|
* Shared Lexical editor for every `richText` field.
|
|
1054
1077
|
*
|
|
1055
|
-
* Adds `CodeBlock`, inline `video`
|
|
1056
|
-
* `EXPERIMENTAL_TableFeature` on top of Payload defaults.
|
|
1078
|
+
* Adds `CodeBlock`, inline `video` and `custom-html` blocks, media upload
|
|
1079
|
+
* captions, and `EXPERIMENTAL_TableFeature` on top of Payload defaults.
|
|
1057
1080
|
*/
|
|
1058
1081
|
const richTextEditor = () => lexicalEditor({ features: richTextFeatures });
|
|
1059
1082
|
/** Resolve Lexical editor config for seed scripts / markdown conversion. */
|
|
@@ -1121,6 +1144,7 @@ const leafBlocks = [
|
|
|
1121
1144
|
imageBlock,
|
|
1122
1145
|
videoBlock,
|
|
1123
1146
|
downloadCtaBlock,
|
|
1147
|
+
customHtmlBlock,
|
|
1124
1148
|
stepsBlock
|
|
1125
1149
|
];
|
|
1126
1150
|
//#endregion
|
|
@@ -1181,6 +1205,7 @@ const blogContentBlocks = [
|
|
|
1181
1205
|
imageBlock,
|
|
1182
1206
|
videoBlock,
|
|
1183
1207
|
downloadCtaBlock,
|
|
1208
|
+
customHtmlBlock,
|
|
1184
1209
|
stepsBlock,
|
|
1185
1210
|
accordionBlock
|
|
1186
1211
|
];
|
|
@@ -2353,6 +2378,6 @@ function createAnnouncementBanner(access) {
|
|
|
2353
2378
|
};
|
|
2354
2379
|
}
|
|
2355
2380
|
//#endregion
|
|
2356
|
-
export {
|
|
2381
|
+
export { globalRoleRule as $, richTextBlock as A, defaultCodeLanguage as B, blogContentBlocks as C, accordionBlock as D, sectionHeadingBlock as E, downloadCtaBlock as F, createApiTokens as G, createAuthors as H, customHtmlBlock as I, DEFAULT_GLOBAL_ROLES as J, ADMIN_ROLE as K, codeTabsBlock as L, richTextEditor as M, videoBlock as N, leafBlocks as O, imageBlock as P, effectiveRoles as Q, codeBlock as R, coerceBlogPostCategoriesOnWrite as S, showcaseContentBlocks as T, seoFields as U, languageOptions as V, slugify as W, adminRoleAccess as X, DEFAULT_ROLES as Y, collectionRoleRule as Z, createCategories as _, STOCK_COLLECTION_SLUGS as a, withRoles as at, setPublishedAt as b, createSiteSettings as c, createPages as d, hiddenUnless as et, createMedia as f, createChangelog as g, createChangelogTags as h, buildCmsConfig as i, userHasAnyRole as it, getRichTextEditorConfig as j, stepsBlock as k, createUsers as l, createEventTags as m, createS3MediaPlugin as n, publishedOrRoleRead as nt, applyCollectionOverride as o, writeAccess as ot, createEvents as p, DEFAULT_COLLECTION_ROLES as q, requireEnvAtRuntime as r, resolveRoleOptions as rt, applyGlobalOverride as s, createAccessHelpers as st, createAnnouncementBanner as t, isCmsAdmin as tt, createLegalPages as u, createBlogPosts as v, pageContentBlocks as w, coerceBlogPostCategoriesOnRead as x, draftsWithAutosave as y, codeBlockLanguages as z };
|
|
2357
2382
|
|
|
2358
2383
|
//# sourceMappingURL=cms.mjs.map
|