@nodehive/nextjs 0.1.0

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 (777) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +102 -0
  3. package/dist/auth/index.d.ts +6 -0
  4. package/dist/auth/index.d.ts.map +1 -0
  5. package/dist/auth/index.js +7 -0
  6. package/dist/auth/index.js.map +1 -0
  7. package/dist/auth/internal/config.d.ts +24 -0
  8. package/dist/auth/internal/config.d.ts.map +1 -0
  9. package/dist/auth/internal/config.js +2 -0
  10. package/dist/auth/internal/config.js.map +1 -0
  11. package/dist/auth/internal/draft-mode.d.ts +17 -0
  12. package/dist/auth/internal/draft-mode.d.ts.map +1 -0
  13. package/dist/auth/internal/draft-mode.js +73 -0
  14. package/dist/auth/internal/draft-mode.js.map +1 -0
  15. package/dist/auth/internal/editor-locale.d.ts +4 -0
  16. package/dist/auth/internal/editor-locale.d.ts.map +1 -0
  17. package/dist/auth/internal/editor-locale.js +14 -0
  18. package/dist/auth/internal/editor-locale.js.map +1 -0
  19. package/dist/auth/internal/handoff.d.ts +11 -0
  20. package/dist/auth/internal/handoff.d.ts.map +1 -0
  21. package/dist/auth/internal/handoff.js +44 -0
  22. package/dist/auth/internal/handoff.js.map +1 -0
  23. package/dist/auth/internal/has-session.d.ts +7 -0
  24. package/dist/auth/internal/has-session.d.ts.map +1 -0
  25. package/dist/auth/internal/has-session.js +11 -0
  26. package/dist/auth/internal/has-session.js.map +1 -0
  27. package/dist/auth/internal/logout.d.ts +12 -0
  28. package/dist/auth/internal/logout.d.ts.map +1 -0
  29. package/dist/auth/internal/logout.js +48 -0
  30. package/dist/auth/internal/logout.js.map +1 -0
  31. package/dist/auth/internal/next-cookie-storage.d.ts +28 -0
  32. package/dist/auth/internal/next-cookie-storage.d.ts.map +1 -0
  33. package/dist/auth/internal/next-cookie-storage.js +103 -0
  34. package/dist/auth/internal/next-cookie-storage.js.map +1 -0
  35. package/dist/auth/internal/nodehive-client.d.ts +6 -0
  36. package/dist/auth/internal/nodehive-client.d.ts.map +1 -0
  37. package/dist/auth/internal/nodehive-client.js +64 -0
  38. package/dist/auth/internal/nodehive-client.js.map +1 -0
  39. package/dist/auth/internal/oauth-config.d.ts +37 -0
  40. package/dist/auth/internal/oauth-config.d.ts.map +1 -0
  41. package/dist/auth/internal/oauth-config.js +70 -0
  42. package/dist/auth/internal/oauth-config.js.map +1 -0
  43. package/dist/auth/internal/proxy-helpers.d.ts +15 -0
  44. package/dist/auth/internal/proxy-helpers.d.ts.map +1 -0
  45. package/dist/auth/internal/proxy-helpers.js +43 -0
  46. package/dist/auth/internal/proxy-helpers.js.map +1 -0
  47. package/dist/auth/internal/refresh.d.ts +13 -0
  48. package/dist/auth/internal/refresh.d.ts.map +1 -0
  49. package/dist/auth/internal/refresh.js +170 -0
  50. package/dist/auth/internal/refresh.js.map +1 -0
  51. package/dist/auth/internal/require-auth.d.ts +2 -0
  52. package/dist/auth/internal/require-auth.d.ts.map +1 -0
  53. package/dist/auth/internal/require-auth.js +11 -0
  54. package/dist/auth/internal/require-auth.js.map +1 -0
  55. package/dist/auth/internal/return-to.d.ts +16 -0
  56. package/dist/auth/internal/return-to.d.ts.map +1 -0
  57. package/dist/auth/internal/return-to.js +31 -0
  58. package/dist/auth/internal/return-to.js.map +1 -0
  59. package/dist/auth/internal/routes/callback.d.ts +11 -0
  60. package/dist/auth/internal/routes/callback.d.ts.map +1 -0
  61. package/dist/auth/internal/routes/callback.js +93 -0
  62. package/dist/auth/internal/routes/callback.js.map +1 -0
  63. package/dist/auth/internal/routes/chips-exchange.d.ts +4 -0
  64. package/dist/auth/internal/routes/chips-exchange.d.ts.map +1 -0
  65. package/dist/auth/internal/routes/chips-exchange.js +64 -0
  66. package/dist/auth/internal/routes/chips-exchange.js.map +1 -0
  67. package/dist/auth/internal/routes/draft.d.ts +4 -0
  68. package/dist/auth/internal/routes/draft.d.ts.map +1 -0
  69. package/dist/auth/internal/routes/draft.js +34 -0
  70. package/dist/auth/internal/routes/draft.js.map +1 -0
  71. package/dist/auth/internal/routes/index.d.ts +25 -0
  72. package/dist/auth/internal/routes/index.d.ts.map +1 -0
  73. package/dist/auth/internal/routes/index.js +66 -0
  74. package/dist/auth/internal/routes/index.js.map +1 -0
  75. package/dist/auth/internal/routes/login.d.ts +3 -0
  76. package/dist/auth/internal/routes/login.d.ts.map +1 -0
  77. package/dist/auth/internal/routes/login.js +47 -0
  78. package/dist/auth/internal/routes/login.js.map +1 -0
  79. package/dist/auth/internal/routes/popup-done.d.ts +3 -0
  80. package/dist/auth/internal/routes/popup-done.d.ts.map +1 -0
  81. package/dist/auth/internal/routes/popup-done.js +24 -0
  82. package/dist/auth/internal/routes/popup-done.js.map +1 -0
  83. package/dist/auth/internal/routes/refresh.d.ts +6 -0
  84. package/dist/auth/internal/routes/refresh.d.ts.map +1 -0
  85. package/dist/auth/internal/routes/refresh.js +44 -0
  86. package/dist/auth/internal/routes/refresh.js.map +1 -0
  87. package/dist/auth/internal/same-origin.d.ts +8 -0
  88. package/dist/auth/internal/same-origin.d.ts.map +1 -0
  89. package/dist/auth/internal/same-origin.js +9 -0
  90. package/dist/auth/internal/same-origin.js.map +1 -0
  91. package/dist/auth/internal/session-gates.d.ts +7 -0
  92. package/dist/auth/internal/session-gates.d.ts.map +1 -0
  93. package/dist/auth/internal/session-gates.js +12 -0
  94. package/dist/auth/internal/session-gates.js.map +1 -0
  95. package/dist/auth/internal/update-session.d.ts +17 -0
  96. package/dist/auth/internal/update-session.d.ts.map +1 -0
  97. package/dist/auth/internal/update-session.js +39 -0
  98. package/dist/auth/internal/update-session.js.map +1 -0
  99. package/dist/auth/internal/use-editor-login.d.ts +33 -0
  100. package/dist/auth/internal/use-editor-login.d.ts.map +1 -0
  101. package/dist/auth/internal/use-editor-login.js +143 -0
  102. package/dist/auth/internal/use-editor-login.js.map +1 -0
  103. package/dist/auth/proxy.d.ts +8 -0
  104. package/dist/auth/proxy.d.ts.map +1 -0
  105. package/dist/auth/proxy.js +8 -0
  106. package/dist/auth/proxy.js.map +1 -0
  107. package/dist/auth/react.d.ts +2 -0
  108. package/dist/auth/react.d.ts.map +1 -0
  109. package/dist/auth/react.js +3 -0
  110. package/dist/auth/react.js.map +1 -0
  111. package/dist/auth/routes.d.ts +3 -0
  112. package/dist/auth/routes.d.ts.map +1 -0
  113. package/dist/auth/routes.js +3 -0
  114. package/dist/auth/routes.js.map +1 -0
  115. package/dist/auth/server.d.ts +23 -0
  116. package/dist/auth/server.d.ts.map +1 -0
  117. package/dist/auth/server.js +61 -0
  118. package/dist/auth/server.js.map +1 -0
  119. package/dist/puck-editor/fields.d.ts +7 -0
  120. package/dist/puck-editor/fields.d.ts.map +1 -0
  121. package/dist/puck-editor/fields.js +4 -0
  122. package/dist/puck-editor/fields.js.map +1 -0
  123. package/dist/puck-editor/index.d.ts +14 -0
  124. package/dist/puck-editor/index.d.ts.map +1 -0
  125. package/dist/puck-editor/index.js +12 -0
  126. package/dist/puck-editor/index.js.map +1 -0
  127. package/dist/puck-editor/internal/api/client.d.ts +32 -0
  128. package/dist/puck-editor/internal/api/client.d.ts.map +1 -0
  129. package/dist/puck-editor/internal/api/client.js +128 -0
  130. package/dist/puck-editor/internal/api/client.js.map +1 -0
  131. package/dist/puck-editor/internal/api/config.d.ts +29 -0
  132. package/dist/puck-editor/internal/api/config.d.ts.map +1 -0
  133. package/dist/puck-editor/internal/api/config.js +2 -0
  134. package/dist/puck-editor/internal/api/config.js.map +1 -0
  135. package/dist/puck-editor/internal/api/create-puck-api.d.ts +26 -0
  136. package/dist/puck-editor/internal/api/create-puck-api.d.ts.map +1 -0
  137. package/dist/puck-editor/internal/api/create-puck-api.js +124 -0
  138. package/dist/puck-editor/internal/api/create-puck-api.js.map +1 -0
  139. package/dist/puck-editor/internal/api/handlers/create-page.d.ts +13 -0
  140. package/dist/puck-editor/internal/api/handlers/create-page.d.ts.map +1 -0
  141. package/dist/puck-editor/internal/api/handlers/create-page.js +125 -0
  142. package/dist/puck-editor/internal/api/handlers/create-page.js.map +1 -0
  143. package/dist/puck-editor/internal/api/handlers/entities.d.ts +17 -0
  144. package/dist/puck-editor/internal/api/handlers/entities.d.ts.map +1 -0
  145. package/dist/puck-editor/internal/api/handlers/entities.js +166 -0
  146. package/dist/puck-editor/internal/api/handlers/entities.js.map +1 -0
  147. package/dist/puck-editor/internal/api/handlers/publish.d.ts +6 -0
  148. package/dist/puck-editor/internal/api/handlers/publish.d.ts.map +1 -0
  149. package/dist/puck-editor/internal/api/handlers/publish.js +115 -0
  150. package/dist/puck-editor/internal/api/handlers/publish.js.map +1 -0
  151. package/dist/puck-editor/internal/api/handlers/template.d.ts +15 -0
  152. package/dist/puck-editor/internal/api/handlers/template.d.ts.map +1 -0
  153. package/dist/puck-editor/internal/api/handlers/template.js +222 -0
  154. package/dist/puck-editor/internal/api/handlers/template.js.map +1 -0
  155. package/dist/puck-editor/internal/api/handlers/upload.d.ts +13 -0
  156. package/dist/puck-editor/internal/api/handlers/upload.d.ts.map +1 -0
  157. package/dist/puck-editor/internal/api/handlers/upload.js +129 -0
  158. package/dist/puck-editor/internal/api/handlers/upload.js.map +1 -0
  159. package/dist/puck-editor/internal/api/media-params.d.ts +4 -0
  160. package/dist/puck-editor/internal/api/media-params.d.ts.map +1 -0
  161. package/dist/puck-editor/internal/api/media-params.js +38 -0
  162. package/dist/puck-editor/internal/api/media-params.js.map +1 -0
  163. package/dist/puck-editor/internal/api/media-upload.d.ts +24 -0
  164. package/dist/puck-editor/internal/api/media-upload.d.ts.map +1 -0
  165. package/dist/puck-editor/internal/api/media-upload.js +171 -0
  166. package/dist/puck-editor/internal/api/media-upload.js.map +1 -0
  167. package/dist/puck-editor/internal/api/space.d.ts +4 -0
  168. package/dist/puck-editor/internal/api/space.d.ts.map +1 -0
  169. package/dist/puck-editor/internal/api/space.js +11 -0
  170. package/dist/puck-editor/internal/api/space.js.map +1 -0
  171. package/dist/puck-editor/internal/content-model.d.ts +55 -0
  172. package/dist/puck-editor/internal/content-model.d.ts.map +1 -0
  173. package/dist/puck-editor/internal/content-model.js +73 -0
  174. package/dist/puck-editor/internal/content-model.js.map +1 -0
  175. package/dist/puck-editor/internal/editor/allowed-types.d.ts +4 -0
  176. package/dist/puck-editor/internal/editor/allowed-types.d.ts.map +1 -0
  177. package/dist/puck-editor/internal/editor/allowed-types.js +6 -0
  178. package/dist/puck-editor/internal/editor/allowed-types.js.map +1 -0
  179. package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts +9 -0
  180. package/dist/puck-editor/internal/editor/canvas-add-picker.d.ts.map +1 -0
  181. package/dist/puck-editor/internal/editor/canvas-add-picker.js +231 -0
  182. package/dist/puck-editor/internal/editor/canvas-add-picker.js.map +1 -0
  183. package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts +6 -0
  184. package/dist/puck-editor/internal/editor/canvas-empty-state.d.ts.map +1 -0
  185. package/dist/puck-editor/internal/editor/canvas-empty-state.js +85 -0
  186. package/dist/puck-editor/internal/editor/canvas-empty-state.js.map +1 -0
  187. package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts +2 -0
  188. package/dist/puck-editor/internal/editor/canvas-quick-add.d.ts.map +1 -0
  189. package/dist/puck-editor/internal/editor/canvas-quick-add.js +844 -0
  190. package/dist/puck-editor/internal/editor/canvas-quick-add.js.map +1 -0
  191. package/dist/puck-editor/internal/editor/canvas-scroll.d.ts +3 -0
  192. package/dist/puck-editor/internal/editor/canvas-scroll.d.ts.map +1 -0
  193. package/dist/puck-editor/internal/editor/canvas-scroll.js +16 -0
  194. package/dist/puck-editor/internal/editor/canvas-scroll.js.map +1 -0
  195. package/dist/puck-editor/internal/editor/component-icons.d.ts +14 -0
  196. package/dist/puck-editor/internal/editor/component-icons.d.ts.map +1 -0
  197. package/dist/puck-editor/internal/editor/component-icons.js +35 -0
  198. package/dist/puck-editor/internal/editor/component-icons.js.map +1 -0
  199. package/dist/puck-editor/internal/editor/component-item.d.ts +6 -0
  200. package/dist/puck-editor/internal/editor/component-item.d.ts.map +1 -0
  201. package/dist/puck-editor/internal/editor/component-item.js +42 -0
  202. package/dist/puck-editor/internal/editor/component-item.js.map +1 -0
  203. package/dist/puck-editor/internal/editor/editor-action-bar.d.ts +6 -0
  204. package/dist/puck-editor/internal/editor/editor-action-bar.d.ts.map +1 -0
  205. package/dist/puck-editor/internal/editor/editor-action-bar.js +249 -0
  206. package/dist/puck-editor/internal/editor/editor-action-bar.js.map +1 -0
  207. package/dist/puck-editor/internal/editor/editor-header-actions.d.ts +7 -0
  208. package/dist/puck-editor/internal/editor/editor-header-actions.d.ts.map +1 -0
  209. package/dist/puck-editor/internal/editor/editor-header-actions.js +120 -0
  210. package/dist/puck-editor/internal/editor/editor-header-actions.js.map +1 -0
  211. package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts +15 -0
  212. package/dist/puck-editor/internal/editor/find-missing-required-fields.d.ts.map +1 -0
  213. package/dist/puck-editor/internal/editor/find-missing-required-fields.js +61 -0
  214. package/dist/puck-editor/internal/editor/find-missing-required-fields.js.map +1 -0
  215. package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts +15 -0
  216. package/dist/puck-editor/internal/editor/grouped-drawer-panel.d.ts.map +1 -0
  217. package/dist/puck-editor/internal/editor/grouped-drawer-panel.js +147 -0
  218. package/dist/puck-editor/internal/editor/grouped-drawer-panel.js.map +1 -0
  219. package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts +17 -0
  220. package/dist/puck-editor/internal/editor/grouped-entry-list.d.ts.map +1 -0
  221. package/dist/puck-editor/internal/editor/grouped-entry-list.js +125 -0
  222. package/dist/puck-editor/internal/editor/grouped-entry-list.js.map +1 -0
  223. package/dist/puck-editor/internal/editor/header-save-button.d.ts +5 -0
  224. package/dist/puck-editor/internal/editor/header-save-button.d.ts.map +1 -0
  225. package/dist/puck-editor/internal/editor/header-save-button.js +60 -0
  226. package/dist/puck-editor/internal/editor/header-save-button.js.map +1 -0
  227. package/dist/puck-editor/internal/editor/page-template-picker.d.ts +4 -0
  228. package/dist/puck-editor/internal/editor/page-template-picker.d.ts.map +1 -0
  229. package/dist/puck-editor/internal/editor/page-template-picker.js +140 -0
  230. package/dist/puck-editor/internal/editor/page-template-picker.js.map +1 -0
  231. package/dist/puck-editor/internal/editor/picker-entry-item.d.ts +6 -0
  232. package/dist/puck-editor/internal/editor/picker-entry-item.d.ts.map +1 -0
  233. package/dist/puck-editor/internal/editor/picker-entry-item.js +79 -0
  234. package/dist/puck-editor/internal/editor/picker-entry-item.js.map +1 -0
  235. package/dist/puck-editor/internal/editor/picker-model.d.ts +62 -0
  236. package/dist/puck-editor/internal/editor/picker-model.d.ts.map +1 -0
  237. package/dist/puck-editor/internal/editor/picker-model.js +489 -0
  238. package/dist/puck-editor/internal/editor/picker-model.js.map +1 -0
  239. package/dist/puck-editor/internal/editor/publish-puck-data.d.ts +30 -0
  240. package/dist/puck-editor/internal/editor/publish-puck-data.d.ts.map +1 -0
  241. package/dist/puck-editor/internal/editor/publish-puck-data.js +30 -0
  242. package/dist/puck-editor/internal/editor/publish-puck-data.js.map +1 -0
  243. package/dist/puck-editor/internal/editor/puck-editor.d.ts +15 -0
  244. package/dist/puck-editor/internal/editor/puck-editor.d.ts.map +1 -0
  245. package/dist/puck-editor/internal/editor/puck-editor.js +333 -0
  246. package/dist/puck-editor/internal/editor/puck-editor.js.map +1 -0
  247. package/dist/puck-editor/internal/editor/section-template-modal.d.ts +4 -0
  248. package/dist/puck-editor/internal/editor/section-template-modal.d.ts.map +1 -0
  249. package/dist/puck-editor/internal/editor/section-template-modal.js +71 -0
  250. package/dist/puck-editor/internal/editor/section-template-modal.js.map +1 -0
  251. package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts +15 -0
  252. package/dist/puck-editor/internal/editor/use-scroll-lock-outside.d.ts.map +1 -0
  253. package/dist/puck-editor/internal/editor/use-scroll-lock-outside.js +93 -0
  254. package/dist/puck-editor/internal/editor/use-scroll-lock-outside.js.map +1 -0
  255. package/dist/puck-editor/internal/editor-config.d.ts +30 -0
  256. package/dist/puck-editor/internal/editor-config.d.ts.map +1 -0
  257. package/dist/puck-editor/internal/editor-config.js +57 -0
  258. package/dist/puck-editor/internal/editor-config.js.map +1 -0
  259. package/dist/puck-editor/internal/editor-query-client.d.ts +4 -0
  260. package/dist/puck-editor/internal/editor-query-client.d.ts.map +1 -0
  261. package/dist/puck-editor/internal/editor-query-client.js +8 -0
  262. package/dist/puck-editor/internal/editor-query-client.js.map +1 -0
  263. package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts +14 -0
  264. package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.d.ts.map +1 -0
  265. package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js +120 -0
  266. package/dist/puck-editor/internal/fields/checkbox-group/checkbox-group-field.js.map +1 -0
  267. package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts +21 -0
  268. package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.d.ts.map +1 -0
  269. package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js +24 -0
  270. package/dist/puck-editor/internal/fields/checkbox-group/create-checkbox-group-field.js.map +1 -0
  271. package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts +16 -0
  272. package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.d.ts.map +1 -0
  273. package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js +20 -0
  274. package/dist/puck-editor/internal/fields/date-picker/create-date-picker-field.js.map +1 -0
  275. package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts +8 -0
  276. package/dist/puck-editor/internal/fields/date-picker/date-picker.d.ts.map +1 -0
  277. package/dist/puck-editor/internal/fields/date-picker/date-picker.js +151 -0
  278. package/dist/puck-editor/internal/fields/date-picker/date-picker.js.map +1 -0
  279. package/dist/puck-editor/internal/fields/index.d.ts +10 -0
  280. package/dist/puck-editor/internal/fields/index.d.ts.map +1 -0
  281. package/dist/puck-editor/internal/fields/index.js +10 -0
  282. package/dist/puck-editor/internal/fields/index.js.map +1 -0
  283. package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts +33 -0
  284. package/dist/puck-editor/internal/fields/link-picker/anchor.d.ts.map +1 -0
  285. package/dist/puck-editor/internal/fields/link-picker/anchor.js +83 -0
  286. package/dist/puck-editor/internal/fields/link-picker/anchor.js.map +1 -0
  287. package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts +24 -0
  288. package/dist/puck-editor/internal/fields/link-picker/create-link-field.d.ts.map +1 -0
  289. package/dist/puck-editor/internal/fields/link-picker/create-link-field.js +31 -0
  290. package/dist/puck-editor/internal/fields/link-picker/create-link-field.js.map +1 -0
  291. package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts +2 -0
  292. package/dist/puck-editor/internal/fields/link-picker/humanize.d.ts.map +1 -0
  293. package/dist/puck-editor/internal/fields/link-picker/humanize.js +4 -0
  294. package/dist/puck-editor/internal/fields/link-picker/humanize.js.map +1 -0
  295. package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts +27 -0
  296. package/dist/puck-editor/internal/fields/link-picker/link-picker-control.d.ts.map +1 -0
  297. package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js +564 -0
  298. package/dist/puck-editor/internal/fields/link-picker/link-picker-control.js.map +1 -0
  299. package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts +9 -0
  300. package/dist/puck-editor/internal/fields/link-picker/link-picker-field.d.ts.map +1 -0
  301. package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js +189 -0
  302. package/dist/puck-editor/internal/fields/link-picker/link-picker-field.js.map +1 -0
  303. package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts +72 -0
  304. package/dist/puck-editor/internal/fields/link-picker/link-value.d.ts.map +1 -0
  305. package/dist/puck-editor/internal/fields/link-picker/link-value.js +114 -0
  306. package/dist/puck-editor/internal/fields/link-picker/link-value.js.map +1 -0
  307. package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts +14 -0
  308. package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.d.ts.map +1 -0
  309. package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js +667 -0
  310. package/dist/puck-editor/internal/fields/link-picker/rich-text-link-button.js.map +1 -0
  311. package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts +11 -0
  312. package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.d.ts.map +1 -0
  313. package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.js +34 -0
  314. package/dist/puck-editor/internal/fields/link-picker/richtext-extensions.js.map +1 -0
  315. package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts +40 -0
  316. package/dist/puck-editor/internal/fields/link-picker/segmented-control.d.ts.map +1 -0
  317. package/dist/puck-editor/internal/fields/link-picker/segmented-control.js +146 -0
  318. package/dist/puck-editor/internal/fields/link-picker/segmented-control.js.map +1 -0
  319. package/dist/puck-editor/internal/fields/link-picker/types.d.ts +34 -0
  320. package/dist/puck-editor/internal/fields/link-picker/types.d.ts.map +1 -0
  321. package/dist/puck-editor/internal/fields/link-picker/types.js +2 -0
  322. package/dist/puck-editor/internal/fields/link-picker/types.js.map +1 -0
  323. package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts +27 -0
  324. package/dist/puck-editor/internal/fields/media-array/create-media-array-field.d.ts.map +1 -0
  325. package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js +32 -0
  326. package/dist/puck-editor/internal/fields/media-array/create-media-array-field.js.map +1 -0
  327. package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts +13 -0
  328. package/dist/puck-editor/internal/fields/media-array/media-array-field.d.ts.map +1 -0
  329. package/dist/puck-editor/internal/fields/media-array/media-array-field.js +372 -0
  330. package/dist/puck-editor/internal/fields/media-array/media-array-field.js.map +1 -0
  331. package/dist/puck-editor/internal/fields/media-array/reorder.d.ts +2 -0
  332. package/dist/puck-editor/internal/fields/media-array/reorder.d.ts.map +1 -0
  333. package/dist/puck-editor/internal/fields/media-array/reorder.js +8 -0
  334. package/dist/puck-editor/internal/fields/media-array/reorder.js.map +1 -0
  335. package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts +27 -0
  336. package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.d.ts.map +1 -0
  337. package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js +32 -0
  338. package/dist/puck-editor/internal/fields/media-selector/create-media-selector-field.js.map +1 -0
  339. package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts +11 -0
  340. package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.d.ts.map +1 -0
  341. package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js +219 -0
  342. package/dist/puck-editor/internal/fields/media-selector/crop-editor-dialog.js.map +1 -0
  343. package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts +24 -0
  344. package/dist/puck-editor/internal/fields/media-selector/crop-types.d.ts.map +1 -0
  345. package/dist/puck-editor/internal/fields/media-selector/crop-types.js +8 -0
  346. package/dist/puck-editor/internal/fields/media-selector/crop-types.js.map +1 -0
  347. package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts +8 -0
  348. package/dist/puck-editor/internal/fields/media-selector/extract-fields.d.ts.map +1 -0
  349. package/dist/puck-editor/internal/fields/media-selector/extract-fields.js +51 -0
  350. package/dist/puck-editor/internal/fields/media-selector/extract-fields.js.map +1 -0
  351. package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts +7 -0
  352. package/dist/puck-editor/internal/fields/media-selector/image-upload-form.d.ts.map +1 -0
  353. package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js +147 -0
  354. package/dist/puck-editor/internal/fields/media-selector/image-upload-form.js.map +1 -0
  355. package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts +30 -0
  356. package/dist/puck-editor/internal/fields/media-selector/media-selector-field.d.ts.map +1 -0
  357. package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js +358 -0
  358. package/dist/puck-editor/internal/fields/media-selector/media-selector-field.js.map +1 -0
  359. package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts +14 -0
  360. package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.d.ts.map +1 -0
  361. package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js +355 -0
  362. package/dist/puck-editor/internal/fields/media-selector/media-selector-modal.js.map +1 -0
  363. package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts +2 -0
  364. package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.d.ts.map +1 -0
  365. package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.js +55 -0
  366. package/dist/puck-editor/internal/fields/media-selector/use-debounced-value.js.map +1 -0
  367. package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts +24 -0
  368. package/dist/puck-editor/internal/fields/media-selector/use-media-library.d.ts.map +1 -0
  369. package/dist/puck-editor/internal/fields/media-selector/use-media-library.js +229 -0
  370. package/dist/puck-editor/internal/fields/media-selector/use-media-library.js.map +1 -0
  371. package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts +7 -0
  372. package/dist/puck-editor/internal/fields/media-selector/video-upload-form.d.ts.map +1 -0
  373. package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js +120 -0
  374. package/dist/puck-editor/internal/fields/media-selector/video-upload-form.js.map +1 -0
  375. package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts +31 -0
  376. package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.d.ts.map +1 -0
  377. package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js +39 -0
  378. package/dist/puck-editor/internal/fields/node-selector/create-node-selector-field.js.map +1 -0
  379. package/dist/puck-editor/internal/fields/required-field-label.d.ts +16 -0
  380. package/dist/puck-editor/internal/fields/required-field-label.d.ts.map +1 -0
  381. package/dist/puck-editor/internal/fields/required-field-label.js +89 -0
  382. package/dist/puck-editor/internal/fields/required-field-label.js.map +1 -0
  383. package/dist/puck-editor/internal/fields/required.d.ts +19 -0
  384. package/dist/puck-editor/internal/fields/required.d.ts.map +1 -0
  385. package/dist/puck-editor/internal/fields/required.js +20 -0
  386. package/dist/puck-editor/internal/fields/required.js.map +1 -0
  387. package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts +37 -0
  388. package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.d.ts.map +1 -0
  389. package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js +26 -0
  390. package/dist/puck-editor/internal/fields/rich-text/create-rich-text-field.js.map +1 -0
  391. package/dist/puck-editor/internal/i18n.d.ts +188 -0
  392. package/dist/puck-editor/internal/i18n.d.ts.map +1 -0
  393. package/dist/puck-editor/internal/i18n.js +414 -0
  394. package/dist/puck-editor/internal/i18n.js.map +1 -0
  395. package/dist/puck-editor/internal/locale.d.ts +13 -0
  396. package/dist/puck-editor/internal/locale.d.ts.map +1 -0
  397. package/dist/puck-editor/internal/locale.js +20 -0
  398. package/dist/puck-editor/internal/locale.js.map +1 -0
  399. package/dist/puck-editor/internal/localize.d.ts +11 -0
  400. package/dist/puck-editor/internal/localize.d.ts.map +1 -0
  401. package/dist/puck-editor/internal/localize.js +42 -0
  402. package/dist/puck-editor/internal/localize.js.map +1 -0
  403. package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts +21 -0
  404. package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.d.ts.map +1 -0
  405. package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js +197 -0
  406. package/dist/puck-editor/internal/plugins/agent-plugin/agent-bridge.js.map +1 -0
  407. package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts +2 -0
  408. package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.d.ts.map +1 -0
  409. package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js +131 -0
  410. package/dist/puck-editor/internal/plugins/agent-plugin/agent-info-panel.js.map +1 -0
  411. package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts +20 -0
  412. package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.d.ts.map +1 -0
  413. package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.js +46 -0
  414. package/dist/puck-editor/internal/plugins/agent-plugin/agent-plugin.js.map +1 -0
  415. package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts +46 -0
  416. package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.d.ts.map +1 -0
  417. package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js +176 -0
  418. package/dist/puck-editor/internal/plugins/agent-plugin/apply-patch-to-puck.js.map +1 -0
  419. package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts +20 -0
  420. package/dist/puck-editor/internal/plugins/agent-plugin/catalog.d.ts.map +1 -0
  421. package/dist/puck-editor/internal/plugins/agent-plugin/catalog.js +39 -0
  422. package/dist/puck-editor/internal/plugins/agent-plugin/catalog.js.map +1 -0
  423. package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts +5 -0
  424. package/dist/puck-editor/internal/plugins/agent-plugin/constants.d.ts.map +1 -0
  425. package/dist/puck-editor/internal/plugins/agent-plugin/constants.js +3 -0
  426. package/dist/puck-editor/internal/plugins/agent-plugin/constants.js.map +1 -0
  427. package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts +17 -0
  428. package/dist/puck-editor/internal/plugins/agent-plugin/create-page.d.ts.map +1 -0
  429. package/dist/puck-editor/internal/plugins/agent-plugin/create-page.js +35 -0
  430. package/dist/puck-editor/internal/plugins/agent-plugin/create-page.js.map +1 -0
  431. package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts +19 -0
  432. package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.d.ts.map +1 -0
  433. package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.js +79 -0
  434. package/dist/puck-editor/internal/plugins/agent-plugin/find-component-location.js.map +1 -0
  435. package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts +2 -0
  436. package/dist/puck-editor/internal/plugins/agent-plugin/help.d.ts.map +1 -0
  437. package/dist/puck-editor/internal/plugins/agent-plugin/help.js +243 -0
  438. package/dist/puck-editor/internal/plugins/agent-plugin/help.js.map +1 -0
  439. package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts +2 -0
  440. package/dist/puck-editor/internal/plugins/agent-plugin/index.d.ts.map +1 -0
  441. package/dist/puck-editor/internal/plugins/agent-plugin/index.js +2 -0
  442. package/dist/puck-editor/internal/plugins/agent-plugin/index.js.map +1 -0
  443. package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts +19 -0
  444. package/dist/puck-editor/internal/plugins/agent-plugin/list-media.d.ts.map +1 -0
  445. package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js +31 -0
  446. package/dist/puck-editor/internal/plugins/agent-plugin/list-media.js.map +1 -0
  447. package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts +23 -0
  448. package/dist/puck-editor/internal/plugins/agent-plugin/templates.d.ts.map +1 -0
  449. package/dist/puck-editor/internal/plugins/agent-plugin/templates.js +72 -0
  450. package/dist/puck-editor/internal/plugins/agent-plugin/templates.js.map +1 -0
  451. package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts +20 -0
  452. package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.d.ts.map +1 -0
  453. package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.js +34 -0
  454. package/dist/puck-editor/internal/plugins/agent-plugin/upload-media.js.map +1 -0
  455. package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts +17 -0
  456. package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.d.ts.map +1 -0
  457. package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js +70 -0
  458. package/dist/puck-editor/internal/plugins/agent-plugin/use-agent-handle.js.map +1 -0
  459. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts +2 -0
  460. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.d.ts.map +1 -0
  461. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js +37 -0
  462. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-panel.js.map +1 -0
  463. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts +7 -0
  464. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.d.ts.map +1 -0
  465. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js +18 -0
  466. package/dist/puck-editor/internal/plugins/blocks-plugin/blocks-plugin.js.map +1 -0
  467. package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts +2 -0
  468. package/dist/puck-editor/internal/plugins/blocks-plugin/index.d.ts.map +1 -0
  469. package/dist/puck-editor/internal/plugins/blocks-plugin/index.js +2 -0
  470. package/dist/puck-editor/internal/plugins/blocks-plugin/index.js.map +1 -0
  471. package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts +2 -0
  472. package/dist/puck-editor/internal/plugins/outline-plugin/index.d.ts.map +1 -0
  473. package/dist/puck-editor/internal/plugins/outline-plugin/index.js +2 -0
  474. package/dist/puck-editor/internal/plugins/outline-plugin/index.js.map +1 -0
  475. package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts +2 -0
  476. package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.d.ts.map +1 -0
  477. package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js +861 -0
  478. package/dist/puck-editor/internal/plugins/outline-plugin/outline-panel.js.map +1 -0
  479. package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts +5 -0
  480. package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.d.ts.map +1 -0
  481. package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js +16 -0
  482. package/dist/puck-editor/internal/plugins/outline-plugin/outline-plugin.js.map +1 -0
  483. package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts +53 -0
  484. package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.d.ts.map +1 -0
  485. package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.js +145 -0
  486. package/dist/puck-editor/internal/plugins/outline-plugin/outline-tree.js.map +1 -0
  487. package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts +2 -0
  488. package/dist/puck-editor/internal/plugins/sections-plugin/index.d.ts.map +1 -0
  489. package/dist/puck-editor/internal/plugins/sections-plugin/index.js +2 -0
  490. package/dist/puck-editor/internal/plugins/sections-plugin/index.js.map +1 -0
  491. package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts +2 -0
  492. package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.d.ts.map +1 -0
  493. package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js +69 -0
  494. package/dist/puck-editor/internal/plugins/sections-plugin/sections-panel.js.map +1 -0
  495. package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts +7 -0
  496. package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.d.ts.map +1 -0
  497. package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js +18 -0
  498. package/dist/puck-editor/internal/plugins/sections-plugin/sections-plugin.js.map +1 -0
  499. package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts +6 -0
  500. package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.d.ts.map +1 -0
  501. package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js +178 -0
  502. package/dist/puck-editor/internal/plugins/templates-plugin/ai-options-fields.js.map +1 -0
  503. package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts +3 -0
  504. package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.d.ts.map +1 -0
  505. package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js +55 -0
  506. package/dist/puck-editor/internal/plugins/templates-plugin/apply-vehicle-slot-constraints.js.map +1 -0
  507. package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts +12 -0
  508. package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.d.ts.map +1 -0
  509. package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js +125 -0
  510. package/dist/puck-editor/internal/plugins/templates-plugin/component-template-modal.js.map +1 -0
  511. package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts +8 -0
  512. package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.d.ts.map +1 -0
  513. package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js +582 -0
  514. package/dist/puck-editor/internal/plugins/templates-plugin/custom-template-list.js.map +1 -0
  515. package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts +6 -0
  516. package/dist/puck-editor/internal/plugins/templates-plugin/index.d.ts.map +1 -0
  517. package/dist/puck-editor/internal/plugins/templates-plugin/index.js +6 -0
  518. package/dist/puck-editor/internal/plugins/templates-plugin/index.js.map +1 -0
  519. package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts +4 -0
  520. package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.d.ts.map +1 -0
  521. package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js +54 -0
  522. package/dist/puck-editor/internal/plugins/templates-plugin/root-drop-zone.js.map +1 -0
  523. package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts +11 -0
  524. package/dist/puck-editor/internal/plugins/templates-plugin/template-form.d.ts.map +1 -0
  525. package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js +92 -0
  526. package/dist/puck-editor/internal/plugins/templates-plugin/template-form.js.map +1 -0
  527. package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts +7 -0
  528. package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.d.ts.map +1 -0
  529. package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js +30 -0
  530. package/dist/puck-editor/internal/plugins/templates-plugin/template-vehicles.js.map +1 -0
  531. package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts +2 -0
  532. package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.d.ts.map +1 -0
  533. package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js +471 -0
  534. package/dist/puck-editor/internal/plugins/templates-plugin/templates-panel.js.map +1 -0
  535. package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts +5 -0
  536. package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.d.ts.map +1 -0
  537. package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js +16 -0
  538. package/dist/puck-editor/internal/plugins/templates-plugin/templates-plugin.js.map +1 -0
  539. package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts +43 -0
  540. package/dist/puck-editor/internal/plugins/templates-plugin/templates.d.ts.map +1 -0
  541. package/dist/puck-editor/internal/plugins/templates-plugin/templates.js +115 -0
  542. package/dist/puck-editor/internal/plugins/templates-plugin/templates.js.map +1 -0
  543. package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts +9 -0
  544. package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.d.ts.map +1 -0
  545. package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js +152 -0
  546. package/dist/puck-editor/internal/plugins/templates-plugin/use-template-dnd.js.map +1 -0
  547. package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts +16 -0
  548. package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.d.ts.map +1 -0
  549. package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js +134 -0
  550. package/dist/puck-editor/internal/plugins/templates-plugin/use-templates.js.map +1 -0
  551. package/dist/puck-editor/internal/puck-augmentation.d.ts +28 -0
  552. package/dist/puck-editor/internal/puck-augmentation.d.ts.map +1 -0
  553. package/dist/puck-editor/internal/puck-augmentation.js +7 -0
  554. package/dist/puck-editor/internal/puck-augmentation.js.map +1 -0
  555. package/dist/puck-editor/internal/puck-editor-provider.d.ts +12 -0
  556. package/dist/puck-editor/internal/puck-editor-provider.d.ts.map +1 -0
  557. package/dist/puck-editor/internal/puck-editor-provider.js +69 -0
  558. package/dist/puck-editor/internal/puck-editor-provider.js.map +1 -0
  559. package/dist/puck-editor/internal/puck-node.d.ts +29 -0
  560. package/dist/puck-editor/internal/puck-node.d.ts.map +1 -0
  561. package/dist/puck-editor/internal/puck-node.js +2 -0
  562. package/dist/puck-editor/internal/puck-node.js.map +1 -0
  563. package/dist/puck-editor/internal/puck-wrapper.d.ts +19 -0
  564. package/dist/puck-editor/internal/puck-wrapper.d.ts.map +1 -0
  565. package/dist/puck-editor/internal/puck-wrapper.js +270 -0
  566. package/dist/puck-editor/internal/puck-wrapper.js.map +1 -0
  567. package/dist/puck-editor/internal/render/cropped-image.d.ts +19 -0
  568. package/dist/puck-editor/internal/render/cropped-image.d.ts.map +1 -0
  569. package/dist/puck-editor/internal/render/cropped-image.js +126 -0
  570. package/dist/puck-editor/internal/render/cropped-image.js.map +1 -0
  571. package/dist/puck-editor/internal/smart-actions/index.d.ts +13 -0
  572. package/dist/puck-editor/internal/smart-actions/index.d.ts.map +1 -0
  573. package/dist/puck-editor/internal/smart-actions/index.js +29 -0
  574. package/dist/puck-editor/internal/smart-actions/index.js.map +1 -0
  575. package/dist/puck-editor/internal/smart-actions/new-page.d.ts +13 -0
  576. package/dist/puck-editor/internal/smart-actions/new-page.d.ts.map +1 -0
  577. package/dist/puck-editor/internal/smart-actions/new-page.js +80 -0
  578. package/dist/puck-editor/internal/smart-actions/new-page.js.map +1 -0
  579. package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts +2 -0
  580. package/dist/puck-editor/internal/smart-actions/open-puck-editor.d.ts.map +1 -0
  581. package/dist/puck-editor/internal/smart-actions/open-puck-editor.js +65 -0
  582. package/dist/puck-editor/internal/smart-actions/open-puck-editor.js.map +1 -0
  583. package/dist/puck-editor/internal/ui/calendar.d.ts +9 -0
  584. package/dist/puck-editor/internal/ui/calendar.d.ts.map +1 -0
  585. package/dist/puck-editor/internal/ui/calendar.js +147 -0
  586. package/dist/puck-editor/internal/ui/calendar.js.map +1 -0
  587. package/dist/puck-editor/internal/ui/component-list-accordion.d.ts +13 -0
  588. package/dist/puck-editor/internal/ui/component-list-accordion.d.ts.map +1 -0
  589. package/dist/puck-editor/internal/ui/component-list-accordion.js +93 -0
  590. package/dist/puck-editor/internal/ui/component-list-accordion.js.map +1 -0
  591. package/dist/puck-editor/internal/ui/dialog.d.ts +20 -0
  592. package/dist/puck-editor/internal/ui/dialog.d.ts.map +1 -0
  593. package/dist/puck-editor/internal/ui/dialog.js +286 -0
  594. package/dist/puck-editor/internal/ui/dialog.js.map +1 -0
  595. package/dist/puck-editor/internal/ui/drawer-item-content.d.ts +11 -0
  596. package/dist/puck-editor/internal/ui/drawer-item-content.d.ts.map +1 -0
  597. package/dist/puck-editor/internal/ui/drawer-item-content.js +109 -0
  598. package/dist/puck-editor/internal/ui/drawer-item-content.js.map +1 -0
  599. package/dist/puck-editor/internal/ui/icon-button.d.ts +10 -0
  600. package/dist/puck-editor/internal/ui/icon-button.d.ts.map +1 -0
  601. package/dist/puck-editor/internal/ui/icon-button.js +72 -0
  602. package/dist/puck-editor/internal/ui/icon-button.js.map +1 -0
  603. package/dist/puck-editor/internal/ui/popover.d.ts +9 -0
  604. package/dist/puck-editor/internal/ui/popover.d.ts.map +1 -0
  605. package/dist/puck-editor/internal/ui/popover.js +165 -0
  606. package/dist/puck-editor/internal/ui/popover.js.map +1 -0
  607. package/dist/puck-editor/internal/ui/required-mark.d.ts +2 -0
  608. package/dist/puck-editor/internal/ui/required-mark.d.ts.map +1 -0
  609. package/dist/puck-editor/internal/ui/required-mark.js +12 -0
  610. package/dist/puck-editor/internal/ui/required-mark.js.map +1 -0
  611. package/dist/puck-editor/internal/ui/search-control.d.ts +20 -0
  612. package/dist/puck-editor/internal/ui/search-control.d.ts.map +1 -0
  613. package/dist/puck-editor/internal/ui/search-control.js +156 -0
  614. package/dist/puck-editor/internal/ui/search-control.js.map +1 -0
  615. package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts +2 -0
  616. package/dist/puck-editor/internal/ui/use-panel-search-focus.d.ts.map +1 -0
  617. package/dist/puck-editor/internal/ui/use-panel-search-focus.js +40 -0
  618. package/dist/puck-editor/internal/ui/use-panel-search-focus.js.map +1 -0
  619. package/dist/puck-editor/internal/use-puck-overlay.d.ts +16 -0
  620. package/dist/puck-editor/internal/use-puck-overlay.d.ts.map +1 -0
  621. package/dist/puck-editor/internal/use-puck-overlay.js +121 -0
  622. package/dist/puck-editor/internal/use-puck-overlay.js.map +1 -0
  623. package/dist/puck-editor/internal/utils.d.ts +6 -0
  624. package/dist/puck-editor/internal/utils.d.ts.map +1 -0
  625. package/dist/puck-editor/internal/utils.js +57 -0
  626. package/dist/puck-editor/internal/utils.js.map +1 -0
  627. package/dist/puck-editor/puck-theme.css +110 -0
  628. package/dist/puck-editor/render.d.ts +3 -0
  629. package/dist/puck-editor/render.d.ts.map +1 -0
  630. package/dist/puck-editor/render.js +2 -0
  631. package/dist/puck-editor/render.js.map +1 -0
  632. package/dist/puck-editor/server.d.ts +4 -0
  633. package/dist/puck-editor/server.d.ts.map +1 -0
  634. package/dist/puck-editor/server.js +4 -0
  635. package/dist/puck-editor/server.js.map +1 -0
  636. package/dist/puck-editor/smart-actions.d.ts +2 -0
  637. package/dist/puck-editor/smart-actions.d.ts.map +1 -0
  638. package/dist/puck-editor/smart-actions.js +2 -0
  639. package/dist/puck-editor/smart-actions.js.map +1 -0
  640. package/dist/shared/cn.d.ts +3 -0
  641. package/dist/shared/cn.d.ts.map +1 -0
  642. package/dist/shared/cn.js +9 -0
  643. package/dist/shared/cn.js.map +1 -0
  644. package/dist/shared/i18n.d.ts +5 -0
  645. package/dist/shared/i18n.d.ts.map +1 -0
  646. package/dist/shared/i18n.js +18 -0
  647. package/dist/shared/i18n.js.map +1 -0
  648. package/dist/shared/toolbar-action.d.ts +9 -0
  649. package/dist/shared/toolbar-action.d.ts.map +1 -0
  650. package/dist/shared/toolbar-action.js +2 -0
  651. package/dist/shared/toolbar-action.js.map +1 -0
  652. package/dist/smart-actions/internal/get-smart-actions-context.d.ts +19 -0
  653. package/dist/smart-actions/internal/get-smart-actions-context.d.ts.map +1 -0
  654. package/dist/smart-actions/internal/get-smart-actions-context.js +24 -0
  655. package/dist/smart-actions/internal/get-smart-actions-context.js.map +1 -0
  656. package/dist/smart-actions/internal/i18n.d.ts +20 -0
  657. package/dist/smart-actions/internal/i18n.d.ts.map +1 -0
  658. package/dist/smart-actions/internal/i18n.js +35 -0
  659. package/dist/smart-actions/internal/i18n.js.map +1 -0
  660. package/dist/smart-actions/internal/logout-form.d.ts +8 -0
  661. package/dist/smart-actions/internal/logout-form.d.ts.map +1 -0
  662. package/dist/smart-actions/internal/logout-form.js +88 -0
  663. package/dist/smart-actions/internal/logout-form.js.map +1 -0
  664. package/dist/smart-actions/internal/refresh-page.d.ts +2 -0
  665. package/dist/smart-actions/internal/refresh-page.d.ts.map +1 -0
  666. package/dist/smart-actions/internal/refresh-page.js +126 -0
  667. package/dist/smart-actions/internal/refresh-page.js.map +1 -0
  668. package/dist/smart-actions/internal/smart-actions-button.d.ts +24 -0
  669. package/dist/smart-actions/internal/smart-actions-button.d.ts.map +1 -0
  670. package/dist/smart-actions/internal/smart-actions-button.js +41 -0
  671. package/dist/smart-actions/internal/smart-actions-button.js.map +1 -0
  672. package/dist/smart-actions/internal/smart-actions-config.d.ts +13 -0
  673. package/dist/smart-actions/internal/smart-actions-config.d.ts.map +1 -0
  674. package/dist/smart-actions/internal/smart-actions-config.js +101 -0
  675. package/dist/smart-actions/internal/smart-actions-config.js.map +1 -0
  676. package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts +15 -0
  677. package/dist/smart-actions/internal/smart-actions-toolbar-client.d.ts.map +1 -0
  678. package/dist/smart-actions/internal/smart-actions-toolbar-client.js +71 -0
  679. package/dist/smart-actions/internal/smart-actions-toolbar-client.js.map +1 -0
  680. package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts +13 -0
  681. package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.d.ts.map +1 -0
  682. package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js +323 -0
  683. package/dist/smart-actions/internal/toolbar/smart-actions-toolbar.js.map +1 -0
  684. package/dist/smart-actions/internal/toolbar/storage.d.ts +7 -0
  685. package/dist/smart-actions/internal/toolbar/storage.d.ts.map +1 -0
  686. package/dist/smart-actions/internal/toolbar/storage.js +29 -0
  687. package/dist/smart-actions/internal/toolbar/storage.js.map +1 -0
  688. package/dist/smart-actions/internal/toolbar/types.d.ts +4 -0
  689. package/dist/smart-actions/internal/toolbar/types.d.ts.map +1 -0
  690. package/dist/smart-actions/internal/toolbar/types.js +2 -0
  691. package/dist/smart-actions/internal/toolbar/types.js.map +1 -0
  692. package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts +6 -0
  693. package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.d.ts.map +1 -0
  694. package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js +43 -0
  695. package/dist/smart-actions/internal/toolbar/use-smart-actions-toolbar-mode.js.map +1 -0
  696. package/dist/smart-actions/internal/ui/tooltip.d.ts +8 -0
  697. package/dist/smart-actions/internal/ui/tooltip.d.ts.map +1 -0
  698. package/dist/smart-actions/internal/ui/tooltip.js +156 -0
  699. package/dist/smart-actions/internal/ui/tooltip.js.map +1 -0
  700. package/dist/smart-actions/internal/user-profile.d.ts +8 -0
  701. package/dist/smart-actions/internal/user-profile.d.ts.map +1 -0
  702. package/dist/smart-actions/internal/user-profile.js +30 -0
  703. package/dist/smart-actions/internal/user-profile.js.map +1 -0
  704. package/dist/smart-actions/server.d.ts +4 -0
  705. package/dist/smart-actions/server.d.ts.map +1 -0
  706. package/dist/smart-actions/server.js +4 -0
  707. package/dist/smart-actions/server.js.map +1 -0
  708. package/dist/theme.css +2 -0
  709. package/dist/visual-editor/index.d.ts +4 -0
  710. package/dist/visual-editor/index.d.ts.map +1 -0
  711. package/dist/visual-editor/index.js +4 -0
  712. package/dist/visual-editor/index.js.map +1 -0
  713. package/dist/visual-editor/internal/bridge/connector.d.ts +7 -0
  714. package/dist/visual-editor/internal/bridge/connector.d.ts.map +1 -0
  715. package/dist/visual-editor/internal/bridge/connector.js +72 -0
  716. package/dist/visual-editor/internal/bridge/connector.js.map +1 -0
  717. package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts +8 -0
  718. package/dist/visual-editor/internal/bridge/draft-mode-self-heal.d.ts.map +1 -0
  719. package/dist/visual-editor/internal/bridge/draft-mode-self-heal.js +44 -0
  720. package/dist/visual-editor/internal/bridge/draft-mode-self-heal.js.map +1 -0
  721. package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts +16 -0
  722. package/dist/visual-editor/internal/bridge/editor-auth-gate-server.d.ts.map +1 -0
  723. package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js +43 -0
  724. package/dist/visual-editor/internal/bridge/editor-auth-gate-server.js.map +1 -0
  725. package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts +15 -0
  726. package/dist/visual-editor/internal/bridge/editor-auth-gate.d.ts.map +1 -0
  727. package/dist/visual-editor/internal/bridge/editor-auth-gate.js +146 -0
  728. package/dist/visual-editor/internal/bridge/editor-auth-gate.js.map +1 -0
  729. package/dist/visual-editor/internal/i18n.d.ts +29 -0
  730. package/dist/visual-editor/internal/i18n.d.ts.map +1 -0
  731. package/dist/visual-editor/internal/i18n.js +51 -0
  732. package/dist/visual-editor/internal/i18n.js.map +1 -0
  733. package/dist/visual-editor/internal/overlays/drupal-origin.d.ts +7 -0
  734. package/dist/visual-editor/internal/overlays/drupal-origin.d.ts.map +1 -0
  735. package/dist/visual-editor/internal/overlays/drupal-origin.js +15 -0
  736. package/dist/visual-editor/internal/overlays/drupal-origin.js.map +1 -0
  737. package/dist/visual-editor/internal/overlays/edit-button.d.ts +10 -0
  738. package/dist/visual-editor/internal/overlays/edit-button.d.ts.map +1 -0
  739. package/dist/visual-editor/internal/overlays/edit-button.js +138 -0
  740. package/dist/visual-editor/internal/overlays/edit-button.js.map +1 -0
  741. package/dist/visual-editor/internal/overlays/edit-icon.d.ts +3 -0
  742. package/dist/visual-editor/internal/overlays/edit-icon.d.ts.map +1 -0
  743. package/dist/visual-editor/internal/overlays/edit-icon.js +19 -0
  744. package/dist/visual-editor/internal/overlays/edit-icon.js.map +1 -0
  745. package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts +15 -0
  746. package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.d.ts.map +1 -0
  747. package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js +52 -0
  748. package/dist/visual-editor/internal/overlays/fragment/fragment-wrapper.js.map +1 -0
  749. package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts +6 -0
  750. package/dist/visual-editor/internal/overlays/iframe-wrapper.d.ts.map +1 -0
  751. package/dist/visual-editor/internal/overlays/iframe-wrapper.js +42 -0
  752. package/dist/visual-editor/internal/overlays/iframe-wrapper.js.map +1 -0
  753. package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts +9 -0
  754. package/dist/visual-editor/internal/overlays/menu/menu-wrapper.d.ts.map +1 -0
  755. package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js +33 -0
  756. package/dist/visual-editor/internal/overlays/menu/menu-wrapper.js.map +1 -0
  757. package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts +13 -0
  758. package/dist/visual-editor/internal/overlays/node/node-metadata.d.ts.map +1 -0
  759. package/dist/visual-editor/internal/overlays/node/node-metadata.js +17 -0
  760. package/dist/visual-editor/internal/overlays/node/node-metadata.js.map +1 -0
  761. package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts +8 -0
  762. package/dist/visual-editor/internal/overlays/node/node-wrapper.d.ts.map +1 -0
  763. package/dist/visual-editor/internal/overlays/node/node-wrapper.js +25 -0
  764. package/dist/visual-editor/internal/overlays/node/node-wrapper.js.map +1 -0
  765. package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts +18 -0
  766. package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.d.ts.map +1 -0
  767. package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js +58 -0
  768. package/dist/visual-editor/internal/overlays/paragraph/paragraph-wrapper.js.map +1 -0
  769. package/dist/visual-editor/internal/revalidate-route.d.ts +19 -0
  770. package/dist/visual-editor/internal/revalidate-route.d.ts.map +1 -0
  771. package/dist/visual-editor/internal/revalidate-route.js +51 -0
  772. package/dist/visual-editor/internal/revalidate-route.js.map +1 -0
  773. package/dist/visual-editor/server.d.ts +7 -0
  774. package/dist/visual-editor/server.d.ts.map +1 -0
  775. package/dist/visual-editor/server.js +8 -0
  776. package/dist/visual-editor/server.js.map +1 -0
  777. package/package.json +154 -0
@@ -0,0 +1,564 @@
1
+ 'use client';
2
+
3
+ import { c as _c } from "react/compiler-runtime";
4
+ import { useState } from 'react';
5
+ import { createUsePuck } from '@puckeditor/core';
6
+ import * as Popover from '@radix-ui/react-popover';
7
+ import { keepPreviousData, useQuery } from '@tanstack/react-query';
8
+ import { ChevronDown, Search, X } from 'lucide-react';
9
+ import { puckFetch } from '../../api/client';
10
+ import { usePuckDictionary } from '../../i18n';
11
+ import { getPathLocale } from '../../locale';
12
+ import { collectPageAnchors, hasAnchorFragment } from './anchor';
13
+ import { humanize } from './humanize';
14
+ import { isExternalHref } from './link-value';
15
+ import SegmentedControl from './segmented-control';
16
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
+ const MODE_VALUES = ['internal', 'external', 'anchor'];
18
+ const usePuck = createUsePuck();
19
+
20
+ /**
21
+ * A value is treated as external only when it carries an explicit external
22
+ * scheme (http(s), mailto, tel, or protocol-relative `//`). Relative paths and
23
+ * in-page anchors (incl. the default `#` placeholder) default to the internal
24
+ * picker, so editors land on the page list. Delegates to {@link isExternalHref}
25
+ * so mode detection and target derivation never diverge.
26
+ */
27
+ export function isExternalValue(value) {
28
+ return isExternalHref(value);
29
+ }
30
+
31
+ /** A bare `#` is the legacy empty/placeholder href — treat it as "no link". */
32
+ export function isEmptyValue(value) {
33
+ return !value || value === '#';
34
+ }
35
+ function linkLabel(link, locale) {
36
+ return link.label?.[locale] ?? Object.values(link.label ?? {})[0] ?? link.path;
37
+ }
38
+
39
+ /**
40
+ * Path as shown to the editor: the locale prefix (`/de`) is dropped for
41
+ * readability (e.g. `/blog/test` instead of `/de/blog/test`). The full,
42
+ * stored path stays available as a hover tooltip.
43
+ */
44
+ function displayPath(path, locale) {
45
+ const stripped = path.replace(new RegExp(`^/${locale}(?=/|$)`), '');
46
+ return stripped === '' ? '/' : stripped;
47
+ }
48
+ /**
49
+ * The shared link-selection control: Internal/External/Anchor toggle, external URL input,
50
+ * and the searchable, group-filtered internal dropdown (incl. unpublished
51
+ * drafts). Owns only the href; the wrapping field/popover owns the target
52
+ * override and persistence. Used by both `LinkPickerField` (Puck field) and the
53
+ * richtext link popover so both surfaces share identical selection UI.
54
+ */
55
+ export default function LinkPickerControl(t0) {
56
+ const $ = _c(21);
57
+ const {
58
+ href,
59
+ onHrefChange,
60
+ onSubmit
61
+ } = t0;
62
+ let t1;
63
+ if ($[0] !== href) {
64
+ t1 = () => hasAnchorFragment(href) ? "anchor" : isExternalValue(href) ? "external" : "internal";
65
+ $[0] = href;
66
+ $[1] = t1;
67
+ } else {
68
+ t1 = $[1];
69
+ }
70
+ const [mode, setMode] = useState(t1);
71
+ let t2;
72
+ if ($[2] !== mode) {
73
+ t2 = s => mode === "anchor" ? s.appState.data : null;
74
+ $[2] = mode;
75
+ $[3] = t2;
76
+ } else {
77
+ t2 = $[3];
78
+ }
79
+ const pageData = usePuck(t2);
80
+ let t3;
81
+ if ($[4] !== pageData) {
82
+ t3 = pageData ? collectPageAnchors(pageData) : [];
83
+ $[4] = pageData;
84
+ $[5] = t3;
85
+ } else {
86
+ t3 = $[5];
87
+ }
88
+ const anchors = t3;
89
+ const t = usePuckDictionary().linkPicker;
90
+ const [open, setOpen] = useState(false);
91
+ const [query, setQuery] = useState("");
92
+ const [activeGroup, setActiveGroup] = useState(null);
93
+ const locale = typeof window !== "undefined" ? getPathLocale(window.location.pathname) : "en";
94
+ const {
95
+ data: links,
96
+ isLoading: loading,
97
+ isError: error
98
+ } = useQuery({
99
+ queryKey: ["puck-links", locale],
100
+ queryFn: async () => {
101
+ const data = await puckFetch(`/links?lang=${locale}`);
102
+ return Array.isArray(data) ? data : [];
103
+ },
104
+ enabled: mode === "internal" && open,
105
+ staleTime: Infinity,
106
+ placeholderData: keepPreviousData
107
+ });
108
+ const selectedLink = links?.find(l => l.path === href) ?? null;
109
+ const info = new Map();
110
+ (links ?? []).forEach(l_0 => {
111
+ const key = l_0.group ?? "page";
112
+ if (!info.has(key)) {
113
+ info.set(key, {
114
+ label: l_0.groupLabel ?? humanize(key),
115
+ order: info.size
116
+ });
117
+ }
118
+ });
119
+ const groupInfo = info;
120
+ const groupLabelOf = key_0 => groupInfo.get(key_0)?.label ?? humanize(key_0);
121
+ const groupOrderOf = key_1 => groupInfo.get(key_1)?.order ?? Number.MAX_SAFE_INTEGER;
122
+ let t4;
123
+ bb0: {
124
+ if (!links) {
125
+ t4 = [];
126
+ break bb0;
127
+ }
128
+ const keys = new Set(links.map(_temp));
129
+ t4 = [...keys].map(key_2 => ({
130
+ key: key_2,
131
+ label: groupLabelOf(key_2),
132
+ order: groupOrderOf(key_2)
133
+ })).sort(_temp2);
134
+ }
135
+ const availableGroups = t4;
136
+ let t5;
137
+ bb1: {
138
+ if (!links) {
139
+ t5 = [];
140
+ break bb1;
141
+ }
142
+ const q = query.trim().toLowerCase();
143
+ const filtered = links.filter(l_2 => {
144
+ if (activeGroup && (l_2.group ?? "page") !== activeGroup) {
145
+ return false;
146
+ }
147
+ if (!q) {
148
+ return true;
149
+ }
150
+ return l_2.path.toLowerCase().includes(q) || linkLabel(l_2, locale).toLowerCase().includes(q);
151
+ });
152
+ const byGroup = new Map();
153
+ for (const link of filtered) {
154
+ const key_3 = link.group ?? "page";
155
+ const bucket = byGroup.get(key_3) ?? [];
156
+ bucket.push(link);
157
+ byGroup.set(key_3, bucket);
158
+ }
159
+ t5 = [...byGroup.entries()].map(t6 => {
160
+ const [key_4, items] = t6;
161
+ return {
162
+ key: key_4,
163
+ label: groupLabelOf(key_4),
164
+ order: groupOrderOf(key_4),
165
+ items: items.sort((a_0, b_0) => linkLabel(a_0, locale).localeCompare(linkLabel(b_0, locale)))
166
+ };
167
+ }).sort(_temp3);
168
+ }
169
+ const groups = t5;
170
+ let t6;
171
+ if ($[6] !== onSubmit) {
172
+ t6 = e => {
173
+ if (e.key === "Enter") {
174
+ e.preventDefault();
175
+ onSubmit?.();
176
+ }
177
+ };
178
+ $[6] = onSubmit;
179
+ $[7] = t6;
180
+ } else {
181
+ t6 = $[7];
182
+ }
183
+ const submitOnEnter = t6;
184
+ let t7;
185
+ if ($[8] !== mode || $[9] !== onHrefChange) {
186
+ t7 = next => {
187
+ if (next === mode) {
188
+ return;
189
+ }
190
+ setMode(next);
191
+ onHrefChange("");
192
+ setQuery("");
193
+ setActiveGroup(null);
194
+ setOpen(false);
195
+ };
196
+ $[8] = mode;
197
+ $[9] = onHrefChange;
198
+ $[10] = t7;
199
+ } else {
200
+ t7 = $[10];
201
+ }
202
+ const switchMode = t7;
203
+ const t8 = "nh:flex nh:flex-col nh:gap-2";
204
+ let t9;
205
+ if ($[11] !== t) {
206
+ t9 = MODE_VALUES.map(value => ({
207
+ value,
208
+ label: t[value]
209
+ }));
210
+ $[11] = t;
211
+ $[12] = t9;
212
+ } else {
213
+ t9 = $[12];
214
+ }
215
+ let t10;
216
+ if ($[13] !== mode || $[14] !== switchMode || $[15] !== t.linkMode || $[16] !== t9) {
217
+ t10 = /*#__PURE__*/_jsx(SegmentedControl, {
218
+ options: t9,
219
+ value: mode,
220
+ onChange: switchMode,
221
+ variant: "puck",
222
+ ariaLabel: t.linkMode
223
+ });
224
+ $[13] = mode;
225
+ $[14] = switchMode;
226
+ $[15] = t.linkMode;
227
+ $[16] = t9;
228
+ $[17] = t10;
229
+ } else {
230
+ t10 = $[17];
231
+ }
232
+ const t11 = mode === "external" ? /*#__PURE__*/_jsx("input", {
233
+ type: "text",
234
+ value: href,
235
+ placeholder: t.externalPlaceholder,
236
+ onChange: e_0 => onHrefChange(e_0.target.value),
237
+ onKeyDown: submitOnEnter,
238
+ className: "nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm"
239
+ }) : mode === "anchor" ? /*#__PURE__*/_jsx(AnchorInput, {
240
+ href: href,
241
+ anchors: anchors,
242
+ onHrefChange: onHrefChange,
243
+ onSubmit: onSubmit
244
+ }) : /*#__PURE__*/_jsx(Popover.Root, {
245
+ open: open,
246
+ onOpenChange: setOpen,
247
+ children: /*#__PURE__*/_jsxs("div", {
248
+ className: "nh:relative",
249
+ children: [/*#__PURE__*/_jsx(Popover.Trigger, {
250
+ asChild: true,
251
+ children: /*#__PURE__*/_jsxs("button", {
252
+ type: "button",
253
+ className: "nh:flex nh:w-full nh:items-center nh:justify-between nh:gap-2 nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-left nh:text-sm nh:hover:bg-(--nh-muted)",
254
+ children: [/*#__PURE__*/_jsxs("span", {
255
+ className: "nh:flex nh:min-w-0 nh:items-center nh:gap-2",
256
+ children: [/*#__PURE__*/_jsx("span", {
257
+ className: isEmptyValue(href) ? "nh:truncate nh:text-gray-500" : "nh:truncate",
258
+ children: isEmptyValue(href) ? "Select page \u2026" : selectedLink ? linkLabel(selectedLink, locale) : href
259
+ }), selectedLink?.published === false && /*#__PURE__*/_jsx("span", {
260
+ className: "nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200",
261
+ children: "Draft"
262
+ })]
263
+ }), /*#__PURE__*/_jsxs("span", {
264
+ className: "nh:flex nh:shrink-0 nh:items-center nh:gap-1",
265
+ children: [!isEmptyValue(href) && /*#__PURE__*/_jsx(X, {
266
+ className: "nh:size-4 nh:text-gray-500 nh:hover:text-(--nh-fg)",
267
+ onClick: e_1 => {
268
+ e_1.stopPropagation();
269
+ onHrefChange("");
270
+ }
271
+ }), /*#__PURE__*/_jsx(ChevronDown, {
272
+ className: "nh:size-4 nh:text-gray-500"
273
+ })]
274
+ })]
275
+ })
276
+ }), !isEmptyValue(href) && /*#__PURE__*/_jsx("div", {
277
+ className: "nh:mt-1 nh:truncate nh:font-mono nh:text-xs nh:text-gray-500",
278
+ title: href,
279
+ children: displayPath(href, locale)
280
+ }), /*#__PURE__*/_jsxs(Popover.Content, {
281
+ align: "start",
282
+ sideOffset: 4,
283
+ "data-puck-rte-menu": true,
284
+ className: "nh:z-50 nh:w-(--radix-popover-trigger-width) nh:overflow-hidden nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:text-(--nh-fg) nh:shadow-md",
285
+ children: [/*#__PURE__*/_jsxs("div", {
286
+ className: "nh:flex nh:items-center nh:gap-2 nh:border-b nh:border-(--nh-border) nh:p-2",
287
+ children: [/*#__PURE__*/_jsx(Search, {
288
+ className: "nh:size-4 nh:shrink-0 nh:text-gray-500"
289
+ }), /*#__PURE__*/_jsx("input", {
290
+ type: "text",
291
+ autoFocus: true,
292
+ value: query,
293
+ placeholder: t.searchPlaceholder,
294
+ onChange: e_2 => setQuery(e_2.target.value),
295
+ className: "nh:w-full nh:text-sm outline-none"
296
+ })]
297
+ }), availableGroups.length > 1 && /*#__PURE__*/_jsx("div", {
298
+ className: "nh:flex nh:flex-wrap nh:gap-1 nh:border-b nh:border-(--nh-border) nh:p-2",
299
+ children: [{
300
+ key: null,
301
+ label: t.all
302
+ }, ...availableGroups].map(chip => {
303
+ const isActive = activeGroup === chip.key;
304
+ return /*#__PURE__*/_jsx("button", {
305
+ type: "button",
306
+ onClick: () => setActiveGroup(chip.key),
307
+ className: `nh:rounded-full nh:px-2.5 nh:py-1 nh:text-xs nh:font-medium nh:transition-colors ${isActive ? "nh:bg-(--nh-primary) nh:text-(--nh-primary-fg)" : "nh:text-gray-500 bg-(--nh-muted) hover:bg-gray-200"}`,
308
+ children: chip.label
309
+ }, chip.key ?? "__all");
310
+ })
311
+ }), /*#__PURE__*/_jsxs("div", {
312
+ className: "nh:max-h-72 nh:overflow-y-auto nh:py-1",
313
+ children: [loading && /*#__PURE__*/_jsx("div", {
314
+ className: "nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500",
315
+ children: t.loading
316
+ }), !loading && error && /*#__PURE__*/_jsx("div", {
317
+ className: "nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-red-600",
318
+ children: t.loadFailed
319
+ }), !loading && !error && groups.length === 0 && /*#__PURE__*/_jsx("div", {
320
+ className: "nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500",
321
+ children: t.noResults
322
+ }), groups.map(group => /*#__PURE__*/_jsxs("div", {
323
+ children: [!activeGroup && /*#__PURE__*/_jsx("div", {
324
+ className: "nh:px-3 nh:pt-2 nh:pb-1 nh:text-xs nh:font-semibold nh:tracking-wide nh:text-gray-500 nh:uppercase",
325
+ children: group.label
326
+ }), group.items.map(link_0 => {
327
+ const isSelected = link_0.path === href;
328
+ return /*#__PURE__*/_jsxs("button", {
329
+ type: "button",
330
+ onClick: () => {
331
+ onHrefChange(link_0.path);
332
+ setOpen(false);
333
+ },
334
+ className: `nh:flex nh:w-full nh:flex-col nh:items-start nh:gap-0.5 nh:px-3 nh:py-2 nh:text-left nh:hover:bg-(--nh-muted) ${isSelected ? "bg-(--nh-muted)" : ""}`,
335
+ children: [/*#__PURE__*/_jsxs("span", {
336
+ className: "nh:flex nh:w-full nh:items-center nh:gap-2 nh:text-sm",
337
+ children: [/*#__PURE__*/_jsx("span", {
338
+ className: "nh:truncate",
339
+ children: linkLabel(link_0, locale)
340
+ }), link_0.published === false && /*#__PURE__*/_jsx("span", {
341
+ className: "nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200",
342
+ children: "Draft"
343
+ })]
344
+ }), /*#__PURE__*/_jsx("span", {
345
+ className: "nh:w-full nh:truncate nh:font-mono nh:text-xs nh:text-gray-500",
346
+ title: link_0.path,
347
+ children: displayPath(link_0.path, locale)
348
+ })]
349
+ }, link_0.path);
350
+ })]
351
+ }, group.key))]
352
+ })]
353
+ })]
354
+ })
355
+ });
356
+ let t12;
357
+ if ($[18] !== t10 || $[19] !== t11) {
358
+ t12 = /*#__PURE__*/_jsxs("div", {
359
+ className: t8,
360
+ children: [t10, t11]
361
+ });
362
+ $[18] = t10;
363
+ $[19] = t11;
364
+ $[20] = t12;
365
+ } else {
366
+ t12 = $[20];
367
+ }
368
+ return t12;
369
+ }
370
+ function _temp3(a_1, b_1) {
371
+ return a_1.order - b_1.order;
372
+ }
373
+ function _temp2(a, b) {
374
+ return a.order - b.order;
375
+ }
376
+ function _temp(l_1) {
377
+ return l_1.group ?? "page";
378
+ }
379
+ /** Sentinel select value for the free-form "Other …" anchor option. */
380
+ const OTHER_ANCHOR = '__other__';
381
+
382
+ /**
383
+ * Anchor-mode input: a dropdown of the section Anchor IDs found on the current
384
+ * Puck page, plus an «Other …» option. Picking a section stores `#id`; picking
385
+ * «Other …» reveals a text field for a custom fragment target — a section on
386
+ * another page (`/onboarding#start`) or an external URL
387
+ * (`https://example.com#start`).
388
+ *
389
+ * The initial mode is auto-detected from the stored value: a value that matches
390
+ * one of this page's sections selects that option; any other non-empty value
391
+ * preselects «Other …» and shows it in the text field, so links round-trip.
392
+ */
393
+ function AnchorInput(t0) {
394
+ const $ = _c(34);
395
+ const {
396
+ href,
397
+ anchors,
398
+ onHrefChange,
399
+ onSubmit
400
+ } = t0;
401
+ const t = usePuckDictionary().linkPicker;
402
+ let t1;
403
+ if ($[0] !== anchors || $[1] !== href) {
404
+ let t2;
405
+ if ($[3] !== href) {
406
+ t2 = a => `#${a.id}` === href;
407
+ $[3] = href;
408
+ $[4] = t2;
409
+ } else {
410
+ t2 = $[4];
411
+ }
412
+ t1 = anchors.some(t2);
413
+ $[0] = anchors;
414
+ $[1] = href;
415
+ $[2] = t1;
416
+ } else {
417
+ t1 = $[2];
418
+ }
419
+ const matchesSection = t1;
420
+ let t2;
421
+ if ($[5] !== href || $[6] !== matchesSection) {
422
+ t2 = () => !isEmptyValue(href) && !matchesSection;
423
+ $[5] = href;
424
+ $[6] = matchesSection;
425
+ $[7] = t2;
426
+ } else {
427
+ t2 = $[7];
428
+ }
429
+ const [isOther, setIsOther] = useState(t2);
430
+ const selectValue = isOther ? OTHER_ANCHOR : matchesSection ? href : "";
431
+ let t3;
432
+ if ($[8] !== matchesSection || $[9] !== onHrefChange) {
433
+ t3 = e => {
434
+ const next = e.target.value;
435
+ if (next === OTHER_ANCHOR) {
436
+ setIsOther(true);
437
+ if (matchesSection) {
438
+ onHrefChange("");
439
+ }
440
+ return;
441
+ }
442
+ setIsOther(false);
443
+ onHrefChange(next);
444
+ };
445
+ $[8] = matchesSection;
446
+ $[9] = onHrefChange;
447
+ $[10] = t3;
448
+ } else {
449
+ t3 = $[10];
450
+ }
451
+ let t4;
452
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
453
+ t4 = /*#__PURE__*/_jsx("option", {
454
+ value: "",
455
+ children: "Select section \u2026"
456
+ });
457
+ $[11] = t4;
458
+ } else {
459
+ t4 = $[11];
460
+ }
461
+ let t5;
462
+ if ($[12] !== anchors) {
463
+ t5 = anchors.map(_temp4);
464
+ $[12] = anchors;
465
+ $[13] = t5;
466
+ } else {
467
+ t5 = $[13];
468
+ }
469
+ let t6;
470
+ if ($[14] !== t.otherAnchor) {
471
+ t6 = /*#__PURE__*/_jsx("option", {
472
+ value: OTHER_ANCHOR,
473
+ children: t.otherAnchor
474
+ });
475
+ $[14] = t.otherAnchor;
476
+ $[15] = t6;
477
+ } else {
478
+ t6 = $[15];
479
+ }
480
+ let t7;
481
+ if ($[16] !== selectValue || $[17] !== t3 || $[18] !== t5 || $[19] !== t6) {
482
+ t7 = /*#__PURE__*/_jsxs("select", {
483
+ value: selectValue,
484
+ onChange: t3,
485
+ className: "nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm",
486
+ children: [t4, t5, t6]
487
+ });
488
+ $[16] = selectValue;
489
+ $[17] = t3;
490
+ $[18] = t5;
491
+ $[19] = t6;
492
+ $[20] = t7;
493
+ } else {
494
+ t7 = $[20];
495
+ }
496
+ let t8;
497
+ if ($[21] !== href || $[22] !== isOther || $[23] !== onHrefChange || $[24] !== onSubmit || $[25] !== t.anchorPlaceholder) {
498
+ t8 = isOther && /*#__PURE__*/_jsx("input", {
499
+ type: "text",
500
+ value: href,
501
+ placeholder: t.anchorPlaceholder,
502
+ onChange: e_0 => onHrefChange(e_0.target.value),
503
+ onKeyDown: e_1 => {
504
+ if (e_1.key === "Enter") {
505
+ e_1.preventDefault();
506
+ onSubmit?.();
507
+ }
508
+ },
509
+ className: "nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm"
510
+ });
511
+ $[21] = href;
512
+ $[22] = isOther;
513
+ $[23] = onHrefChange;
514
+ $[24] = onSubmit;
515
+ $[25] = t.anchorPlaceholder;
516
+ $[26] = t8;
517
+ } else {
518
+ t8 = $[26];
519
+ }
520
+ let t9;
521
+ if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
522
+ t9 = {
523
+ fontSize: "var(--puck-font-size-xxxs)",
524
+ color: "var(--puck-color-grey-05)",
525
+ lineHeight: 1.4
526
+ };
527
+ $[27] = t9;
528
+ } else {
529
+ t9 = $[27];
530
+ }
531
+ const t10 = anchors.length === 0 ? "No sections on this page yet. Choose \xABOther \u2026\xBB to link to an anchor on another page or an external page." : "Pick a section on this page, or \xABOther \u2026\xBB for an anchor on another page (/onboarding#anchor) or external page (https://\u2026#anchor).";
532
+ let t11;
533
+ if ($[28] !== t10) {
534
+ t11 = /*#__PURE__*/_jsx("p", {
535
+ style: t9,
536
+ children: t10
537
+ });
538
+ $[28] = t10;
539
+ $[29] = t11;
540
+ } else {
541
+ t11 = $[29];
542
+ }
543
+ let t12;
544
+ if ($[30] !== t11 || $[31] !== t7 || $[32] !== t8) {
545
+ t12 = /*#__PURE__*/_jsxs("div", {
546
+ className: "nh:flex nh:flex-col nh:gap-2",
547
+ children: [t7, t8, t11]
548
+ });
549
+ $[30] = t11;
550
+ $[31] = t7;
551
+ $[32] = t8;
552
+ $[33] = t12;
553
+ } else {
554
+ t12 = $[33];
555
+ }
556
+ return t12;
557
+ }
558
+ function _temp4(anchor) {
559
+ return /*#__PURE__*/_jsxs("option", {
560
+ value: `#${anchor.id}`,
561
+ children: ["#", anchor.id, " \xB7 ", anchor.label]
562
+ }, anchor.id);
563
+ }
564
+ //# sourceMappingURL=link-picker-control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-picker-control.js","names":["c","_c","useState","createUsePuck","Popover","keepPreviousData","useQuery","ChevronDown","Search","X","puckFetch","usePuckDictionary","getPathLocale","collectPageAnchors","hasAnchorFragment","humanize","isExternalHref","SegmentedControl","jsx","_jsx","jsxs","_jsxs","MODE_VALUES","usePuck","isExternalValue","value","isEmptyValue","linkLabel","link","locale","label","Object","values","path","displayPath","stripped","replace","RegExp","LinkPickerControl","t0","$","href","onHrefChange","onSubmit","t1","mode","setMode","t2","s","appState","data","pageData","t3","anchors","t","linkPicker","open","setOpen","query","setQuery","activeGroup","setActiveGroup","window","location","pathname","links","isLoading","loading","isError","error","queryKey","queryFn","Array","isArray","enabled","staleTime","Infinity","placeholderData","selectedLink","find","l","info","Map","forEach","l_0","key","group","has","set","groupLabel","order","size","groupInfo","groupLabelOf","key_0","get","groupOrderOf","key_1","Number","MAX_SAFE_INTEGER","t4","bb0","keys","Set","map","_temp","key_2","sort","_temp2","availableGroups","t5","bb1","q","trim","toLowerCase","filtered","filter","l_2","includes","byGroup","key_3","bucket","push","entries","t6","key_4","items","a_0","b_0","a","localeCompare","b","_temp3","groups","e","preventDefault","submitOnEnter","t7","next","switchMode","t8","t9","t10","linkMode","options","variant","ariaLabel","t11","type","placeholder","externalPlaceholder","onChange","e_0","target","className","AnchorInput","Root","children","Trigger","asChild","published","onClick","e_1","stopPropagation","Content","align","sideOffset","autoFocus","searchPlaceholder","e_2","length","all","chip","isActive","loadFailed","noResults","link_0","isSelected","title","t12","a_1","b_1","l_1","OTHER_ANCHOR","id","some","matchesSection","isOther","setIsOther","selectValue","Symbol","for","_temp4","otherAnchor","anchorPlaceholder","onKeyDown","fontSize","color","lineHeight","style","anchor"],"sources":["../../../../../src/puck-editor/internal/fields/link-picker/link-picker-control.tsx"],"sourcesContent":["'use client';\n\nimport { useState, type KeyboardEvent } from 'react';\nimport { createUsePuck } from '@puckeditor/core';\nimport * as Popover from '@radix-ui/react-popover';\nimport { keepPreviousData, useQuery } from '@tanstack/react-query';\nimport { ChevronDown, Search, X } from 'lucide-react';\n\nimport { puckFetch } from '../../api/client';\nimport { usePuckDictionary } from '../../i18n';\nimport { getPathLocale } from '../../locale';\nimport {\n collectPageAnchors,\n hasAnchorFragment,\n type PageAnchor,\n} from './anchor';\nimport { humanize } from './humanize';\nimport { isExternalHref } from './link-value';\nimport SegmentedControl from './segmented-control';\nimport type { RoutableLink } from './types';\n\ntype LinkMode = 'internal' | 'external' | 'anchor';\n\nconst MODE_VALUES: LinkMode[] = ['internal', 'external', 'anchor'];\n\nconst usePuck = createUsePuck();\n\n/**\n * A value is treated as external only when it carries an explicit external\n * scheme (http(s), mailto, tel, or protocol-relative `//`). Relative paths and\n * in-page anchors (incl. the default `#` placeholder) default to the internal\n * picker, so editors land on the page list. Delegates to {@link isExternalHref}\n * so mode detection and target derivation never diverge.\n */\nexport function isExternalValue(value: string): boolean {\n return isExternalHref(value);\n}\n\n/** A bare `#` is the legacy empty/placeholder href — treat it as \"no link\". */\nexport function isEmptyValue(value: string): boolean {\n return !value || value === '#';\n}\n\nfunction linkLabel(link: RoutableLink, locale: string): string {\n return (\n link.label?.[locale] ?? Object.values(link.label ?? {})[0] ?? link.path\n );\n}\n\n/**\n * Path as shown to the editor: the locale prefix (`/de`) is dropped for\n * readability (e.g. `/blog/test` instead of `/de/blog/test`). The full,\n * stored path stays available as a hover tooltip.\n */\nfunction displayPath(path: string, locale: string): string {\n const stripped = path.replace(new RegExp(`^/${locale}(?=/|$)`), '');\n return stripped === '' ? '/' : stripped;\n}\n\ntype LinkPickerControlProps = {\n /** Current href — internal locale-prefixed path or external URL. */\n href: string;\n /** Emits the next href whenever the editor picks/types/clears a value. */\n onHrefChange: (href: string) => void;\n onSubmit?: () => void;\n};\n\n/**\n * The shared link-selection control: Internal/External/Anchor toggle, external URL input,\n * and the searchable, group-filtered internal dropdown (incl. unpublished\n * drafts). Owns only the href; the wrapping field/popover owns the target\n * override and persistence. Used by both `LinkPickerField` (Puck field) and the\n * richtext link popover so both surfaces share identical selection UI.\n */\nexport default function LinkPickerControl({\n href,\n onHrefChange,\n onSubmit,\n}: LinkPickerControlProps) {\n const [mode, setMode] = useState<'internal' | 'external' | 'anchor'>(() =>\n hasAnchorFragment(href)\n ? 'anchor'\n : isExternalValue(href)\n ? 'external'\n : 'internal'\n );\n\n // Section anchors set on the current Puck page (drives the \"Anchor\" mode).\n const pageData = usePuck((s) => (mode === 'anchor' ? s.appState.data : null));\n const anchors = pageData ? collectPageAnchors(pageData) : [];\n const t = usePuckDictionary().linkPicker;\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useState('');\n const [activeGroup, setActiveGroup] = useState<string | null>(null);\n\n const locale: string =\n typeof window !== 'undefined'\n ? getPathLocale(window.location.pathname)\n : 'en';\n\n // Lazily loaded the first time the internal dropdown opens, then kept forever\n // (staleTime: Infinity). The query key is shared, so multiple link fields on\n // one page dedupe to a single fetch.\n const {\n data: links,\n isLoading: loading,\n isError: error,\n } = useQuery({\n queryKey: ['puck-links', locale],\n queryFn: async (): Promise<RoutableLink[]> => {\n const data = await puckFetch<RoutableLink[]>(`/links?lang=${locale}`);\n return Array.isArray(data) ? data : [];\n },\n enabled: mode === 'internal' && open,\n staleTime: Infinity,\n placeholderData: keepPreviousData,\n });\n\n const selectedLink = links?.find((l) => l.path === href) ?? null;\n\n // Group label + order derived from the links themselves: the consumer's\n // collector supplies `groupLabel`, order follows first appearance. Unknown\n // groups fall back to a humanized key, so the package never enumerates\n // project bundles.\n const groupInfo = (() => {\n const info = new Map<string, { label: string; order: number }>();\n (links ?? []).forEach((l) => {\n const key = l.group ?? 'page';\n if (!info.has(key)) {\n info.set(key, {\n label: l.groupLabel ?? humanize(key),\n order: info.size,\n });\n }\n });\n return info;\n })();\n const groupLabelOf = (key: string) =>\n groupInfo.get(key)?.label ?? humanize(key);\n const groupOrderOf = (key: string) =>\n groupInfo.get(key)?.order ?? Number.MAX_SAFE_INTEGER;\n\n // All groups actually present, ordered — drives the filter chips.\n const availableGroups = (() => {\n if (!links) return [];\n const keys = new Set(links.map((l) => l.group ?? 'page'));\n return [...keys]\n .map((key) => ({\n key,\n label: groupLabelOf(key),\n order: groupOrderOf(key),\n }))\n .sort((a, b) => a.order - b.order);\n })();\n\n // Filter by active group + query, then group and order for display.\n const groups = (() => {\n if (!links) return [];\n const q = query.trim().toLowerCase();\n const filtered = links.filter((l) => {\n if (activeGroup && (l.group ?? 'page') !== activeGroup) return false;\n if (!q) return true;\n return (\n l.path.toLowerCase().includes(q) ||\n linkLabel(l, locale).toLowerCase().includes(q)\n );\n });\n\n const byGroup = new Map<string, RoutableLink[]>();\n for (const link of filtered) {\n const key = link.group ?? 'page';\n const bucket = byGroup.get(key) ?? [];\n bucket.push(link);\n byGroup.set(key, bucket);\n }\n\n return [...byGroup.entries()]\n .map(([key, items]) => ({\n key,\n label: groupLabelOf(key),\n order: groupOrderOf(key),\n items: items.sort((a, b) =>\n linkLabel(a, locale).localeCompare(linkLabel(b, locale))\n ),\n }))\n .sort((a, b) => a.order - b.order);\n })();\n\n const submitOnEnter = (e: KeyboardEvent) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n onSubmit?.();\n }\n };\n\n const switchMode = (next: 'internal' | 'external' | 'anchor') => {\n if (next === mode) return;\n setMode(next);\n // Clearing the href on switch avoids leaving an internal path in \"external\"\n // mode; the wrapping field/popover preserves any target override.\n onHrefChange('');\n setQuery('');\n setActiveGroup(null);\n setOpen(false);\n };\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n {/* Mode toggle: Internal / External / Anchor */}\n <SegmentedControl\n options={MODE_VALUES.map((value) => ({ value, label: t[value] }))}\n value={mode}\n onChange={switchMode}\n variant=\"puck\"\n ariaLabel={t.linkMode}\n />\n\n {mode === 'external' ? (\n <input\n type=\"text\"\n value={href}\n placeholder={t.externalPlaceholder}\n onChange={(e) => onHrefChange(e.target.value)}\n onKeyDown={submitOnEnter}\n className=\"nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm\"\n />\n ) : mode === 'anchor' ? (\n <AnchorInput\n href={href}\n anchors={anchors}\n onHrefChange={onHrefChange}\n onSubmit={onSubmit}\n />\n ) : (\n <Popover.Root open={open} onOpenChange={setOpen}>\n <div className=\"nh:relative\">\n {/* Trigger */}\n <Popover.Trigger asChild>\n <button\n type=\"button\"\n className=\"nh:flex nh:w-full nh:items-center nh:justify-between nh:gap-2 nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-left nh:text-sm nh:hover:bg-(--nh-muted)\"\n >\n <span className=\"nh:flex nh:min-w-0 nh:items-center nh:gap-2\">\n <span\n className={\n isEmptyValue(href)\n ? 'nh:truncate nh:text-gray-500'\n : 'nh:truncate'\n }\n >\n {isEmptyValue(href)\n ? 'Select page …'\n : selectedLink\n ? linkLabel(selectedLink, locale)\n : href}\n </span>\n {selectedLink?.published === false && (\n <span className=\"nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200\">\n Draft\n </span>\n )}\n </span>\n <span className=\"nh:flex nh:shrink-0 nh:items-center nh:gap-1\">\n {!isEmptyValue(href) && (\n <X\n className=\"nh:size-4 nh:text-gray-500 nh:hover:text-(--nh-fg)\"\n onClick={(e) => {\n e.stopPropagation();\n onHrefChange('');\n }}\n />\n )}\n <ChevronDown className=\"nh:size-4 nh:text-gray-500\" />\n </span>\n </button>\n </Popover.Trigger>\n\n {!isEmptyValue(href) && (\n <div\n className=\"nh:mt-1 nh:truncate nh:font-mono nh:text-xs nh:text-gray-500\"\n title={href}\n >\n {displayPath(href, locale)}\n </div>\n )}\n\n <Popover.Content\n align=\"start\"\n sideOffset={4}\n data-puck-rte-menu\n className=\"nh:z-50 nh:w-(--radix-popover-trigger-width) nh:overflow-hidden nh:rounded-md nh:border nh:border-(--nh-border) nh:bg-(--nh-bg) nh:text-(--nh-fg) nh:shadow-md\"\n >\n <div className=\"nh:flex nh:items-center nh:gap-2 nh:border-b nh:border-(--nh-border) nh:p-2\">\n <Search className=\"nh:size-4 nh:shrink-0 nh:text-gray-500\" />\n <input\n type=\"text\"\n autoFocus\n value={query}\n placeholder={t.searchPlaceholder}\n onChange={(e) => setQuery(e.target.value)}\n className=\"nh:w-full nh:text-sm outline-none\"\n />\n </div>\n\n {/* Group filter chips */}\n {availableGroups.length > 1 && (\n <div className=\"nh:flex nh:flex-wrap nh:gap-1 nh:border-b nh:border-(--nh-border) nh:p-2\">\n {[{ key: null, label: t.all }, ...availableGroups].map(\n (chip) => {\n const isActive = activeGroup === chip.key;\n return (\n <button\n key={chip.key ?? '__all'}\n type=\"button\"\n onClick={() => setActiveGroup(chip.key)}\n className={`nh:rounded-full nh:px-2.5 nh:py-1 nh:text-xs nh:font-medium nh:transition-colors ${\n isActive\n ? 'nh:bg-(--nh-primary) nh:text-(--nh-primary-fg)'\n : 'nh:text-gray-500 bg-(--nh-muted) hover:bg-gray-200'\n }`}\n >\n {chip.label}\n </button>\n );\n }\n )}\n </div>\n )}\n\n <div className=\"nh:max-h-72 nh:overflow-y-auto nh:py-1\">\n {loading && (\n <div className=\"nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500\">\n {t.loading}\n </div>\n )}\n {!loading && error && (\n <div className=\"nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-red-600\">\n {t.loadFailed}\n </div>\n )}\n {!loading && !error && groups.length === 0 && (\n <div className=\"nh:px-3 nh:py-4 nh:text-center nh:text-xs nh:text-gray-500\">\n {t.noResults}\n </div>\n )}\n\n {groups.map((group) => (\n <div key={group.key}>\n {!activeGroup && (\n <div className=\"nh:px-3 nh:pt-2 nh:pb-1 nh:text-xs nh:font-semibold nh:tracking-wide nh:text-gray-500 nh:uppercase\">\n {group.label}\n </div>\n )}\n {group.items.map((link) => {\n const isSelected = link.path === href;\n return (\n <button\n key={link.path}\n type=\"button\"\n onClick={() => {\n onHrefChange(link.path);\n setOpen(false);\n }}\n className={`nh:flex nh:w-full nh:flex-col nh:items-start nh:gap-0.5 nh:px-3 nh:py-2 nh:text-left nh:hover:bg-(--nh-muted) ${\n isSelected ? 'bg-(--nh-muted)' : ''\n }`}\n >\n <span className=\"nh:flex nh:w-full nh:items-center nh:gap-2 nh:text-sm\">\n <span className=\"nh:truncate\">\n {linkLabel(link, locale)}\n </span>\n {link.published === false && (\n <span className=\"nh:shrink-0 nh:rounded-full nh:bg-amber-50 nh:px-1.5 nh:py-0.5 nh:text-[9px] nh:font-semibold nh:uppercase nh:tracking-wide nh:text-amber-600 nh:ring-1 nh:ring-inset nh:ring-amber-200\">\n Draft\n </span>\n )}\n </span>\n <span\n className=\"nh:w-full nh:truncate nh:font-mono nh:text-xs nh:text-gray-500\"\n title={link.path}\n >\n {displayPath(link.path, locale)}\n </span>\n </button>\n );\n })}\n </div>\n ))}\n </div>\n </Popover.Content>\n </div>\n </Popover.Root>\n )}\n </div>\n );\n}\n\ntype AnchorInputProps = {\n href: string;\n anchors: PageAnchor[];\n onHrefChange: (href: string) => void;\n onSubmit?: () => void;\n};\n\n/** Sentinel select value for the free-form \"Other …\" anchor option. */\nconst OTHER_ANCHOR = '__other__';\n\n/**\n * Anchor-mode input: a dropdown of the section Anchor IDs found on the current\n * Puck page, plus an «Other …» option. Picking a section stores `#id`; picking\n * «Other …» reveals a text field for a custom fragment target — a section on\n * another page (`/onboarding#start`) or an external URL\n * (`https://example.com#start`).\n *\n * The initial mode is auto-detected from the stored value: a value that matches\n * one of this page's sections selects that option; any other non-empty value\n * preselects «Other …» and shows it in the text field, so links round-trip.\n */\nfunction AnchorInput({\n href,\n anchors,\n onHrefChange,\n onSubmit,\n}: AnchorInputProps) {\n const t = usePuckDictionary().linkPicker;\n const matchesSection = anchors.some((a) => `#${a.id}` === href);\n const [isOther, setIsOther] = useState(\n () => !isEmptyValue(href) && !matchesSection\n );\n\n const selectValue = isOther ? OTHER_ANCHOR : matchesSection ? href : '';\n\n return (\n <div className=\"nh:flex nh:flex-col nh:gap-2\">\n <select\n value={selectValue}\n onChange={(e) => {\n const next = e.target.value;\n if (next === OTHER_ANCHOR) {\n setIsOther(true);\n // Start the custom field empty unless a custom value is already set.\n if (matchesSection) onHrefChange('');\n return;\n }\n setIsOther(false);\n onHrefChange(next); // '' (placeholder) or '#section-id'\n }}\n className=\"nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm\"\n >\n <option value=\"\">Select section …</option>\n {anchors.map((anchor) => (\n <option key={anchor.id} value={`#${anchor.id}`}>\n #{anchor.id} · {anchor.label}\n </option>\n ))}\n <option value={OTHER_ANCHOR}>{t.otherAnchor}</option>\n </select>\n\n {isOther && (\n <input\n type=\"text\"\n value={href}\n placeholder={t.anchorPlaceholder}\n onChange={(e) => onHrefChange(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n e.preventDefault();\n onSubmit?.();\n }\n }}\n className=\"nh:w-full nh:rounded-sm nh:border nh:border-(--nh-border) nh:p-3 nh:text-sm\"\n />\n )}\n\n <p\n style={{\n fontSize: 'var(--puck-font-size-xxxs)',\n color: 'var(--puck-color-grey-05)',\n lineHeight: 1.4,\n }}\n >\n {anchors.length === 0\n ? 'No sections on this page yet. Choose «Other …» to link to an anchor on another page or an external page.'\n : 'Pick a section on this page, or «Other …» for an anchor on another page (/onboarding#anchor) or external page (https://…#anchor).'}\n </p>\n </div>\n );\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,CAAA,IAAAC,EAAA;AAEb,SAASC,QAAQ,QAA4B,OAAO;AACpD,SAASC,aAAa,QAAQ,kBAAkB;AAChD,OAAO,KAAKC,OAAO,MAAM,yBAAyB;AAClD,SAASC,gBAAgB,EAAEC,QAAQ,QAAQ,uBAAuB;AAClE,SAASC,WAAW,EAAEC,MAAM,EAAEC,CAAC,QAAQ,cAAc;AAErD,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,aAAa,QAAQ,cAAc;AAC5C,SACEC,kBAAkB,EAClBC,iBAAiB,QAEZ,UAAU;AACjB,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,cAAc,QAAQ,cAAc;AAC7C,OAAOC,gBAAgB,MAAM,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKnD,MAAMC,WAAuB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;AAElE,MAAMC,OAAO,GAAGpB,aAAa,CAAC,CAAC;;AAE/B;AACA;AACA;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,GAAA,IAAA3G,CAAA,SAAAiG,EAAA,IAAAjG,CAAA,SAAAoG,EAAA;IAnDNuC,GAAA,gBAAA9J,KAAA;MAAeqI,SAA8B,EAA9B,8BAA8B;MAAAG,QAAA,GAC3CpB,EAsBS,EAERG,EAcA,EAEDO,GAUI;IAAA,CACD,CAAC;IAAA3G,CAAA,OAAA2G,GAAA;IAAA3G,CAAA,OAAAiG,EAAA;IAAAjG,CAAA,OAAAoG,EAAA;IAAApG,CAAA,OAAA2I,GAAA;EAAA;IAAAA,GAAA,GAAA3I,CAAA;EAAA;EAAA,OApDN2I,GAoDM;AAAA;AAnEV,SAAAa,OAAAQ,MAAA;EAAA,oBAiCUnL,KAAA;IAA+BI,KAAe,EAAf,IAAI+K,MAAM,CAAAhB,EAAG,EAAE;IAAA3B,QAAA,GAAE,GAC7C,EAAC2C,MAAM,CAAAhB,EAAG,EAAC,QAAG,EAACgB,MAAM,CAAA1K,KAAM;EAAA,GADjB0K,MAAM,CAAAhB,EAEX,CAAC;AAAA","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ import { type LinkValue } from './link-value';
2
+ type LinkPickerFieldProps = {
3
+ value: LinkValue | string;
4
+ onChange: (value: LinkValue) => void;
5
+ label?: string;
6
+ };
7
+ export default function LinkPickerField({ value, onChange, label, }: LinkPickerFieldProps): import("react").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=link-picker-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-picker-field.d.ts","sourceRoot":"","sources":["../../../../../src/puck-editor/internal/fields/link-picker/link-picker-field.tsx"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,KAAK,oBAAoB,GAAG;IAE1B,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,KAAK,GACN,EAAE,oBAAoB,+BAiDtB"}