@velocity-astro/cms-admin 0.1.0-beta.4 → 0.1.0-beta.6
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/app-dist/assets/{RichTextEditor-B1fSHY4y.js → RichTextEditor-BiKJJtkz.js} +1 -1
- package/app-dist/assets/{index-DmVwReEd.js → index-BgVjqwy6.js} +11 -11
- package/app-dist/assets/index-BvWFILf6.css +2 -0
- package/app-dist/index.html +2 -2
- package/dist/fields/BlocksControl.d.ts.map +1 -1
- package/dist/fields/BlocksControl.js +122 -14
- package/dist/fields/BlocksControl.js.map +1 -1
- package/dist/fields/FieldGrid.d.ts +10 -1
- package/dist/fields/FieldGrid.d.ts.map +1 -1
- package/dist/fields/FieldGrid.js +4 -3
- package/dist/fields/FieldGrid.js.map +1 -1
- package/dist/fields/controls.d.ts.map +1 -1
- package/dist/fields/controls.js +30 -3
- package/dist/fields/controls.js.map +1 -1
- package/dist/fields/field-control.d.ts +13 -0
- package/dist/fields/field-control.d.ts.map +1 -1
- package/dist/fields/field-control.js.map +1 -1
- package/dist/fields/page-focus.d.ts +30 -2
- package/dist/fields/page-focus.d.ts.map +1 -1
- package/dist/fields/page-focus.js +33 -2
- package/dist/fields/page-focus.js.map +1 -1
- package/dist/messages/en.d.ts +11 -1
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/en.js +11 -1
- package/dist/messages/en.js.map +1 -1
- package/dist/page-bridge/index.d.ts +7 -0
- package/dist/page-bridge/index.d.ts.map +1 -0
- package/dist/page-bridge/index.js +7 -0
- package/dist/page-bridge/index.js.map +1 -0
- package/dist/page-bridge/preview-bridge.d.ts +35 -0
- package/dist/page-bridge/preview-bridge.d.ts.map +1 -0
- package/dist/page-bridge/preview-bridge.js +702 -0
- package/dist/page-bridge/preview-bridge.js.map +1 -0
- package/dist/screens/EntryEditor/EntryForm.d.ts.map +1 -1
- package/dist/screens/EntryEditor/EntryForm.js +18 -8
- package/dist/screens/EntryEditor/EntryForm.js.map +1 -1
- package/dist/screens/EntryEditor/PagePane.d.ts +19 -1
- package/dist/screens/EntryEditor/PagePane.d.ts.map +1 -1
- package/dist/screens/EntryEditor/PagePane.js +25 -6
- package/dist/screens/EntryEditor/PagePane.js.map +1 -1
- package/package.json +9 -5
- package/app-dist/assets/index-CczBKhBz.css +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-7xl:80rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-widest:.1em;--animate-spin:spin 1s linear infinite;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-ui);--default-mono-font-family:var(--font-code)}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{background:var(--background);color:var(--foreground);font-family:var(--font-ui);font-size:var(--type-base);line-height:var(--type-base-leading);-webkit-font-smoothing:antialiased}input[type=search]::-webkit-search-cancel-button{appearance:none}}@layer components;@layer utilities{.toast-stack{display:grid}.toast-stack>*>*{transform-origin:bottom;transition-property:transform,opacity;transition-duration:var(--motion-slow);transition-timing-function:var(--motion-ease);grid-area:1/1;align-self:stretch}@starting-style{.toast-stack>*>*{opacity:0;transform:translateY(100%)}}.toast-stack>*>*>*{transition:opacity var(--motion-base) var(--motion-ease)}.toast-stack>:first-child>*{z-index:3}.toast-stack>:nth-child(2)>*{z-index:2;transform:translateY(-.75rem)scale(.95)}.toast-stack>:nth-child(3)>*{z-index:1;transform:translateY(-1.5rem)scale(.9)}.toast-stack>:nth-child(n+4)>*{opacity:0;pointer-events:none;transform:translateY(-1.5rem)scale(.9)}.toast-stack>:nth-child(n+2)>*>*{opacity:0}.toast-stack:hover,.toast-stack:focus-within{flex-direction:column-reverse;gap:.5rem;display:flex}:is(.toast-stack:hover,.toast-stack:focus-within)>*>*,:is(.toast-stack:hover,.toast-stack:focus-within)>*>*>*{opacity:1;pointer-events:auto;transform:none}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-3{left:calc(var(--spacing) * 3)}.layer-overlay{z-index:var(--layer-overlay)}.layer-sticky{z-index:var(--layer-sticky)}.layer-toast{z-index:var(--layer-toast)}.col-span-full{grid-column:1/-1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-auto{margin:auto}.mx-1{margin-inline:var(--spacing)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.my-2{margin-block:calc(var(--spacing) * 2)}.rich-text>*+*{margin-top:.75em}.rich-text h2{font-family:var(--font-heading);font-size:var(--type-xl);line-height:var(--type-xl-leading);font-weight:600}.rich-text h3{font-family:var(--font-heading);font-size:var(--type-lg);line-height:var(--type-lg-leading);font-weight:600}.rich-text ul,.rich-text ol{padding-left:1.5em}.rich-text ul{list-style:outside}.rich-text ol{list-style:decimal}.rich-text li+li{margin-top:.25em}.rich-text blockquote{border-left:2px solid var(--border-strong);color:var(--foreground-secondary);padding-left:1em}.rich-text a{color:var(--foreground);text-underline-offset:2px;text-decoration:underline}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.-mb-px{margin-bottom:-1px}.-ml-128{margin-left:calc(var(--spacing) * -128)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.aspect-video{aspect-ratio:var(--aspect-video)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-32{height:calc(var(--spacing) * 32)}.h-dvh{height:100dvh}.h-full{height:100%}.pane-tall{height:var(--pane-height)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-20{min-height:calc(var(--spacing) * 20)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-dvh{min-height:100dvh}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-1\/4{width:25%}.w-3\/4{width:75%}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-48{width:calc(var(--spacing) * 48)}.w-60{width:calc(var(--spacing) * 60)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-lg{width:var(--container-lg)}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-\(--trigger-width\){min-width:var(--trigger-width)}.min-w-0{min-width:0}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-0{flex-basis:0}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.motion-float[data-placement^=bottom]{--float-y:-.25rem;transform-origin:top}.motion-float[data-placement^=top]{--float-y:.25rem;transform-origin:bottom}.motion-float[data-placement^=left]{--float-x:.25rem;transform-origin:100%}.motion-float[data-placement^=right]{--float-x:-.25rem;transform-origin:0}.motion-float[data-entering]{animation:motion-float-in var(--motion-base) var(--motion-ease-enter)}.motion-float[data-exiting]{animation:motion-float-out var(--motion-fast) var(--motion-ease-exit) forwards}.motion-press{transition-property:color,background-color,border-color,opacity,box-shadow,transform;transition-duration:var(--motion-fast);transition-timing-function:var(--motion-ease)}.motion-press[data-pressed]{transform:scale(.97)}.motion-pop[data-entering]{animation:motion-pop-in var(--motion-slow) var(--motion-ease-enter)}.motion-pop[data-exiting]{animation:motion-pop-out var(--motion-base) var(--motion-ease-exit) forwards}.motion-scrim[data-entering]{animation:motion-scrim-in var(--motion-slow) var(--motion-ease)}.motion-scrim[data-exiting]{animation:motion-scrim-out var(--motion-slow) var(--motion-ease-exit) forwards}.motion-sheet[data-entering]{animation:motion-sheet-in var(--motion-slower) var(--motion-ease-enter)}.motion-sheet[data-exiting]{animation:motion-sheet-out var(--motion-slow) var(--motion-ease-exit) forwards}.animate-spin{animation:var(--animate-spin)}.motion-rise{animation:motion-rise-in var(--motion-slow) var(--motion-ease-enter)}.motion-skeleton{animation:motion-fade-in var(--motion-slow) var(--motion-ease) var(--motion-slow) backwards, motion-breathe var(--motion-loop) ease-in-out infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.resize-y{resize:vertical}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-2xl{border-radius:var(--theme-radius-2xl)}.rounded-full{border-radius:var(--theme-radius-full)}.rounded-lg{border-radius:var(--theme-radius-lg)}.rounded-md{border-radius:var(--theme-radius-md)}.rounded-sm{border-radius:var(--theme-radius-sm)}.rounded-xl{border-radius:var(--theme-radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--theme-radius-2xl);border-top-right-radius:var(--theme-radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border{border-color:var(--border)}.border-border-strong{border-color:var(--border-strong)}.border-destructive{border-color:var(--destructive)}.border-input-border{border-color:var(--input-border)}.border-ring{border-color:var(--ring)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-background-elevated{background-color:var(--background-elevated)}.bg-background-secondary{background-color:var(--background-secondary)}.bg-background-tertiary{background-color:var(--background-tertiary)}.bg-border{background-color:var(--border)}.bg-border-strong{background-color:var(--border-strong)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-error-light{background-color:var(--error-light)}.bg-foreground{background-color:var(--foreground)}.bg-foreground-subtle{background-color:var(--foreground-subtle)}.bg-info-light{background-color:var(--info-light)}.bg-input{background-color:var(--input-bg)}.bg-primary{background-color:var(--primary)}.bg-ring{background-color:var(--ring)}.bg-scrim{background-color:var(--scrim)}.bg-secondary{background-color:var(--secondary)}.bg-success{background-color:var(--success)}.bg-success-light{background-color:var(--success-light)}.bg-warning-light{background-color:var(--warning-light)}.fill-brand-fill{fill:var(--brand-fill)}.fill-foreground{fill:var(--foreground)}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.p-12{padding:calc(var(--spacing) * 12)}.px-0{padding-inline:0}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.px-12{padding-inline:calc(var(--spacing) * 12)}.py-0{padding-block:0}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-display{font-family:var(--font-heading)}.font-mono{font-family:var(--font-code)}.text-2xl{font-size:var(--type-2xl);line-height:var(--tw-leading,var(--type-2xl-leading))}.text-3xl{font-size:var(--type-3xl);line-height:var(--tw-leading,var(--type-3xl-leading))}.text-base{font-size:var(--type-base);line-height:var(--tw-leading,var(--type-base-leading))}.text-lg{font-size:var(--type-lg);line-height:var(--tw-leading,var(--type-lg-leading))}.text-sm{font-size:var(--type-sm);line-height:var(--tw-leading,var(--type-sm-leading))}.text-xl{font-size:var(--type-xl);line-height:var(--tw-leading,var(--type-xl-leading))}.text-xs{font-size:var(--type-xs);line-height:var(--tw-leading,var(--type-xs-leading))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-background{color:var(--background)}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-error-foreground{color:var(--error-foreground)}.text-foreground{color:var(--foreground)}.text-foreground-muted{color:var(--foreground-muted)}.text-foreground-secondary{color:var(--foreground-secondary)}.text-foreground-subtle{color:var(--foreground-subtle)}.text-info-foreground{color:var(--info-foreground)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-success{color:var(--success)}.text-success-foreground{color:var(--success-foreground)}.text-warning-foreground{color:var(--warning-foreground)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.underline{text-decoration-line:underline}.decoration-border{-webkit-text-decoration-color:var(--border);-webkit-text-decoration-color:var(--border);-webkit-text-decoration-color:var(--border);text-decoration-color:var(--border)}.decoration-border-strong{-webkit-text-decoration-color:var(--border-strong);-webkit-text-decoration-color:var(--border-strong);-webkit-text-decoration-color:var(--border-strong);text-decoration-color:var(--border-strong)}.underline-offset-2{text-underline-offset:2px}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:var(--theme-shadow-lg);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:var(--theme-shadow-md);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:var(--theme-shadow-sm);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--theme-shadow-xl);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border{--tw-ring-color:var(--border)}.ring-ring{--tw-ring-color:var(--ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-4{--tw-ring-offset-width:4px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-base{transition-duration:var(--motion-base);transition-timing-function:var(--motion-ease)}.motion-fast{transition-duration:var(--motion-fast);transition-timing-function:var(--motion-ease)}.motion-slide{transition-duration:var(--motion-slow);transition-timing-function:var(--motion-ease)}.outline-none{--tw-outline-style:none;outline-style:none}:is(:where(.group):last-child .group-last\:border-b-0){border-bottom-style:var(--tw-border-style);border-bottom-width:0}:is(:where(.group)[data-disabled] .group-data-disabled\:opacity-50){opacity:.5}:is(:where(.group)[data-empty] .group-data-empty\:hidden){display:none}:is(:where(.group)[data-focus-visible] .group-data-focus-visible\:ring-2){--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(:where(.group)[data-focus-visible] .group-data-focus-visible\:ring-ring){--tw-ring-color:var(--ring)}:is(:where(.group)[data-focus-visible] .group-data-focus-visible\:ring-offset-2){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}:is(:where(.group)[data-focus-visible] .group-data-focus-visible\:ring-offset-background){--tw-ring-offset-color:var(--background)}:is(:where(.group)[data-hovered] .group-data-hovered\:border-border-strong){border-color:var(--border-strong)}:is(:where(.group)[data-indeterminate] .group-data-indeterminate\:border-primary){border-color:var(--primary)}:is(:where(.group)[data-indeterminate] .group-data-indeterminate\:bg-primary){background-color:var(--primary)}:is(:where(.group)[data-selected] .group-data-selected\:translate-x-4){--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group)[data-selected] .group-data-selected\:border-primary){border-color:var(--primary)}:is(:where(.group)[data-selected] .group-data-selected\:bg-primary){background-color:var(--primary)}.placeholder\:text-foreground-subtle::placeholder{color:var(--foreground-subtle)}@media (hover:hover){.hover\:border-border-strong:hover{border-color:var(--border-strong)}}.focus\:not-sr-only:focus{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.focus\:fixed:focus{position:fixed}.focus\:top-2:focus{top:calc(var(--spacing) * 2)}.focus\:left-2:focus{left:calc(var(--spacing) * 2)}.has-focus-visible\:border-input-focus:has(:focus-visible){border-color:var(--input-focus)}.has-focus-visible\:ring-1:has(:focus-visible){--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus-visible\:ring-input-focus:has(:focus-visible){--tw-ring-color:var(--input-focus)}.data-action\:cursor-default[data-action],.data-allows-sorting\:cursor-default[data-allows-sorting]{cursor:default}.data-disabled\:bg-background-secondary[data-disabled]{background-color:var(--background-secondary)}.data-disabled\:text-foreground-muted[data-disabled]{color:var(--foreground-muted)}.data-disabled\:text-foreground-subtle[data-disabled]{color:var(--foreground-subtle)}.data-disabled\:no-underline[data-disabled]{text-decoration-line:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-focus-visible\:rounded-sm[data-focus-visible]{border-radius:var(--theme-radius-sm)}.data-focus-visible\:border-input-focus[data-focus-visible]{border-color:var(--input-focus)}.data-focus-visible\:ring-1[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-input-focus[data-focus-visible]{--tw-ring-color:var(--input-focus)}.data-focus-visible\:ring-ring[data-focus-visible]{--tw-ring-color:var(--ring)}.data-focus-visible\:ring-offset-2[data-focus-visible]{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.data-focus-visible\:ring-offset-background[data-focus-visible]{--tw-ring-offset-color:var(--background)}.data-focus-visible\:ring-inset[data-focus-visible]{--tw-ring-inset:inset}.data-focus-within\:border-input-focus[data-focus-within]{border-color:var(--input-focus)}.data-focus-within\:ring-1[data-focus-within]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-within\:ring-input-focus[data-focus-within]{--tw-ring-color:var(--input-focus)}.data-focused\:border-input-focus[data-focused]{border-color:var(--input-focus)}.data-focused\:border-ring[data-focused]{border-color:var(--ring)}.data-focused\:bg-primary[data-focused]{background-color:var(--primary)}.data-focused\:bg-secondary[data-focused]{background-color:var(--secondary)}.data-focused\:text-primary-foreground[data-focused]{color:var(--primary-foreground)}.data-focused\:ring-1[data-focused]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focused\:ring-2[data-focused]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focused\:ring-input-focus[data-focused]{--tw-ring-color:var(--input-focus)}.data-focused\:ring-ring[data-focused]{--tw-ring-color:var(--ring)}.data-hovered\:border-border-strong[data-hovered]{border-color:var(--border-strong)}.data-hovered\:border-foreground-subtle[data-hovered]{border-color:var(--foreground-subtle)}.data-hovered\:bg-background-secondary[data-hovered]{background-color:var(--background-secondary)}.data-hovered\:bg-background-tertiary[data-hovered]{background-color:var(--background-tertiary)}.data-hovered\:bg-primary-hover[data-hovered]{background-color:var(--primary-hover)}.data-hovered\:bg-secondary[data-hovered]{background-color:var(--secondary)}.data-hovered\:bg-secondary-hover[data-hovered]{background-color:var(--secondary-hover)}.data-hovered\:text-foreground[data-hovered]{color:var(--foreground)}.data-hovered\:decoration-current[data-hovered]{text-decoration-color:currentColor}.data-hovered\:opacity-90[data-hovered]{opacity:.9}.data-hovered\:shadow-sm[data-hovered]{--tw-shadow:var(--theme-shadow-sm);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-href\:cursor-default[data-href]{cursor:default}.data-invalid\:border-destructive[data-invalid]{border-color:var(--destructive)}.data-invalid\:data-focused\:ring-destructive[data-invalid][data-focused]{--tw-ring-color:var(--destructive)}.data-pending\:opacity-70[data-pending]{opacity:.7}.data-placeholder\:text-foreground-subtle[data-placeholder]{color:var(--foreground-subtle)}.data-pressed\:cursor-grabbing[data-pressed]{cursor:grabbing}.data-pressed\:bg-background-tertiary[data-pressed]{background-color:var(--background-tertiary)}.data-pressed\:bg-primary-hover[data-pressed]{background-color:var(--primary-hover)}.data-pressed\:bg-secondary-hover[data-pressed]{background-color:var(--secondary-hover)}.data-pressed\:opacity-90[data-pressed]{opacity:.9}.data-selected\:border-input-focus[data-selected]{border-color:var(--input-focus)}.data-selected\:border-primary[data-selected]{border-color:var(--primary)}.data-selected\:bg-background-tertiary[data-selected]{background-color:var(--background-tertiary)}.data-selected\:text-foreground[data-selected]{color:var(--foreground)}.data-selected\:ring-1[data-selected]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:ring-input-focus[data-selected]{--tw-ring-color:var(--input-focus)}@media (min-width:40rem){.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:80rem){.xl\:sticky{position:sticky}.xl\:top-24{top:calc(var(--spacing) * 24)}.xl\:w-80{width:calc(var(--spacing) * 80)}.xl\:w-lg{width:var(--container-lg)}.xl\:flex-1{flex:1}.xl\:shrink-0{flex-shrink:0}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:items-start{align-items:flex-start}}}:root{--gray-0:#fff;--gray-50:#f9f9f9;--gray-100:#f3f3f3;--gray-200:#e2e2e2;--gray-300:#d0d0d0;--gray-400:#8c8c8c;--gray-500:#696969;--gray-600:#424242;--gray-700:#333;--gray-800:#262626;--gray-900:#151515;--gray-950:#060606;--brand-hue:38;--brand-50:oklch(97.5% .02 calc(var(--brand-hue) + 7));--brand-100:oklch(94.8% .04 calc(var(--brand-hue) + 7));--brand-200:oklch(87.5% .08 calc(var(--brand-hue) + 7));--brand-300:oklch(77.8% .14 calc(var(--brand-hue) + 7));--brand-400:oklch(68.5% .19 calc(var(--brand-hue) + 2));--brand-500:oklch(62.5% .22 var(--brand-hue));--brand-600:oklch(53.2% .19 var(--brand-hue));--brand-700:oklch(45.5% .16 var(--brand-hue));--brand-800:oklch(37.2% .13 var(--brand-hue));--brand-900:oklch(26.5% .09 var(--brand-hue));--brand-fill:var(--brand-500);--brand-fill-hover:var(--brand-400);--brand-ink:var(--gray-950);--blue-500:#3279ed;--blue-600:#1d65d8;--success:#44c352;--success-light:#d7f5d7;--success-foreground:#00490c;--warning:#edb100;--warning-light:#fff0d1;--warning-foreground:#5e4300;--error:#f1373d;--error-light:#ffe2df;--error-foreground:#8d000f;--info:#3279ed;--info-light:#ddecff;--info-foreground:#0b4196;--background:var(--gray-0);--background-secondary:var(--gray-50);--background-tertiary:var(--gray-100);--background-elevated:var(--gray-0);--foreground:var(--gray-900);--foreground-secondary:var(--gray-700);--foreground-muted:var(--gray-600);--foreground-subtle:var(--gray-500);--border:var(--gray-200);--border-strong:var(--gray-300);--border-subtle:var(--gray-100);--primary:var(--gray-900);--primary-hover:var(--gray-800);--primary-foreground:var(--gray-0);--secondary:var(--gray-100);--secondary-hover:var(--gray-200);--secondary-foreground:var(--gray-900);--accent:var(--brand-500);--accent-hover:var(--brand-600);--accent-light:var(--brand-100);--muted:var(--gray-100);--muted-foreground:var(--gray-500);--card:var(--gray-0);--card-border:var(--gray-200);--input-bg:var(--gray-0);--input-border:var(--gray-300);--input-focus:var(--gray-900);--ring:var(--gray-900);--destructive:#c2181d;--destructive-foreground:var(--gray-0);--theme-shadow-sm:0 1px 2px #0000000a;--theme-shadow-md:0 4px 8px #0000000a, 0 0 1px #0000000a;--theme-shadow-lg:0 8px 16px #00000014, 0 0 1px #0000000a;--theme-shadow-xl:0 24px 48px #0000001f, 0 0 1px #0000000a;--theme-radius-sm:.25rem;--theme-radius-md:.375rem;--theme-radius-lg:.5rem;--theme-radius-xl:.625rem;--theme-radius-2xl:1rem;--theme-radius-full:9999px}@supports (color:lab(0% 0 0)){:root{--gray-0:lab(100% 0 0);--gray-50:lab(98.028% -.0000596046 .0000119209);--gray-100:lab(95.94% 0 0);--gray-200:lab(89.908% -.0000596046 .0000119209);--gray-300:lab(83.528% 0 0);--gray-400:lab(58.24% 0 0);--gray-500:lab(44.32% 0 0);--gray-600:lab(28.08% 0 -.00000596046);--gray-700:lab(21.12% 0 0);--gray-800:lab(14.972% 0 0);--gray-900:lab(6.59531% -.00000745058 0);--gray-950:lab(1.68091% 0 0);--blue-500:lab(51.2578% 10.3025 -66.4402);--blue-600:lab(43.7805% 13.0177 -66.304);--success:lab(70.1353% -53.4077 45.1631);--success-light:lab(93.6911% -13.9721 10.9206);--success-foreground:lab(26.2784% -42.7539 39.9997);--warning:lab(76.3573% 15.1314 93.7017);--warning-light:lab(95.5261% 2.02972 19.535);--warning-foreground:lab(30.3782% 11.9197 63.249);--error:lab(54.616% 69.6554 43.5637);--error-light:lab(92.5749% 15.3735 8.32583);--error-foreground:lab(28.5252% 57.3552 40.6532);--info:lab(51.2578% 10.3025 -66.4402);--info-light:lab(92.8431% -1.93647 -18.3581);--info-foreground:lab(28.8099% 11.2973 -52.3097);--destructive:lab(42.3119% 63.0679 45.4931)}}.dark{--background:var(--gray-950);--background-secondary:var(--gray-900);--background-tertiary:var(--gray-800);--background-elevated:var(--gray-900);--foreground:var(--gray-50);--foreground-secondary:var(--gray-300);--foreground-muted:var(--gray-400);--foreground-subtle:gray;--border:var(--gray-800);--border-strong:var(--gray-700);--border-subtle:var(--gray-900);--primary:var(--gray-0);--primary-hover:var(--gray-200);--primary-foreground:var(--gray-900);--secondary:var(--gray-800);--secondary-hover:var(--gray-700);--secondary-foreground:var(--gray-100);--muted:var(--gray-800);--muted-foreground:var(--gray-400);--card:var(--gray-900);--card-border:var(--gray-800);--input-bg:var(--gray-900);--input-border:var(--gray-700);--input-focus:var(--gray-0);--ring:var(--gray-0);--accent-light:var(--brand-900);--destructive:#fd736d;--destructive-foreground:#1d0c0b;--success-light:#112812;--warning-light:#2d1f01;--error-light:#361715;--info-light:#132139;--success-foreground:#9be39d;--warning-foreground:#fcd176;--error-foreground:#ffb9b2;--info-foreground:#b1cfff;--theme-shadow-sm:0 1px 3px #0003;--theme-shadow-md:0 4px 8px #00000040, 0 0 1px #0000001a;--theme-shadow-lg:0 8px 16px #0000004d, 0 0 1px #0000001a;--theme-shadow-xl:0 24px 48px #00000059, 0 0 1px #0000001a}@supports (color:lab(0% 0 0)){.dark{--foreground-subtle:lab(53.6% 0 0);--destructive:lab(65.8493% 53.3364 30.7453);--destructive-foreground:lab(5.05235% 7.63235 3.30867);--success-light:lab(13.612% -14.0132 11.4177);--warning-light:lab(13.056% 3.90694 18.9236);--error-light:lab(12.5137% 15.6344 8.83056);--info-light:lab(12.6652% .527114 -17.7116);--success-foreground:lab(84.1051% -33.5711 26.9365);--warning-foreground:lab(86.3231% 7.54684 50.6262);--error-foreground:lab(81.749% 27.858 15.2746);--info-foreground:lab(82.2267% -2.04858 -28.9924)}}:root{--font-ui:"Manrope Variable", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-heading:"Outfit Variable", "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-code:"JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--type-xs:.75rem;--type-xs-leading:1rem;--type-sm:.8125rem;--type-sm-leading:1.25rem;--type-base:.875rem;--type-base-leading:1.25rem;--type-lg:1rem;--type-lg-leading:1.5rem;--type-xl:1.25rem;--type-xl-leading:1.75rem;--type-2xl:1.5rem;--type-2xl-leading:2rem;--type-3xl:1.875rem;--type-3xl-leading:2.125rem;--motion-fast:.1s;--motion-base:.15s;--motion-slow:.25s;--motion-slower:.35s;--motion-loop:1.6s;--motion-ease:cubic-bezier(.2, 0, 0, 1);--motion-ease-enter:cubic-bezier(.16, 1, .3, 1);--motion-ease-exit:cubic-bezier(.4, 0, 1, 1);--pane-height:calc(100dvh - 8.5rem);--layer-raised:10;--layer-sticky:20;--layer-overlay:40;--layer-toast:50;--scrim:#00000080}@supports (color:lab(0% 0 0)){:root{--scrim:lab(0% 0 0/.5)}}@media (prefers-reduced-motion:reduce){:root{--motion-fast:0s;--motion-base:0s;--motion-slow:0s;--motion-slower:0s;--motion-loop:0s}}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAn4ABMAAAAAEwQAAAmOAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjQbgnQcLj9IVkFSgQEGYD9TVEFUgQIAgQovahEICok0h0ULIAAwhzoBNgIkAzwEIAWHJgeBDgwHG6QQUdRKTmoBFD8K42bniObKrG3LZFcMWZzFmrjTFhQ6TVTqPJcInrfrvzq3b2PGn1wwMiNYGTy9ViREYARlL1zAGcPdPqBt3gNWrfKthv4xnM+b9caw+wmjgEUVRjHXhS6jgCK6zf5HiWQacJpGdAgdrbV6g/Rf1BfxRqZVQnrxRVWSJb6RLFnyu0elilmjeoSQCKnxsmwLaddUMjnksriSYuuPl06EAl7KfAiWQjCUETz0zNZ3EII94CDQtzkMfZ/9IkkY8tZRZTDky5ZVwBAM+GYpdd4ZVAWYImnLkiTg48l79gGx3D+VBtLeyg8u7bJAd4uo0pFuQBFysE9C95l0W4Fkiao6GfrDbu77lVU7wk9cV3uqOsXmQiMkhVKl1ugjzUAJBSIkkVWHijkpkVSyUFsgVBuJMA0N+ZnXtyUv5yMigGdfQRmwL1AAjQ3YXG6iIFNSUdPQo8+AISPGAltBMDQRAtyf4ZspLlZkpyOVoMZPvFGWzvk8p5SUC/NWPMj6T2/Yas2EdlON5GkfdkeFwVGjta825H89NIenlLWAPAp5h1KDtRhCaAQWMsFKtEvOKpIhgLHlXPARokkgEGEOAkqxJRQpKYq4ezahIiLHP6hZpqMbV0pUF2vdvEimLEQ/iIUYLgYWs0VXGVlLTOPdaPmFfCC/XrtzqVo1ez7vz6+Kd2+7o11ZJ+4MreLbB5BKVGxobAq4jZYalZ5aX2CKJiw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GyVaBUqpLPW5BaMpRshEpl8nS1qw5dgnzlik8QBXmdy5UrIH74heTKZKMSilQso4hsRiGraQZRzxpNGqlEJMsXuAU7GlcR8mWSykUpVkWGyIf0a8v4qEQp5CtGsMiZa+4ESYQy+WilCiguHzxMXO54ogShooTV2bj2z1zL6DYSoImoQ8lFUWxMLBNQQgLkV2tHYgUoIbkuREz+fJHKxxWBcnvu3KQppFCxLkguB1NyVSp/TknRvNwYlCdbblWu3ze6owHdWluhE5tgQ6ej2SV65CijijoaRfSiH4Nqz1OpfEW+WeI/oU0ly60zkV9YzOQSYtZVEGYmrysTZAJkY4qZtIBD9/LYTIK7Nww3vMiYBwA=)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-cyrillic-wght-normal-Dvxsihut.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-greek-wght-normal-DL7QRZyv.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-vietnamese-wght-normal-usUDDRr7.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-latin-ext-wght-normal-Ch3YOpNY.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(./manrope-latin-wght-normal-DHIcAJRg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Outfit Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./outfit-latin-ext-wght-normal-DdQaqQDo.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Outfit Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(./outfit-latin-wght-normal-Bc-8i84L.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CImXS7qL/RJFVzC1qiB6KmKeD6TZdQ6IRG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s5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(./jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@keyframes motion-fade-in{0%{opacity:0}}@keyframes motion-fade-out{to{opacity:0}}@keyframes motion-pop-in{0%{opacity:0;transform:translateY(.5rem)scale(.96)}}@keyframes motion-pop-out{to{opacity:0;transform:translateY(.25rem)scale(.98)}}@keyframes motion-sheet-in{0%{transform:translate(100%)}}@keyframes motion-sheet-out{to{transform:translate(100%)}}@keyframes motion-float-in{0%{opacity:0;transform:translate(var(--float-x,0), var(--float-y,0)) scale(.97)}}@keyframes motion-float-out{to{opacity:0;transform:translate(var(--float-x,0), var(--float-y,0)) scale(.97)}}@keyframes motion-rise-in{0%{opacity:0;transform:translateY(.25rem)}}@keyframes motion-scrim-in{0%{background-color:#0000}}@keyframes motion-scrim-out{to{background-color:#0000}}@keyframes motion-breathe{50%{opacity:.5}}::view-transition-old(root){animation-duration:var(--motion-base);animation-timing-function:var(--motion-ease)}::view-transition-new(root){animation-duration:var(--motion-base);animation-timing-function:var(--motion-ease)}@property --tw-border-spacing-x{syntax:"<length>";inherits:false;initial-value:0}@property --tw-border-spacing-y{syntax:"<length>";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}
|
package/app-dist/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<meta name="robots" content="noindex, nofollow" />
|
|
7
7
|
<!--velocity-cms-->
|
|
8
8
|
<title>Editor</title>
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-BgVjqwy6.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BvWFILf6.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlocksControl.d.ts","sourceRoot":"","sources":["../../src/fields/BlocksControl.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"BlocksControl.d.ts","sourceRoot":"","sources":["../../src/fields/BlocksControl.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAc,MAAM,oBAAoB,CAAC;AAoBxE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAiShH"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { liveFields } from '@velocity-astro/cms-core';
|
|
3
3
|
import { ConfirmDialog, OptionPicker, SectionList, Text } from '@velocity-astro/cms-ui';
|
|
4
4
|
import { Copy, Eye, EyeOff, Trash2 } from 'lucide-react';
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
5
|
+
import { useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { localized, withValue } from '../lib/content.js';
|
|
7
7
|
import { useLast } from '../lib/use-closing.js';
|
|
8
8
|
import { useLocale, useMessages } from '../messages/messages-context.js';
|
|
@@ -36,7 +36,11 @@ export function BlocksControl({ field, label, help, value, onChange, path, probl
|
|
|
36
36
|
const max = typeof field.options['max'] === 'number' ? field.options['max'] : undefined;
|
|
37
37
|
const [openIds, setOpenIds] = useState([]);
|
|
38
38
|
const [isPicking, setPicking] = useState(false);
|
|
39
|
+
// Where the section being picked goes: a place among the sections, or the end.
|
|
40
|
+
const [pickAt, setPickAt] = useState(null);
|
|
39
41
|
const [removingId, setRemovingId] = useState(null);
|
|
42
|
+
// The field last pressed on the page, until the person turns to something else in the form.
|
|
43
|
+
const [pointed, setPointed] = useState(null);
|
|
40
44
|
const controlFor = useControlFor();
|
|
41
45
|
const focus = usePageFocus();
|
|
42
46
|
const pressed = focus?.pressed;
|
|
@@ -47,14 +51,66 @@ export function BlocksControl({ field, label, help, value, onChange, path, probl
|
|
|
47
51
|
};
|
|
48
52
|
// A section pressed on the page beside the form opens here.
|
|
49
53
|
useEffect(() => {
|
|
50
|
-
if (pressed)
|
|
51
|
-
|
|
54
|
+
if (!pressed)
|
|
55
|
+
return;
|
|
56
|
+
setOpenIds((ids) => (ids.includes(pressed.id) ? ids : [...ids, pressed.id]));
|
|
57
|
+
// A field inside a list is pointed at by the list it is in.
|
|
58
|
+
const [key] = pressed.field?.split('.') ?? [];
|
|
59
|
+
setPointed(key === undefined ? null : { section: pressed.id, key, at: pressed.at });
|
|
52
60
|
}, [pressed]);
|
|
61
|
+
// Where each section holds plain words, by the keys the page knows its fields by.
|
|
62
|
+
const wordsOf = (section) => {
|
|
63
|
+
const block = blockOf(blocks, section);
|
|
64
|
+
if (!block || block.retiredAt !== undefined)
|
|
65
|
+
return [];
|
|
66
|
+
return liveFields(block.fields).flatMap((inner) => (controlFor(inner.type)?.words?.(inner, section.data[inner.id], controlFor) ?? []).map(({ place, put }) => ({
|
|
67
|
+
place: place === '' ? inner.key : `${inner.key}.${place}`,
|
|
68
|
+
put: (words) => withValue(section.data, inner.id, put(words)),
|
|
69
|
+
})));
|
|
70
|
+
};
|
|
71
|
+
const typable = Object.fromEntries(sections.map((section) => [section.id, wordsOf(section).map(({ place }) => place)]));
|
|
72
|
+
const typableSaid = JSON.stringify(typable);
|
|
73
|
+
const setTypable = focus?.setTypable;
|
|
74
|
+
useEffect(() => setTypable?.(JSON.parse(typableSaid)), [setTypable, typableSaid]);
|
|
75
|
+
// Words typed on the page go into the form as they are typed. Several may arrive before the
|
|
76
|
+
// form is drawn again, so each builds on the one before.
|
|
77
|
+
const held = useRef({ sections, wordsOf, change });
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
held.current = { sections, wordsOf, change };
|
|
80
|
+
});
|
|
81
|
+
const onTyped = focus?.onTyped;
|
|
82
|
+
useEffect(() => onTyped?.((id, field, words) => {
|
|
83
|
+
const now = held.current;
|
|
84
|
+
const section = now.sections.find((candidate) => candidate.id === id);
|
|
85
|
+
const place = section && now.wordsOf(section).find((candidate) => candidate.place === field);
|
|
86
|
+
if (!section || !place)
|
|
87
|
+
return;
|
|
88
|
+
const next = now.sections.map((existing) => (existing.id === id ? { ...existing, data: place.put(words) } : existing));
|
|
89
|
+
held.current = { ...now, sections: next };
|
|
90
|
+
now.change(next);
|
|
91
|
+
}), [onTyped]);
|
|
92
|
+
const nameOf = (block) => (block ? localized(block.label, locale) : messages.editor.sectionUnknown);
|
|
93
|
+
// What the page may offer on each section it shows. Hidden and retired sections are not on the page.
|
|
94
|
+
const isFull = max !== undefined && sections.length >= max;
|
|
95
|
+
const offered = {
|
|
96
|
+
labels: {
|
|
97
|
+
up: messages.editor.pageMoveUp,
|
|
98
|
+
down: messages.editor.pageMoveDown,
|
|
99
|
+
duplicate: messages.editor.pageDuplicate,
|
|
100
|
+
remove: messages.editor.pageRemove,
|
|
101
|
+
add: messages.editor.pageAdd,
|
|
102
|
+
addBefore: messages.editor.pageAddBefore,
|
|
103
|
+
addAfter: messages.editor.pageAddAfter,
|
|
104
|
+
},
|
|
105
|
+
sections: Object.fromEntries(sections.map((section, at) => [section.id, { name: nameOf(blockOf(blocks, section)), up: at > 0, down: at < sections.length - 1, copy: !isFull, add: !isFull }])),
|
|
106
|
+
};
|
|
107
|
+
const offeredSaid = JSON.stringify(offered);
|
|
108
|
+
const setTools = focus?.setTools;
|
|
109
|
+
useEffect(() => setTools?.(JSON.parse(offeredSaid)), [setTools, offeredSaid]);
|
|
53
110
|
const remove = (id) => {
|
|
54
111
|
change(sections.filter((section) => section.id !== id));
|
|
55
112
|
setOpenIds((ids) => ids.filter((candidate) => candidate !== id));
|
|
56
113
|
};
|
|
57
|
-
const nameOf = (block) => (block ? localized(block.label, locale) : messages.editor.sectionUnknown);
|
|
58
114
|
const act = (id, action) => {
|
|
59
115
|
const at = sections.findIndex((section) => section.id === id);
|
|
60
116
|
const section = sections[at];
|
|
@@ -79,6 +135,58 @@ export function BlocksControl({ field, label, help, value, onChange, path, probl
|
|
|
79
135
|
setRemovingId(id);
|
|
80
136
|
}
|
|
81
137
|
};
|
|
138
|
+
// A button pressed on a section on the page does what the same button does here.
|
|
139
|
+
const move = (from, to) => {
|
|
140
|
+
const next = [...sections];
|
|
141
|
+
const [moved] = next.splice(from, 1);
|
|
142
|
+
if (moved)
|
|
143
|
+
next.splice(to, 0, moved);
|
|
144
|
+
change(next);
|
|
145
|
+
};
|
|
146
|
+
const acting = useRef({ sections, act, move, isFull });
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
acting.current = { sections, act, move, isFull };
|
|
149
|
+
});
|
|
150
|
+
const onActed = focus?.onActed;
|
|
151
|
+
const show = focus?.open;
|
|
152
|
+
useEffect(() => onActed?.((id, action) => {
|
|
153
|
+
const now = acting.current;
|
|
154
|
+
const at = now.sections.findIndex((section) => section.id === id);
|
|
155
|
+
if (at < 0)
|
|
156
|
+
return;
|
|
157
|
+
if (action === 'up' || action === 'down') {
|
|
158
|
+
const to = action === 'up' ? at - 1 : at + 1;
|
|
159
|
+
if (to < 0 || to >= now.sections.length)
|
|
160
|
+
return;
|
|
161
|
+
now.move(at, to);
|
|
162
|
+
// The page is drawn again with the section in its new place, and brings it into view.
|
|
163
|
+
show?.(id);
|
|
164
|
+
}
|
|
165
|
+
else if (action === 'addBefore' || action === 'addAfter') {
|
|
166
|
+
if (now.isFull)
|
|
167
|
+
return;
|
|
168
|
+
setPickAt(action === 'addBefore' ? at : at + 1);
|
|
169
|
+
setPicking(true);
|
|
170
|
+
}
|
|
171
|
+
else if (action !== 'duplicate' || !now.isFull) {
|
|
172
|
+
now.act(id, action);
|
|
173
|
+
}
|
|
174
|
+
}), [onActed, show]);
|
|
175
|
+
// A section dragged on the page lands where the form would put it.
|
|
176
|
+
const onDragged = focus?.onDragged;
|
|
177
|
+
useEffect(() => onDragged?.((id, beforeId) => {
|
|
178
|
+
const now = acting.current;
|
|
179
|
+
const from = now.sections.findIndex((section) => section.id === id);
|
|
180
|
+
const before = beforeId === null ? now.sections.length : now.sections.findIndex((section) => section.id === beforeId);
|
|
181
|
+
if (from < 0 || before < 0)
|
|
182
|
+
return;
|
|
183
|
+
// Taking it out first moves everything after it one place up.
|
|
184
|
+
const to = before > from ? before - 1 : before;
|
|
185
|
+
if (to === from)
|
|
186
|
+
return;
|
|
187
|
+
now.move(from, to);
|
|
188
|
+
show?.(id);
|
|
189
|
+
}), [onDragged, show]);
|
|
82
190
|
// The picker offers what the template describes today, under the names it files them by.
|
|
83
191
|
const byGroup = new Map();
|
|
84
192
|
for (const block of blocks) {
|
|
@@ -91,23 +199,22 @@ export function BlocksControl({ field, label, help, value, onChange, path, probl
|
|
|
91
199
|
label: localized(block.label, locale),
|
|
92
200
|
icon: blockIcon(block.icon),
|
|
93
201
|
...(block.description !== undefined && { description: localized(block.description, locale) }),
|
|
202
|
+
...(block.thumbnail !== undefined && { image: block.thumbnail }),
|
|
94
203
|
});
|
|
95
204
|
byGroup.set(name, options);
|
|
96
205
|
}
|
|
97
206
|
const groups = [...byGroup].map(([name, options]) => ({ id: name, label: name, options }));
|
|
98
207
|
const removing = useLast(removingId === null ? null : (sections.find((section) => section.id === removingId) ?? null));
|
|
99
|
-
return (_jsxs(_Fragment, { children: [_jsx(SectionList, { label: label, ...(help !== undefined && { description: help }), ...(problem !== undefined && { errorMessage: problem }), emptyText: messages.editor.sectionsEmpty, addLabel: messages.editor.sectionAdd, onAdd: () =>
|
|
208
|
+
return (_jsxs(_Fragment, { children: [_jsx(SectionList, { label: label, ...(help !== undefined && { description: help }), ...(problem !== undefined && { errorMessage: problem }), emptyText: messages.editor.sectionsEmpty, addLabel: messages.editor.sectionAdd, onAdd: () => {
|
|
209
|
+
setPickAt(null);
|
|
210
|
+
setPicking(true);
|
|
211
|
+
}, isFull: isFull, openIds: openIds, revealId: pressed?.id, onOpenChange: (id, isOpen) => {
|
|
212
|
+
setPointed(null);
|
|
100
213
|
if (isOpen)
|
|
101
214
|
open(id);
|
|
102
215
|
else
|
|
103
216
|
setOpenIds((ids) => ids.filter((candidate) => candidate !== id));
|
|
104
|
-
}, onMove: (
|
|
105
|
-
const next = [...sections];
|
|
106
|
-
const [moved] = next.splice(from, 1);
|
|
107
|
-
if (moved)
|
|
108
|
-
next.splice(to, 0, moved);
|
|
109
|
-
change(next);
|
|
110
|
-
}, onAction: act, moveUpLabel: (position) => messages.editor.sectionMoveUp(nameOf(blockOf(blocks, sections[position - 1])), position), moveDownLabel: (position) => messages.editor.sectionMoveDown(nameOf(blockOf(blocks, sections[position - 1])), position), moreLabel: (position) => messages.editor.sectionMore(nameOf(blockOf(blocks, sections[position - 1])), position), dragLabel: (position) => messages.editor.sectionDrag(nameOf(blockOf(blocks, sections[position - 1])), position), items: sections.map((section, index) => {
|
|
217
|
+
}, onMove: move, onAction: act, moveUpLabel: (position) => messages.editor.sectionMoveUp(nameOf(blockOf(blocks, sections[position - 1])), position), moveDownLabel: (position) => messages.editor.sectionMoveDown(nameOf(blockOf(blocks, sections[position - 1])), position), moreLabel: (position) => messages.editor.sectionMore(nameOf(blockOf(blocks, sections[position - 1])), position), dragLabel: (position) => messages.editor.sectionDrag(nameOf(blockOf(blocks, sections[position - 1])), position), items: sections.map((section, index) => {
|
|
111
218
|
const block = blockOf(blocks, section);
|
|
112
219
|
const isRetired = block === undefined || block.retiredAt !== undefined;
|
|
113
220
|
const inner = block ? liveFields(block.fields) : [];
|
|
@@ -133,11 +240,12 @@ export function BlocksControl({ field, label, help, value, onChange, path, probl
|
|
|
133
240
|
]),
|
|
134
241
|
{ id: 'remove', label: messages.editor.sectionRemove, icon: Trash2, tone: 'danger' },
|
|
135
242
|
],
|
|
136
|
-
content: isRetired ? (_jsx(Text, { size: "sm", tone: "muted", children: messages.editor.sectionRetiredNote })) : inner.length === 0 ? (_jsx(Text, { size: "sm", tone: "muted", children: messages.editor.sectionNoFields })) : (_jsx(FieldGrid, { fields: inner, values: section.data, onChange: (child, next) => change(sections.map((existing) => (existing.id === section.id ? { ...existing, data: withValue(existing.data, child.id, next) } : existing))), pathOf: (child) => `${prefix}${child.key}`, problems: problems })),
|
|
243
|
+
content: isRetired ? (_jsx(Text, { size: "sm", tone: "muted", children: messages.editor.sectionRetiredNote })) : inner.length === 0 ? (_jsx(Text, { size: "sm", tone: "muted", children: messages.editor.sectionNoFields })) : (_jsx(FieldGrid, { fields: inner, values: section.data, onChange: (child, next) => change(sections.map((existing) => (existing.id === section.id ? { ...existing, data: withValue(existing.data, child.id, next) } : existing))), pathOf: (child) => `${prefix}${child.key}`, problems: problems, spotlight: pointed?.section === section.id ? pointed : {} })),
|
|
137
244
|
};
|
|
138
245
|
}) }), _jsx(OptionPicker, { isOpen: isPicking, onOpenChange: setPicking, title: messages.editor.sectionPickerTitle, closeLabel: messages.editor.close, emptyText: messages.editor.sectionPickerEmpty, groups: groups, onChoose: (blockId) => {
|
|
139
246
|
const added = { id: crypto.randomUUID(), block: blockId, data: {} };
|
|
140
|
-
|
|
247
|
+
const at = pickAt ?? sections.length;
|
|
248
|
+
change([...sections.slice(0, at), added, ...sections.slice(at)]);
|
|
141
249
|
open(added.id);
|
|
142
250
|
} }), _jsx(ConfirmDialog, { isOpen: removingId !== null, onOpenChange: (isOpen) => {
|
|
143
251
|
if (!isOpen)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlocksControl.js","sourceRoot":"","sources":["../../src/fields/BlocksControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAiD,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QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;oBACjE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBACjB,CAAC,GACD,EACF,KAAC,aAAa,IACZ,MAAM,EAAE,UAAU,KAAK,IAAI,EAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;oBACvB,IAAI,CAAC,MAAM;wBAAE,aAAa,CAAC,IAAI,CAAC,CAAC;gBACnC,CAAC,EACD,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,EACzF,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,oBAAoB,EAClD,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EACnC,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,GAAG,EAAE;oBACd,IAAI,UAAU,KAAK,IAAI;wBAAE,MAAM,CAAC,UAAU,CAAC,CAAC;oBAC5C,aAAa,CAAC,IAAI,CAAC,CAAC;gBACtB,CAAC,YAEA,QAAQ,CAAC,MAAM,CAAC,wBAAwB,GAC3B,IACf,CACJ,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,MAA2B,EAAE,OAA+B;IAC3E,OAAO,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1F,CAAC"}
|
|
@@ -9,11 +9,20 @@ export interface FieldGridProps {
|
|
|
9
9
|
readonly problems: ReadonlyMap<string, string>;
|
|
10
10
|
/** How many small controls share a row. Three, unless the form is in a narrow column. */
|
|
11
11
|
readonly perRow?: 1 | 3;
|
|
12
|
+
/**
|
|
13
|
+
* Given by a form whose fields can be pointed at from elsewhere on the screen, such as the page
|
|
14
|
+
* beside it: the key of the field pointed at, and `at`, which changes each time. Given even
|
|
15
|
+
* while nothing is pointed at, so a field is not drawn anew the first time one is.
|
|
16
|
+
*/
|
|
17
|
+
readonly spotlight?: {
|
|
18
|
+
readonly key?: string | undefined;
|
|
19
|
+
readonly at?: number | undefined;
|
|
20
|
+
};
|
|
12
21
|
}
|
|
13
22
|
/**
|
|
14
23
|
* A run of fields laid out as a form: small controls that follow each other (numbers, dates,
|
|
15
24
|
* choices) share a row, and everything else takes a row of its own. The order of the fields is
|
|
16
25
|
* kept, so the form reads the way the content type was set up.
|
|
17
26
|
*/
|
|
18
|
-
export declare function FieldGrid({ fields, values, onChange, pathOf, problems, perRow }: FieldGridProps): import("react").JSX.Element;
|
|
27
|
+
export declare function FieldGrid({ fields, values, onChange, pathOf, problems, perRow, spotlight }: FieldGridProps): import("react").JSX.Element;
|
|
19
28
|
//# sourceMappingURL=FieldGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldGrid.d.ts","sourceRoot":"","sources":["../../src/fields/FieldGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAC;IACrC,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,yFAAyF;IACzF,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldGrid.d.ts","sourceRoot":"","sources":["../../src/fields/FieldGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAC;IACrC,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7D,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,yFAAyF;IACzF,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE;QAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAC9F;AAGD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAU,EAAE,SAAS,EAAE,EAAE,cAAc,+BAkD9G"}
|
package/dist/fields/FieldGrid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Grid, Stack } from '@velocity-astro/cms-ui';
|
|
2
|
+
import { Grid, Spotlight, Stack } from '@velocity-astro/cms-ui';
|
|
3
3
|
import { useFieldTypes } from '../client/queries.js';
|
|
4
4
|
import { useFieldControls } from './field-control.js';
|
|
5
5
|
import { FieldEditor } from './FieldEditor.js';
|
|
@@ -8,7 +8,7 @@ import { FieldEditor } from './FieldEditor.js';
|
|
|
8
8
|
* choices) share a row, and everything else takes a row of its own. The order of the fields is
|
|
9
9
|
* kept, so the form reads the way the content type was set up.
|
|
10
10
|
*/
|
|
11
|
-
export function FieldGrid({ fields, values, onChange, pathOf, problems, perRow = 3 }) {
|
|
11
|
+
export function FieldGrid({ fields, values, onChange, pathOf, problems, perRow = 3, spotlight }) {
|
|
12
12
|
const controls = useFieldControls();
|
|
13
13
|
const fieldTypes = useFieldTypes();
|
|
14
14
|
const isCompact = (field) => {
|
|
@@ -24,7 +24,8 @@ export function FieldGrid({ fields, values, onChange, pathOf, problems, perRow =
|
|
|
24
24
|
else
|
|
25
25
|
rows.push([field]);
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const control = (field) => (_jsx(FieldEditor, { field: field, value: values[field.id], onChange: (value) => onChange(field, value), path: pathOf(field), problems: problems }, field.id));
|
|
28
|
+
const editor = (field) => spotlight === undefined ? (control(field)) : (_jsx(Spotlight, { at: spotlight.key === field.key ? spotlight.at : undefined, children: control(field) }, field.id));
|
|
28
29
|
return (_jsx(Stack, { gap: 5, children: rows.map((row) => {
|
|
29
30
|
const [first] = row;
|
|
30
31
|
if (!first)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldGrid.js","sourceRoot":"","sources":["../../src/fields/FieldGrid.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldGrid.js","sourceRoot":"","sources":["../../src/fields/FieldGrid.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MA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AAC,GACI,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/fields/controls.tsx"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/fields/controls.tsx"],"names":[],"mappings":"AASA,OAAO,EAAyE,KAAK,aAAa,EAA2C,MAAM,oBAAoB,CAAC;AAwexK,sGAAsG;AACtG,wBAAgB,mBAAmB,IAAI,aAAa,CAkBnD"}
|
package/dist/fields/controls.js
CHANGED
|
@@ -174,6 +174,33 @@ function GroupControl({ field, label, help, isLabelHidden = false, value, onChan
|
|
|
174
174
|
}, pathOf: (child) => `${path}.${child.key}`, problems: problems })] }));
|
|
175
175
|
}
|
|
176
176
|
const isFilled = (item) => item !== undefined && item !== null;
|
|
177
|
+
const under = (key, place) => (place === '' ? key : `${key}.${place}`);
|
|
178
|
+
/** Text is its own words. An empty field is a place too: one emptied on the page is typed into again. */
|
|
179
|
+
const textWords = (_field, value) => value === undefined || value === null || typeof value === 'string' ? [{ place: '', put: (words) => (words === '' ? undefined : words) }] : [];
|
|
180
|
+
/** A group holds the words of its fields, each under the field's key. */
|
|
181
|
+
function groupWords(field, value, controlFor) {
|
|
182
|
+
const inner = Array.isArray(field.options['fields']) ? liveFields(field.options['fields']) : [];
|
|
183
|
+
const values = typeof value === 'object' && value !== null ? value : {};
|
|
184
|
+
return inner.flatMap((child) => (controlFor(child.type)?.words?.(child, values[child.id], controlFor) ?? []).map(({ place, put }) => ({
|
|
185
|
+
place: under(child.key, place),
|
|
186
|
+
put: (words) => {
|
|
187
|
+
const changed = withValue(values, child.id, put(words));
|
|
188
|
+
return Object.keys(changed).length === 0 ? undefined : changed;
|
|
189
|
+
},
|
|
190
|
+
})));
|
|
191
|
+
}
|
|
192
|
+
/** A list holds the words of its items, each under the item's place. An item emptied on the page keeps its place. */
|
|
193
|
+
function listWords(field, value, controlFor) {
|
|
194
|
+
const items = Array.isArray(value) ? value : [];
|
|
195
|
+
const of = (field.options['of'] ?? { type: 'text' });
|
|
196
|
+
const words = controlFor(of.type)?.words;
|
|
197
|
+
if (!words)
|
|
198
|
+
return [];
|
|
199
|
+
return items.flatMap((item, index) => words({ ...field, id: `${field.id}.${index}`, key: String(index), type: of.type, required: false, options: of.options ?? {} }, item, controlFor).map(({ place, put }) => ({
|
|
200
|
+
place: under(String(index), place),
|
|
201
|
+
put: (typed) => items.map((existing, at) => (at === index ? (put(typed) ?? (typeof existing === 'string' ? '' : {})) : existing)),
|
|
202
|
+
})));
|
|
203
|
+
}
|
|
177
204
|
const asRow = (value, index) => ({ id: `stored-${index}`, value });
|
|
178
205
|
/** A group is called by the first words written in it. */
|
|
179
206
|
function groupTitle(field, value) {
|
|
@@ -273,7 +300,7 @@ const ITEM = 'en';
|
|
|
273
300
|
/** The controls for the field types every site has. A site or plugin registers more on the result. */
|
|
274
301
|
export function createFieldControls() {
|
|
275
302
|
return createFieldControlRegistry()
|
|
276
|
-
.register({ type: 'text-input', Component: TextControl })
|
|
303
|
+
.register({ type: 'text-input', Component: TextControl, words: textWords })
|
|
277
304
|
.register({ type: 'url-input', Component: UrlControl })
|
|
278
305
|
.register({ type: 'email-input', Component: EmailControl })
|
|
279
306
|
.register({ type: 'phone-input', Component: PhoneControl })
|
|
@@ -286,8 +313,8 @@ export function createFieldControls() {
|
|
|
286
313
|
.register({ type: 'link', Component: LinkControl })
|
|
287
314
|
.register({ type: 'image', Component: ImageControl })
|
|
288
315
|
.register({ type: 'rich-text', Component: RichTextControl })
|
|
289
|
-
.register({ type: 'group', Component: GroupControl, titleOf: groupTitle })
|
|
290
|
-
.register({ type: 'list', Component: ListControl })
|
|
316
|
+
.register({ type: 'group', Component: GroupControl, titleOf: groupTitle, words: groupWords })
|
|
317
|
+
.register({ type: 'list', Component: ListControl, words: listWords })
|
|
291
318
|
.register({ type: 'blocks', Component: BlocksControl, showsPage: true });
|
|
292
319
|
}
|
|
293
320
|
//# sourceMappingURL=controls.js.map
|