@btst/stack 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.cjs +14 -2
  2. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.mjs +14 -2
  3. package/dist/node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.0/node_modules/react-day-picker/dist/esm/noonDateLib.cjs +162 -0
  4. package/dist/node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.0/node_modules/react-day-picker/dist/esm/noonDateLib.mjs +160 -0
  5. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +12 -8
  6. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +12 -8
  7. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/edit-post-page.internal.cjs +7 -6
  8. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/edit-post-page.internal.mjs +7 -6
  9. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/home-page.internal.cjs +9 -7
  10. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/home-page.internal.mjs +9 -7
  11. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/new-post-page.internal.cjs +7 -6
  12. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/new-post-page.internal.mjs +7 -6
  13. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/post-page.internal.cjs +7 -5
  14. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/post-page.internal.mjs +7 -5
  15. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/tag-page.internal.cjs +5 -3
  16. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/tag-page.internal.mjs +5 -3
  17. package/dist/packages/better-stack/src/plugins/blog/client/plugin.cjs +6 -6
  18. package/dist/packages/better-stack/src/plugins/blog/client/plugin.mjs +6 -6
  19. package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +33 -4
  20. package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +33 -4
  21. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +26 -141
  22. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +24 -139
  23. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +2 -2
  24. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +2 -2
  25. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +19 -2
  26. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +19 -2
  27. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +19 -6
  28. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +19 -6
  29. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +18 -2
  30. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +18 -2
  31. package/dist/packages/better-stack/src/plugins/cms/client/plugin.cjs +112 -22
  32. package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +112 -22
  33. package/dist/packages/better-stack/src/plugins/cms/db.cjs +4 -0
  34. package/dist/packages/better-stack/src/plugins/cms/db.mjs +4 -0
  35. package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +0 -1
  36. package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +0 -1
  37. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/label.cjs +2 -2
  38. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/label.mjs +2 -2
  39. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/config.cjs +0 -2
  40. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/config.mjs +0 -2
  41. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/array.cjs +15 -29
  42. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/array.mjs +16 -16
  43. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/checkbox.cjs +2 -2
  44. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/checkbox.mjs +2 -2
  45. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/date.cjs +29 -5
  46. package/dist/packages/ui/src/components/auto-form/fields/date.mjs +59 -0
  47. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/enum.cjs +2 -2
  48. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/enum.mjs +2 -2
  49. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/input.cjs +2 -2
  50. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/input.mjs +2 -2
  51. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/number.cjs +2 -2
  52. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/number.mjs +2 -2
  53. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/object.cjs +7 -4
  54. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/object.mjs +8 -5
  55. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/radio-group.cjs +2 -2
  56. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/radio-group.mjs +2 -2
  57. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/switch.cjs +2 -2
  58. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/switch.mjs +2 -2
  59. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/textarea.cjs +2 -2
  60. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/textarea.mjs +2 -2
  61. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/index.cjs +3 -3
  62. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/index.mjs +3 -3
  63. package/dist/packages/ui/src/components/auto-form/utils.cjs +306 -0
  64. package/dist/packages/ui/src/components/auto-form/utils.mjs +294 -0
  65. package/dist/packages/ui/src/components/calendar.cjs +2 -2
  66. package/dist/packages/ui/src/components/calendar.mjs +2 -2
  67. package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/hooks}/use-route-lifecycle.cjs +8 -9
  68. package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/hooks}/use-route-lifecycle.mjs +1 -2
  69. package/dist/plugins/blog/api/index.d.cts +1 -1
  70. package/dist/plugins/blog/api/index.d.mts +1 -1
  71. package/dist/plugins/blog/api/index.d.ts +1 -1
  72. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  73. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  74. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  75. package/dist/plugins/blog/client/index.d.cts +1 -1
  76. package/dist/plugins/blog/client/index.d.mts +1 -1
  77. package/dist/plugins/blog/client/index.d.ts +1 -1
  78. package/dist/plugins/blog/query-keys.d.cts +2 -2
  79. package/dist/plugins/blog/query-keys.d.mts +2 -2
  80. package/dist/plugins/blog/query-keys.d.ts +2 -2
  81. package/dist/plugins/cms/api/index.d.cts +2 -4
  82. package/dist/plugins/cms/api/index.d.mts +2 -4
  83. package/dist/plugins/cms/api/index.d.ts +2 -4
  84. package/dist/plugins/cms/client/hooks/index.d.cts +1 -4
  85. package/dist/plugins/cms/client/hooks/index.d.mts +1 -4
  86. package/dist/plugins/cms/client/hooks/index.d.ts +1 -4
  87. package/dist/plugins/cms/client/index.d.cts +178 -5
  88. package/dist/plugins/cms/client/index.d.mts +178 -5
  89. package/dist/plugins/cms/client/index.d.ts +178 -5
  90. package/dist/plugins/cms/query-keys.d.cts +1 -4
  91. package/dist/plugins/cms/query-keys.d.mts +1 -4
  92. package/dist/plugins/cms/query-keys.d.ts +1 -4
  93. package/dist/shared/{stack.DwnJA87a.d.ts → stack.L-UFwz2G.d.cts} +14 -14
  94. package/dist/shared/{stack.BwkyFwF8.d.cts → stack.L-UFwz2G.d.mts} +14 -14
  95. package/dist/shared/{stack.DBqxCs0V.d.mts → stack.L-UFwz2G.d.ts} +14 -14
  96. package/package.json +1 -1
  97. package/src/plugins/blog/client/components/pages/edit-post-page.internal.tsx +4 -3
  98. package/src/plugins/blog/client/components/pages/home-page.internal.tsx +4 -2
  99. package/src/plugins/blog/client/components/pages/new-post-page.internal.tsx +4 -3
  100. package/src/plugins/blog/client/components/pages/post-page.internal.tsx +4 -2
  101. package/src/plugins/blog/client/components/pages/tag-page.internal.tsx +4 -2
  102. package/src/plugins/blog/client/plugin.tsx +10 -9
  103. package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +195 -0
  104. package/src/plugins/cms/api/plugin.ts +65 -4
  105. package/src/plugins/cms/client/components/forms/content-form.tsx +50 -234
  106. package/src/plugins/cms/client/components/forms/file-upload.tsx +3 -3
  107. package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +21 -3
  108. package/src/plugins/cms/client/components/pages/content-list-page.internal.tsx +21 -6
  109. package/src/plugins/cms/client/components/pages/dashboard-page.internal.tsx +20 -3
  110. package/src/plugins/cms/client/index.ts +2 -2
  111. package/src/plugins/cms/client/overrides.ts +1 -1
  112. package/src/plugins/cms/client/plugin.tsx +236 -25
  113. package/src/plugins/cms/db.ts +4 -0
  114. package/src/plugins/cms/schemas.ts +1 -1
  115. package/src/plugins/cms/types.ts +14 -17
  116. package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +0 -35
  117. package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +0 -63
  118. package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +0 -61
  119. package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +0 -179
  120. package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +0 -169
  121. package/dist/shared/stack.NZJogTUn.d.cts +0 -66
  122. package/dist/shared/stack.NZJogTUn.d.mts +0 -66
  123. package/dist/shared/stack.NZJogTUn.d.ts +0 -66
  124. package/src/plugins/blog/client/components/shared/use-route-lifecycle.tsx +0 -68
  125. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.cjs +0 -0
  126. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.mjs +0 -0
  127. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +0 -0
  128. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +0 -0
  129. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +0 -0
  130. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +0 -0
  131. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +0 -0
  132. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +0 -0
  133. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +0 -0
  134. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +0 -0
  135. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.cjs +0 -0
  136. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.mjs +0 -0
  137. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +0 -0
  138. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +0 -0
  139. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +0 -0
  140. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +0 -0
  141. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.cjs +0 -0
  142. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.mjs +0 -0
  143. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +0 -0
  144. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +0 -0
  145. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +0 -0
  146. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +0 -0
  147. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +0 -0
  148. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +0 -0
  149. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.cjs +0 -0
  150. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.mjs +0 -0
  151. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.cjs +0 -0
  152. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.mjs +0 -0
  153. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +0 -0
  154. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +0 -0
  155. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +0 -0
  156. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +0 -0
  157. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.cjs +0 -0
  158. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.mjs +0 -0
  159. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +0 -0
  160. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +0 -0
  161. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.cjs +0 -0
  162. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.mjs +0 -0
  163. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +0 -0
  164. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +0 -0
  165. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.cjs +0 -0
  166. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.mjs +0 -0
  167. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +0 -0
  168. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +0 -0
  169. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.cjs +0 -0
  170. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.mjs +0 -0
  171. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.cjs +0 -0
  172. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.mjs +0 -0
  173. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.cjs +0 -0
  174. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.mjs +0 -0
  175. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +0 -0
  176. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +0 -0
  177. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +0 -0
  178. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +0 -0
  179. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +0 -0
  180. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +0 -0
  181. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +0 -0
  182. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +0 -0
  183. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +0 -0
  184. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +0 -0
  185. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +0 -0
  186. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +0 -0
  187. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +0 -0
  188. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +0 -0
  189. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +0 -0
  190. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +0 -0
  191. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +0 -0
  192. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +0 -0
  193. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +0 -0
  194. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +0 -0
  195. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +0 -0
  196. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +0 -0
  197. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +0 -0
  198. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +0 -0
  199. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +0 -0
  200. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +0 -0
  201. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +0 -0
  202. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +0 -0
  203. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.cjs +0 -0
  204. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.mjs +0 -0
  205. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +0 -0
  206. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +0 -0
  207. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +0 -0
  208. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +0 -0
  209. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +0 -0
  210. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +0 -0
  211. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +0 -0
  212. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +0 -0
  213. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +0 -0
  214. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +0 -0
  215. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +0 -0
  216. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +0 -0
  217. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +0 -0
  218. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +0 -0
  219. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +0 -0
  220. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +0 -0
  221. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +0 -0
  222. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +0 -0
  223. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +0 -0
  224. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +0 -0
  225. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +0 -0
  226. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +0 -0
  227. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +0 -0
  228. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +0 -0
  229. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +0 -0
  230. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +0 -0
  231. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +0 -0
  232. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +0 -0
  233. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +0 -0
  234. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +0 -0
  235. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +0 -0
  236. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +0 -0
  237. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +0 -0
  238. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +0 -0
  239. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +0 -0
  240. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +0 -0
  241. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +0 -0
  242. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +0 -0
  243. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +0 -0
  244. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +0 -0
  245. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +0 -0
  246. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +0 -0
  247. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +0 -0
  248. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +0 -0
  249. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +0 -0
  250. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +0 -0
  251. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +0 -0
  252. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +0 -0
  253. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +0 -0
  254. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +0 -0
  255. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +0 -0
  256. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +0 -0
  257. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +0 -0
  258. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +0 -0
  259. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.cjs +0 -0
  260. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.mjs +0 -0
  261. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +0 -0
  262. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +0 -0
  263. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +0 -0
  264. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +0 -0
  265. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +0 -0
  266. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +0 -0
  267. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +0 -0
  268. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +0 -0
  269. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +0 -0
  270. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +0 -0
  271. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +0 -0
  272. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +0 -0
  273. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +0 -0
  274. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +0 -0
  275. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +0 -0
  276. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +0 -0
  277. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +0 -0
  278. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +0 -0
  279. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +0 -0
  280. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +0 -0
  281. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +0 -0
  282. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +0 -0
  283. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +0 -0
  284. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +0 -0
  285. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +0 -0
  286. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +0 -0
  287. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +0 -0
  288. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +0 -0
  289. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +0 -0
  290. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +0 -0
  291. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.cjs +0 -0
  292. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.mjs +0 -0
  293. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.cjs +0 -0
  294. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.mjs +0 -0
  295. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +0 -0
  296. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +0 -0
  297. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.cjs +0 -0
  298. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.mjs +0 -0
  299. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.cjs +0 -0
  300. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.mjs +0 -0
  301. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +0 -0
  302. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +0 -0
  303. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +0 -0
  304. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +0 -0
  305. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +0 -0
  306. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +0 -0
  307. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +0 -0
  308. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +0 -0
  309. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +0 -0
  310. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +0 -0
  311. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +0 -0
  312. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +0 -0
  313. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +0 -0
  314. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +0 -0
  315. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +0 -0
  316. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +0 -0
  317. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/tooltip.cjs +0 -0
  318. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/tooltip.mjs +0 -0
  319. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/dependencies.cjs +0 -0
  320. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/dependencies.mjs +0 -0
  321. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/types.cjs +0 -0
  322. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/types.mjs +0 -0
  323. package/dist/shared/{stack.CcI4sYJP.d.cts → stack.DLhzx1-D.d.cts} +1 -1
  324. package/dist/shared/{stack.CcI4sYJP.d.mts → stack.DLhzx1-D.d.mts} +1 -1
  325. package/dist/shared/{stack.CcI4sYJP.d.ts → stack.DLhzx1-D.d.ts} +1 -1
@@ -7,13 +7,13 @@ const postForms = require('../forms/post-forms.cjs');
7
7
  const pageHeader = require('../shared/page-header.cjs');
8
8
  const pageWrapper = require('../shared/page-wrapper.cjs');
9
9
  const index = require('../../localization/index.cjs');
10
- const useRouteLifecycle = require('../shared/use-route-lifecycle.cjs');
10
+ const useRouteLifecycle = require('../../../../../../../ui/src/hooks/use-route-lifecycle.cjs');
11
11
 
12
12
  function NewPostPage() {
13
- const { localization } = context.usePluginOverrides("blog", {
13
+ const overrides = context.usePluginOverrides("blog", {
14
14
  localization: index.BLOG_LOCALIZATION
15
15
  });
16
- const { navigate } = context.usePluginOverrides("blog");
16
+ const { localization, navigate } = overrides;
17
17
  const basePath = context.useBasePath();
18
18
  useRouteLifecycle.useRouteLifecycle({
19
19
  routeName: "newPost",
@@ -21,9 +21,10 @@ function NewPostPage() {
21
21
  path: "/blog/new",
22
22
  isSSR: typeof window === "undefined"
23
23
  },
24
- beforeRenderHook: (overrides, context) => {
25
- if (overrides.onBeforeNewPostPageRendered) {
26
- return overrides.onBeforeNewPostPageRendered(context);
24
+ overrides,
25
+ beforeRenderHook: (overrides2, context) => {
26
+ if (overrides2.onBeforeNewPostPageRendered) {
27
+ return overrides2.onBeforeNewPostPageRendered(context);
27
28
  }
28
29
  return true;
29
30
  }
@@ -5,13 +5,13 @@ import { AddPostForm } from '../forms/post-forms.mjs';
5
5
  import { PageHeader } from '../shared/page-header.mjs';
6
6
  import { PageWrapper } from '../shared/page-wrapper.mjs';
7
7
  import { BLOG_LOCALIZATION } from '../../localization/index.mjs';
8
- import { useRouteLifecycle } from '../shared/use-route-lifecycle.mjs';
8
+ import { useRouteLifecycle } from '../../../../../../../ui/src/hooks/use-route-lifecycle.mjs';
9
9
 
10
10
  function NewPostPage() {
11
- const { localization } = usePluginOverrides("blog", {
11
+ const overrides = usePluginOverrides("blog", {
12
12
  localization: BLOG_LOCALIZATION
13
13
  });
14
- const { navigate } = usePluginOverrides("blog");
14
+ const { localization, navigate } = overrides;
15
15
  const basePath = useBasePath();
16
16
  useRouteLifecycle({
17
17
  routeName: "newPost",
@@ -19,9 +19,10 @@ function NewPostPage() {
19
19
  path: "/blog/new",
20
20
  isSSR: typeof window === "undefined"
21
21
  },
22
- beforeRenderHook: (overrides, context) => {
23
- if (overrides.onBeforeNewPostPageRendered) {
24
- return overrides.onBeforeNewPostPageRendered(context);
22
+ overrides,
23
+ beforeRenderHook: (overrides2, context) => {
24
+ if (overrides2.onBeforeNewPostPageRendered) {
25
+ return overrides2.onBeforeNewPostPageRendered(context);
25
26
  }
26
27
  return true;
27
28
  }
@@ -14,14 +14,15 @@ const index = require('../../localization/index.cjs');
14
14
  const postNavigation = require('../shared/post-navigation.cjs');
15
15
  const recentPostsCarousel = require('../shared/recent-posts-carousel.cjs');
16
16
  const badge = require('../../../../../../../ui/src/components/badge.cjs');
17
- const useRouteLifecycle = require('../shared/use-route-lifecycle.cjs');
17
+ const useRouteLifecycle = require('../../../../../../../ui/src/hooks/use-route-lifecycle.cjs');
18
18
  const onThisPage = require('../shared/on-this-page.cjs');
19
19
 
20
20
  function PostPage({ slug }) {
21
- const { Image, localization } = context.usePluginOverrides("blog", {
21
+ const overrides = context.usePluginOverrides("blog", {
22
22
  Image: defaults.DefaultImage,
23
23
  localization: index.BLOG_LOCALIZATION
24
24
  });
25
+ const { Image, localization } = overrides;
25
26
  useRouteLifecycle.useRouteLifecycle({
26
27
  routeName: "post",
27
28
  context: {
@@ -29,9 +30,10 @@ function PostPage({ slug }) {
29
30
  params: { slug },
30
31
  isSSR: typeof window === "undefined"
31
32
  },
32
- beforeRenderHook: (overrides, context) => {
33
- if (overrides.onBeforePostPageRendered) {
34
- return overrides.onBeforePostPageRendered(slug, context);
33
+ overrides,
34
+ beforeRenderHook: (overrides2, context) => {
35
+ if (overrides2.onBeforePostPageRendered) {
36
+ return overrides2.onBeforePostPageRendered(slug, context);
35
37
  }
36
38
  return true;
37
39
  }
@@ -12,14 +12,15 @@ import { BLOG_LOCALIZATION } from '../../localization/index.mjs';
12
12
  import { PostNavigation } from '../shared/post-navigation.mjs';
13
13
  import { RecentPostsCarousel } from '../shared/recent-posts-carousel.mjs';
14
14
  import { Badge } from '../../../../../../../ui/src/components/badge.mjs';
15
- import { useRouteLifecycle } from '../shared/use-route-lifecycle.mjs';
15
+ import { useRouteLifecycle } from '../../../../../../../ui/src/hooks/use-route-lifecycle.mjs';
16
16
  import { OnThisPageSelect, OnThisPage } from '../shared/on-this-page.mjs';
17
17
 
18
18
  function PostPage({ slug }) {
19
- const { Image, localization } = usePluginOverrides("blog", {
19
+ const overrides = usePluginOverrides("blog", {
20
20
  Image: DefaultImage,
21
21
  localization: BLOG_LOCALIZATION
22
22
  });
23
+ const { Image, localization } = overrides;
23
24
  useRouteLifecycle({
24
25
  routeName: "post",
25
26
  context: {
@@ -27,9 +28,10 @@ function PostPage({ slug }) {
27
28
  params: { slug },
28
29
  isSSR: typeof window === "undefined"
29
30
  },
30
- beforeRenderHook: (overrides, context) => {
31
- if (overrides.onBeforePostPageRendered) {
32
- return overrides.onBeforePostPageRendered(slug, context);
31
+ overrides,
32
+ beforeRenderHook: (overrides2, context) => {
33
+ if (overrides2.onBeforePostPageRendered) {
34
+ return overrides2.onBeforePostPageRendered(slug, context);
33
35
  }
34
36
  return true;
35
37
  }
@@ -9,19 +9,21 @@ const emptyList = require('../shared/empty-list.cjs');
9
9
  const blogHooks = require('../../hooks/blog-hooks.cjs');
10
10
  const index = require('../../localization/index.cjs');
11
11
  const context = require('@btst/stack/context');
12
- const useRouteLifecycle = require('../shared/use-route-lifecycle.cjs');
12
+ const useRouteLifecycle = require('../../../../../../../ui/src/hooks/use-route-lifecycle.cjs');
13
13
 
14
14
  function TagPage({ tagSlug }) {
15
- const { localization } = context.usePluginOverrides("blog", {
15
+ const overrides = context.usePluginOverrides("blog", {
16
16
  localization: index.BLOG_LOCALIZATION
17
17
  });
18
+ const { localization } = overrides;
18
19
  useRouteLifecycle.useRouteLifecycle({
19
20
  routeName: "tag",
20
21
  context: {
21
22
  path: `/blog/tag/${tagSlug}`,
22
23
  params: { tagSlug },
23
24
  isSSR: typeof window === "undefined"
24
- }
25
+ },
26
+ overrides
25
27
  });
26
28
  const { tags } = blogHooks.useTags();
27
29
  const tag = tags?.find((t) => t.slug === tagSlug);
@@ -7,19 +7,21 @@ import { EmptyList } from '../shared/empty-list.mjs';
7
7
  import { useTags, useSuspensePosts } from '../../hooks/blog-hooks.mjs';
8
8
  import { BLOG_LOCALIZATION } from '../../localization/index.mjs';
9
9
  import { usePluginOverrides } from '@btst/stack/context';
10
- import { useRouteLifecycle } from '../shared/use-route-lifecycle.mjs';
10
+ import { useRouteLifecycle } from '../../../../../../../ui/src/hooks/use-route-lifecycle.mjs';
11
11
 
12
12
  function TagPage({ tagSlug }) {
13
- const { localization } = usePluginOverrides("blog", {
13
+ const overrides = usePluginOverrides("blog", {
14
14
  localization: BLOG_LOCALIZATION
15
15
  });
16
+ const { localization } = overrides;
16
17
  useRouteLifecycle({
17
18
  routeName: "tag",
18
19
  context: {
19
20
  path: `/blog/tag/${tagSlug}`,
20
21
  params: { tagSlug },
21
22
  isSSR: typeof window === "undefined"
22
- }
23
+ },
24
+ overrides
23
25
  });
24
26
  const { tags } = useTags();
25
27
  const tag = tags?.find((t) => t.slug === tagSlug);
@@ -182,12 +182,12 @@ function createTagLoader(tagSlug, config) {
182
182
  });
183
183
  const tagsQuery = queries.tags.list();
184
184
  await queryClient.prefetchQuery(tagsQuery);
185
- if (hooks?.onLoadError) {
186
- const queryState = queryClient.getQueryState(listQuery.queryKey);
187
- if (queryState?.error) {
188
- const error = queryState.error instanceof Error ? queryState.error : new Error(String(queryState.error));
189
- await hooks.onLoadError(error, context);
190
- }
185
+ const listState = queryClient.getQueryState(listQuery.queryKey);
186
+ const tagsState = queryClient.getQueryState(tagsQuery.queryKey);
187
+ const queryError = listState?.error || tagsState?.error;
188
+ if (queryError && hooks?.onLoadError) {
189
+ const error = queryError instanceof Error ? queryError : new Error(String(queryError));
190
+ await hooks.onLoadError(error, context);
191
191
  }
192
192
  } catch (error) {
193
193
  if (hooks?.onLoadError) {
@@ -180,12 +180,12 @@ function createTagLoader(tagSlug, config) {
180
180
  });
181
181
  const tagsQuery = queries.tags.list();
182
182
  await queryClient.prefetchQuery(tagsQuery);
183
- if (hooks?.onLoadError) {
184
- const queryState = queryClient.getQueryState(listQuery.queryKey);
185
- if (queryState?.error) {
186
- const error = queryState.error instanceof Error ? queryState.error : new Error(String(queryState.error));
187
- await hooks.onLoadError(error, context);
188
- }
183
+ const listState = queryClient.getQueryState(listQuery.queryKey);
184
+ const tagsState = queryClient.getQueryState(tagsQuery.queryKey);
185
+ const queryError = listState?.error || tagsState?.error;
186
+ if (queryError && hooks?.onLoadError) {
187
+ const error = queryError instanceof Error ? queryError : new Error(String(queryError));
188
+ await hooks.onLoadError(error, context);
189
189
  }
190
190
  } catch (error) {
191
191
  if (hooks?.onLoadError) {
@@ -6,9 +6,35 @@ const db = require('../db.cjs');
6
6
  const schemas = require('../schemas.cjs');
7
7
  const utils = require('../utils.cjs');
8
8
 
9
+ function migrateToUnifiedSchema(jsonSchemaStr, fieldConfigStr) {
10
+ if (!fieldConfigStr) {
11
+ return jsonSchemaStr;
12
+ }
13
+ try {
14
+ const jsonSchema = JSON.parse(jsonSchemaStr);
15
+ const fieldConfig = JSON.parse(fieldConfigStr);
16
+ if (!jsonSchema.properties || typeof fieldConfig !== "object") {
17
+ return jsonSchemaStr;
18
+ }
19
+ for (const [key, config] of Object.entries(fieldConfig)) {
20
+ if (jsonSchema.properties[key] && typeof config === "object" && config !== null && "fieldType" in config) {
21
+ jsonSchema.properties[key].fieldType = config.fieldType;
22
+ }
23
+ }
24
+ return JSON.stringify(jsonSchema);
25
+ } catch {
26
+ return jsonSchemaStr;
27
+ }
28
+ }
9
29
  function serializeContentType(ct) {
30
+ const needsMigration = !ct.autoFormVersion || ct.autoFormVersion < 2;
31
+ const migratedJsonSchema = needsMigration ? migrateToUnifiedSchema(ct.jsonSchema, ct.fieldConfig) : ct.jsonSchema;
10
32
  return {
11
- ...ct,
33
+ id: ct.id,
34
+ name: ct.name,
35
+ slug: ct.slug,
36
+ description: ct.description,
37
+ jsonSchema: migratedJsonSchema,
12
38
  createdAt: ct.createdAt.toISOString(),
13
39
  updatedAt: ct.updatedAt.toISOString()
14
40
  };
@@ -30,7 +56,6 @@ function serializeContentItemWithType(item) {
30
56
  async function syncContentTypes(adapter, config) {
31
57
  for (const ct of config.contentTypes) {
32
58
  const jsonSchema = JSON.stringify(z.z.toJSONSchema(ct.schema));
33
- const fieldConfig = ct.fieldConfig ? JSON.stringify(ct.fieldConfig) : null;
34
59
  const existing = await adapter.findOne({
35
60
  model: "contentType",
36
61
  where: [{ field: "slug", value: ct.slug, operator: "eq" }]
@@ -43,7 +68,9 @@ async function syncContentTypes(adapter, config) {
43
68
  name: ct.name,
44
69
  description: ct.description ?? null,
45
70
  jsonSchema,
46
- fieldConfig,
71
+ fieldConfig: null,
72
+ // No longer used in version 2
73
+ autoFormVersion: 2,
47
74
  updatedAt: /* @__PURE__ */ new Date()
48
75
  }
49
76
  });
@@ -56,7 +83,9 @@ async function syncContentTypes(adapter, config) {
56
83
  slug: ct.slug,
57
84
  description: ct.description ?? null,
58
85
  jsonSchema,
59
- fieldConfig,
86
+ fieldConfig: null,
87
+ // No longer used in version 2
88
+ autoFormVersion: 2,
60
89
  createdAt: /* @__PURE__ */ new Date(),
61
90
  updatedAt: /* @__PURE__ */ new Date()
62
91
  }
@@ -4,9 +4,35 @@ import { cmsSchema } from '../db.mjs';
4
4
  import { listContentQuerySchema } from '../schemas.mjs';
5
5
  import { slugify } from '../utils.mjs';
6
6
 
7
+ function migrateToUnifiedSchema(jsonSchemaStr, fieldConfigStr) {
8
+ if (!fieldConfigStr) {
9
+ return jsonSchemaStr;
10
+ }
11
+ try {
12
+ const jsonSchema = JSON.parse(jsonSchemaStr);
13
+ const fieldConfig = JSON.parse(fieldConfigStr);
14
+ if (!jsonSchema.properties || typeof fieldConfig !== "object") {
15
+ return jsonSchemaStr;
16
+ }
17
+ for (const [key, config] of Object.entries(fieldConfig)) {
18
+ if (jsonSchema.properties[key] && typeof config === "object" && config !== null && "fieldType" in config) {
19
+ jsonSchema.properties[key].fieldType = config.fieldType;
20
+ }
21
+ }
22
+ return JSON.stringify(jsonSchema);
23
+ } catch {
24
+ return jsonSchemaStr;
25
+ }
26
+ }
7
27
  function serializeContentType(ct) {
28
+ const needsMigration = !ct.autoFormVersion || ct.autoFormVersion < 2;
29
+ const migratedJsonSchema = needsMigration ? migrateToUnifiedSchema(ct.jsonSchema, ct.fieldConfig) : ct.jsonSchema;
8
30
  return {
9
- ...ct,
31
+ id: ct.id,
32
+ name: ct.name,
33
+ slug: ct.slug,
34
+ description: ct.description,
35
+ jsonSchema: migratedJsonSchema,
10
36
  createdAt: ct.createdAt.toISOString(),
11
37
  updatedAt: ct.updatedAt.toISOString()
12
38
  };
@@ -28,7 +54,6 @@ function serializeContentItemWithType(item) {
28
54
  async function syncContentTypes(adapter, config) {
29
55
  for (const ct of config.contentTypes) {
30
56
  const jsonSchema = JSON.stringify(z.toJSONSchema(ct.schema));
31
- const fieldConfig = ct.fieldConfig ? JSON.stringify(ct.fieldConfig) : null;
32
57
  const existing = await adapter.findOne({
33
58
  model: "contentType",
34
59
  where: [{ field: "slug", value: ct.slug, operator: "eq" }]
@@ -41,7 +66,9 @@ async function syncContentTypes(adapter, config) {
41
66
  name: ct.name,
42
67
  description: ct.description ?? null,
43
68
  jsonSchema,
44
- fieldConfig,
69
+ fieldConfig: null,
70
+ // No longer used in version 2
71
+ autoFormVersion: 2,
45
72
  updatedAt: /* @__PURE__ */ new Date()
46
73
  }
47
74
  });
@@ -54,7 +81,9 @@ async function syncContentTypes(adapter, config) {
54
81
  slug: ct.slug,
55
82
  description: ct.description ?? null,
56
83
  jsonSchema,
57
- fieldConfig,
84
+ fieldConfig: null,
85
+ // No longer used in version 2
86
+ autoFormVersion: 2,
58
87
  createdAt: /* @__PURE__ */ new Date(),
59
88
  updatedAt: /* @__PURE__ */ new Date()
60
89
  }
@@ -5,142 +5,40 @@ const jsxRuntime = require('react/jsx-runtime');
5
5
  const React = require('react');
6
6
  const z = require('zod');
7
7
  const sonner = require('sonner');
8
- const index$1 = require('../../../../../../../ui/src/components/ui/auto-form/index.cjs');
8
+ const index$1 = require('../../../../../../../ui/src/components/auto-form/index.cjs');
9
+ const utils = require('../../../../../../../ui/src/components/auto-form/utils.cjs');
9
10
  const input = require('../../../../../../../ui/src/components/input.cjs');
10
11
  const label = require('../../../../../../../ui/src/components/label.cjs');
11
12
  const badge = require('../../../../../../../ui/src/components/badge.cjs');
12
13
  const context = require('@btst/stack/context');
13
- const utils = require('../../../utils.cjs');
14
+ const utils$1 = require('../../../utils.cjs');
14
15
  const index = require('../../localization/index.cjs');
15
16
  const fileUpload = require('./file-upload.cjs');
16
17
 
17
- function jsonSchemaToZodWithCoercion(jsonSchema) {
18
- const shape = {};
19
- const properties = jsonSchema.properties || {};
20
- const required = jsonSchema.required || [];
18
+ function buildFieldConfigFromJsonSchema(jsonSchema, uploadImage, fieldComponents) {
19
+ const baseConfig = utils.buildFieldConfigFromJsonSchema(jsonSchema, fieldComponents);
20
+ const properties = jsonSchema.properties;
21
+ if (!properties) return baseConfig;
21
22
  for (const [key, prop] of Object.entries(properties)) {
22
- let fieldSchema;
23
- const typeValue = Array.isArray(prop.type) ? prop.type[0] : prop.type;
24
- if (prop.enum && Array.isArray(prop.enum) && prop.enum.length > 0) {
25
- const stringValues = prop.enum.filter(
26
- (v) => typeof v === "string"
27
- );
28
- if (stringValues.length > 0) {
29
- fieldSchema = z.z.enum(stringValues);
23
+ if (prop.fieldType === "file" && !fieldComponents?.["file"]) {
24
+ if (!uploadImage) {
25
+ baseConfig[key] = {
26
+ ...baseConfig[key],
27
+ fieldType: () => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive", children: [
28
+ "File upload requires an ",
29
+ /* @__PURE__ */ jsxRuntime.jsx("code", { children: "uploadImage" }),
30
+ " function in CMS overrides."
31
+ ] })
32
+ };
30
33
  } else {
31
- fieldSchema = z.z.string();
32
- }
33
- } else {
34
- switch (typeValue) {
35
- case "number":
36
- case "integer": {
37
- let numSchema = z.z.coerce.number();
38
- if (prop.minimum !== void 0) {
39
- numSchema = numSchema.min(prop.minimum);
40
- }
41
- if (prop.maximum !== void 0) {
42
- numSchema = numSchema.max(prop.maximum);
43
- }
44
- fieldSchema = numSchema;
45
- break;
46
- }
47
- case "boolean": {
48
- fieldSchema = z.z.boolean();
49
- if (prop.default !== void 0) {
50
- fieldSchema = fieldSchema.default(
51
- prop.default
52
- );
53
- }
54
- break;
55
- }
56
- case "string": {
57
- if (prop.format === "date" || prop.format === "date-time") {
58
- fieldSchema = z.z.coerce.date();
59
- } else {
60
- let strSchema = z.z.string();
61
- if (prop.minLength !== void 0) {
62
- strSchema = strSchema.min(prop.minLength);
63
- }
64
- if (prop.maxLength !== void 0) {
65
- strSchema = strSchema.max(prop.maxLength);
66
- }
67
- fieldSchema = strSchema;
68
- }
69
- break;
70
- }
71
- default: {
72
- fieldSchema = z.z.string();
73
- }
74
- }
75
- }
76
- if (prop.default !== void 0 && typeValue !== "boolean") {
77
- fieldSchema = fieldSchema.default(prop.default);
78
- }
79
- if (!required.includes(key)) {
80
- fieldSchema = fieldSchema.optional();
81
- }
82
- shape[key] = fieldSchema;
83
- }
84
- return z.z.object(shape);
85
- }
86
- const BUILTIN_FIELD_TYPES = [
87
- "checkbox",
88
- "date",
89
- "select",
90
- "radio",
91
- "switch",
92
- "textarea",
93
- "number",
94
- "file",
95
- "fallback"
96
- ];
97
- function buildFieldConfigFromJsonSchema(jsonSchema, storedFieldConfig, uploadImage, fieldComponents) {
98
- const fieldConfig = {};
99
- const properties = jsonSchema.properties;
100
- if (!properties) return fieldConfig;
101
- for (const [key, value] of Object.entries(properties)) {
102
- const config = {};
103
- if (value.description) {
104
- config.description = value.description;
105
- }
106
- if (value.placeholder) {
107
- config.inputProps = {
108
- placeholder: value.placeholder
109
- };
110
- }
111
- if (storedFieldConfig?.[key]) {
112
- const storedConfig = storedFieldConfig[key];
113
- const fieldType = storedConfig.fieldType;
114
- if (fieldType) {
115
- if (fieldComponents?.[fieldType]) {
116
- const CustomComponent = fieldComponents[fieldType];
117
- config.fieldType = (props) => /* @__PURE__ */ jsxRuntime.jsx(CustomComponent, { ...props });
118
- } else if (fieldType === "file") {
119
- if (!uploadImage) {
120
- config.fieldType = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive", children: [
121
- "File upload requires an ",
122
- /* @__PURE__ */ jsxRuntime.jsx("code", { children: "uploadImage" }),
123
- " function in CMS overrides."
124
- ] });
125
- } else {
126
- config.fieldType = (props) => /* @__PURE__ */ jsxRuntime.jsx(fileUpload.CMSFileUpload, { ...props, uploadImage });
127
- }
128
- } else if (BUILTIN_FIELD_TYPES.includes(
129
- fieldType
130
- )) {
131
- config.fieldType = fieldType;
132
- } else {
133
- console.warn(
134
- `CMS: Unknown fieldType "${fieldType}" for field "${key}". Provide a component via fieldComponents override or use a built-in type.`
135
- );
136
- }
34
+ baseConfig[key] = {
35
+ ...baseConfig[key],
36
+ fieldType: (props) => /* @__PURE__ */ jsxRuntime.jsx(fileUpload.CMSFileUpload, { ...props, uploadImage })
37
+ };
137
38
  }
138
39
  }
139
- if (Object.keys(config).length > 0) {
140
- fieldConfig[key] = config;
141
- }
142
40
  }
143
- return fieldConfig;
41
+ return baseConfig;
144
42
  }
145
43
  function findSlugSourceField(jsonSchema) {
146
44
  const properties = jsonSchema.properties;
@@ -193,29 +91,16 @@ function ContentForm({
193
91
  return {};
194
92
  }
195
93
  }, [contentType.jsonSchema]);
196
- const storedFieldConfig = React.useMemo(() => {
197
- if (!contentType.fieldConfig) return void 0;
198
- try {
199
- return JSON.parse(contentType.fieldConfig);
200
- } catch {
201
- return void 0;
202
- }
203
- }, [contentType.fieldConfig]);
204
94
  const zodSchema = React.useMemo(() => {
205
95
  try {
206
- return jsonSchemaToZodWithCoercion(jsonSchema);
96
+ return utils.fromJSONSchemaWithDates(jsonSchema);
207
97
  } catch {
208
98
  return z.z.object({});
209
99
  }
210
100
  }, [jsonSchema]);
211
101
  const fieldConfig = React.useMemo(
212
- () => buildFieldConfigFromJsonSchema(
213
- jsonSchema,
214
- storedFieldConfig,
215
- uploadImage,
216
- fieldComponents
217
- ),
218
- [jsonSchema, storedFieldConfig, uploadImage, fieldComponents]
102
+ () => buildFieldConfigFromJsonSchema(jsonSchema, uploadImage, fieldComponents),
103
+ [jsonSchema, uploadImage, fieldComponents]
219
104
  );
220
105
  const slugSourceField = React.useMemo(
221
106
  () => findSlugSourceField(jsonSchema),
@@ -226,7 +111,7 @@ function ContentForm({
226
111
  if (!isEditing && !slugManuallyEdited && slugSourceField) {
227
112
  const sourceValue = values[slugSourceField];
228
113
  if (typeof sourceValue === "string" && sourceValue.trim()) {
229
- setSlug(utils.slugify(sourceValue));
114
+ setSlug(utils$1.slugify(sourceValue));
230
115
  }
231
116
  }
232
117
  };