@yext/visual-editor 2.0.0-beta.1 → 2.0.0-beta.11
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/{SectionLibraryVisualEditorProvider-67ng4X9e.js → SectionLibraryVisualEditorProvider-DJMXab-H.js} +36147 -24876
- package/dist/SectionLibraryVisualEditorProvider.css +1 -1
- package/dist/cli/assets/directory-locator-source/components/contentBlocks/image/styling.ts +22 -19
- package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx +39 -1
- package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx +13 -5
- package/dist/cli/assets/directory-locator-source/sectionLibrarySupport.ts +32 -0
- package/dist/cli/yextve.js +322 -218
- package/dist/{locatorEntityTypes-s4dmT9l5.d.ts → createYextFieldTransforms-B7vqqb3m.d.ts} +346 -27
- package/dist/index.d.ts +42 -68
- package/dist/locales/platform/cs/visual-editor.json +124 -4
- package/dist/locales/platform/da/visual-editor.json +110 -4
- package/dist/locales/platform/de/visual-editor.json +110 -4
- package/dist/locales/platform/en/visual-editor.json +110 -4
- package/dist/locales/platform/en-GB/visual-editor.json +110 -4
- package/dist/locales/platform/es/visual-editor.json +117 -4
- package/dist/locales/platform/et/visual-editor.json +110 -4
- package/dist/locales/platform/fi/visual-editor.json +110 -4
- package/dist/locales/platform/fr/visual-editor.json +117 -4
- package/dist/locales/platform/hr/visual-editor.json +117 -4
- package/dist/locales/platform/hu/visual-editor.json +110 -4
- package/dist/locales/platform/it/visual-editor.json +117 -4
- package/dist/locales/platform/ja/visual-editor.json +110 -4
- package/dist/locales/platform/lt/visual-editor.json +124 -4
- package/dist/locales/platform/lv/visual-editor.json +114 -4
- package/dist/locales/platform/nb/visual-editor.json +110 -4
- package/dist/locales/platform/nl/visual-editor.json +110 -4
- package/dist/locales/platform/pl/visual-editor.json +124 -4
- package/dist/locales/platform/pt/visual-editor.json +117 -4
- package/dist/locales/platform/ro/visual-editor.json +117 -4
- package/dist/locales/platform/sk/visual-editor.json +124 -4
- package/dist/locales/platform/sv/visual-editor.json +110 -4
- package/dist/locales/platform/tr/visual-editor.json +109 -3
- package/dist/locales/platform/zh/visual-editor.json +110 -4
- package/dist/locales/platform/zh-TW/visual-editor.json +110 -4
- package/dist/plugin/internal/layoutGeneration/limits.d.ts +28 -0
- package/dist/plugin/plugin.js +7025 -2259
- package/dist/plugin/types/generationPrompts.d.ts +19 -0
- package/dist/plugin/types/generationSettings.d.ts +12 -0
- package/dist/plugin/types/sectionLibrary.d.ts +11 -4
- package/dist/plugin/vite-plugin/layout-generation/generationLogger.d.ts +5 -0
- package/dist/plugin/vite-plugin/layout-generation/generationReports.d.ts +13 -0
- package/dist/plugin/vite-plugin/layout-generation/middleware.d.ts +14 -0
- package/dist/plugin/vite-plugin/layout-generation/modelProxy.d.ts +9 -0
- package/dist/plugin/vite-plugin/layout-generation/prompts.d.ts +17 -0
- package/dist/plugin/vite-plugin/layout-generation/settings.d.ts +3 -0
- package/dist/plugin/vite-plugin/local-editor/artifacts.d.ts +4 -2
- package/dist/plugin/vite-plugin/local-editor/data.d.ts +2 -0
- package/dist/plugin/vite-plugin/local-editor/generatedFiles.d.ts +2 -3
- package/dist/plugin/vite-plugin/local-editor/server.d.ts +17 -1
- package/dist/plugin/vite-plugin/local-editor/types.d.ts +18 -2
- package/dist/plugin/vite-plugin/plugin.d.ts +1 -1
- package/dist/section-library-support.js +157 -137
- package/dist/sectionLibrarySupport.d.ts +425 -4
- package/dist/style.css +1 -1
- package/dist/visual-editor-6mKs9VUe.js +842 -0
- package/dist/visual-editor-BK6fTU7k.js +804 -0
- package/dist/visual-editor-BruRrJYN.js +804 -0
- package/dist/visual-editor-Bs3wAslG.js +804 -0
- package/dist/visual-editor-C9TLeAzP.js +804 -0
- package/dist/visual-editor-CHWtMtlu.js +823 -0
- package/dist/visual-editor-CcfUKpnd.js +804 -0
- package/dist/visual-editor-ClC6hoz3.js +804 -0
- package/dist/visual-editor-CtQwadxQ.js +842 -0
- package/dist/visual-editor-D7VeTRK_.js +816 -0
- package/dist/visual-editor-DTE5kxrA.js +804 -0
- package/dist/visual-editor-DjTEbi-1.js +842 -0
- package/dist/visual-editor-DkHhrFsX.js +804 -0
- package/dist/visual-editor-DtL-Zuv_.js +804 -0
- package/dist/visual-editor-Duishbsa.js +842 -0
- package/dist/visual-editor-LXMNWXry.js +823 -0
- package/dist/visual-editor-QpGupjY5.js +823 -0
- package/dist/visual-editor-_TatCCAS.js +804 -0
- package/dist/visual-editor-gEaWoNRu.js +804 -0
- package/dist/visual-editor-gjpr-NAN.js +804 -0
- package/dist/visual-editor-qJW0uCiQ.js +804 -0
- package/dist/visual-editor-sOPDMkOR.js +823 -0
- package/dist/visual-editor-tPb7n5l8.js +823 -0
- package/dist/visual-editor-vomNdlNO.js +804 -0
- package/dist/visual-editor-zKhC7_0C.js +823 -0
- package/dist/visual-editor.css +1 -1
- package/dist/visual-editor.js +14647 -11016
- package/package.json +7 -4
- package/dist/visual-editor-9bLkRo2X.js +0 -702
- package/dist/visual-editor-B5f3AZF6.js +0 -706
- package/dist/visual-editor-BGZbJkMp.js +0 -694
- package/dist/visual-editor-BPVqHHz5.js +0 -706
- package/dist/visual-editor-BPvDMSb8.js +0 -706
- package/dist/visual-editor-BTT9n9b6.js +0 -718
- package/dist/visual-editor-BXSlgf31.js +0 -694
- package/dist/visual-editor-Bez9GftS.js +0 -694
- package/dist/visual-editor-Bk5QJccl.js +0 -718
- package/dist/visual-editor-BqtG2m0y.js +0 -694
- package/dist/visual-editor-C00efXqJ.js +0 -706
- package/dist/visual-editor-CZdmgAn0.js +0 -706
- package/dist/visual-editor-CcOCcCUQ.js +0 -694
- package/dist/visual-editor-D2_8u6ZI.js +0 -694
- package/dist/visual-editor-D4vaqoBN.js +0 -694
- package/dist/visual-editor-D6n8EP_O.js +0 -694
- package/dist/visual-editor-DKG_E7X4.js +0 -694
- package/dist/visual-editor-DQq0_rUn.js +0 -706
- package/dist/visual-editor-DRXezaoB.js +0 -694
- package/dist/visual-editor-DbgFzBNV.js +0 -718
- package/dist/visual-editor-DiLdoISr.js +0 -718
- package/dist/visual-editor-DnTPMRV4.js +0 -694
- package/dist/visual-editor-E0hASBXn.js +0 -694
- package/dist/visual-editor-W1OHU94y.js +0 -694
- package/dist/visual-editor-bauJ9beX.js +0 -694
|
@@ -1 +1 @@
|
|
|
1
|
-
.rtf-theme{p,li{font-family:var(--fontFamily-body-fontFamily)!important;font-size:var(--fontSize-body-fontSize)!important;line-height:1.5!important;font-weight:var(--fontWeight-body-fontWeight)!important;font-style:var(--fontStyle-body-fontStyle)!important;text-transform:var(--textTransform-body-textTransform)!important}h1{font-family:var(--fontFamily-h2-fontFamily)!important;font-size:var(--fontSize-h2-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h2-fontWeight)!important;font-style:var(--fontStyle-h2-fontStyle)!important;text-transform:var(--textTransform-h1-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h1-fontFamily)!important;font-size:var(--fontSize-h1-fontSize)!important;font-weight:var(--fontWeight-h1-fontWeight)!important;font-style:var(--fontStyle-h1-fontStyle)!important}}h2{font-family:var(--fontFamily-h3-fontFamily)!important;font-size:var(--fontSize-h3-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h3-fontWeight)!important;font-style:var(--fontStyle-h3-fontStyle)!important;text-transform:var(--textTransform-h2-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h2-fontFamily)!important;font-size:var(--fontSize-h2-fontSize)!important;font-weight:var(--fontWeight-h2-fontWeight)!important;font-style:var(--fontStyle-h2-fontStyle)!important}}h3{font-family:var(--fontFamily-h4-fontFamily)!important;font-size:var(--fontSize-h4-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h4-fontWeight)!important;font-style:var(--fontStyle-h4-fontStyle)!important;text-transform:var(--textTransform-h3-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h3-fontFamily)!important;font-size:var(--fontSize-h3-fontSize)!important;font-weight:var(--fontWeight-h3-fontWeight)!important;font-style:var(--fontStyle-h3-fontStyle)!important}}h4{font-family:var(--fontFamily-h5-fontFamily)!important;font-size:var(--fontSize-h5-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h5-fontWeight)!important;font-style:var(--fontStyle-h5-fontStyle)!important;text-transform:var(--textTransform-h4-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h4-fontFamily)!important;font-size:var(--fontSize-h4-fontSize)!important;font-weight:var(--fontWeight-h4-fontWeight)!important;font-style:var(--fontStyle-h4-fontStyle)!important}}h5{font-family:var(--fontFamily-h6-fontFamily)!important;font-size:var(--fontSize-h6-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h6-fontWeight)!important;font-style:var(--fontStyle-h6-fontStyle)!important;text-transform:var(--textTransform-h5-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h5-fontFamily)!important;font-size:var(--fontSize-h5-fontSize)!important;font-weight:var(--fontWeight-h5-fontWeight)!important;font-style:var(--fontStyle-h5-fontStyle)!important}}h6{font-family:var(--fontFamily-h6-fontFamily)!important;font-size:var(--fontSize-h6-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h6-fontWeight)!important;font-style:var(--fontStyle-h6-fontStyle)!important;text-transform:var(--textTransform-h6-textTransform)!important}a{font-family:var(--fontFamily-link-fontFamily)!important;font-size:var(--fontSize-link-fontSize)!important;font-weight:var(--fontWeight-link-fontWeight)!important;font-style:var(--fontStyle-link-fontStyle)!important;line-height:1.5!important;text-decoration:underline!important;text-transform:var(--textTransform-link-textTransform)!important;letter-spacing:var(--letterSpacing-link-letterSpacing)!important;color:hsl(from var(--colors-palette-primary) h s 20)!important;.text-white &{color:#fff!important}}&[style*="color:"]{a{color:inherit!important}}a:hover{text-decoration:none!important}strong{font-weight:inherit!important}}.rtf-body-sm p,.rtf-body-sm li{font-size:calc(var(--fontSize-body-fontSize) - 2px)!important}.rtf-body-lg p,.rtf-body-lg li{font-size:calc(var(--fontSize-body-fontSize) + 2px)!important}.rtf-wrapper *{color:inherit!important}.puck-header{grid-area:header;display:flex;align-items:center;padding:var(--puck-space-4);width:100%;border-bottom:1px solid var(--puck-color-grey-09);.header-left{flex:1;display:flex;justify-content:flex-start}.header-center{gap:16px;flex:1;text-align:center;display:flex;justify-content:center;flex-direction:row}.actions{flex:1;display:flex;gap:16px;justify-content:flex-end}}.ve-loading-wrapper{width:100vw;height:100vh;justify-content:center;.ve-loading-progress{width:30%}}.sm-icon{height:1rem;width:1rem}.theme-field{color:var(--puck-color-grey-04);font-size:var(--puck-font-size-xxs);font-weight:600;padding:12px 0 12px 4px;border-bottom:1px solid #e5e5f0}.theme-field>:first-child{padding:0 16px}.theme-field>div{padding:12px 16px}.theme-field>fieldset{padding:16px 15px}.theme-field fieldset>div,.theme-field fieldset>label{padding:0;border:none!important}.font-select{text-align:left;width:100%;padding:12px 15px;font-size:14px;cursor:pointer;background-color:var(--puck-color-white);border:1px solid var(--puck-color-grey-09);border-radius:4px;transition:border-color 50ms ease-in;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;background-size:12px;background-position:calc(100% - 12px) calc(50% + 3px);background-repeat:no-repeat}.font-select:hover,.font-select:focus{background-color:var(--puck-color-azure-12);border-color:var(--puck-color-grey-05);transition:none}.font-select-dropdown{position:absolute;z-index:1;background-color:var(--puck-color-white);border:1px solid var(--puck-color-grey-09);border-radius:4px;box-shadow:0 4px 8px #0000001a;max-height:200px;overflow-y:auto;width:100%}.font-select-option{text-align:left;width:100%;padding:12px 15px;background-color:transparent;border:none;cursor:pointer;font-size:14px}.font-select-option:hover,.font-select-option:active{background-color:var(--puck-color-grey-09)}.font-select-search{display:flex;gap:16px;background-color:#fff;padding:12px 15px;align-items:center;position:sticky;top:0;z-index:2}.font-search-input{font-family:var(--puck-font-family)}.font-search-input:focus{outline:none}.date-time-picker{border:1px solid var(--puck-color-grey-09);border-radius:4px;padding:12px 15px;font-size:14px;font-family:inherit;width:100%}.react-international-phone-input{border:1px solid var(--puck-color-grey-09);border-radius:4px;font-size:14px;font-family:inherit;transition:border-color 50ms ease-in;display:flex;align-items:center;padding:12px 15px;height:100%;flex:1;min-width:0}.puck-select{background:var(--puck-color-white);border-width:1px;border-style:solid;border-color:var(--puck-color-grey-09);border-radius:4px;box-sizing:border-box;font-family:inherit;font-size:14px;padding:12px 15px;transition:border-color 50ms ease-in;width:100%;max-width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;background-size:12px;background-position:calc(100% - 12px) calc(50% + 3px);background-repeat:no-repeat;background-color:var(--puck-color-white);cursor:pointer}select.puck-select:dir(rtl){background-position:12px calc(50% + 3px)}.puck-select:hover{background-color:var(--puck-color-azure-12);background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");border-color:var(--puck-color-grey-05);transition:none}.puck-select:focus-visible{border-color:var(--puck-color-grey-05);outline:2px solid var(--puck-color-azure-05);transition:none}div[class*=_SidebarSection-breadcrumb]{overflow:hidden!important;white-space:nowrap!important}div[class*=_SidebarSection-breadcrumbs] *{font-size:12px!important}div[class*=_SidebarSection-breadcrumb] button{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;flex:1!important;min-width:0!important}.react-international-phone-country-selector{position:relative}.react-international-phone-country-selector-button{display:flex;height:var(--react-international-phone-height, 36px);box-sizing:border-box;align-items:center;justify-content:center;padding:0;border:1px solid var(--react-international-phone-country-selector-border-color, var(--react-international-phone-border-color, gainsboro));margin:0;-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:var(--react-international-phone-country-selector-background-color, var(--react-international-phone-background-color, white));cursor:pointer;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-international-phone-country-selector-button:hover{background-color:var(--react-international-phone-country-selector-background-color-hover, whitesmoke)}.react-international-phone-country-selector-button--hide-dropdown{cursor:auto}.react-international-phone-country-selector-button--hide-dropdown:hover{background-color:transparent}.react-international-phone-country-selector-button__button-content{display:flex;align-items:center;justify-content:center}.react-international-phone-country-selector-button__flag-emoji{margin:0 4px}.react-international-phone-country-selector-button__flag-emoji--disabled{opacity:.75}.react-international-phone-country-selector-button__dropdown-arrow{border-top:var(--react-international-phone-country-selector-arrow-size, 4px) solid var(--react-international-phone-country-selector-arrow-color, #777);border-right:var(--react-international-phone-country-selector-arrow-size, 4px) solid transparent;border-left:var(--react-international-phone-country-selector-arrow-size, 4px) solid transparent;margin-right:4px;transition:all .1s ease-out}.react-international-phone-country-selector-button__dropdown-arrow--active{transform:rotateX(180deg)}.react-international-phone-country-selector-button__dropdown-arrow--disabled{border-top-color:var(--react-international-phone-disabled-country-selector-arrow-color, #999)}.react-international-phone-country-selector-button--disabled,.react-international-phone-country-selector-button--disabled:hover{background-color:var(--react-international-phone-disabled-country-selector-background-color, var(--react-international-phone-disabled-background-color, whitesmoke))}.react-international-phone-country-selector-button--disabled{cursor:auto}.react-international-phone-flag-emoji{width:var(--react-international-phone-flag-width, 24px);height:var(--react-international-phone-flag-height, 24px);box-sizing:border-box}.react-international-phone-country-selector-dropdown{position:absolute;z-index:1;top:var(--react-international-phone-dropdown-top, 44px);left:var(--react-international-phone-dropdown-left, 0);display:flex;width:300px;max-height:200px;flex-direction:column;padding:4px 0;margin:0;background-color:var(--react-international-phone-dropdown-item-background-color, var(--react-international-phone-background-color, white));box-shadow:var(--react-international-phone-dropdown-shadow, 2px 2px 16px rgba(0, 0, 0, .25));color:var(--react-international-phone-dropdown-item-text-color, var(--react-international-phone-text-color, #222));list-style:none;overflow-y:scroll}.react-international-phone-country-selector-dropdown__preferred-list-divider{height:1px;border:none;margin:var(--react-international-phone-dropdown-preferred-list-divider-margin, 0);background:var(--react-international-phone-dropdown-preferred-list-divider-color, var(--react-international-phone-border-color, gainsboro))}.react-international-phone-country-selector-dropdown__list-item{display:flex;min-height:var(--react-international-phone-dropdown-item-height, 28px);box-sizing:border-box;align-items:center;padding:2px 8px}.react-international-phone-country-selector-dropdown__list-item-flag-emoji{margin-right:8px}.react-international-phone-country-selector-dropdown__list-item-country-name{overflow:hidden;margin-right:8px;font-size:var(--react-international-phone-dropdown-item-font-size, 14px);text-overflow:ellipsis;white-space:nowrap}.react-international-phone-country-selector-dropdown__list-item-dial-code{color:var(--react-international-phone-dropdown-item-dial-code-color, gray);font-size:var(--react-international-phone-dropdown-item-font-size, 14px)}.react-international-phone-country-selector-dropdown__list-item:hover{background-color:var(--react-international-phone-selected-dropdown-item-background-color, var(--react-international-phone-selected-dropdown-item-background-color, whitesmoke));cursor:pointer}.react-international-phone-country-selector-dropdown__list-item--selected,.react-international-phone-country-selector-dropdown__list-item--focused{background-color:var(--react-international-phone-selected-dropdown-item-background-color, whitesmoke);color:var(--react-international-phone-selected-dropdown-item-text-color, var(--react-international-phone-text-color, #222))}.react-international-phone-country-selector-dropdown__list-item--selected .react-international-phone-country-selector-dropdown__list-item-dial-code,.react-international-phone-country-selector-dropdown__list-item--focused .react-international-phone-country-selector-dropdown__list-item-dial-code{color:var(--react-international-phone-selected-dropdown-item-dial-code-color, var(--react-international-phone-dropdown-item-dial-code-color, gray))}.react-international-phone-country-selector-dropdown__list-item--focused{background-color:var(--react-international-phone-selected-dropdown-item-background-color, var(--react-international-phone-selected-dropdown-item-background-color, whitesmoke))}.react-international-phone-dial-code-preview{display:flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid var(--react-international-phone-dial-code-preview-border-color, var(--react-international-phone-border-color, gainsboro));margin-right:-1px;background-color:var(--react-international-phone-dial-code-preview-background-color, var(--react-international-phone-background-color, white));color:var(--react-international-phone-dial-code-preview-text-color, var(--react-international-phone-text-color, #222));font-size:var(--react-international-phone-dial-code-preview-font-size, var(--react-international-phone-font-size, 13px))}.react-international-phone-dial-code-preview--disabled{background-color:var(--react-international-phone-dial-code-preview-disabled-background-color, var(--react-international-phone-disabled-background-color, whitesmoke));color:var(--react-international-phone-dial-code-preview-disabled-text-color, var(--react-international-phone-disabled-text-color, #666))}.react-international-phone-input-container{display:flex}.react-international-phone-input-container .react-international-phone-country-selector-button{border-radius:var(--react-international-phone-border-radius, 4px);margin-right:-1px;border-bottom-right-radius:0;border-top-right-radius:0}.react-international-phone-input-container .react-international-phone-input{overflow:visible;height:var(--react-international-phone-height, 36px);box-sizing:border-box;padding:0 8px;border:1px solid var(--react-international-phone-border-color, gainsboro);border-radius:var(--react-international-phone-border-radius, 4px);margin:0;background-color:var(--react-international-phone-background-color, white);border-bottom-left-radius:0;border-top-left-radius:0;color:var(--react-international-phone-text-color, #222);font-family:inherit;font-size:var(--react-international-phone-font-size, 13px)}.react-international-phone-input-container .react-international-phone-input:focus{outline:none}.react-international-phone-input-container .react-international-phone-input--disabled{background-color:var(--react-international-phone-disabled-background-color, whitesmoke);color:var(--react-international-phone-disabled-text-color, #666)}.is-today{font-weight:700}.HoursTable-row{display:flex;justify-content:space-between;width:18rem}.components .HoursTable-intervals{display:flex;flex-direction:column;flex:0 0 auto}
|
|
1
|
+
.rtf-theme{p,li{font-family:var(--fontFamily-body-fontFamily)!important;font-size:var(--fontSize-body-fontSize)!important;line-height:1.5!important;font-weight:var(--fontWeight-body-fontWeight)!important;font-style:var(--fontStyle-body-fontStyle)!important;text-transform:var(--textTransform-body-textTransform)!important}h1{font-family:var(--fontFamily-h2-fontFamily)!important;font-size:var(--fontSize-h2-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h2-fontWeight)!important;font-style:var(--fontStyle-h2-fontStyle)!important;text-transform:var(--textTransform-h1-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h1-fontFamily)!important;font-size:var(--fontSize-h1-fontSize)!important;font-weight:var(--fontWeight-h1-fontWeight)!important;font-style:var(--fontStyle-h1-fontStyle)!important}}h2{font-family:var(--fontFamily-h3-fontFamily)!important;font-size:var(--fontSize-h3-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h3-fontWeight)!important;font-style:var(--fontStyle-h3-fontStyle)!important;text-transform:var(--textTransform-h2-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h2-fontFamily)!important;font-size:var(--fontSize-h2-fontSize)!important;font-weight:var(--fontWeight-h2-fontWeight)!important;font-style:var(--fontStyle-h2-fontStyle)!important}}h3{font-family:var(--fontFamily-h4-fontFamily)!important;font-size:var(--fontSize-h4-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h4-fontWeight)!important;font-style:var(--fontStyle-h4-fontStyle)!important;text-transform:var(--textTransform-h3-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h3-fontFamily)!important;font-size:var(--fontSize-h3-fontSize)!important;font-weight:var(--fontWeight-h3-fontWeight)!important;font-style:var(--fontStyle-h3-fontStyle)!important}}h4{font-family:var(--fontFamily-h5-fontFamily)!important;font-size:var(--fontSize-h5-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h5-fontWeight)!important;font-style:var(--fontStyle-h5-fontStyle)!important;text-transform:var(--textTransform-h4-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h4-fontFamily)!important;font-size:var(--fontSize-h4-fontSize)!important;font-weight:var(--fontWeight-h4-fontWeight)!important;font-style:var(--fontStyle-h4-fontStyle)!important}}h5{font-family:var(--fontFamily-h6-fontFamily)!important;font-size:var(--fontSize-h6-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h6-fontWeight)!important;font-style:var(--fontStyle-h6-fontStyle)!important;text-transform:var(--textTransform-h5-textTransform)!important;@media(min-width:640px){font-family:var(--fontFamily-h5-fontFamily)!important;font-size:var(--fontSize-h5-fontSize)!important;font-weight:var(--fontWeight-h5-fontWeight)!important;font-style:var(--fontStyle-h5-fontStyle)!important}}h6{font-family:var(--fontFamily-h6-fontFamily)!important;font-size:var(--fontSize-h6-fontSize)!important;line-height:1.2!important;font-weight:var(--fontWeight-h6-fontWeight)!important;font-style:var(--fontStyle-h6-fontStyle)!important;text-transform:var(--textTransform-h6-textTransform)!important}a{font-family:var(--fontFamily-link-fontFamily)!important;font-size:var(--fontSize-link-fontSize)!important;font-weight:var(--fontWeight-link-fontWeight)!important;font-style:var(--fontStyle-link-fontStyle)!important;line-height:1.5!important;text-decoration:underline!important;text-transform:var(--textTransform-link-textTransform)!important;letter-spacing:var(--letterSpacing-link-letterSpacing)!important;color:hsl(from var(--colors-palette-primary) h s 20)!important;.text-white &{color:#fff!important}}&[style*="color:"]{a{color:inherit!important}}a:hover{text-decoration:none!important}strong{font-weight:inherit!important}}.rtf-body-xs p,.rtf-body-xs li{font-size:calc(var(--fontSize-body-fontSize) - 4px)!important}.rtf-body-sm p,.rtf-body-sm li{font-size:calc(var(--fontSize-body-fontSize) - 2px)!important}.rtf-body-lg p,.rtf-body-lg li{font-size:calc(var(--fontSize-body-fontSize) + 2px)!important}.rtf-wrapper *{color:inherit!important}.puck-header{grid-area:header;display:flex;align-items:center;padding:var(--puck-space-4);width:100%;border-bottom:1px solid var(--puck-color-grey-09);.header-left{flex:1;display:flex;justify-content:flex-start}.header-center{gap:16px;flex:1;text-align:center;display:flex;justify-content:center;flex-direction:row}.actions{flex:1;display:flex;gap:16px;justify-content:flex-end}}.ve-loading-wrapper{width:100vw;height:100vh;justify-content:center;.ve-loading-progress{width:30%}}.sm-icon{height:1rem;width:1rem}.theme-field{color:var(--puck-color-grey-04);font-size:var(--puck-font-size-xxs);font-weight:600;padding:12px 0 12px 4px;border-bottom:1px solid #e5e5f0}.theme-field>:first-child{padding:0 16px}.theme-field>div{padding:12px 16px}.theme-field>fieldset{padding:16px 15px}.theme-field fieldset>div,.theme-field fieldset>label{padding:0;border:none!important}.font-select{text-align:left;width:100%;padding:12px 15px;font-size:14px;cursor:pointer;background-color:var(--puck-color-white);border:1px solid var(--puck-color-grey-09);border-radius:4px;transition:border-color 50ms ease-in;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;background-size:12px;background-position:calc(100% - 12px) calc(50% + 3px);background-repeat:no-repeat}.font-select:hover,.font-select:focus{background-color:var(--puck-color-azure-12);border-color:var(--puck-color-grey-05);transition:none}.font-select-dropdown{position:absolute;z-index:1;background-color:var(--puck-color-white);border:1px solid var(--puck-color-grey-09);border-radius:4px;box-shadow:0 4px 8px #0000001a;max-height:200px;overflow-y:auto;width:100%}.font-select-option{text-align:left;width:100%;padding:12px 15px;background-color:transparent;border:none;cursor:pointer;font-size:14px}.font-select-option:hover,.font-select-option:active{background-color:var(--puck-color-grey-09)}.font-select-search{display:flex;gap:16px;background-color:#fff;padding:12px 15px;align-items:center;position:sticky;top:0;z-index:2}.font-search-input{font-family:var(--puck-font-family)}.font-search-input:focus{outline:none}.date-time-picker{border:1px solid var(--puck-color-grey-09);border-radius:4px;padding:12px 15px;font-size:14px;font-family:inherit;width:100%}.react-international-phone-input{border:1px solid var(--puck-color-grey-09);border-radius:4px;font-size:14px;font-family:inherit;transition:border-color 50ms ease-in;display:flex;align-items:center;padding:12px 15px;height:100%;flex:1;min-width:0}.puck-select{background:var(--puck-color-white);border-width:1px;border-style:solid;border-color:var(--puck-color-grey-09);border-radius:4px;box-sizing:border-box;font-family:inherit;font-size:14px;padding:12px 15px;transition:border-color 50ms ease-in;width:100%;max-width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;background-size:12px;background-position:calc(100% - 12px) calc(50% + 3px);background-repeat:no-repeat;background-color:var(--puck-color-white);cursor:pointer}select.puck-select:dir(rtl){background-position:12px calc(50% + 3px)}.puck-select:hover{background-color:var(--puck-color-azure-12);background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");border-color:var(--puck-color-grey-05);transition:none}.puck-select:focus-visible{border-color:var(--puck-color-grey-05);outline:2px solid var(--puck-color-azure-05);transition:none}div[class*=_SidebarSection-breadcrumb]{overflow:hidden!important;white-space:nowrap!important}div[class*=_SidebarSection-breadcrumbs] *{font-size:12px!important}div[class*=_SidebarSection-breadcrumb] button{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;flex:1!important;min-width:0!important}.react-international-phone-country-selector{position:relative}.react-international-phone-country-selector-button{display:flex;height:var(--react-international-phone-height, 36px);box-sizing:border-box;align-items:center;justify-content:center;padding:0;border:1px solid var(--react-international-phone-country-selector-border-color, var(--react-international-phone-border-color, gainsboro));margin:0;-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:var(--react-international-phone-country-selector-background-color, var(--react-international-phone-background-color, white));cursor:pointer;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-international-phone-country-selector-button:hover{background-color:var(--react-international-phone-country-selector-background-color-hover, whitesmoke)}.react-international-phone-country-selector-button--hide-dropdown{cursor:auto}.react-international-phone-country-selector-button--hide-dropdown:hover{background-color:transparent}.react-international-phone-country-selector-button__button-content{display:flex;align-items:center;justify-content:center}.react-international-phone-country-selector-button__flag-emoji{margin:0 4px}.react-international-phone-country-selector-button__flag-emoji--disabled{opacity:.75}.react-international-phone-country-selector-button__dropdown-arrow{border-top:var(--react-international-phone-country-selector-arrow-size, 4px) solid var(--react-international-phone-country-selector-arrow-color, #777);border-right:var(--react-international-phone-country-selector-arrow-size, 4px) solid transparent;border-left:var(--react-international-phone-country-selector-arrow-size, 4px) solid transparent;margin-right:4px;transition:all .1s ease-out}.react-international-phone-country-selector-button__dropdown-arrow--active{transform:rotateX(180deg)}.react-international-phone-country-selector-button__dropdown-arrow--disabled{border-top-color:var(--react-international-phone-disabled-country-selector-arrow-color, #999)}.react-international-phone-country-selector-button--disabled,.react-international-phone-country-selector-button--disabled:hover{background-color:var(--react-international-phone-disabled-country-selector-background-color, var(--react-international-phone-disabled-background-color, whitesmoke))}.react-international-phone-country-selector-button--disabled{cursor:auto}.react-international-phone-flag-emoji{width:var(--react-international-phone-flag-width, 24px);height:var(--react-international-phone-flag-height, 24px);box-sizing:border-box}.react-international-phone-country-selector-dropdown{position:absolute;z-index:1;top:var(--react-international-phone-dropdown-top, 44px);left:var(--react-international-phone-dropdown-left, 0);display:flex;width:300px;max-height:200px;flex-direction:column;padding:4px 0;margin:0;background-color:var(--react-international-phone-dropdown-item-background-color, var(--react-international-phone-background-color, white));box-shadow:var(--react-international-phone-dropdown-shadow, 2px 2px 16px rgba(0, 0, 0, .25));color:var(--react-international-phone-dropdown-item-text-color, var(--react-international-phone-text-color, #222));list-style:none;overflow-y:scroll}.react-international-phone-country-selector-dropdown__preferred-list-divider{height:1px;border:none;margin:var(--react-international-phone-dropdown-preferred-list-divider-margin, 0);background:var(--react-international-phone-dropdown-preferred-list-divider-color, var(--react-international-phone-border-color, gainsboro))}.react-international-phone-country-selector-dropdown__list-item{display:flex;min-height:var(--react-international-phone-dropdown-item-height, 28px);box-sizing:border-box;align-items:center;padding:2px 8px}.react-international-phone-country-selector-dropdown__list-item-flag-emoji{margin-right:8px}.react-international-phone-country-selector-dropdown__list-item-country-name{overflow:hidden;margin-right:8px;font-size:var(--react-international-phone-dropdown-item-font-size, 14px);text-overflow:ellipsis;white-space:nowrap}.react-international-phone-country-selector-dropdown__list-item-dial-code{color:var(--react-international-phone-dropdown-item-dial-code-color, gray);font-size:var(--react-international-phone-dropdown-item-font-size, 14px)}.react-international-phone-country-selector-dropdown__list-item:hover{background-color:var(--react-international-phone-selected-dropdown-item-background-color, var(--react-international-phone-selected-dropdown-item-background-color, whitesmoke));cursor:pointer}.react-international-phone-country-selector-dropdown__list-item--selected,.react-international-phone-country-selector-dropdown__list-item--focused{background-color:var(--react-international-phone-selected-dropdown-item-background-color, whitesmoke);color:var(--react-international-phone-selected-dropdown-item-text-color, var(--react-international-phone-text-color, #222))}.react-international-phone-country-selector-dropdown__list-item--selected .react-international-phone-country-selector-dropdown__list-item-dial-code,.react-international-phone-country-selector-dropdown__list-item--focused .react-international-phone-country-selector-dropdown__list-item-dial-code{color:var(--react-international-phone-selected-dropdown-item-dial-code-color, var(--react-international-phone-dropdown-item-dial-code-color, gray))}.react-international-phone-country-selector-dropdown__list-item--focused{background-color:var(--react-international-phone-selected-dropdown-item-background-color, var(--react-international-phone-selected-dropdown-item-background-color, whitesmoke))}.react-international-phone-dial-code-preview{display:flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid var(--react-international-phone-dial-code-preview-border-color, var(--react-international-phone-border-color, gainsboro));margin-right:-1px;background-color:var(--react-international-phone-dial-code-preview-background-color, var(--react-international-phone-background-color, white));color:var(--react-international-phone-dial-code-preview-text-color, var(--react-international-phone-text-color, #222));font-size:var(--react-international-phone-dial-code-preview-font-size, var(--react-international-phone-font-size, 13px))}.react-international-phone-dial-code-preview--disabled{background-color:var(--react-international-phone-dial-code-preview-disabled-background-color, var(--react-international-phone-disabled-background-color, whitesmoke));color:var(--react-international-phone-dial-code-preview-disabled-text-color, var(--react-international-phone-disabled-text-color, #666))}.react-international-phone-input-container{display:flex}.react-international-phone-input-container .react-international-phone-country-selector-button{border-radius:var(--react-international-phone-border-radius, 4px);margin-right:-1px;border-bottom-right-radius:0;border-top-right-radius:0}.react-international-phone-input-container .react-international-phone-input{overflow:visible;height:var(--react-international-phone-height, 36px);box-sizing:border-box;padding:0 8px;border:1px solid var(--react-international-phone-border-color, gainsboro);border-radius:var(--react-international-phone-border-radius, 4px);margin:0;background-color:var(--react-international-phone-background-color, white);border-bottom-left-radius:0;border-top-left-radius:0;color:var(--react-international-phone-text-color, #222);font-family:inherit;font-size:var(--react-international-phone-font-size, 13px)}.react-international-phone-input-container .react-international-phone-input:focus{outline:none}.react-international-phone-input-container .react-international-phone-input--disabled{background-color:var(--react-international-phone-disabled-background-color, whitesmoke);color:var(--react-international-phone-disabled-text-color, #666)}.is-today{font-weight:700}.HoursTable-row{display:flex;justify-content:space-between;width:18rem}.components .HoursTable-intervals{display:flex;flex-direction:column;flex:0 0 auto}
|
|
@@ -2,6 +2,27 @@ import { YextFields } from "../../../fields/fields.ts";
|
|
|
2
2
|
import { ImageFillType } from "../../../types/images.ts";
|
|
3
3
|
import { msg } from "../../../utils/i18n/platform.ts";
|
|
4
4
|
|
|
5
|
+
/** Numeric aspect-ratio choices shared by image styling controls and schemas. */
|
|
6
|
+
export const imageAspectRatioOptions = [
|
|
7
|
+
{ label: "1:1", value: 1 },
|
|
8
|
+
{ label: "5:4", value: 1.25 },
|
|
9
|
+
{ label: "4:3", value: 1.33 },
|
|
10
|
+
{ label: "3:2", value: 1.5 },
|
|
11
|
+
{ label: "5:3", value: 1.67 },
|
|
12
|
+
{ label: "16:9", value: 1.78 },
|
|
13
|
+
{ label: "2:1", value: 2 },
|
|
14
|
+
{ label: "3:1", value: 3 },
|
|
15
|
+
{ label: "4:1", value: 4 },
|
|
16
|
+
{ label: "4:5", value: 0.8 },
|
|
17
|
+
{ label: "3:4", value: 0.75 },
|
|
18
|
+
{ label: "2:3", value: 0.67 },
|
|
19
|
+
{ label: "3:5", value: 0.6 },
|
|
20
|
+
{ label: "9:16", value: 0.56 },
|
|
21
|
+
{ label: "1:2", value: 0.5 },
|
|
22
|
+
{ label: "1:3", value: 0.33 },
|
|
23
|
+
{ label: "1:4", value: 0.25 },
|
|
24
|
+
];
|
|
25
|
+
|
|
5
26
|
/** Props for displaying an image */
|
|
6
27
|
export interface ImageStylingProps {
|
|
7
28
|
/** The aspect ratio of the image */
|
|
@@ -43,24 +64,6 @@ export const ImageStylingFields: YextFields<ImageStylingProps> = {
|
|
|
43
64
|
aspectRatio: {
|
|
44
65
|
type: "basicSelector",
|
|
45
66
|
label: msg("fields.options.aspectRatio", "Aspect Ratio"),
|
|
46
|
-
options:
|
|
47
|
-
{ label: "1:1", value: 1 },
|
|
48
|
-
{ label: "5:4", value: 1.25 },
|
|
49
|
-
{ label: "4:3", value: 1.33 },
|
|
50
|
-
{ label: "3:2", value: 1.5 },
|
|
51
|
-
{ label: "5:3", value: 1.67 },
|
|
52
|
-
{ label: "16:9", value: 1.78 },
|
|
53
|
-
{ label: "2:1", value: 2 },
|
|
54
|
-
{ label: "3:1", value: 3 },
|
|
55
|
-
{ label: "4:1", value: 4 },
|
|
56
|
-
{ label: "4:5", value: 0.8 },
|
|
57
|
-
{ label: "3:4", value: 0.75 },
|
|
58
|
-
{ label: "2:3", value: 0.67 },
|
|
59
|
-
{ label: "3:5", value: 0.6 },
|
|
60
|
-
{ label: "9:16", value: 0.56 },
|
|
61
|
-
{ label: "1:2", value: 0.5 },
|
|
62
|
-
{ label: "1:3", value: 0.33 },
|
|
63
|
-
{ label: "1:4", value: 0.25 },
|
|
64
|
-
],
|
|
67
|
+
options: imageAspectRatioOptions,
|
|
65
68
|
},
|
|
66
69
|
};
|
package/dist/cli/assets/directory-locator-source/components/sections/directory/Directory.tsx
CHANGED
|
@@ -35,6 +35,13 @@ export interface DirectoryStyles {
|
|
|
35
35
|
* The color of links in the directory list layout.
|
|
36
36
|
*/
|
|
37
37
|
linkColor?: ThemeColor;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The casing of directory list labels. Default uses the link theme transform,
|
|
41
|
+
* falling back to title case.
|
|
42
|
+
* @defaultValue default
|
|
43
|
+
*/
|
|
44
|
+
textTransform?: "none" | "default" | "lowercase" | "uppercase" | "capitalize";
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
export interface DirectoryProps {
|
|
@@ -81,6 +88,26 @@ const directoryFields: YextFields<DirectoryProps> = {
|
|
|
81
88
|
label: msg("fields.linkColor", "Link Color"),
|
|
82
89
|
options: "SITE_COLOR",
|
|
83
90
|
},
|
|
91
|
+
textTransform: {
|
|
92
|
+
type: "select",
|
|
93
|
+
label: msg("theme.textTransform.textTransform", "Text Transform"),
|
|
94
|
+
options: [
|
|
95
|
+
{ label: msg("fields.options.none", "None"), value: "none" },
|
|
96
|
+
{ label: msg("fields.options.default", "Default"), value: "default" },
|
|
97
|
+
{
|
|
98
|
+
label: msg("theme.textTransform.lowercase", "Lowercase"),
|
|
99
|
+
value: "lowercase",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: msg("theme.textTransform.uppercase", "Uppercase"),
|
|
103
|
+
value: "uppercase",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: msg("theme.textTransform.capitalize", "Capitalize"),
|
|
107
|
+
value: "capitalize",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
84
111
|
},
|
|
85
112
|
},
|
|
86
113
|
slots: {
|
|
@@ -130,6 +157,7 @@ const DirectoryComponent: PuckComponent<DirectoryProps> = ({
|
|
|
130
157
|
directoryChildren={streamDocument.dm_directoryChildren}
|
|
131
158
|
relativePrefixToRoot={relativePrefixToRoot ?? ""}
|
|
132
159
|
linkColor={styles.linkColor}
|
|
160
|
+
textTransform={styles.textTransform}
|
|
133
161
|
backgroundColor={styles.listBackgroundColor}
|
|
134
162
|
/>
|
|
135
163
|
)}
|
|
@@ -157,8 +185,17 @@ export const Directory: YextComponentConfig<DirectoryProps> = {
|
|
|
157
185
|
"styles.objectFields.listBackgroundColor.visible",
|
|
158
186
|
false
|
|
159
187
|
);
|
|
188
|
+
const listFieldsHidden = setDeep(
|
|
189
|
+
updatedFields,
|
|
190
|
+
"styles.objectFields.linkColor.visible",
|
|
191
|
+
false
|
|
192
|
+
);
|
|
160
193
|
return toPuckFields(
|
|
161
|
-
setDeep(
|
|
194
|
+
setDeep(
|
|
195
|
+
listFieldsHidden,
|
|
196
|
+
"styles.objectFields.textTransform.visible",
|
|
197
|
+
false
|
|
198
|
+
)
|
|
162
199
|
);
|
|
163
200
|
}
|
|
164
201
|
return toPuckFields(directoryFields);
|
|
@@ -167,6 +204,7 @@ export const Directory: YextComponentConfig<DirectoryProps> = {
|
|
|
167
204
|
styles: {
|
|
168
205
|
backgroundColor: backgroundColors.background1.value,
|
|
169
206
|
listBackgroundColor: backgroundColors.background1.value,
|
|
207
|
+
textTransform: "default",
|
|
170
208
|
},
|
|
171
209
|
slots: {
|
|
172
210
|
TitleSlot: [
|
package/dist/cli/assets/directory-locator-source/components/sections/directory/DirectoryWrapper.tsx
CHANGED
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
TooltipTrigger,
|
|
47
47
|
} from "../../../internal/puck/ui/Tooltip.tsx";
|
|
48
48
|
import { FaInfoCircle } from "react-icons/fa";
|
|
49
|
+
import type { DirectoryStyles } from "./Directory.tsx";
|
|
49
50
|
import { useTemplateMetadata } from "../../../internal/hooks/useMessageReceivers.ts";
|
|
50
51
|
|
|
51
52
|
export type DirectoryGridProps = {
|
|
@@ -239,6 +240,7 @@ export const DirectoryList = ({
|
|
|
239
240
|
relativePrefixToRoot,
|
|
240
241
|
backgroundColor,
|
|
241
242
|
linkColor,
|
|
243
|
+
textTransform = "default",
|
|
242
244
|
}: {
|
|
243
245
|
streamDocument: StreamDocument;
|
|
244
246
|
directoryChildren: {
|
|
@@ -256,6 +258,7 @@ export const DirectoryList = ({
|
|
|
256
258
|
relativePrefixToRoot: string;
|
|
257
259
|
backgroundColor: ThemeColor;
|
|
258
260
|
linkColor?: ThemeColor;
|
|
261
|
+
textTransform?: DirectoryStyles["textTransform"];
|
|
259
262
|
}) => {
|
|
260
263
|
const sortedDirectoryChildren = sortAlphabetically(
|
|
261
264
|
[...directoryChildren],
|
|
@@ -264,8 +267,14 @@ export const DirectoryList = ({
|
|
|
264
267
|
const linkTextTransformValue = (
|
|
265
268
|
getThemeValue("--textTransform-link-textTransform", streamDocument) ?? ""
|
|
266
269
|
).toLowerCase();
|
|
267
|
-
const
|
|
268
|
-
|
|
270
|
+
const resolvedTextTransform =
|
|
271
|
+
textTransform === "default"
|
|
272
|
+
? !linkTextTransformValue ||
|
|
273
|
+
linkTextTransformValue === "none" ||
|
|
274
|
+
linkTextTransformValue === "normal"
|
|
275
|
+
? "capitalize"
|
|
276
|
+
: "var(--textTransform-link-textTransform)"
|
|
277
|
+
: textTransform;
|
|
269
278
|
|
|
270
279
|
return (
|
|
271
280
|
<PageSection verticalPadding="sm" background={backgroundColor}>
|
|
@@ -301,9 +310,8 @@ export const DirectoryList = ({
|
|
|
301
310
|
>
|
|
302
311
|
<Body
|
|
303
312
|
style={{
|
|
304
|
-
textTransform:
|
|
305
|
-
|
|
306
|
-
: ("var(--textTransform-link-textTransform)" as React.CSSProperties["textTransform"]),
|
|
313
|
+
textTransform:
|
|
314
|
+
resolvedTextTransform as React.CSSProperties["textTransform"],
|
|
307
315
|
}}
|
|
308
316
|
>
|
|
309
317
|
{label}
|
|
@@ -98,8 +98,11 @@ export {
|
|
|
98
98
|
export { type YextCTAField } from "./fields/CTASelectorField.tsx";
|
|
99
99
|
export {
|
|
100
100
|
toPuckFields,
|
|
101
|
+
type FieldGenerationMetadata,
|
|
101
102
|
type YextArrayField,
|
|
102
103
|
type YextComponentConfig,
|
|
104
|
+
type YextTransformedProps,
|
|
105
|
+
type ResolvedComprehensiveCTAValue,
|
|
103
106
|
type YextCustomFieldRenderProps,
|
|
104
107
|
type YextFieldDefinition,
|
|
105
108
|
type YextFieldMap,
|
|
@@ -108,6 +111,8 @@ export {
|
|
|
108
111
|
type YextPuckField,
|
|
109
112
|
} from "./fields/fields.ts";
|
|
110
113
|
export { YextAutoField } from "./fields/YextAutoField.tsx";
|
|
114
|
+
export { MaybeRTF } from "./components/helpers/maybeRTF.tsx";
|
|
115
|
+
export { createYextFieldTransforms } from "./fields/fieldTransforms/index.ts";
|
|
111
116
|
export { BackgroundProvider, useBackground } from "./hooks/useBackground.tsx";
|
|
112
117
|
export {
|
|
113
118
|
CardContextProvider,
|
|
@@ -147,6 +152,7 @@ export {
|
|
|
147
152
|
type RootConfig,
|
|
148
153
|
} from "./utils/getPageMetadata.ts";
|
|
149
154
|
export {
|
|
155
|
+
LOCATOR_ENTITY_TYPES,
|
|
150
156
|
getEntityTypeLabel,
|
|
151
157
|
getLocatorEntityTypeSourceMap,
|
|
152
158
|
isLocatorEntityType,
|
|
@@ -243,3 +249,29 @@ export { loadTranslationDictionary } from "./utils/i18n/translationResources.ts"
|
|
|
243
249
|
export { isVisualEditorTestEnv } from "./components/testing/utils.ts";
|
|
244
250
|
export { fetchLocalesToPathsForEntity } from "./utils/api/fetchLocalesToPathsForEntity.ts";
|
|
245
251
|
export { presetImageIcons } from "./utils/presetImageIcons.tsx";
|
|
252
|
+
export {
|
|
253
|
+
createPuckGenerationCatalog,
|
|
254
|
+
withGenerationCatalog,
|
|
255
|
+
} from "./utils/createPuckGenerationCatalog.ts";
|
|
256
|
+
export type { LayoutGenerationMetadata as ComponentGenerationMetadata } from "./fields/fields.ts";
|
|
257
|
+
export {
|
|
258
|
+
inferFieldZodSchema,
|
|
259
|
+
widthZodSchema,
|
|
260
|
+
} from "./utils/layoutGenerationSchemas/inferFieldZodSchema.ts";
|
|
261
|
+
export { resolveCanonicalSelectorGroups } from "./utils/selectorOptions.ts";
|
|
262
|
+
export {
|
|
263
|
+
translatableStringZodSchema,
|
|
264
|
+
richTextZodSchema,
|
|
265
|
+
translatableRichTextZodSchema,
|
|
266
|
+
assetImageZodSchema,
|
|
267
|
+
imageZodSchema,
|
|
268
|
+
entityFieldZodSchema,
|
|
269
|
+
enhancedCtaZodSchema,
|
|
270
|
+
ctaSelectorZodSchema,
|
|
271
|
+
comprehensiveCtaZodSchema,
|
|
272
|
+
hoursZodSchema,
|
|
273
|
+
} from "./utils/layoutGenerationSchemas/yextFieldSchemas.ts";
|
|
274
|
+
export {
|
|
275
|
+
backgroundColorZodSchema,
|
|
276
|
+
siteColorZodSchema,
|
|
277
|
+
} from "./utils/layoutGenerationSchemas/colorFieldSchemas.ts";
|