@cardstack/boxel-cli 0.2.0 → 0.3.0-unstable.13

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 (879) hide show
  1. package/bundled-types/base/-private.d.ts +1 -0
  2. package/bundled-types/base/address.d.ts +17 -0
  3. package/bundled-types/base/ai-app-generator.d.ts +14 -0
  4. package/bundled-types/base/amount-with-currency.d.ts +10 -0
  5. package/bundled-types/base/avif-image-def.d.ts +12 -0
  6. package/bundled-types/base/avif-meta-extractor.d.ts +4 -0
  7. package/bundled-types/base/base64-image.d.ts +25 -0
  8. package/bundled-types/base/big-integer.d.ts +12 -0
  9. package/bundled-types/base/boolean.d.ts +14 -0
  10. package/bundled-types/base/brand-functional-palette.d.ts +16 -0
  11. package/bundled-types/base/brand-guide.d.ts +26 -0
  12. package/bundled-types/base/brand-logo.d.ts +29 -0
  13. package/bundled-types/base/card-api.d.ts +513 -0
  14. package/bundled-types/base/card-serialization.d.ts +47 -0
  15. package/bundled-types/base/cards-grid.d.ts +10 -0
  16. package/bundled-types/base/code-ref.d.ts +14 -0
  17. package/bundled-types/base/codemirror-editor.d.ts +135 -0
  18. package/bundled-types/base/color-field/components/advanced-color-picker.d.ts +66 -0
  19. package/bundled-types/base/color-field/components/color-picker-field.d.ts +22 -0
  20. package/bundled-types/base/color-field/components/color-wheel-picker.d.ts +44 -0
  21. package/bundled-types/base/color-field/components/contrast-checker-addon.d.ts +14 -0
  22. package/bundled-types/base/color-field/components/recent-colors-addon.d.ts +19 -0
  23. package/bundled-types/base/color-field/components/slider-picker.d.ts +40 -0
  24. package/bundled-types/base/color-field/components/swatches-picker.d.ts +5 -0
  25. package/bundled-types/base/color-field/modifiers/setup-element-modifier.d.ts +10 -0
  26. package/bundled-types/base/color-field/util/color-field-signature.d.ts +9 -0
  27. package/bundled-types/base/color-field/util/color-utils.d.ts +96 -0
  28. package/bundled-types/base/color-field/util/css-color-parsers.d.ts +11 -0
  29. package/bundled-types/base/color.d.ts +10 -0
  30. package/bundled-types/base/command.d.ts +593 -0
  31. package/bundled-types/base/commands/search-card-result.d.ts +36 -0
  32. package/bundled-types/base/components/age.d.ts +22 -0
  33. package/bundled-types/base/components/business-days.d.ts +16 -0
  34. package/bundled-types/base/components/card-list.d.ts +25 -0
  35. package/bundled-types/base/components/cards-grid-layout.d.ts +58 -0
  36. package/bundled-types/base/components/countdown.d.ts +31 -0
  37. package/bundled-types/base/components/expiration-warning.d.ts +24 -0
  38. package/bundled-types/base/components/time-ago.d.ts +24 -0
  39. package/bundled-types/base/components/time-slots.d.ts +20 -0
  40. package/bundled-types/base/components/timeline.d.ts +22 -0
  41. package/bundled-types/base/contains-many-component.d.ts +7 -0
  42. package/bundled-types/base/coordinate.d.ts +7 -0
  43. package/bundled-types/base/country.d.ts +23 -0
  44. package/bundled-types/base/css-value.d.ts +6 -0
  45. package/bundled-types/base/csv-file-def.d.ts +29 -0
  46. package/bundled-types/base/currency.d.ts +16 -0
  47. package/bundled-types/base/date/day.d.ts +9 -0
  48. package/bundled-types/base/date/month-day.d.ts +10 -0
  49. package/bundled-types/base/date/month-year.d.ts +9 -0
  50. package/bundled-types/base/date/month.d.ts +9 -0
  51. package/bundled-types/base/date/quarter.d.ts +10 -0
  52. package/bundled-types/base/date/week.d.ts +9 -0
  53. package/bundled-types/base/date/year.d.ts +9 -0
  54. package/bundled-types/base/date-range-field.d.ts +12 -0
  55. package/bundled-types/base/date.d.ts +12 -0
  56. package/bundled-types/base/datetime-stamp.d.ts +7 -0
  57. package/bundled-types/base/datetime.d.ts +12 -0
  58. package/bundled-types/base/default-templates/atom.d.ts +10 -0
  59. package/bundled-types/base/default-templates/card-info.d.ts +32 -0
  60. package/bundled-types/base/default-templates/embedded.d.ts +11 -0
  61. package/bundled-types/base/default-templates/field-edit.d.ts +10 -0
  62. package/bundled-types/base/default-templates/file-def-edit.d.ts +8 -0
  63. package/bundled-types/base/default-templates/fitted.d.ts +12 -0
  64. package/bundled-types/base/default-templates/head.d.ts +13 -0
  65. package/bundled-types/base/default-templates/image-def-atom.d.ts +8 -0
  66. package/bundled-types/base/default-templates/image-def-embedded.d.ts +8 -0
  67. package/bundled-types/base/default-templates/image-def-fitted.d.ts +8 -0
  68. package/bundled-types/base/default-templates/image-def-isolated.d.ts +8 -0
  69. package/bundled-types/base/default-templates/isolated-and-edit.d.ts +15 -0
  70. package/bundled-types/base/default-templates/markdown-fallback.d.ts +19 -0
  71. package/bundled-types/base/default-templates/markdown.d.ts +60 -0
  72. package/bundled-types/base/default-templates/missing-template.d.ts +13 -0
  73. package/bundled-types/base/default-templates/theme-dashboard.d.ts +126 -0
  74. package/bundled-types/base/detailed-style-reference.d.ts +48 -0
  75. package/bundled-types/base/email.d.ts +10 -0
  76. package/bundled-types/base/enum.d.ts +30 -0
  77. package/bundled-types/base/ethereum-address.d.ts +13 -0
  78. package/bundled-types/base/field-component.d.ts +65 -0
  79. package/bundled-types/base/field-support.d.ts +55 -0
  80. package/bundled-types/base/file-api.d.ts +2 -0
  81. package/bundled-types/base/file-menu-items.d.ts +4 -0
  82. package/bundled-types/base/gif-image-def.d.ts +12 -0
  83. package/bundled-types/base/gif-meta-extractor.d.ts +4 -0
  84. package/bundled-types/base/gts-file-def.d.ts +7 -0
  85. package/bundled-types/base/helpers/country.d.ts +3198 -0
  86. package/bundled-types/base/helpers/sanitized-html.d.ts +2 -0
  87. package/bundled-types/base/helpers/set-background-image.d.ts +2 -0
  88. package/bundled-types/base/image-file-def.d.ts +1 -0
  89. package/bundled-types/base/image.d.ts +8 -0
  90. package/bundled-types/base/index.d.ts +1 -0
  91. package/bundled-types/base/join-the-community.d.ts +14 -0
  92. package/bundled-types/base/jpg-image-def.d.ts +12 -0
  93. package/bundled-types/base/jpg-meta-extractor.d.ts +4 -0
  94. package/bundled-types/base/json-file-def.d.ts +23 -0
  95. package/bundled-types/base/links-to-editor.d.ts +22 -0
  96. package/bundled-types/base/links-to-many-component.d.ts +7 -0
  97. package/bundled-types/base/llm-model.d.ts +6 -0
  98. package/bundled-types/base/markdown-file-def.d.ts +25 -0
  99. package/bundled-types/base/markdown-helpers.d.ts +26 -0
  100. package/bundled-types/base/markdown.d.ts +1 -0
  101. package/bundled-types/base/matrix-event.d.ts +400 -0
  102. package/bundled-types/base/menu-items.d.ts +21 -0
  103. package/bundled-types/base/number/components/badge-counter.d.ts +32 -0
  104. package/bundled-types/base/number/components/badge-metric.d.ts +34 -0
  105. package/bundled-types/base/number/components/badge-notification.d.ts +38 -0
  106. package/bundled-types/base/number/components/gauge.d.ts +45 -0
  107. package/bundled-types/base/number/components/number-input.d.ts +27 -0
  108. package/bundled-types/base/number/components/progress-bar.d.ts +44 -0
  109. package/bundled-types/base/number/components/progress-circle.d.ts +41 -0
  110. package/bundled-types/base/number/components/score.d.ts +41 -0
  111. package/bundled-types/base/number/components/stat.d.ts +38 -0
  112. package/bundled-types/base/number/util/index.d.ts +29 -0
  113. package/bundled-types/base/number.d.ts +52 -0
  114. package/bundled-types/base/percentage.d.ts +9 -0
  115. package/bundled-types/base/phone-number.d.ts +25 -0
  116. package/bundled-types/base/png-image-def.d.ts +12 -0
  117. package/bundled-types/base/png-meta-extractor.d.ts +4 -0
  118. package/bundled-types/base/positioned-card.d.ts +7 -0
  119. package/bundled-types/base/query-field-support.d.ts +6 -0
  120. package/bundled-types/base/realm-config.d.ts +16 -0
  121. package/bundled-types/base/realm.d.ts +7 -0
  122. package/bundled-types/base/resources/command-data.d.ts +43 -0
  123. package/bundled-types/base/response-field.d.ts +6 -0
  124. package/bundled-types/base/rich-markdown.d.ts +30 -0
  125. package/bundled-types/base/shared-state.d.ts +1 -0
  126. package/bundled-types/base/skill-plus.d.ts +79 -0
  127. package/bundled-types/base/skill-reference.d.ts +12 -0
  128. package/bundled-types/base/skill-set.d.ts +18 -0
  129. package/bundled-types/base/skill.d.ts +21 -0
  130. package/bundled-types/base/spec.d.ts +108 -0
  131. package/bundled-types/base/string.d.ts +2 -0
  132. package/bundled-types/base/structured-theme-variables.d.ts +85 -0
  133. package/bundled-types/base/structured-theme.d.ts +32 -0
  134. package/bundled-types/base/style-reference.d.ts +14 -0
  135. package/bundled-types/base/svg-image-def.d.ts +12 -0
  136. package/bundled-types/base/svg-meta-extractor.d.ts +12 -0
  137. package/bundled-types/base/system-card.d.ts +17 -0
  138. package/bundled-types/base/tag.d.ts +15 -0
  139. package/bundled-types/base/text-area.d.ts +2 -0
  140. package/bundled-types/base/text-file-def.d.ts +23 -0
  141. package/bundled-types/base/text-input-validator.d.ts +13 -0
  142. package/bundled-types/base/theme.d.ts +2 -0
  143. package/bundled-types/base/time/duration.d.ts +14 -0
  144. package/bundled-types/base/time/relative-time.d.ts +10 -0
  145. package/bundled-types/base/time/time-range.d.ts +11 -0
  146. package/bundled-types/base/time.d.ts +9 -0
  147. package/bundled-types/base/ts-file-def.d.ts +26 -0
  148. package/bundled-types/base/ts-highlight.d.ts +1 -0
  149. package/bundled-types/base/types/@cardstack/boxel-host/index.d.ts +5 -0
  150. package/bundled-types/base/types/ember-css-url/index.d.ts +15 -0
  151. package/bundled-types/base/typography.d.ts +14 -0
  152. package/bundled-types/base/url.d.ts +13 -0
  153. package/bundled-types/base/watched-array.d.ts +7 -0
  154. package/bundled-types/base/webp-image-def.d.ts +12 -0
  155. package/bundled-types/base/webp-meta-extractor.d.ts +4 -0
  156. package/bundled-types/base/website.d.ts +8 -0
  157. package/bundled-types/base/welcome-to-boxel.d.ts +22 -0
  158. package/bundled-types/boxel-ui/components/accordion/index.gts +50 -0
  159. package/bundled-types/boxel-ui/components/accordion/item/index.gts +156 -0
  160. package/bundled-types/boxel-ui/components/accordion/usage.gts +157 -0
  161. package/bundled-types/boxel-ui/components/add-button/index.gts +46 -0
  162. package/bundled-types/boxel-ui/components/add-button/usage.gts +54 -0
  163. package/bundled-types/boxel-ui/components/alert/index.gts +151 -0
  164. package/bundled-types/boxel-ui/components/alert/usage.gts +66 -0
  165. package/bundled-types/boxel-ui/components/avatar/index.gts +79 -0
  166. package/bundled-types/boxel-ui/components/avatar/usage.gts +96 -0
  167. package/bundled-types/boxel-ui/components/basic-fitted/index.gts +340 -0
  168. package/bundled-types/boxel-ui/components/basic-fitted/usage.gts +223 -0
  169. package/bundled-types/boxel-ui/components/button/index.gts +416 -0
  170. package/bundled-types/boxel-ui/components/button/usage.gts +334 -0
  171. package/bundled-types/boxel-ui/components/card-container/index.gts +251 -0
  172. package/bundled-types/boxel-ui/components/card-container/usage.gts +53 -0
  173. package/bundled-types/boxel-ui/components/card-header/index.gts +473 -0
  174. package/bundled-types/boxel-ui/components/card-header/usage.gts +295 -0
  175. package/bundled-types/boxel-ui/components/circle-spinner/index.gts +42 -0
  176. package/bundled-types/boxel-ui/components/circle-spinner/usage.gts +48 -0
  177. package/bundled-types/boxel-ui/components/color-palette/index.gts +134 -0
  178. package/bundled-types/boxel-ui/components/color-palette/usage.gts +69 -0
  179. package/bundled-types/boxel-ui/components/color-picker/index.gts +125 -0
  180. package/bundled-types/boxel-ui/components/color-picker/usage.gts +56 -0
  181. package/bundled-types/boxel-ui/components/container/index.gts +67 -0
  182. package/bundled-types/boxel-ui/components/container/usage.gts +59 -0
  183. package/bundled-types/boxel-ui/components/context-button/index.gts +184 -0
  184. package/bundled-types/boxel-ui/components/context-button/usage.gts +125 -0
  185. package/bundled-types/boxel-ui/components/copy-button/index.gts +79 -0
  186. package/bundled-types/boxel-ui/components/copy-button/usage.gts +25 -0
  187. package/bundled-types/boxel-ui/components/date-range-picker/index.gts +211 -0
  188. package/bundled-types/boxel-ui/components/date-range-picker/setup.gts +11 -0
  189. package/bundled-types/boxel-ui/components/date-range-picker/usage.gts +52 -0
  190. package/bundled-types/boxel-ui/components/drag-and-drop/index.gts +256 -0
  191. package/bundled-types/boxel-ui/components/drag-and-drop/usage.gts +142 -0
  192. package/bundled-types/boxel-ui/components/dropdown/index.gts +478 -0
  193. package/bundled-types/boxel-ui/components/dropdown/trigger/index.gts +70 -0
  194. package/bundled-types/boxel-ui/components/dropdown/trigger/usage.gts +54 -0
  195. package/bundled-types/boxel-ui/components/dropdown/usage.gts +119 -0
  196. package/bundled-types/boxel-ui/components/email-input/index.gts +111 -0
  197. package/bundled-types/boxel-ui/components/email-input/usage.gts +75 -0
  198. package/bundled-types/boxel-ui/components/entity-icon-display/index.gts +144 -0
  199. package/bundled-types/boxel-ui/components/entity-icon-display/usage.gts +54 -0
  200. package/bundled-types/boxel-ui/components/entity-thumbnail-display/index.gts +148 -0
  201. package/bundled-types/boxel-ui/components/entity-thumbnail-display/usage.gts +76 -0
  202. package/bundled-types/boxel-ui/components/field-container/index.gts +150 -0
  203. package/bundled-types/boxel-ui/components/field-container/usage.gts +188 -0
  204. package/bundled-types/boxel-ui/components/filter-list/index.gts +255 -0
  205. package/bundled-types/boxel-ui/components/filter-list/usage.gts +153 -0
  206. package/bundled-types/boxel-ui/components/fitted-card-container/index.gts +66 -0
  207. package/bundled-types/boxel-ui/components/fitted-card-container/usage.gts +81 -0
  208. package/bundled-types/boxel-ui/components/grid-container/grid-item-container/index.gts +37 -0
  209. package/bundled-types/boxel-ui/components/grid-container/index.gts +116 -0
  210. package/bundled-types/boxel-ui/components/grid-container/usage.gts +105 -0
  211. package/bundled-types/boxel-ui/components/header/index.gts +101 -0
  212. package/bundled-types/boxel-ui/components/header/usage.gts +116 -0
  213. package/bundled-types/boxel-ui/components/icon-button/index.gts +148 -0
  214. package/bundled-types/boxel-ui/components/icon-button/usage.gts +249 -0
  215. package/bundled-types/boxel-ui/components/input/index.gts +560 -0
  216. package/bundled-types/boxel-ui/components/input/usage.gts +449 -0
  217. package/bundled-types/boxel-ui/components/input-group/accessories/index.gts +191 -0
  218. package/bundled-types/boxel-ui/components/input-group/controls/index.gts +54 -0
  219. package/bundled-types/boxel-ui/components/input-group/index.gts +347 -0
  220. package/bundled-types/boxel-ui/components/input-group/usage.gts +437 -0
  221. package/bundled-types/boxel-ui/components/kanban/card.gts +89 -0
  222. package/bundled-types/boxel-ui/components/kanban/column-header.gts +151 -0
  223. package/bundled-types/boxel-ui/components/kanban/drag.gts +1007 -0
  224. package/bundled-types/boxel-ui/components/kanban/engine.ts +247 -0
  225. package/bundled-types/boxel-ui/components/kanban/ghost.gts +64 -0
  226. package/bundled-types/boxel-ui/components/kanban/index.gts +16 -0
  227. package/bundled-types/boxel-ui/components/kanban/modifiers.gts +42 -0
  228. package/bundled-types/boxel-ui/components/kanban/plane-inner.gts +525 -0
  229. package/bundled-types/boxel-ui/components/kanban/plane.gts +163 -0
  230. package/bundled-types/boxel-ui/components/kanban/usage.gts +392 -0
  231. package/bundled-types/boxel-ui/components/label/index.gts +64 -0
  232. package/bundled-types/boxel-ui/components/loading-indicator/index.gts +78 -0
  233. package/bundled-types/boxel-ui/components/loading-indicator/usage.gts +72 -0
  234. package/bundled-types/boxel-ui/components/menu/index.gts +267 -0
  235. package/bundled-types/boxel-ui/components/menu/usage.gts +100 -0
  236. package/bundled-types/boxel-ui/components/message/index.gts +146 -0
  237. package/bundled-types/boxel-ui/components/message/usage.gts +263 -0
  238. package/bundled-types/boxel-ui/components/modal/index.gts +159 -0
  239. package/bundled-types/boxel-ui/components/modal/usage.gts +206 -0
  240. package/bundled-types/boxel-ui/components/multi-select/after-options.gts +59 -0
  241. package/bundled-types/boxel-ui/components/multi-select/index.gts +230 -0
  242. package/bundled-types/boxel-ui/components/multi-select/selected-item.gts +91 -0
  243. package/bundled-types/boxel-ui/components/multi-select/trigger.gts +190 -0
  244. package/bundled-types/boxel-ui/components/multi-select/usage.gts +420 -0
  245. package/bundled-types/boxel-ui/components/phone-input/index.gts +149 -0
  246. package/bundled-types/boxel-ui/components/phone-input/usage.gts +73 -0
  247. package/bundled-types/boxel-ui/components/picker/before-options-with-search.gts +340 -0
  248. package/bundled-types/boxel-ui/components/picker/index.gts +427 -0
  249. package/bundled-types/boxel-ui/components/picker/option-row.gts +270 -0
  250. package/bundled-types/boxel-ui/components/picker/selected-item.gts +171 -0
  251. package/bundled-types/boxel-ui/components/picker/trigger-labeled.gts +216 -0
  252. package/bundled-types/boxel-ui/components/picker/usage.gts +179 -0
  253. package/bundled-types/boxel-ui/components/pill/index.gts +231 -0
  254. package/bundled-types/boxel-ui/components/pill/usage.gts +230 -0
  255. package/bundled-types/boxel-ui/components/progress-bar/index.gts +124 -0
  256. package/bundled-types/boxel-ui/components/progress-bar/usage.gts +131 -0
  257. package/bundled-types/boxel-ui/components/progress-radial/index.gts +95 -0
  258. package/bundled-types/boxel-ui/components/progress-radial/usage.gts +79 -0
  259. package/bundled-types/boxel-ui/components/radio-input/index.gts +143 -0
  260. package/bundled-types/boxel-ui/components/radio-input/item.gts +210 -0
  261. package/bundled-types/boxel-ui/components/radio-input/usage.gts +303 -0
  262. package/bundled-types/boxel-ui/components/realm-icon/index.gts +129 -0
  263. package/bundled-types/boxel-ui/components/realm-icon/usage.gts +62 -0
  264. package/bundled-types/boxel-ui/components/resizable-panel-group/handle.gts +180 -0
  265. package/bundled-types/boxel-ui/components/resizable-panel-group/index.gts +341 -0
  266. package/bundled-types/boxel-ui/components/resizable-panel-group/panel.gts +86 -0
  267. package/bundled-types/boxel-ui/components/resizable-panel-group/usage.gts +350 -0
  268. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/adjust-layout-by-delta.ts +231 -0
  269. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/assert.ts +10 -0
  270. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/calculate-delta-percentage.ts +41 -0
  271. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/calculate-unsafe-default-layout.ts +53 -0
  272. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/compare-layouts.ts +12 -0
  273. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/const.ts +6 -0
  274. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/determine-pivot-indices.ts +15 -0
  275. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/dom/get-panel-element.ts +10 -0
  276. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/dom/get-panel-elements-for-group.ts +8 -0
  277. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/dom/get-panel-group-element.ts +21 -0
  278. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/dom/get-resize-handle-element-index.ts +14 -0
  279. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/dom/get-resize-handle-element.ts +12 -0
  280. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/dom/get-resize-handle-elements-for-group.ts +10 -0
  281. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/fuzzy-layouts-equal.ts +22 -0
  282. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/fuzzy-numbers.ts +21 -0
  283. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/get-resize-event-coordinates.ts +8 -0
  284. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/get-resize-event-cursor-position.ts +10 -0
  285. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/panel-resize-handle-registry.ts +446 -0
  286. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/resize-panel.ts +35 -0
  287. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/types.ts +23 -0
  288. package/bundled-types/boxel-ui/components/resizable-panel-group/utils/validate-panel-group-layout.ts +86 -0
  289. package/bundled-types/boxel-ui/components/select/index.gts +882 -0
  290. package/bundled-types/boxel-ui/components/select/trigger.gts +132 -0
  291. package/bundled-types/boxel-ui/components/select/usage.gts +353 -0
  292. package/bundled-types/boxel-ui/components/skeleton-placeholder/index.gts +89 -0
  293. package/bundled-types/boxel-ui/components/skeleton-placeholder/usage.gts +102 -0
  294. package/bundled-types/boxel-ui/components/sort-dropdown/index.gts +91 -0
  295. package/bundled-types/boxel-ui/components/sort-dropdown/usage.gts +77 -0
  296. package/bundled-types/boxel-ui/components/swatch/index.gts +81 -0
  297. package/bundled-types/boxel-ui/components/swatch/usage.gts +57 -0
  298. package/bundled-types/boxel-ui/components/switch/index.gts +95 -0
  299. package/bundled-types/boxel-ui/components/switch/usage.gts +79 -0
  300. package/bundled-types/boxel-ui/components/tabbed-header/index.gts +141 -0
  301. package/bundled-types/boxel-ui/components/tabbed-header/usage.gts +103 -0
  302. package/bundled-types/boxel-ui/components/tag/index.gts +50 -0
  303. package/bundled-types/boxel-ui/components/tag/usage.gts +89 -0
  304. package/bundled-types/boxel-ui/components/tag-list/index.gts +85 -0
  305. package/bundled-types/boxel-ui/components/tag-list/usage.gts +129 -0
  306. package/bundled-types/boxel-ui/components/tooltip/index.gts +306 -0
  307. package/bundled-types/boxel-ui/components/tooltip/usage.gts +168 -0
  308. package/bundled-types/boxel-ui/components/view-selector/index.gts +166 -0
  309. package/bundled-types/boxel-ui/components/view-selector/usage.gts +149 -0
  310. package/bundled-types/boxel-ui/components.ts +169 -0
  311. package/bundled-types/boxel-ui/helpers/add-class-to-svg.ts +8 -0
  312. package/bundled-types/boxel-ui/helpers/clipboard.ts +21 -0
  313. package/bundled-types/boxel-ui/helpers/cn.ts +12 -0
  314. package/bundled-types/boxel-ui/helpers/color-tools.ts +331 -0
  315. package/bundled-types/boxel-ui/helpers/compact.ts +3 -0
  316. package/bundled-types/boxel-ui/helpers/contrast-color.ts +32 -0
  317. package/bundled-types/boxel-ui/helpers/css-var.ts +41 -0
  318. package/bundled-types/boxel-ui/helpers/currency-format.ts +25 -0
  319. package/bundled-types/boxel-ui/helpers/dayjs-format.ts +27 -0
  320. package/bundled-types/boxel-ui/helpers/deterministic-color-from-string.ts +45 -0
  321. package/bundled-types/boxel-ui/helpers/element.ts +16 -0
  322. package/bundled-types/boxel-ui/helpers/extract-css-variables.ts +126 -0
  323. package/bundled-types/boxel-ui/helpers/format-age.ts +72 -0
  324. package/bundled-types/boxel-ui/helpers/format-countdown.ts +110 -0
  325. package/bundled-types/boxel-ui/helpers/format-currency.ts +95 -0
  326. package/bundled-types/boxel-ui/helpers/format-date-time.ts +567 -0
  327. package/bundled-types/boxel-ui/helpers/format-duration.ts +143 -0
  328. package/bundled-types/boxel-ui/helpers/format-file-size.ts +49 -0
  329. package/bundled-types/boxel-ui/helpers/format-list.ts +73 -0
  330. package/bundled-types/boxel-ui/helpers/format-names.ts +103 -0
  331. package/bundled-types/boxel-ui/helpers/format-number.ts +140 -0
  332. package/bundled-types/boxel-ui/helpers/format-ordinal.ts +115 -0
  333. package/bundled-types/boxel-ui/helpers/format-period.ts +188 -0
  334. package/bundled-types/boxel-ui/helpers/format-relative-time.ts +789 -0
  335. package/bundled-types/boxel-ui/helpers/generate-css-variables.ts +47 -0
  336. package/bundled-types/boxel-ui/helpers/markdown-escape.ts +36 -0
  337. package/bundled-types/boxel-ui/helpers/math-helpers.ts +18 -0
  338. package/bundled-types/boxel-ui/helpers/menu-divider.ts +15 -0
  339. package/bundled-types/boxel-ui/helpers/menu-item.ts +76 -0
  340. package/bundled-types/boxel-ui/helpers/optional.ts +7 -0
  341. package/bundled-types/boxel-ui/helpers/pick.ts +11 -0
  342. package/bundled-types/boxel-ui/helpers/sanitize-html.ts +45 -0
  343. package/bundled-types/boxel-ui/helpers/string.ts +15 -0
  344. package/bundled-types/boxel-ui/helpers/theme-css.ts +148 -0
  345. package/bundled-types/boxel-ui/helpers/truth-helpers.ts +48 -0
  346. package/bundled-types/boxel-ui/helpers/validate-email-format.ts +138 -0
  347. package/bundled-types/boxel-ui/helpers/validate-phone-format.ts +201 -0
  348. package/bundled-types/boxel-ui/helpers.ts +134 -0
  349. package/bundled-types/boxel-ui/icons/ai-bw.gts +22 -0
  350. package/bundled-types/boxel-ui/icons/arrow-left.gts +25 -0
  351. package/bundled-types/boxel-ui/icons/arrow-right.gts +28 -0
  352. package/bundled-types/boxel-ui/icons/arrow-top-left.gts +22 -0
  353. package/bundled-types/boxel-ui/icons/arrow-up.gts +25 -0
  354. package/bundled-types/boxel-ui/icons/atom.gts +26 -0
  355. package/bundled-types/boxel-ui/icons/boxel-icon-with-text.gts +29 -0
  356. package/bundled-types/boxel-ui/icons/boxel-icon.gts +34 -0
  357. package/bundled-types/boxel-ui/icons/card-definition.gts +26 -0
  358. package/bundled-types/boxel-ui/icons/card-instance.gts +26 -0
  359. package/bundled-types/boxel-ui/icons/card.gts +24 -0
  360. package/bundled-types/boxel-ui/icons/cardbot-lg.gts +24 -0
  361. package/bundled-types/boxel-ui/icons/caret-down.gts +23 -0
  362. package/bundled-types/boxel-ui/icons/caret-up.gts +23 -0
  363. package/bundled-types/boxel-ui/icons/check-mark.gts +23 -0
  364. package/bundled-types/boxel-ui/icons/chevron-right.gts +23 -0
  365. package/bundled-types/boxel-ui/icons/copy.gts +28 -0
  366. package/bundled-types/boxel-ui/icons/diagonal-arrow-left-up.gts +21 -0
  367. package/bundled-types/boxel-ui/icons/download.gts +19 -0
  368. package/bundled-types/boxel-ui/icons/dropdown-arrow-down.gts +20 -0
  369. package/bundled-types/boxel-ui/icons/dropdown-arrow-filled.gts +19 -0
  370. package/bundled-types/boxel-ui/icons/dropdown-arrow-up.gts +20 -0
  371. package/bundled-types/boxel-ui/icons/edit.gts +14 -0
  372. package/bundled-types/boxel-ui/icons/embedded.gts +34 -0
  373. package/bundled-types/boxel-ui/icons/exclamation-circle.gts +26 -0
  374. package/bundled-types/boxel-ui/icons/exclamation.gts +20 -0
  375. package/bundled-types/boxel-ui/icons/eye.gts +19 -0
  376. package/bundled-types/boxel-ui/icons/failure-bordered.gts +26 -0
  377. package/bundled-types/boxel-ui/icons/field.gts +26 -0
  378. package/bundled-types/boxel-ui/icons/file-alert.gts +28 -0
  379. package/bundled-types/boxel-ui/icons/file.gts +27 -0
  380. package/bundled-types/boxel-ui/icons/fitted.gts +42 -0
  381. package/bundled-types/boxel-ui/icons/folder.gts +26 -0
  382. package/bundled-types/boxel-ui/icons/form.gts +38 -0
  383. package/bundled-types/boxel-ui/icons/four-lines.gts +21 -0
  384. package/bundled-types/boxel-ui/icons/grid-3x3.gts +26 -0
  385. package/bundled-types/boxel-ui/icons/group.gts +22 -0
  386. package/bundled-types/boxel-ui/icons/head.gts +28 -0
  387. package/bundled-types/boxel-ui/icons/highlight-icon.gts +46 -0
  388. package/bundled-types/boxel-ui/icons/icon-circle-selected.gts +25 -0
  389. package/bundled-types/boxel-ui/icons/icon-circle.gts +25 -0
  390. package/bundled-types/boxel-ui/icons/icon-code.gts +22 -0
  391. package/bundled-types/boxel-ui/icons/icon-funnel.gts +23 -0
  392. package/bundled-types/boxel-ui/icons/icon-globe.gts +19 -0
  393. package/bundled-types/boxel-ui/icons/icon-grid.gts +68 -0
  394. package/bundled-types/boxel-ui/icons/icon-hexagon.gts +22 -0
  395. package/bundled-types/boxel-ui/icons/icon-inherit.gts +19 -0
  396. package/bundled-types/boxel-ui/icons/icon-link.gts +20 -0
  397. package/bundled-types/boxel-ui/icons/icon-list.gts +40 -0
  398. package/bundled-types/boxel-ui/icons/icon-minus-circle.gts +26 -0
  399. package/bundled-types/boxel-ui/icons/icon-pencil-crossed-out.gts +33 -0
  400. package/bundled-types/boxel-ui/icons/icon-pencil-not-crossed-out.gts +21 -0
  401. package/bundled-types/boxel-ui/icons/icon-pencil.gts +23 -0
  402. package/bundled-types/boxel-ui/icons/icon-plus-circle.gts +31 -0
  403. package/bundled-types/boxel-ui/icons/icon-plus-thin.gts +19 -0
  404. package/bundled-types/boxel-ui/icons/icon-plus.gts +20 -0
  405. package/bundled-types/boxel-ui/icons/icon-search-thick.gts +27 -0
  406. package/bundled-types/boxel-ui/icons/icon-search.gts +25 -0
  407. package/bundled-types/boxel-ui/icons/icon-table.gts +44 -0
  408. package/bundled-types/boxel-ui/icons/icon-trash.gts +24 -0
  409. package/bundled-types/boxel-ui/icons/icon-turn-down-right.gts +18 -0
  410. package/bundled-types/boxel-ui/icons/icon-x.gts +21 -0
  411. package/bundled-types/boxel-ui/icons/image-placeholder.gts +30 -0
  412. package/bundled-types/boxel-ui/icons/isolated.gts +20 -0
  413. package/bundled-types/boxel-ui/icons/loading-indicator.gts +26 -0
  414. package/bundled-types/boxel-ui/icons/lock.gts +23 -0
  415. package/bundled-types/boxel-ui/icons/markdown.gts +19 -0
  416. package/bundled-types/boxel-ui/icons/profile.gts +23 -0
  417. package/bundled-types/boxel-ui/icons/publish-site-icon.gts +25 -0
  418. package/bundled-types/boxel-ui/icons/rows-4.gts +26 -0
  419. package/bundled-types/boxel-ui/icons/select-all.gts +25 -0
  420. package/bundled-types/boxel-ui/icons/send.gts +21 -0
  421. package/bundled-types/boxel-ui/icons/sparkle.gts +21 -0
  422. package/bundled-types/boxel-ui/icons/star-filled.gts +25 -0
  423. package/bundled-types/boxel-ui/icons/star-half-fill.gts +27 -0
  424. package/bundled-types/boxel-ui/icons/star.gts +25 -0
  425. package/bundled-types/boxel-ui/icons/success-bordered.gts +30 -0
  426. package/bundled-types/boxel-ui/icons/three-dots-horizontal.gts +21 -0
  427. package/bundled-types/boxel-ui/icons/triangle-left.gts +23 -0
  428. package/bundled-types/boxel-ui/icons/triangle-right.gts +23 -0
  429. package/bundled-types/boxel-ui/icons/types.ts +10 -0
  430. package/bundled-types/boxel-ui/icons/upload.gts +20 -0
  431. package/bundled-types/boxel-ui/icons/warning.gts +19 -0
  432. package/bundled-types/boxel-ui/icons.gts +249 -0
  433. package/bundled-types/boxel-ui/modifiers/auto-focus.ts +7 -0
  434. package/bundled-types/boxel-ui/modifiers/set-css-var.ts +24 -0
  435. package/bundled-types/boxel-ui/modifiers.ts +14 -0
  436. package/bundled-types/boxel-ui/types/@cardstack/boxel-ui/index.d.ts +3 -0
  437. package/bundled-types/boxel-ui/types/ember-css-url/index.d.ts +15 -0
  438. package/bundled-types/boxel-ui/types/ember-draggable-modifiers/index.d.ts +109 -0
  439. package/bundled-types/boxel-ui/types/ember-draggable-modifiers/utils.d.ts +7 -0
  440. package/bundled-types/boxel-ui/types/ember-focus-trap/index.d.ts +20 -0
  441. package/bundled-types/boxel-ui/types/ember-power-calendar/components/index.d.ts +9 -0
  442. package/bundled-types/boxel-ui/types/ember-resize-modifier/index.d.ts +14 -0
  443. package/bundled-types/boxel-ui/types/ember-set-body-class/index.d.ts +12 -0
  444. package/bundled-types/boxel-ui/types/ember-sortable/index.d.ts +52 -0
  445. package/bundled-types/boxel-ui/types/global.d.ts +7 -0
  446. package/bundled-types/boxel-ui/usage.ts +112 -0
  447. package/bundled-types/boxel-ui/utils/date-utils.ts +192 -0
  448. package/bundled-types/boxel-ui/utils/fitted-formats.ts +161 -0
  449. package/bundled-types/host-app/app.ts +22 -0
  450. package/bundled-types/host-app/commands/add-field-to-card-definition.ts +74 -0
  451. package/bundled-types/host-app/commands/ai-assistant.ts +203 -0
  452. package/bundled-types/host-app/commands/apply-markdown-edit.ts +203 -0
  453. package/bundled-types/host-app/commands/apply-search-replace-block.ts +225 -0
  454. package/bundled-types/host-app/commands/ask-ai.ts +66 -0
  455. package/bundled-types/host-app/commands/authed-fetch.ts +53 -0
  456. package/bundled-types/host-app/commands/bot-requests/create-listing-pr-request.ts +77 -0
  457. package/bundled-types/host-app/commands/bot-requests/send-bot-trigger-event.ts +53 -0
  458. package/bundled-types/host-app/commands/can-read-realm.ts +34 -0
  459. package/bundled-types/host-app/commands/cancel-indexing-job.ts +29 -0
  460. package/bundled-types/host-app/commands/check-correctness.ts +309 -0
  461. package/bundled-types/host-app/commands/copy-and-edit.ts +311 -0
  462. package/bundled-types/host-app/commands/copy-card-as-markdown.ts +41 -0
  463. package/bundled-types/host-app/commands/copy-card-to-stack.ts +70 -0
  464. package/bundled-types/host-app/commands/copy-card.ts +67 -0
  465. package/bundled-types/host-app/commands/copy-file-to-realm.ts +82 -0
  466. package/bundled-types/host-app/commands/copy-source.ts +46 -0
  467. package/bundled-types/host-app/commands/create-ai-assistant-room.ts +144 -0
  468. package/bundled-types/host-app/commands/create-and-open-submission-workflow-card.ts +30 -0
  469. package/bundled-types/host-app/commands/create-specs.ts +422 -0
  470. package/bundled-types/host-app/commands/create-submission-workflow.ts +172 -0
  471. package/bundled-types/host-app/commands/evaluate-module.ts +119 -0
  472. package/bundled-types/host-app/commands/execute-atomic-operations.ts +44 -0
  473. package/bundled-types/host-app/commands/fetch-card-json.ts +33 -0
  474. package/bundled-types/host-app/commands/full-reindex-realm.ts +30 -0
  475. package/bundled-types/host-app/commands/generate-example-cards.ts +298 -0
  476. package/bundled-types/host-app/commands/generate-readme-spec.ts +116 -0
  477. package/bundled-types/host-app/commands/generate-theme-example.ts +147 -0
  478. package/bundled-types/host-app/commands/generate-thumbnail.ts +247 -0
  479. package/bundled-types/host-app/commands/get-all-realm-metas.ts +38 -0
  480. package/bundled-types/host-app/commands/get-available-realm-identifiers.ts +29 -0
  481. package/bundled-types/host-app/commands/get-card-type-schema.ts +59 -0
  482. package/bundled-types/host-app/commands/get-card.ts +34 -0
  483. package/bundled-types/host-app/commands/get-catalog-realm-identifiers.ts +29 -0
  484. package/bundled-types/host-app/commands/get-default-writable-realm.ts +28 -0
  485. package/bundled-types/host-app/commands/get-events-from-room.ts +70 -0
  486. package/bundled-types/host-app/commands/get-realm-of-resource-identifier.ts +37 -0
  487. package/bundled-types/host-app/commands/get-user-system-card.ts +38 -0
  488. package/bundled-types/host-app/commands/index.ts +590 -0
  489. package/bundled-types/host-app/commands/instantiate-card.ts +185 -0
  490. package/bundled-types/host-app/commands/invalidate-realm-identifiers.ts +33 -0
  491. package/bundled-types/host-app/commands/invite-user-to-room.ts +34 -0
  492. package/bundled-types/host-app/commands/lint-and-fix.ts +60 -0
  493. package/bundled-types/host-app/commands/listing-action-build.ts +79 -0
  494. package/bundled-types/host-app/commands/listing-action-init.ts +106 -0
  495. package/bundled-types/host-app/commands/listing-create.ts +632 -0
  496. package/bundled-types/host-app/commands/listing-generate-example.ts +83 -0
  497. package/bundled-types/host-app/commands/listing-install.ts +227 -0
  498. package/bundled-types/host-app/commands/listing-remix.ts +150 -0
  499. package/bundled-types/host-app/commands/listing-update-specs.ts +116 -0
  500. package/bundled-types/host-app/commands/listing-use.ts +97 -0
  501. package/bundled-types/host-app/commands/one-shot-llm-request.ts +209 -0
  502. package/bundled-types/host-app/commands/open-ai-assistant-room.ts +38 -0
  503. package/bundled-types/host-app/commands/open-create-listing-modal.ts +52 -0
  504. package/bundled-types/host-app/commands/open-in-interact-mode.ts +36 -0
  505. package/bundled-types/host-app/commands/open-workspace.ts +38 -0
  506. package/bundled-types/host-app/commands/patch-card-instance.ts +108 -0
  507. package/bundled-types/host-app/commands/patch-code.ts +243 -0
  508. package/bundled-types/host-app/commands/patch-fields.ts +304 -0
  509. package/bundled-types/host-app/commands/patch-theme.ts +52 -0
  510. package/bundled-types/host-app/commands/persist-module-inspector-view.ts +41 -0
  511. package/bundled-types/host-app/commands/populate-with-sample-data.ts +84 -0
  512. package/bundled-types/host-app/commands/preview-format.ts +52 -0
  513. package/bundled-types/host-app/commands/read-binary-file.ts +62 -0
  514. package/bundled-types/host-app/commands/read-card-for-ai-assistant.ts +50 -0
  515. package/bundled-types/host-app/commands/read-file-for-ai-assistant.ts +46 -0
  516. package/bundled-types/host-app/commands/read-source.ts +46 -0
  517. package/bundled-types/host-app/commands/read-text-file.ts +44 -0
  518. package/bundled-types/host-app/commands/register-bot.ts +42 -0
  519. package/bundled-types/host-app/commands/reindex-realm.ts +30 -0
  520. package/bundled-types/host-app/commands/retry-submission-workflow.ts +119 -0
  521. package/bundled-types/host-app/commands/sanitize-module-list.ts +83 -0
  522. package/bundled-types/host-app/commands/save-card.ts +44 -0
  523. package/bundled-types/host-app/commands/screenshot-card.ts +148 -0
  524. package/bundled-types/host-app/commands/search-and-choose.ts +180 -0
  525. package/bundled-types/host-app/commands/search-cards.ts +102 -0
  526. package/bundled-types/host-app/commands/search-google-images.ts +100 -0
  527. package/bundled-types/host-app/commands/send-ai-assistant-message.ts +122 -0
  528. package/bundled-types/host-app/commands/send-request-via-proxy.ts +70 -0
  529. package/bundled-types/host-app/commands/serialize-card.ts +45 -0
  530. package/bundled-types/host-app/commands/set-active-llm.ts +39 -0
  531. package/bundled-types/host-app/commands/set-user-system-card.ts +29 -0
  532. package/bundled-types/host-app/commands/show-card.ts +102 -0
  533. package/bundled-types/host-app/commands/show-file.ts +39 -0
  534. package/bundled-types/host-app/commands/store-add.ts +37 -0
  535. package/bundled-types/host-app/commands/summarize-session.ts +82 -0
  536. package/bundled-types/host-app/commands/switch-submode.ts +112 -0
  537. package/bundled-types/host-app/commands/sync-openrouter-models.ts +373 -0
  538. package/bundled-types/host-app/commands/transform-cards.ts +59 -0
  539. package/bundled-types/host-app/commands/unregister-bot.ts +29 -0
  540. package/bundled-types/host-app/commands/update-code-path-with-selection.ts +45 -0
  541. package/bundled-types/host-app/commands/update-playground-selection.ts +37 -0
  542. package/bundled-types/host-app/commands/update-room-skills.ts +231 -0
  543. package/bundled-types/host-app/commands/utils.ts +178 -0
  544. package/bundled-types/host-app/commands/validate-realm.ts +40 -0
  545. package/bundled-types/host-app/commands/write-binary-file.ts +142 -0
  546. package/bundled-types/host-app/commands/write-text-file.ts +104 -0
  547. package/bundled-types/host-app/components/.gitkeep +0 -0
  548. package/bundled-types/host-app/components/ai-assistant/action-bar.gts +188 -0
  549. package/bundled-types/host-app/components/ai-assistant/ai-assist-button-active-bg.webp +0 -0
  550. package/bundled-types/host-app/components/ai-assistant/ai-assist-button-active-bg@2x.webp +0 -0
  551. package/bundled-types/host-app/components/ai-assistant/ai-assist-button-active-bg@3x.webp +0 -0
  552. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon-animated.webp +0 -0
  553. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon-bw.png +0 -0
  554. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon-bw@2x.png +0 -0
  555. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon-bw@3x.png +0 -0
  556. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon.webp +0 -0
  557. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon@2x.webp +0 -0
  558. package/bundled-types/host-app/components/ai-assistant/ai-assist-icon@3x.webp +0 -0
  559. package/bundled-types/host-app/components/ai-assistant/apply-button/index.gts +226 -0
  560. package/bundled-types/host-app/components/ai-assistant/apply-button/usage.gts +81 -0
  561. package/bundled-types/host-app/components/ai-assistant/attached-file-dropdown-menu.gts +179 -0
  562. package/bundled-types/host-app/components/ai-assistant/attachment-picker/attach-button.gts +176 -0
  563. package/bundled-types/host-app/components/ai-assistant/attachment-picker/attached-items.gts +271 -0
  564. package/bundled-types/host-app/components/ai-assistant/attachment-picker/index.gts +144 -0
  565. package/bundled-types/host-app/components/ai-assistant/attachment-picker/usage.gts +127 -0
  566. package/bundled-types/host-app/components/ai-assistant/button.gts +60 -0
  567. package/bundled-types/host-app/components/ai-assistant/chat-input/index.gts +203 -0
  568. package/bundled-types/host-app/components/ai-assistant/chat-input/usage.gts +68 -0
  569. package/bundled-types/host-app/components/ai-assistant/code-block/actions.gts +58 -0
  570. package/bundled-types/host-app/components/ai-assistant/code-block/apply-code-patch-button.gts +66 -0
  571. package/bundled-types/host-app/components/ai-assistant/code-block/command-header.gts +115 -0
  572. package/bundled-types/host-app/components/ai-assistant/code-block/diff-editor-header.gts +209 -0
  573. package/bundled-types/host-app/components/ai-assistant/code-block/index.gts +228 -0
  574. package/bundled-types/host-app/components/ai-assistant/code-block/patch-footer.gts +32 -0
  575. package/bundled-types/host-app/components/ai-assistant/code-block/view-code-button.gts +73 -0
  576. package/bundled-types/host-app/components/ai-assistant/focus-pill/index.gts +60 -0
  577. package/bundled-types/host-app/components/ai-assistant/focus-pill/usage.gts +45 -0
  578. package/bundled-types/host-app/components/ai-assistant/llm-mode-toggle.gts +113 -0
  579. package/bundled-types/host-app/components/ai-assistant/llm-select.gts +158 -0
  580. package/bundled-types/host-app/components/ai-assistant/message/aibot-message.gts +374 -0
  581. package/bundled-types/host-app/components/ai-assistant/message/attachments.gts +153 -0
  582. package/bundled-types/host-app/components/ai-assistant/message/index.gts +678 -0
  583. package/bundled-types/host-app/components/ai-assistant/message/meta.gts +66 -0
  584. package/bundled-types/host-app/components/ai-assistant/message/text-content.gts +32 -0
  585. package/bundled-types/host-app/components/ai-assistant/message/usage.gts +182 -0
  586. package/bundled-types/host-app/components/ai-assistant/message/user-message.gts +52 -0
  587. package/bundled-types/host-app/components/ai-assistant/new-session-button.gts +126 -0
  588. package/bundled-types/host-app/components/ai-assistant/new-session-settings.gts +180 -0
  589. package/bundled-types/host-app/components/ai-assistant/new-session.gts +83 -0
  590. package/bundled-types/host-app/components/ai-assistant/panel-popover.gts +102 -0
  591. package/bundled-types/host-app/components/ai-assistant/panel.gts +453 -0
  592. package/bundled-types/host-app/components/ai-assistant/past-session-item.gts +323 -0
  593. package/bundled-types/host-app/components/ai-assistant/past-sessions.gts +115 -0
  594. package/bundled-types/host-app/components/ai-assistant/rename-session.gts +144 -0
  595. package/bundled-types/host-app/components/ai-assistant/restore-file-modal.gts +105 -0
  596. package/bundled-types/host-app/components/ai-assistant/skill-menu/index.gts +190 -0
  597. package/bundled-types/host-app/components/ai-assistant/skill-menu/skill-toggle.gts +168 -0
  598. package/bundled-types/host-app/components/ai-assistant/skill-menu/usage.gts +48 -0
  599. package/bundled-types/host-app/components/ai-assistant/toast.gts +293 -0
  600. package/bundled-types/host-app/components/card-catalog/modal.gts +579 -0
  601. package/bundled-types/host-app/components/card-error.gts +41 -0
  602. package/bundled-types/host-app/components/card-instance-picker/index.gts +54 -0
  603. package/bundled-types/host-app/components/card-pill.gts +189 -0
  604. package/bundled-types/host-app/components/card-prerender.gts +880 -0
  605. package/bundled-types/host-app/components/card-renderer.gts +84 -0
  606. package/bundled-types/host-app/components/card-search/constants.ts +76 -0
  607. package/bundled-types/host-app/components/card-search/item-button.gts +243 -0
  608. package/bundled-types/host-app/components/card-search/panel.gts +150 -0
  609. package/bundled-types/host-app/components/card-search/search-bar.gts +218 -0
  610. package/bundled-types/host-app/components/card-search/search-content.gts +604 -0
  611. package/bundled-types/host-app/components/card-search/search-result-header.gts +165 -0
  612. package/bundled-types/host-app/components/card-search/search-result-section.gts +545 -0
  613. package/bundled-types/host-app/components/card-search/section-header.gts +117 -0
  614. package/bundled-types/host-app/components/editor/directory.gts +308 -0
  615. package/bundled-types/host-app/components/editor/file-tree.gts +69 -0
  616. package/bundled-types/host-app/components/editor/import-module.gts +27 -0
  617. package/bundled-types/host-app/components/editor/indexed-file-tree.gts +572 -0
  618. package/bundled-types/host-app/components/editor/recent-files.gts +141 -0
  619. package/bundled-types/host-app/components/file-pill.gts +206 -0
  620. package/bundled-types/host-app/components/head-format-preview.gts +781 -0
  621. package/bundled-types/host-app/components/host-mode/breadcrumb-item.gts +150 -0
  622. package/bundled-types/host-app/components/host-mode/breadcrumbs.gts +131 -0
  623. package/bundled-types/host-app/components/host-mode/card.gts +199 -0
  624. package/bundled-types/host-app/components/host-mode/content.gts +195 -0
  625. package/bundled-types/host-app/components/host-mode/stack-item.gts +310 -0
  626. package/bundled-types/host-app/components/host-mode/stack.gts +91 -0
  627. package/bundled-types/host-app/components/matrix/auth-container.gts +66 -0
  628. package/bundled-types/host-app/components/matrix/auth.gts +73 -0
  629. package/bundled-types/host-app/components/matrix/forgot-password.gts +487 -0
  630. package/bundled-types/host-app/components/matrix/login.gts +241 -0
  631. package/bundled-types/host-app/components/matrix/register-user.gts +843 -0
  632. package/bundled-types/host-app/components/matrix/room-message-command.gts +330 -0
  633. package/bundled-types/host-app/components/matrix/room-message.gts +261 -0
  634. package/bundled-types/host-app/components/matrix/room.gts +1872 -0
  635. package/bundled-types/host-app/components/matrix/user-profile.gts +99 -0
  636. package/bundled-types/host-app/components/modal-container.gts +171 -0
  637. package/bundled-types/host-app/components/operator-mode/binary-file-info.gts +77 -0
  638. package/bundled-types/host-app/components/operator-mode/card-adoption-chain.gts +99 -0
  639. package/bundled-types/host-app/components/operator-mode/card-error-detail.gts +87 -0
  640. package/bundled-types/host-app/components/operator-mode/card-error.gts +177 -0
  641. package/bundled-types/host-app/components/operator-mode/card-schema-editor.gts +616 -0
  642. package/bundled-types/host-app/components/operator-mode/card-url-bar.gts +197 -0
  643. package/bundled-types/host-app/components/operator-mode/choose-file-modal.gts +562 -0
  644. package/bundled-types/host-app/components/operator-mode/choose-subscription-plan-modal.gts +517 -0
  645. package/bundled-types/host-app/components/operator-mode/code-editor.gts +736 -0
  646. package/bundled-types/host-app/components/operator-mode/code-submode/editor-indicator.gts +128 -0
  647. package/bundled-types/host-app/components/operator-mode/code-submode/format-chooser.gts +589 -0
  648. package/bundled-types/host-app/components/operator-mode/code-submode/inner-container.gts +162 -0
  649. package/bundled-types/host-app/components/operator-mode/code-submode/left-panel-toggle.gts +267 -0
  650. package/bundled-types/host-app/components/operator-mode/code-submode/module-inspector.gts +836 -0
  651. package/bundled-types/host-app/components/operator-mode/code-submode/playground/field-chooser-modal.gts +97 -0
  652. package/bundled-types/host-app/components/operator-mode/code-submode/playground/instance-chooser-dropdown.gts +346 -0
  653. package/bundled-types/host-app/components/operator-mode/code-submode/playground/playground-background.png +0 -0
  654. package/bundled-types/host-app/components/operator-mode/code-submode/playground/playground-panel.gts +1274 -0
  655. package/bundled-types/host-app/components/operator-mode/code-submode/playground/playground-preview.gts +155 -0
  656. package/bundled-types/host-app/components/operator-mode/code-submode/playground/playground.gts +98 -0
  657. package/bundled-types/host-app/components/operator-mode/code-submode/playground/spec-search.gts +70 -0
  658. package/bundled-types/host-app/components/operator-mode/code-submode/schema-editor.gts +205 -0
  659. package/bundled-types/host-app/components/operator-mode/code-submode/spec-preview-badge.gts +72 -0
  660. package/bundled-types/host-app/components/operator-mode/code-submode/spec-preview.gts +432 -0
  661. package/bundled-types/host-app/components/operator-mode/code-submode/toggle-button.gts +72 -0
  662. package/bundled-types/host-app/components/operator-mode/code-submode.gts +1030 -0
  663. package/bundled-types/host-app/components/operator-mode/container.gts +270 -0
  664. package/bundled-types/host-app/components/operator-mode/context-menu-button.gts +95 -0
  665. package/bundled-types/host-app/components/operator-mode/copy-button.gts +277 -0
  666. package/bundled-types/host-app/components/operator-mode/create-file-modal.gts +1087 -0
  667. package/bundled-types/host-app/components/operator-mode/create-listing-modal.gts +513 -0
  668. package/bundled-types/host-app/components/operator-mode/definition-container/base.gts +222 -0
  669. package/bundled-types/host-app/components/operator-mode/definition-container/clickable.gts +59 -0
  670. package/bundled-types/host-app/components/operator-mode/definition-container/divider.gts +48 -0
  671. package/bundled-types/host-app/components/operator-mode/definition-container/index.gts +108 -0
  672. package/bundled-types/host-app/components/operator-mode/delete-modal.gts +123 -0
  673. package/bundled-types/host-app/components/operator-mode/detail-panel-selector.gts +320 -0
  674. package/bundled-types/host-app/components/operator-mode/detail-panel.gts +834 -0
  675. package/bundled-types/host-app/components/operator-mode/edit-field-modal.gts +450 -0
  676. package/bundled-types/host-app/components/operator-mode/error-display.gts +590 -0
  677. package/bundled-types/host-app/components/operator-mode/host-submode/open-site-popover.gts +127 -0
  678. package/bundled-types/host-app/components/operator-mode/host-submode/publishing-realm-popover.gts +159 -0
  679. package/bundled-types/host-app/components/operator-mode/host-submode.gts +373 -0
  680. package/bundled-types/host-app/components/operator-mode/interact-submode/neighbor-stack-trigger.gts +116 -0
  681. package/bundled-types/host-app/components/operator-mode/interact-submode.gts +1021 -0
  682. package/bundled-types/host-app/components/operator-mode/new-file-button.gts +187 -0
  683. package/bundled-types/host-app/components/operator-mode/operator-mode-overlays.gts +511 -0
  684. package/bundled-types/host-app/components/operator-mode/overlays.gts +342 -0
  685. package/bundled-types/host-app/components/operator-mode/preview-panel/fitted-format-gallery.gts +127 -0
  686. package/bundled-types/host-app/components/operator-mode/preview-panel/index.gts +443 -0
  687. package/bundled-types/host-app/components/operator-mode/preview-panel/markdown-preview.gts +175 -0
  688. package/bundled-types/host-app/components/operator-mode/preview-panel/metadata-panel.gts +214 -0
  689. package/bundled-types/host-app/components/operator-mode/preview-panel/rendered-markdown.gts +718 -0
  690. package/bundled-types/host-app/components/operator-mode/private-dependency-violation.gts +70 -0
  691. package/bundled-types/host-app/components/operator-mode/profile/profile-email.gts +686 -0
  692. package/bundled-types/host-app/components/operator-mode/profile/profile-settings-modal.gts +454 -0
  693. package/bundled-types/host-app/components/operator-mode/profile/profile-subscription.gts +170 -0
  694. package/bundled-types/host-app/components/operator-mode/profile-info-popover.gts +263 -0
  695. package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +1529 -0
  696. package/bundled-types/host-app/components/operator-mode/remove-field-modal.gts +135 -0
  697. package/bundled-types/host-app/components/operator-mode/send-error-to-ai-assistant.gts +195 -0
  698. package/bundled-types/host-app/components/operator-mode/stack-item.gts +1341 -0
  699. package/bundled-types/host-app/components/operator-mode/stack.gts +191 -0
  700. package/bundled-types/host-app/components/operator-mode/submode-layout.gts +781 -0
  701. package/bundled-types/host-app/components/operator-mode/syntax-error-display.gts +72 -0
  702. package/bundled-types/host-app/components/operator-mode/workspace-chooser/add-workspace.gts +282 -0
  703. package/bundled-types/host-app/components/operator-mode/workspace-chooser/index.gts +299 -0
  704. package/bundled-types/host-app/components/operator-mode/workspace-chooser/item-container.gts +50 -0
  705. package/bundled-types/host-app/components/operator-mode/workspace-chooser/workspace-loading-indicator.gts +50 -0
  706. package/bundled-types/host-app/components/operator-mode/workspace-chooser/workspace.gts +1079 -0
  707. package/bundled-types/host-app/components/pill-menu/index.gts +281 -0
  708. package/bundled-types/host-app/components/pill-menu/usage.gts +64 -0
  709. package/bundled-types/host-app/components/prerendered-card-search.gts +274 -0
  710. package/bundled-types/host-app/components/realm-dropdown.gts +209 -0
  711. package/bundled-types/host-app/components/realm-picker/index.gts +142 -0
  712. package/bundled-types/host-app/components/search-sheet/index.gts +426 -0
  713. package/bundled-types/host-app/components/search-sheet/usage.gts +99 -0
  714. package/bundled-types/host-app/components/submode-switcher.gts +260 -0
  715. package/bundled-types/host-app/components/type-picker/index.gts +111 -0
  716. package/bundled-types/host-app/components/with-known-realms-loaded.gts +47 -0
  717. package/bundled-types/host-app/components/with-loaded-realm.gts +39 -0
  718. package/bundled-types/host-app/components/with-subscription-data.gts +247 -0
  719. package/bundled-types/host-app/config/environment.ts +66 -0
  720. package/bundled-types/host-app/deprecation-workflow.js +30 -0
  721. package/bundled-types/host-app/lib/browser-queue.ts +198 -0
  722. package/bundled-types/host-app/lib/codemirror-context.ts +1081 -0
  723. package/bundled-types/host-app/lib/command-definitions.ts +41 -0
  724. package/bundled-types/host-app/lib/download-realm.ts +9 -0
  725. package/bundled-types/host-app/lib/example-card-helpers.ts +99 -0
  726. package/bundled-types/host-app/lib/externals.ts +247 -0
  727. package/bundled-types/host-app/lib/field-path-parser.ts +520 -0
  728. package/bundled-types/host-app/lib/file-def-manager.ts +712 -0
  729. package/bundled-types/host-app/lib/file-upload-state.ts +6 -0
  730. package/bundled-types/host-app/lib/formatted-message/utils.ts +272 -0
  731. package/bundled-types/host-app/lib/gc-card-store.ts +1084 -0
  732. package/bundled-types/host-app/lib/host-base-command.ts +29 -0
  733. package/bundled-types/host-app/lib/html-component.ts +144 -0
  734. package/bundled-types/host-app/lib/html-to-markdown.ts +96 -0
  735. package/bundled-types/host-app/lib/isolated-render.gts +90 -0
  736. package/bundled-types/host-app/lib/known-file-meta-urls.ts +17 -0
  737. package/bundled-types/host-app/lib/limited-set.ts +68 -0
  738. package/bundled-types/host-app/lib/matrix-classes/member.ts +28 -0
  739. package/bundled-types/host-app/lib/matrix-classes/message-builder.ts +444 -0
  740. package/bundled-types/host-app/lib/matrix-classes/message-code-patch-result.ts +44 -0
  741. package/bundled-types/host-app/lib/matrix-classes/message-command.ts +109 -0
  742. package/bundled-types/host-app/lib/matrix-classes/message.ts +239 -0
  743. package/bundled-types/host-app/lib/matrix-classes/room.ts +174 -0
  744. package/bundled-types/host-app/lib/matrix-utils.ts +114 -0
  745. package/bundled-types/host-app/lib/mutex.ts +62 -0
  746. package/bundled-types/host-app/lib/prerender-fetch-headers.ts +46 -0
  747. package/bundled-types/host-app/lib/prerender-util.ts +31 -0
  748. package/bundled-types/host-app/lib/public-path.ts +1 -0
  749. package/bundled-types/host-app/lib/random-name.ts +26 -0
  750. package/bundled-types/host-app/lib/realm-utils.ts +45 -0
  751. package/bundled-types/host-app/lib/search-cache-key.ts +33 -0
  752. package/bundled-types/host-app/lib/search-in-flight-key.ts +28 -0
  753. package/bundled-types/host-app/lib/search-replace-block-parsing.ts +101 -0
  754. package/bundled-types/host-app/lib/setup-globals.ts +15 -0
  755. package/bundled-types/host-app/lib/sqlite-adapter.ts +510 -0
  756. package/bundled-types/host-app/lib/stack-item.ts +164 -0
  757. package/bundled-types/host-app/lib/utils.ts +84 -0
  758. package/bundled-types/host-app/lib/window-error-handler.ts +132 -0
  759. package/bundled-types/host-app/router.ts +31 -0
  760. package/bundled-types/host-app/services/ai-assistant-panel-service.ts +850 -0
  761. package/bundled-types/host-app/services/billing-service.ts +208 -0
  762. package/bundled-types/host-app/services/card-service.ts +373 -0
  763. package/bundled-types/host-app/services/card-type-service.ts +226 -0
  764. package/bundled-types/host-app/services/code-semantics-service.ts +297 -0
  765. package/bundled-types/host-app/services/command-service.ts +975 -0
  766. package/bundled-types/host-app/services/environment-service.ts +26 -0
  767. package/bundled-types/host-app/services/error-display.ts +42 -0
  768. package/bundled-types/host-app/services/file-upload.ts +212 -0
  769. package/bundled-types/host-app/services/host-mode-service.ts +381 -0
  770. package/bundled-types/host-app/services/host-mode-state-service.ts +160 -0
  771. package/bundled-types/host-app/services/loader-service.ts +148 -0
  772. package/bundled-types/host-app/services/local-indexer.ts +68 -0
  773. package/bundled-types/host-app/services/local-persistence-service.ts +296 -0
  774. package/bundled-types/host-app/services/logger-service.ts +13 -0
  775. package/bundled-types/host-app/services/matrix-sdk-loader.ts +346 -0
  776. package/bundled-types/host-app/services/matrix-service.ts +2287 -0
  777. package/bundled-types/host-app/services/message-service.ts +84 -0
  778. package/bundled-types/host-app/services/module-contents-service.ts +333 -0
  779. package/bundled-types/host-app/services/monaco-service.ts +333 -0
  780. package/bundled-types/host-app/services/network.ts +101 -0
  781. package/bundled-types/host-app/services/operator-mode-state-service.ts +1591 -0
  782. package/bundled-types/host-app/services/playground-panel-service.ts +236 -0
  783. package/bundled-types/host-app/services/queue.ts +30 -0
  784. package/bundled-types/host-app/services/realm-info-service.ts +37 -0
  785. package/bundled-types/host-app/services/realm-server.ts +1209 -0
  786. package/bundled-types/host-app/services/realm.ts +1413 -0
  787. package/bundled-types/host-app/services/recent-cards-service.ts +174 -0
  788. package/bundled-types/host-app/services/recent-files-service.ts +224 -0
  789. package/bundled-types/host-app/services/render-error-state.ts +55 -0
  790. package/bundled-types/host-app/services/render-service.ts +362 -0
  791. package/bundled-types/host-app/services/render-store.ts +27 -0
  792. package/bundled-types/host-app/services/reset.ts +19 -0
  793. package/bundled-types/host-app/services/scroll-position-service.ts +81 -0
  794. package/bundled-types/host-app/services/spec-panel-service.ts +107 -0
  795. package/bundled-types/host-app/services/store.ts +2540 -0
  796. package/bundled-types/host-app/utils/assert-never.ts +3 -0
  797. package/bundled-types/host-app/utils/auth-error-guard.ts +183 -0
  798. package/bundled-types/host-app/utils/auth-service-worker-registration.ts +123 -0
  799. package/bundled-types/host-app/utils/card-search/query-builder.ts +169 -0
  800. package/bundled-types/host-app/utils/card-search/section-pagination.ts +57 -0
  801. package/bundled-types/host-app/utils/card-search/sections.ts +240 -0
  802. package/bundled-types/host-app/utils/card-search/type-filter.ts +124 -0
  803. package/bundled-types/host-app/utils/card-search/types.ts +11 -0
  804. package/bundled-types/host-app/utils/card-search/url.ts +23 -0
  805. package/bundled-types/host-app/utils/clipboard.ts +23 -0
  806. package/bundled-types/host-app/utils/editor/boxel-formatter.ts +65 -0
  807. package/bundled-types/host-app/utils/editor/editor-language.ts +88 -0
  808. package/bundled-types/host-app/utils/editor/monaco-test-waiter.ts +302 -0
  809. package/bundled-types/host-app/utils/file-def-attributes-extractor.ts +438 -0
  810. package/bundled-types/host-app/utils/file-name.ts +38 -0
  811. package/bundled-types/host-app/utils/id-from-card-or-url.ts +11 -0
  812. package/bundled-types/host-app/utils/lint-formatting.ts +57 -0
  813. package/bundled-types/host-app/utils/local-storage-keys.ts +28 -0
  814. package/bundled-types/host-app/utils/normalized-dir-path.ts +3 -0
  815. package/bundled-types/host-app/utils/prettify-messages.ts +21 -0
  816. package/bundled-types/host-app/utils/prettify-prompts.ts +21 -0
  817. package/bundled-types/host-app/utils/realm-index-boilerplate.ts +27 -0
  818. package/bundled-types/host-app/utils/register-boxel-transition.ts +17 -0
  819. package/bundled-types/host-app/utils/render-desync-detector.ts +362 -0
  820. package/bundled-types/host-app/utils/render-error.ts +455 -0
  821. package/bundled-types/host-app/utils/render-timer-stub.ts +249 -0
  822. package/bundled-types/host-app/utils/run-while-active.ts +14 -0
  823. package/bundled-types/host-app/utils/schema-editor.ts +25 -0
  824. package/bundled-types/host-app/utils/text-suggestion.ts +82 -0
  825. package/bundled-types/host-app/utils/titleize.ts +10 -0
  826. package/bundled-types/host-app/utils/uuid.ts +13 -0
  827. package/bundled-types/host-tests/helpers/adapter.ts +464 -0
  828. package/bundled-types/host-tests/helpers/base-realm.ts +464 -0
  829. package/bundled-types/host-tests/helpers/cards/view-card-demo.ts +119 -0
  830. package/bundled-types/host-tests/helpers/field-test-helpers.gts +54 -0
  831. package/bundled-types/host-tests/helpers/image-fixture.ts +3 -0
  832. package/bundled-types/host-tests/helpers/index.gts +2099 -0
  833. package/bundled-types/host-tests/helpers/indexer.ts +293 -0
  834. package/bundled-types/host-tests/helpers/interact-submode-setup.gts +551 -0
  835. package/bundled-types/host-tests/helpers/mock-matrix/_client.ts +1042 -0
  836. package/bundled-types/host-tests/helpers/mock-matrix/_sdk.ts +71 -0
  837. package/bundled-types/host-tests/helpers/mock-matrix/_server-state.ts +343 -0
  838. package/bundled-types/host-tests/helpers/mock-matrix/_sliding-sync.ts +140 -0
  839. package/bundled-types/host-tests/helpers/mock-matrix/_utils.ts +146 -0
  840. package/bundled-types/host-tests/helpers/mock-matrix.ts +200 -0
  841. package/bundled-types/host-tests/helpers/operator-mode-parameters-match.ts +71 -0
  842. package/bundled-types/host-tests/helpers/operator-mode-state.ts +18 -0
  843. package/bundled-types/host-tests/helpers/percy-snapshot.ts +228 -0
  844. package/bundled-types/host-tests/helpers/playground.ts +130 -0
  845. package/bundled-types/host-tests/helpers/realm-server-mock/index.ts +100 -0
  846. package/bundled-types/host-tests/helpers/realm-server-mock/routes.ts +617 -0
  847. package/bundled-types/host-tests/helpers/realm-server-mock/types.ts +24 -0
  848. package/bundled-types/host-tests/helpers/recent-files-cards.ts +86 -0
  849. package/bundled-types/host-tests/helpers/render-component.ts +40 -0
  850. package/bundled-types/host-tests/helpers/setup-qunit.js +164 -0
  851. package/bundled-types/host-tests/helpers/setup.ts +349 -0
  852. package/bundled-types/host-tests/helpers/shard-warmup.ts +72 -0
  853. package/bundled-types/host-tests/helpers/stream.ts +60 -0
  854. package/bundled-types/host-tests/helpers/test-auth.ts +27 -0
  855. package/bundled-types/host-tests/helpers/test-realm-registry.ts +23 -0
  856. package/bundled-types/host-tests/helpers/test-realm-service-worker.ts +92 -0
  857. package/bundled-types/host-tests/helpers/uncaught-exceptions.ts +16 -0
  858. package/bundled-types/host-tests/helpers/visit-operator-mode.ts +39 -0
  859. package/bundled-types/host-types/@cardstack/host/index.d.ts +3 -0
  860. package/bundled-types/host-types/@joplin/turndown-plugin-gfm/index.d.ts +15 -0
  861. package/bundled-types/host-types/@sqlite.org/sqlite-wasm/index.d.ts +122 -0
  862. package/bundled-types/host-types/ember-click-outside/modifiers/on-click-outside.ts +16 -0
  863. package/bundled-types/host-types/ember-concurrency/helpers/perform.d.ts +3 -0
  864. package/bundled-types/host-types/ember-css-url/index.d.ts +15 -0
  865. package/bundled-types/host-types/ember-data/types/registries/model.d.ts +6 -0
  866. package/bundled-types/host-types/ember-elsewhere/from-elsewhere.d.ts +12 -0
  867. package/bundled-types/host-types/ember-elsewhere/to-elsewhere.d.ts +16 -0
  868. package/bundled-types/host-types/ember-focus-trap/index.d.ts +4 -0
  869. package/bundled-types/host-types/ember-keyboard/modifiers/on-key.d.ts +15 -0
  870. package/bundled-types/host-types/index.d.ts +6 -0
  871. package/bundled-types/local-types/eslint-js.d.ts +5 -0
  872. package/bundled-types/local-types/index.d.ts +115 -0
  873. package/bundled-types/local-types/marked-gfm-heading-id.d.ts +12 -0
  874. package/bundled-types/local-types/matrix-js-sdk/index.d.ts +11 -0
  875. package/bundled-types/local-types/package.json +13 -0
  876. package/bundled-types/shims/boxel-cli-shims.d.ts +10 -0
  877. package/dist/index.js +100 -100
  878. package/package.json +13 -7
  879. package/src/commands/parse.ts +277 -34
@@ -0,0 +1,1529 @@
1
+ import { fn } from '@ember/helper';
2
+ import { on } from '@ember/modifier';
3
+ import { action } from '@ember/object';
4
+ import type Owner from '@ember/owner';
5
+
6
+ import { service } from '@ember/service';
7
+ import Component from '@glimmer/component';
8
+ import { tracked } from '@glimmer/tracking';
9
+
10
+ import ExternalLink from '@cardstack/boxel-icons/external-link';
11
+ import Settings from '@cardstack/boxel-icons/settings';
12
+ import Undo2 from '@cardstack/boxel-icons/undo-2';
13
+
14
+ import { formatDistanceToNow } from 'date-fns';
15
+ import { restartableTask } from 'ember-concurrency';
16
+ import perform from 'ember-concurrency/helpers/perform';
17
+
18
+ import {
19
+ BoxelButton,
20
+ BoxelInputGroup,
21
+ RealmIcon,
22
+ LoadingIndicator,
23
+ } from '@cardstack/boxel-ui/components';
24
+ import { not } from '@cardstack/boxel-ui/helpers';
25
+ import { IconX, Warning as WarningIcon } from '@cardstack/boxel-ui/icons';
26
+
27
+ import { ensureTrailingSlash } from '@cardstack/runtime-common';
28
+ import { getPublishedRealmDomainOverrides } from '@cardstack/runtime-common/constants';
29
+
30
+ import ModalContainer from '@cardstack/host/components/modal-container';
31
+ import PrivateDependencyViolationComponent from '@cardstack/host/components/operator-mode/private-dependency-violation';
32
+ import WithLoadedRealm from '@cardstack/host/components/with-loaded-realm';
33
+
34
+ import config from '@cardstack/host/config/environment';
35
+
36
+ import type HostModeService from '@cardstack/host/services/host-mode-service';
37
+ import type MatrixService from '@cardstack/host/services/matrix-service';
38
+ import type RealmService from '@cardstack/host/services/realm';
39
+ import type {
40
+ PrivateDependencyViolation,
41
+ ErrorDocumentViolation,
42
+ } from '@cardstack/host/services/realm';
43
+ import type RealmServerService from '@cardstack/host/services/realm-server';
44
+ import type {
45
+ ClaimedDomain,
46
+ SubdomainAvailabilityResult,
47
+ } from '@cardstack/host/services/realm-server';
48
+
49
+ type CustomSubdomainSelection = {
50
+ url: string;
51
+ subdomain: string;
52
+ };
53
+
54
+ export type PublishError = Error & {
55
+ urlErrors: Map<string, string>;
56
+ };
57
+
58
+ interface Signature {
59
+ Element: HTMLElement;
60
+ Args: {
61
+ isOpen: boolean;
62
+ onClose: () => void;
63
+ handlePublish: (publishedRealmURLs: string[]) => void;
64
+ publishError?: PublishError | null;
65
+ handleUnpublish: (publishedRealmURL: string) => void;
66
+ };
67
+ }
68
+
69
+ export default class PublishRealmModal extends Component<Signature> {
70
+ @service declare private hostModeService: HostModeService;
71
+ @service declare private matrixService: MatrixService;
72
+ @service declare private realm: RealmService;
73
+ @service declare private realmServer: RealmServerService;
74
+
75
+ @tracked selectedPublishedRealmURLs: string[] = [];
76
+ @tracked private customSubdomainSelection: CustomSubdomainSelection | null =
77
+ null;
78
+ @tracked private isCustomSubdomainSetupVisible = false;
79
+ @tracked private customSubdomain = '';
80
+ @tracked
81
+ private customSubdomainAvailability: SubdomainAvailabilityResult | null =
82
+ null;
83
+ @tracked private customSubdomainError: string | null = null;
84
+ @tracked private isCheckingCustomSubdomain = false;
85
+ @tracked private claimedDomain: ClaimedDomain | null = null;
86
+
87
+ @tracked private privateDependencyCheckError: string | null = null;
88
+ @tracked private privateDependencyViolations:
89
+ | PrivateDependencyViolation[]
90
+ | null = null;
91
+ @tracked private errorDocumentViolations: ErrorDocumentViolation[] | null =
92
+ null;
93
+ @tracked private warningTypes: string[] | null = null;
94
+
95
+ @tracked private initialSelectionsSet = false;
96
+
97
+ constructor(owner: Owner, args: Signature['Args']) {
98
+ super(owner, args);
99
+ this.ensureInitialSelectionsTask.perform();
100
+ this.fetchBoxelClaimedDomain.perform();
101
+ this.checkPrivateDependenciesTask.perform();
102
+ }
103
+
104
+ get isSubdirectoryRealmPublished() {
105
+ return this.hostModeService.isPublished(this.subdirectoryRealmUrl);
106
+ }
107
+
108
+ get isPublishDisabled() {
109
+ return (
110
+ !this.hasSelectedPublishedRealmURLs ||
111
+ this.isUnpublishingAnyRealms ||
112
+ this.isPublishing
113
+ );
114
+ }
115
+
116
+ get shouldShowPrivateDependencyWarning() {
117
+ return (
118
+ this.warningTypes?.includes('has-private-dependencies') &&
119
+ Array.isArray(this.privateDependencyViolations) &&
120
+ this.privateDependencyViolations.length > 0
121
+ );
122
+ }
123
+
124
+ get shouldShowErrorDocumentWarning() {
125
+ return (
126
+ this.warningTypes?.includes('has-error-card-documents') &&
127
+ Array.isArray(this.errorDocumentViolations) &&
128
+ this.errorDocumentViolations.length > 0
129
+ );
130
+ }
131
+
132
+ get isCheckingPrivateDependencies() {
133
+ return this.checkPrivateDependenciesTask.isRunning;
134
+ }
135
+
136
+ private privateRealmURLsForViolation = (
137
+ violation: PrivateDependencyViolation,
138
+ ): string[] => {
139
+ if (!violation.externalDependencies?.length) {
140
+ return [];
141
+ }
142
+ return Array.from(
143
+ new Set(violation.externalDependencies.map((dep) => dep.realmURL)),
144
+ );
145
+ };
146
+
147
+ get lastPublishedTime() {
148
+ return this.getFormattedLastPublishedTime(this.subdirectoryRealmUrl);
149
+ }
150
+
151
+ get claimedDomainPublishedUrl() {
152
+ if (!this.claimedDomain) {
153
+ return null;
154
+ }
155
+
156
+ return this.buildPublishedRealmUrl(this.claimedDomain.hostname);
157
+ }
158
+
159
+ get claimedDomainLastPublishedTime() {
160
+ if (!this.claimedDomainPublishedUrl) {
161
+ return null;
162
+ }
163
+
164
+ return this.getFormattedLastPublishedTime(this.claimedDomainPublishedUrl);
165
+ }
166
+
167
+ get isClaimedDomainPublished() {
168
+ if (!this.claimedDomainPublishedUrl) {
169
+ return false;
170
+ }
171
+
172
+ return this.hostModeService.isPublished(this.claimedDomainPublishedUrl);
173
+ }
174
+
175
+ get shouldShowUnclaimDomainButton() {
176
+ return !!this.claimedDomain && !this.isClaimedDomainPublished;
177
+ }
178
+
179
+ get isUnclaimDomainButtonDisabled() {
180
+ return (
181
+ this.handleUnclaimCustomSubdomainTask.isRunning ||
182
+ this.isUnpublishingAnyRealms ||
183
+ this.isPublishing
184
+ );
185
+ }
186
+
187
+ private getFormattedLastPublishedTime(publishedRealmURL: string) {
188
+ const publishedAt =
189
+ this.hostModeService.lastPublishedTimestamp(publishedRealmURL);
190
+ if (!publishedAt) {
191
+ return null;
192
+ }
193
+
194
+ try {
195
+ return formatDistanceToNow(publishedAt, { addSuffix: true });
196
+ } catch (error) {
197
+ console.warn(
198
+ `Failed to parse published date for ${publishedRealmURL}:`,
199
+ new Date(publishedAt),
200
+ error,
201
+ );
202
+ return null;
203
+ }
204
+ }
205
+
206
+ get isSubdirectoryRealmSelected() {
207
+ return this.selectedPublishedRealmURLs.includes(this.subdirectoryRealmUrl);
208
+ }
209
+
210
+ get isCustomSubdomainSelected() {
211
+ if (!this.claimedDomainPublishedUrl) {
212
+ return false;
213
+ }
214
+ return this.selectedPublishedRealmURLs.includes(
215
+ this.claimedDomainPublishedUrl,
216
+ );
217
+ }
218
+
219
+ get hasSelectedPublishedRealmURLs() {
220
+ return this.selectedPublishedRealmURLs.length > 0;
221
+ }
222
+
223
+ get customSubdomainBase() {
224
+ return config.publishedRealmBoxelSiteDomain;
225
+ }
226
+
227
+ // TODO: Remove with CS-9061 once published realm domain overrides are removed.
228
+ private getPublishedRealmOverrideUrl(
229
+ publishedRealmURL: string | null,
230
+ ): string | null {
231
+ let overrideDomain = getPublishedRealmDomainOverrides(
232
+ config.publishedRealmDomainOverrides,
233
+ )[ensureTrailingSlash(this.currentRealmURL)];
234
+ if (!overrideDomain) {
235
+ return null;
236
+ }
237
+
238
+ if (!publishedRealmURL) {
239
+ return null;
240
+ }
241
+
242
+ let overriddenURL = new URL(publishedRealmURL);
243
+ overriddenURL.host = overrideDomain;
244
+ return ensureTrailingSlash(overriddenURL.toString());
245
+ }
246
+
247
+ get customSubdomainOverrideUrl() {
248
+ let publishedRealmURL =
249
+ this.claimedDomainPublishedUrl ??
250
+ this.buildPublishedRealmUrl(
251
+ `${this.customSubdomainDisplay}.${this.customSubdomainBase}`,
252
+ );
253
+ return this.getPublishedRealmOverrideUrl(publishedRealmURL);
254
+ }
255
+
256
+ get shouldShowCustomSubdomainOverride() {
257
+ return (
258
+ !!this.customSubdomainOverrideUrl &&
259
+ this.realm.canWrite(this.currentRealmURL)
260
+ );
261
+ }
262
+
263
+ get isCustomSubdomainOverrideSelected() {
264
+ if (!this.customSubdomainOverrideUrl) {
265
+ return false;
266
+ }
267
+ return this.selectedPublishedRealmURLs.includes(
268
+ this.customSubdomainOverrideUrl,
269
+ );
270
+ }
271
+
272
+ get isCustomSubdomainOverridePublished() {
273
+ if (!this.customSubdomainOverrideUrl) {
274
+ return false;
275
+ }
276
+ return this.hostModeService.isPublished(this.customSubdomainOverrideUrl);
277
+ }
278
+
279
+ get customSubdomainOverrideLastPublishedTime() {
280
+ if (!this.customSubdomainOverrideUrl) {
281
+ return null;
282
+ }
283
+ return this.getFormattedLastPublishedTime(this.customSubdomainOverrideUrl);
284
+ }
285
+
286
+ get customSubdomainDisplay() {
287
+ if (this.claimedDomain) {
288
+ return this.claimedDomain.subdomain;
289
+ }
290
+
291
+ if (this.customSubdomainSelection?.subdomain) {
292
+ return this.customSubdomainSelection.subdomain;
293
+ }
294
+
295
+ if (this.customSubdomain) {
296
+ return this.customSubdomain;
297
+ }
298
+
299
+ return 'custom-site-name';
300
+ }
301
+
302
+ get customSubdomainState() {
303
+ // Check for errors first, as they should take priority
304
+ if (this.customSubdomainError) {
305
+ return 'invalid';
306
+ }
307
+ if (this.customSubdomainAvailability?.available) {
308
+ return 'valid';
309
+ }
310
+ return null;
311
+ }
312
+
313
+ get isClaimCustomSubdomainDisabled() {
314
+ return !this.customSubdomain || this.isCheckingCustomSubdomain;
315
+ }
316
+
317
+ get currentRealmURL() {
318
+ return this.hostModeService.realmURL;
319
+ }
320
+
321
+ get subdirectoryRealmUrl() {
322
+ const protocol = this.getProtocol();
323
+ const matrixUsername = this.getMatrixUsername();
324
+ const domain = this.getDefaultPublishedRealmDomain();
325
+ const realmName = this.getRealmName();
326
+
327
+ return `${protocol}://${matrixUsername}.${domain}/${realmName}/`;
328
+ }
329
+
330
+ get subdirectoryRealmParts() {
331
+ const protocol = this.getProtocol();
332
+ const matrixUsername = this.getMatrixUsername();
333
+ const domain = this.getDefaultPublishedRealmDomain();
334
+ const realmName = this.getRealmName();
335
+
336
+ return {
337
+ baseUrl: `${protocol}://${matrixUsername}.${domain}/`,
338
+ realmName: realmName,
339
+ };
340
+ }
341
+
342
+ private getProtocol(): string {
343
+ // The local dev stack speaks HTTPS+HTTP/2 across the board now (the
344
+ // realm-server reads the mkcert leaf via REALM_SERVER_TLS_CERT_FILE
345
+ // and the host bundle's vite preview / dev server terminates TLS on
346
+ // the same cert), so published-realm URLs are https in every
347
+ // environment.
348
+ return 'https';
349
+ }
350
+
351
+ private getMatrixUsername(): string {
352
+ const userName = this.matrixService.userName;
353
+ if (!userName) {
354
+ throw new Error('Matrix username is not available');
355
+ }
356
+ return userName;
357
+ }
358
+
359
+ private getDefaultPublishedRealmDomain(): string {
360
+ // publishedRealmBoxelSpaceDomain is the domain that is used to form urls like "mike.boxel.space/game-mechanics"
361
+ // which are used to create Boxel Spaces (we will also have Boxel Sites, which is a different published realm)
362
+
363
+ // TODO: since we currently only have Boxel Spaces, we can default to that domain. When we add Boxel Sites,
364
+ // adjust this component to know which published realm domain to use.
365
+ return config.publishedRealmBoxelSpaceDomain;
366
+ }
367
+
368
+ private buildPublishedRealmUrl(hostname: string): string {
369
+ let protocol = this.getProtocol();
370
+ return `${protocol}://${hostname}/`;
371
+ }
372
+
373
+ private clearCustomSubdomainFeedback() {
374
+ this.customSubdomainAvailability = null;
375
+ this.customSubdomainError = null;
376
+ }
377
+
378
+ private applyClaimedDomain(
379
+ claim: ClaimedDomain | null,
380
+ options: { select?: boolean } = {},
381
+ ) {
382
+ const { select = false } = options;
383
+ const previousSelectionUrl = this.customSubdomainSelection?.url;
384
+ this.claimedDomain = claim;
385
+
386
+ if (claim) {
387
+ const publishedUrl = this.buildPublishedRealmUrl(claim.hostname);
388
+ if (previousSelectionUrl && previousSelectionUrl !== publishedUrl) {
389
+ this.removePublishedRealmUrl(previousSelectionUrl);
390
+ }
391
+ this.setCustomSubdomainSelection({
392
+ url: publishedUrl,
393
+ subdomain: claim.subdomain,
394
+ });
395
+ if (select) {
396
+ this.addPublishedRealmUrl(publishedUrl);
397
+ }
398
+ this.customSubdomain = '';
399
+ this.isCustomSubdomainSetupVisible = false;
400
+ } else {
401
+ if (previousSelectionUrl) {
402
+ this.removePublishedRealmUrl(previousSelectionUrl);
403
+ }
404
+ if (!this.isCustomSubdomainSetupVisible) {
405
+ this.setCustomSubdomainSelection(null);
406
+ }
407
+ }
408
+ this.applyInitialSelections(claim);
409
+ }
410
+
411
+ private checkPrivateDependenciesTask = restartableTask(async () => {
412
+ this.privateDependencyCheckError = null;
413
+ this.warningTypes = null;
414
+ try {
415
+ let report = await this.realm.fetchPrivateDependencyReport(
416
+ this.currentRealmURL,
417
+ );
418
+ this.warningTypes = report.warningTypes ?? [];
419
+ let violations = report.publishable ? [] : report.violations;
420
+ this.privateDependencyViolations = violations.filter(
421
+ (violation) => violation.kind === 'private-dependency',
422
+ ) as PrivateDependencyViolation[];
423
+ this.errorDocumentViolations = violations.filter(
424
+ (violation) => violation.kind === 'error-document',
425
+ ) as ErrorDocumentViolation[];
426
+ } catch (error) {
427
+ console.error(
428
+ 'Failed to check for private dependencies before publishing',
429
+ error,
430
+ );
431
+ this.privateDependencyCheckError =
432
+ 'Unable to verify private dependencies. Publishing may cause errors.';
433
+ this.privateDependencyViolations = null;
434
+ this.errorDocumentViolations = null;
435
+ this.warningTypes = null;
436
+ }
437
+ });
438
+
439
+ private fetchBoxelClaimedDomain = restartableTask(async () => {
440
+ try {
441
+ let claimedDomain = await this.realmServer.fetchBoxelClaimedDomain(
442
+ this.currentRealmURL,
443
+ );
444
+ this.applyClaimedDomain(claimedDomain);
445
+ } catch (error) {
446
+ console.error('Failed to load claimed domain', error);
447
+ }
448
+ });
449
+
450
+ private handleUnclaimCustomSubdomainTask = restartableTask(async () => {
451
+ if (!this.claimedDomain) {
452
+ return;
453
+ }
454
+
455
+ this.customSubdomainError = null;
456
+
457
+ try {
458
+ await this.realmServer.deleteBoxelClaimedDomain(this.claimedDomain.id);
459
+ this.applyClaimedDomain(null);
460
+ this.clearCustomSubdomainFeedback();
461
+ } catch (error) {
462
+ console.error('Failed to unclaim site name', error);
463
+ this.customSubdomainError =
464
+ error instanceof Error ? error.message : 'Failed to unclaim site name';
465
+ }
466
+ });
467
+
468
+ private setCustomSubdomainSelection(
469
+ selection: CustomSubdomainSelection | null,
470
+ ) {
471
+ this.customSubdomainSelection = selection;
472
+ }
473
+
474
+ private getRealmName(): string {
475
+ const realmUrl = this.currentRealmURL;
476
+ if (!realmUrl) {
477
+ throw new Error('Current realm URL is not available');
478
+ }
479
+
480
+ try {
481
+ const pathSegments = new URL(realmUrl).pathname
482
+ .split('/')
483
+ .filter((segment) => segment);
484
+ const lastSegment = pathSegments[pathSegments.length - 1];
485
+
486
+ if (!lastSegment) {
487
+ throw new Error('Could not extract realm name from URL path');
488
+ }
489
+
490
+ return lastSegment.toLowerCase();
491
+ } catch (error) {
492
+ if (error instanceof Error) {
493
+ throw new Error(`Failed to parse realm URL: ${error.message}`);
494
+ }
495
+ throw new Error('Failed to parse realm URL');
496
+ }
497
+ }
498
+
499
+ @action
500
+ toggleDefaultDomain(event: Event) {
501
+ const defaultUrl = this.subdirectoryRealmUrl;
502
+ const input = event.target as HTMLInputElement;
503
+ if (input.checked) {
504
+ this.addPublishedRealmUrl(defaultUrl);
505
+ } else {
506
+ this.removePublishedRealmUrl(defaultUrl);
507
+ }
508
+ }
509
+
510
+ @action
511
+ toggleCustomSubdomain(event: Event) {
512
+ if (this.claimedDomain) {
513
+ const customUrl = this.buildPublishedRealmUrl(
514
+ this.claimedDomain.hostname,
515
+ );
516
+ const input = event.target as HTMLInputElement;
517
+ if (input.checked) {
518
+ this.addPublishedRealmUrl(customUrl);
519
+ } else {
520
+ this.removePublishedRealmUrl(customUrl);
521
+ }
522
+ }
523
+ }
524
+
525
+ @action
526
+ toggleCustomSubdomainOverride(event: Event) {
527
+ const overrideUrl = this.customSubdomainOverrideUrl;
528
+ if (!overrideUrl) {
529
+ return;
530
+ }
531
+ const input = event.target as HTMLInputElement;
532
+ if (input.checked) {
533
+ this.addPublishedRealmUrl(overrideUrl);
534
+ } else {
535
+ this.removePublishedRealmUrl(overrideUrl);
536
+ }
537
+ }
538
+
539
+ private addPublishedRealmUrl(url: string) {
540
+ if (!this.selectedPublishedRealmURLs.includes(url)) {
541
+ this.selectedPublishedRealmURLs = [
542
+ ...this.selectedPublishedRealmURLs,
543
+ url,
544
+ ];
545
+ }
546
+ }
547
+
548
+ private removePublishedRealmUrl(url: string | undefined) {
549
+ if (!url) {
550
+ return;
551
+ }
552
+ if (this.selectedPublishedRealmURLs.includes(url)) {
553
+ this.selectedPublishedRealmURLs = this.selectedPublishedRealmURLs.filter(
554
+ (selectedUrl) => selectedUrl !== url,
555
+ );
556
+ }
557
+ }
558
+
559
+ @action
560
+ openCustomSubdomainSetup() {
561
+ this.isCustomSubdomainSetupVisible = true;
562
+ this.customSubdomain =
563
+ this.customSubdomainSelection?.subdomain ?? this.customSubdomain;
564
+ }
565
+
566
+ @action
567
+ cancelCustomSubdomainSetup() {
568
+ this.isCustomSubdomainSetupVisible = false;
569
+ this.customSubdomain = this.customSubdomainSelection?.subdomain ?? '';
570
+ this.clearCustomSubdomainFeedback();
571
+ }
572
+
573
+ @action
574
+ handleCustomSubdomainInput(event: Event) {
575
+ const input = event.target as HTMLInputElement;
576
+ const value = input.value.trim().toLowerCase();
577
+ this.customSubdomain = value;
578
+
579
+ if (
580
+ !value ||
581
+ (this.customSubdomainSelection &&
582
+ value !== this.customSubdomainSelection.subdomain)
583
+ ) {
584
+ this.setCustomSubdomainSelection(null);
585
+ }
586
+
587
+ this.clearCustomSubdomainFeedback();
588
+ }
589
+
590
+ private handleClaimCustomSubdomainTask = restartableTask(
591
+ async (event: Event) => {
592
+ event.preventDefault();
593
+
594
+ let subdomain = this.customSubdomain;
595
+
596
+ this.isCheckingCustomSubdomain = true;
597
+ this.clearCustomSubdomainFeedback();
598
+
599
+ try {
600
+ let result = await this.realmServer.checkDomainAvailability(subdomain);
601
+ this.customSubdomainAvailability = result;
602
+
603
+ if (result.available) {
604
+ // Keep the full domain including port if present (e.g., "localhost:4201")
605
+ let baseDomain = this.customSubdomainBase;
606
+ let hostname = `${subdomain}.${baseDomain}`;
607
+ let publishedUrl = this.buildPublishedRealmUrl(hostname);
608
+ this.setCustomSubdomainSelection({ url: publishedUrl, subdomain });
609
+
610
+ try {
611
+ let claimResult = (await this.realmServer.claimBoxelDomain(
612
+ this.currentRealmURL,
613
+ hostname,
614
+ )) as {
615
+ data: {
616
+ id: string;
617
+ attributes: {
618
+ subdomain: string;
619
+ hostname: string;
620
+ sourceRealmURL: string;
621
+ };
622
+ };
623
+ };
624
+ this.applyClaimedDomain(
625
+ {
626
+ id: claimResult.data.id,
627
+ subdomain: claimResult.data.attributes.subdomain,
628
+ hostname: claimResult.data.attributes.hostname,
629
+ sourceRealmURL: claimResult.data.attributes.sourceRealmURL,
630
+ },
631
+ { select: true },
632
+ );
633
+ this.isCustomSubdomainSetupVisible = false;
634
+ } catch (claimError) {
635
+ let errorMessage = (claimError as Error).message;
636
+
637
+ this.customSubdomainError = errorMessage;
638
+ this.setCustomSubdomainSelection(null);
639
+ }
640
+ } else {
641
+ this.customSubdomainError =
642
+ result.error ?? 'This name is already taken';
643
+ this.setCustomSubdomainSelection(null);
644
+ }
645
+ } catch (error) {
646
+ this.customSubdomainError =
647
+ error instanceof Error
648
+ ? error.message
649
+ : 'Failed to check site name availability';
650
+ this.customSubdomainAvailability = null;
651
+ this.setCustomSubdomainSelection(null);
652
+ } finally {
653
+ this.isCheckingCustomSubdomain = false;
654
+ }
655
+ },
656
+ );
657
+
658
+ get customSubdomainIndexUrl() {
659
+ if (this.claimedDomainPublishedUrl) {
660
+ return this.claimedDomainPublishedUrl;
661
+ }
662
+ return null;
663
+ }
664
+
665
+ @action
666
+ handleCancel() {
667
+ this.args.onClose();
668
+ }
669
+
670
+ isUnpublishingRealm = (publishedRealmURL: string) => {
671
+ return this.realm.isUnpublishingRealm(
672
+ this.currentRealmURL,
673
+ publishedRealmURL,
674
+ );
675
+ };
676
+
677
+ get isUnpublishingAnyRealms() {
678
+ return this.realm.isUnpublishingAnyRealms(this.currentRealmURL);
679
+ }
680
+
681
+ get isPublishing() {
682
+ return this.realm.isPublishing(this.currentRealmURL);
683
+ }
684
+
685
+ getPublishErrorForUrl = (url: string): string | null => {
686
+ const error = this.args.publishError;
687
+ if (error?.urlErrors) {
688
+ return error.urlErrors.get(url) || null;
689
+ }
690
+ return null;
691
+ };
692
+
693
+ get publishErrorForCustomSubdomain() {
694
+ if (!this.claimedDomainPublishedUrl) {
695
+ return null;
696
+ }
697
+ return this.getPublishErrorForUrl(this.claimedDomainPublishedUrl);
698
+ }
699
+
700
+ get publishErrorForCustomSubdomainOverride() {
701
+ if (!this.customSubdomainOverrideUrl) {
702
+ return null;
703
+ }
704
+ return this.getPublishErrorForUrl(this.customSubdomainOverrideUrl);
705
+ }
706
+
707
+ ensureInitialSelectionsTask = restartableTask(
708
+ async (claim: ClaimedDomain | null = null) => {
709
+ await this.realm.ensureRealmMeta(this.currentRealmURL);
710
+ this.applyInitialSelections(claim);
711
+ },
712
+ );
713
+
714
+ private applyInitialSelections(claim: ClaimedDomain | null = null) {
715
+ let selections = this.initialSelectionsSet
716
+ ? this.selectedPublishedRealmURLs
717
+ : [...this.hostModeService.publishedRealmURLs];
718
+
719
+ if (claim) {
720
+ let claimedUrl = this.buildPublishedRealmUrl(claim.hostname);
721
+ if (!selections.includes(claimedUrl)) {
722
+ selections = [...selections, claimedUrl];
723
+ }
724
+ }
725
+
726
+ if (
727
+ !this.initialSelectionsSet ||
728
+ selections !== this.selectedPublishedRealmURLs
729
+ ) {
730
+ this.selectedPublishedRealmURLs = [...selections];
731
+ }
732
+
733
+ this.initialSelectionsSet = true;
734
+ }
735
+
736
+ <template>
737
+ <ModalContainer
738
+ class='publish-realm-modal'
739
+ @cardContainerClass='publish-realm'
740
+ @title='Where to?'
741
+ @size='medium'
742
+ @isOpen={{@isOpen}}
743
+ @onClose={{this.handleCancel}}
744
+ data-test-publish-realm-modal
745
+ >
746
+ <:header>
747
+ <div class='modal-subtitle'>
748
+ Choose which domains you'd like to publish to
749
+ </div>
750
+ </:header>
751
+ <:content>
752
+ {{#if this.privateDependencyCheckError}}
753
+ <div class='publish-warning error' data-test-private-dependency-error>
754
+ {{this.privateDependencyCheckError}}
755
+ </div>
756
+ {{else if this.isCheckingPrivateDependencies}}
757
+ <div
758
+ class='publish-warning info'
759
+ data-test-private-dependency-loading
760
+ >
761
+ <LoadingIndicator />
762
+ Checking for private dependencies…
763
+ </div>
764
+ {{else}}
765
+ {{#if this.shouldShowPrivateDependencyWarning}}
766
+ <div
767
+ class='publish-warning warning'
768
+ data-test-private-dependency-warning
769
+ >
770
+ <WarningIcon
771
+ class='publish-warning-icon'
772
+ width='20'
773
+ height='20'
774
+ role='presentation'
775
+ />
776
+ <div class='publish-warning-body'>
777
+ <div>
778
+ This workspace will have rendering errors when published
779
+ because of private external dependencies.
780
+ </div>
781
+ <ul class='violation-list'>
782
+ {{#each this.privateDependencyViolations as |violation|}}
783
+ <PrivateDependencyViolationComponent
784
+ @violation={{violation}}
785
+ @privateRealmURLs={{this.privateRealmURLsForViolation
786
+ violation
787
+ }}
788
+ />
789
+ {{/each}}
790
+ </ul>
791
+ </div>
792
+ </div>
793
+ {{/if}}
794
+ {{#if this.shouldShowErrorDocumentWarning}}
795
+ <div
796
+ class='publish-warning warning'
797
+ data-test-error-document-warning
798
+ >
799
+ <WarningIcon
800
+ class='publish-warning-icon'
801
+ width='20'
802
+ height='20'
803
+ role='presentation'
804
+ />
805
+ <div class='publish-warning-body'>
806
+ <div>
807
+ This workspace contains cards that failed to index and cannot
808
+ be safely published.
809
+ </div>
810
+ <ul class='violation-list'>
811
+ {{#each this.errorDocumentViolations as |violation|}}
812
+ <li>
813
+ {{violation.resource}}
814
+ </li>
815
+ {{/each}}
816
+ </ul>
817
+ </div>
818
+ </div>
819
+ {{/if}}
820
+ {{/if}}
821
+
822
+ <div class='domain-options'>
823
+ <div class='domain-option'>
824
+ <input
825
+ type='checkbox'
826
+ id='default-domain-checkbox'
827
+ checked={{this.isSubdirectoryRealmSelected}}
828
+ {{on 'change' this.toggleDefaultDomain}}
829
+ class='domain-checkbox'
830
+ data-test-default-domain-checkbox
831
+ disabled={{this.isUnpublishingAnyRealms}}
832
+ />
833
+ <label class='option-title' for='default-domain-checkbox'>Your Boxel
834
+ Space</label>
835
+
836
+ <div class='domain-details'>
837
+ <WithLoadedRealm @realmURL={{this.currentRealmURL}} as |realm|>
838
+ <RealmIcon @realmInfo={{realm.info}} class='realm-icon' />
839
+ </WithLoadedRealm>
840
+ <div class='domain-url-container'>
841
+ <span class='domain-url'>
842
+ <span
843
+ class='url-part'
844
+ >{{this.subdirectoryRealmParts.baseUrl}}</span><span
845
+ class='url-part-bold'
846
+ >{{this.subdirectoryRealmParts.realmName}}/</span>
847
+ </span>
848
+ {{#if this.isSubdirectoryRealmPublished}}
849
+ <div class='domain-info'>
850
+ <span
851
+ class='last-published-at'
852
+ data-test-last-published-at
853
+ >Published
854
+ {{this.lastPublishedTime}}</span>
855
+ <BoxelButton
856
+ @kind='text-only'
857
+ @size='extra-small'
858
+ @disabled={{this.isUnpublishingRealm
859
+ this.subdirectoryRealmUrl
860
+ }}
861
+ class='unpublish-button'
862
+ {{on
863
+ 'click'
864
+ (fn @handleUnpublish this.subdirectoryRealmUrl)
865
+ }}
866
+ data-test-unpublish-button
867
+ >
868
+ {{#if
869
+ (this.isUnpublishingRealm this.subdirectoryRealmUrl)
870
+ }}
871
+ <LoadingIndicator />
872
+ Unpublishing…
873
+ {{else}}
874
+ <Undo2 width='11' height='11' class='unpublish-icon' />
875
+ Unpublish
876
+ {{/if}}
877
+
878
+ </BoxelButton>
879
+ </div>
880
+ {{/if}}
881
+ </div>
882
+ </div>
883
+ {{#if this.isSubdirectoryRealmPublished}}
884
+ <BoxelButton
885
+ @as='anchor'
886
+ @kind='secondary-light'
887
+ @size='small'
888
+ @href={{this.subdirectoryRealmUrl}}
889
+ @disabled={{this.isUnpublishingAnyRealms}}
890
+ class='action'
891
+ target='_blank'
892
+ rel='noopener noreferrer'
893
+ data-test-open-boxel-space-button
894
+ >
895
+ <ExternalLink width='16' height='16' class='button-icon' />
896
+ Open Site
897
+ </BoxelButton>
898
+ {{/if}}
899
+ {{#if (this.getPublishErrorForUrl this.subdirectoryRealmUrl)}}
900
+ <div
901
+ class='domain-publish-error'
902
+ data-test-domain-publish-error={{this.subdirectoryRealmUrl}}
903
+ >
904
+ <span class='error-text'>{{this.getPublishErrorForUrl
905
+ this.subdirectoryRealmUrl
906
+ }}</span>
907
+ </div>
908
+ {{/if}}
909
+ </div>
910
+
911
+ <div class='domain-option'>
912
+ <input
913
+ type='checkbox'
914
+ id='custom-subdomain-checkbox'
915
+ class='domain-checkbox'
916
+ checked={{this.isCustomSubdomainSelected}}
917
+ data-test-custom-subdomain-checkbox
918
+ disabled={{not this.claimedDomain}}
919
+ {{on 'change' this.toggleCustomSubdomain}}
920
+ />
921
+ <label class='option-title' for='custom-subdomain-checkbox'>Custom
922
+ Site Name</label>
923
+ {{#if this.isCustomSubdomainSetupVisible}}
924
+ <BoxelButton
925
+ @size='extra-small'
926
+ @kind='text-only'
927
+ class='custom-subdomain-cancel cancel'
928
+ {{on 'click' this.cancelCustomSubdomainSetup}}
929
+ data-test-custom-subdomain-cancel
930
+ >
931
+ Cancel
932
+ <IconX width='12' height='12' class='cancel-icon' />
933
+ </BoxelButton>
934
+ {{/if}}
935
+ <div
936
+ class='domain-details
937
+ {{if this.isCustomSubdomainSetupVisible "full-width"}}'
938
+ data-test-custom-subdomain-details
939
+ >
940
+ {{#if this.isCustomSubdomainSetupVisible}}
941
+ <div class='custom-subdomain-setup'>
942
+ <label
943
+ class='custom-subdomain-label'
944
+ for='custom-subdomain-input'
945
+ >
946
+ Choose a site name
947
+ </label>
948
+ <div class='custom-subdomain-row'>
949
+ <BoxelInputGroup
950
+ @id='custom-subdomain-input'
951
+ @placeholder='custom-name'
952
+ @value={{this.customSubdomain}}
953
+ @state={{this.customSubdomainState}}
954
+ @errorMessage={{this.customSubdomainError}}
955
+ {{on 'input' this.handleCustomSubdomainInput}}
956
+ class='custom-subdomain-input'
957
+ spellcheck='false'
958
+ data-test-custom-subdomain-input
959
+ >
960
+ <:after as |Accessories|>
961
+ <Accessories.Text
962
+ class='custom-domain-suffix'
963
+ >.{{this.customSubdomainBase}}</Accessories.Text>
964
+ </:after>
965
+ </BoxelInputGroup>
966
+ <BoxelButton
967
+ @kind='primary'
968
+ @size='small'
969
+ class='claim-custom-subdomain-button'
970
+ @disabled={{this.isClaimCustomSubdomainDisabled}}
971
+ {{on
972
+ 'click'
973
+ (perform this.handleClaimCustomSubdomainTask)
974
+ }}
975
+ data-test-claim-custom-subdomain-button
976
+ >
977
+ {{#if this.isCheckingCustomSubdomain}}
978
+ <LoadingIndicator />
979
+ Checking…
980
+ {{else}}
981
+ Claim Site Name
982
+ {{/if}}
983
+ </BoxelButton>
984
+ </div>
985
+ </div>
986
+ {{else if this.claimedDomain}}
987
+ <WithLoadedRealm @realmURL={{this.currentRealmURL}} as |realm|>
988
+ <RealmIcon @realmInfo={{realm.info}} class='realm-icon' />
989
+ </WithLoadedRealm>
990
+ <div class='domain-url-container'>
991
+ <span class='domain-url'>
992
+ <span class='url-part'>{{this.getProtocol}}://</span><span
993
+ class='url-part-bold'
994
+ >{{this.customSubdomainDisplay}}</span><span
995
+ class='url-part'
996
+ >.{{this.customSubdomainBase}}/</span>
997
+ </span>
998
+ {{#if this.claimedDomain}}
999
+ <div class='domain-info'>
1000
+ {{#if this.claimedDomainLastPublishedTime}}
1001
+ <span class='last-published-at'>Published
1002
+ {{this.claimedDomainLastPublishedTime}}</span>
1003
+ {{#if this.claimedDomainPublishedUrl}}
1004
+ <BoxelButton
1005
+ @kind='text-only'
1006
+ @size='extra-small'
1007
+ @disabled={{this.isUnpublishingRealm
1008
+ this.claimedDomainPublishedUrl
1009
+ }}
1010
+ class='unpublish-button'
1011
+ {{on
1012
+ 'click'
1013
+ (fn
1014
+ @handleUnpublish this.claimedDomainPublishedUrl
1015
+ )
1016
+ }}
1017
+ data-test-unpublish-custom-subdomain-button
1018
+ >
1019
+ {{#if
1020
+ (this.isUnpublishingRealm
1021
+ this.claimedDomainPublishedUrl
1022
+ )
1023
+ }}
1024
+ <LoadingIndicator />
1025
+ Unpublishing…
1026
+ {{else}}
1027
+ <Undo2
1028
+ width='11'
1029
+ height='11'
1030
+ class='unpublish-icon'
1031
+ />
1032
+ Unpublish
1033
+ {{/if}}
1034
+ </BoxelButton>
1035
+ {{/if}}
1036
+ {{else}}
1037
+ <span class='not-published-yet'>Not published yet</span>
1038
+ {{/if}}
1039
+ {{#if this.shouldShowUnclaimDomainButton}}
1040
+ <BoxelButton
1041
+ @kind='text-only'
1042
+ @size='extra-small'
1043
+ class='unpublish-button unclaim-button'
1044
+ @disabled={{this.isUnclaimDomainButtonDisabled}}
1045
+ {{on
1046
+ 'click'
1047
+ (perform this.handleUnclaimCustomSubdomainTask)
1048
+ }}
1049
+ data-test-unclaim-custom-subdomain-button
1050
+ >
1051
+ {{#if
1052
+ this.handleUnclaimCustomSubdomainTask.isRunning
1053
+ }}
1054
+ <LoadingIndicator />
1055
+ Unclaiming…
1056
+ {{else}}
1057
+ Unclaim Site Name
1058
+ {{/if}}
1059
+ </BoxelButton>
1060
+ {{/if}}
1061
+ </div>
1062
+ {{/if}}
1063
+ </div>
1064
+ {{else}}
1065
+ <span class='domain-url'>
1066
+ <span class='url-part'>{{this.getProtocol}}://</span><span
1067
+ class='url-part'
1068
+ >{{this.customSubdomainDisplay}}</span><span
1069
+ class='url-part-bold'
1070
+ >.{{this.customSubdomainBase}}/</span>
1071
+ </span>
1072
+ {{/if}}
1073
+ </div>
1074
+
1075
+ {{#if (not this.isCustomSubdomainSetupVisible)}}
1076
+ {{#if this.isClaimedDomainPublished}}
1077
+ <BoxelButton
1078
+ @as='anchor'
1079
+ @kind='secondary-light'
1080
+ @size='small'
1081
+ @href={{this.customSubdomainIndexUrl}}
1082
+ @disabled={{this.isUnpublishingAnyRealms}}
1083
+ class='action'
1084
+ target='_blank'
1085
+ rel='noopener noreferrer'
1086
+ data-test-open-custom-subdomain-button
1087
+ >
1088
+ <ExternalLink width='16' height='16' class='button-icon' />
1089
+ Open Site
1090
+ </BoxelButton>
1091
+ {{else if (not this.claimedDomain)}}
1092
+ <BoxelButton
1093
+ @kind='secondary-light'
1094
+ @size='small'
1095
+ class='action'
1096
+ {{on 'click' this.openCustomSubdomainSetup}}
1097
+ data-test-custom-subdomain-setup-button
1098
+ >
1099
+ <Settings width='16' height='16' class='button-icon' />
1100
+ Set Up
1101
+ </BoxelButton>
1102
+ {{/if}}
1103
+ {{/if}}
1104
+ {{#if this.publishErrorForCustomSubdomain}}
1105
+ <div
1106
+ class='domain-publish-error'
1107
+ data-test-domain-publish-error={{this.claimedDomainPublishedUrl}}
1108
+ >
1109
+ <span
1110
+ class='error-text'
1111
+ >{{this.publishErrorForCustomSubdomain}}</span>
1112
+ </div>
1113
+ {{/if}}
1114
+ </div>
1115
+
1116
+ {{#if this.shouldShowCustomSubdomainOverride}}
1117
+ {{#let this.customSubdomainOverrideUrl as |overrideUrl|}}
1118
+ {{#if overrideUrl}}
1119
+ <div class='domain-option'>
1120
+ <input
1121
+ type='checkbox'
1122
+ id='custom-subdomain-override-checkbox'
1123
+ class='domain-checkbox'
1124
+ checked={{this.isCustomSubdomainOverrideSelected}}
1125
+ {{on 'change' this.toggleCustomSubdomainOverride}}
1126
+ data-test-custom-subdomain-override-checkbox
1127
+ disabled={{this.isUnpublishingAnyRealms}}
1128
+ />
1129
+ <label
1130
+ class='option-title'
1131
+ for='custom-subdomain-override-checkbox'
1132
+ >Custom Domain Override</label>
1133
+ <div class='domain-details'>
1134
+ <WithLoadedRealm
1135
+ @realmURL={{this.currentRealmURL}}
1136
+ as |realm|
1137
+ >
1138
+ <RealmIcon @realmInfo={{realm.info}} class='realm-icon' />
1139
+ </WithLoadedRealm>
1140
+ <div class='domain-url-container'>
1141
+ <span class='domain-url'>{{overrideUrl}}</span>
1142
+ {{#if this.isCustomSubdomainOverridePublished}}
1143
+ <div class='domain-info'>
1144
+ {{#if this.customSubdomainOverrideLastPublishedTime}}
1145
+ <span class='last-published-at'>Published
1146
+ {{this.customSubdomainOverrideLastPublishedTime}}</span>
1147
+ {{/if}}
1148
+ <BoxelButton
1149
+ @kind='text-only'
1150
+ @size='extra-small'
1151
+ @disabled={{this.isUnpublishingRealm overrideUrl}}
1152
+ class='unpublish-button'
1153
+ {{on 'click' (fn @handleUnpublish overrideUrl)}}
1154
+ data-test-unpublish-custom-subdomain-override-button
1155
+ >
1156
+ {{#if (this.isUnpublishingRealm overrideUrl)}}
1157
+ <LoadingIndicator />
1158
+ Unpublishing…
1159
+ {{else}}
1160
+ <Undo2
1161
+ width='11'
1162
+ height='11'
1163
+ class='unpublish-icon'
1164
+ />
1165
+ Unpublish
1166
+ {{/if}}
1167
+ </BoxelButton>
1168
+ </div>
1169
+ {{else}}
1170
+ <span class='not-published-yet'>Not published yet</span>
1171
+ {{/if}}
1172
+ </div>
1173
+ </div>
1174
+ {{#if this.isCustomSubdomainOverridePublished}}
1175
+ <BoxelButton
1176
+ @as='anchor'
1177
+ @kind='secondary-light'
1178
+ @size='small'
1179
+ @href={{overrideUrl}}
1180
+ @disabled={{this.isUnpublishingAnyRealms}}
1181
+ class='action'
1182
+ target='_blank'
1183
+ rel='noopener noreferrer'
1184
+ data-test-open-custom-subdomain-override-button
1185
+ >
1186
+ <ExternalLink
1187
+ width='16'
1188
+ height='16'
1189
+ class='button-icon'
1190
+ />
1191
+ Open Site
1192
+ </BoxelButton>
1193
+ {{/if}}
1194
+ {{#if this.publishErrorForCustomSubdomainOverride}}
1195
+ <div
1196
+ class='domain-publish-error'
1197
+ data-test-domain-publish-error={{overrideUrl}}
1198
+ >
1199
+ <span
1200
+ class='error-text'
1201
+ >{{this.publishErrorForCustomSubdomainOverride}}</span>
1202
+ </div>
1203
+ {{/if}}
1204
+ </div>
1205
+ {{/if}}
1206
+ {{/let}}
1207
+ {{/if}}
1208
+ </div>
1209
+ </:content>
1210
+
1211
+ <:footer>
1212
+ {{#if @isOpen}}
1213
+ <div class='footer-buttons'>
1214
+ <BoxelButton
1215
+ @kind='primary'
1216
+ @size='tall'
1217
+ {{on 'click' (fn @handlePublish this.selectedPublishedRealmURLs)}}
1218
+ @disabled={{this.isPublishDisabled}}
1219
+ class='publish-button'
1220
+ data-test-publish-button
1221
+ >
1222
+ {{#if this.isPublishing}}
1223
+ <LoadingIndicator />
1224
+ Publishing…
1225
+ {{else}}
1226
+ Publish to selected domains
1227
+ {{/if}}
1228
+ </BoxelButton>
1229
+ </div>
1230
+ {{/if}}
1231
+ </:footer>
1232
+ </ModalContainer>
1233
+
1234
+ {{! this is spuriously triggered because of multi-line grid-template-areas below }}
1235
+ {{! template-lint-disable no-whitespace-for-layout }}
1236
+ <style scoped>
1237
+ .publish-realm-modal {
1238
+ --horizontal-gap: var(--boxel-sp-xs);
1239
+ --stack-card-footer-height: auto;
1240
+ }
1241
+
1242
+ .publish-realm-modal > :deep(.boxel-modal__inner) {
1243
+ display: flex;
1244
+ }
1245
+
1246
+ .publish-realm-modal :deep(.dialog-box__content) {
1247
+ display: flex;
1248
+ flex-direction: column;
1249
+ }
1250
+
1251
+ :deep(.publish-realm) {
1252
+ height: 32rem;
1253
+ }
1254
+
1255
+ :deep(.dialog-box__header) {
1256
+ gap: var(--boxel-sp-xxxs);
1257
+ }
1258
+
1259
+ .modal-subtitle {
1260
+ font-size: normal var(--boxel-font-sm);
1261
+ color: var(--boxel-dark);
1262
+ }
1263
+
1264
+ .publish-warning {
1265
+ display: flex;
1266
+ flex-direction: column;
1267
+ gap: var(--boxel-sp-xs);
1268
+ margin-bottom: var(--boxel-sp);
1269
+ padding: var(--boxel-sp-sm);
1270
+ border-radius: var(--boxel-border-radius-lg);
1271
+ font-size: var(--boxel-font-size-sm);
1272
+ }
1273
+
1274
+ .publish-warning.warning {
1275
+ flex-direction: row;
1276
+ align-items: flex-start;
1277
+ gap: var(--boxel-sp-sm);
1278
+ background-color: var(--boxel-warning-200);
1279
+ color: var(--boxel-dark);
1280
+ }
1281
+
1282
+ .publish-warning-body {
1283
+ display: flex;
1284
+ flex-direction: column;
1285
+ gap: var(--boxel-sp-xs);
1286
+ }
1287
+
1288
+ .publish-warning-icon {
1289
+ flex-shrink: 0;
1290
+ }
1291
+
1292
+ .publish-warning.error {
1293
+ border: 1px solid var(--boxel-error-200);
1294
+ background-color: rgb(from var(--boxel-error-200) r g b / 8%);
1295
+ color: var(--boxel-error-200);
1296
+ }
1297
+
1298
+ .publish-warning.info {
1299
+ border: 1px solid var(--boxel-300);
1300
+ background-color: var(--boxel-50);
1301
+ color: var(--boxel-500);
1302
+ align-items: center;
1303
+ gap: var(--boxel-sp-xxs);
1304
+ }
1305
+
1306
+ .violation-list {
1307
+ list-style: none;
1308
+ margin: 0;
1309
+ padding: 0;
1310
+ display: flex;
1311
+ flex-direction: column;
1312
+ gap: var(--boxel-sp-xs);
1313
+ }
1314
+
1315
+ .domain-options {
1316
+ display: flex;
1317
+ flex-direction: column;
1318
+ gap: var(--boxel-sp);
1319
+ }
1320
+
1321
+ .domain-option {
1322
+ display: grid;
1323
+ grid-template-areas:
1324
+ 'checkbox . title cancel'
1325
+ '. . details action'
1326
+ '. . error error';
1327
+
1328
+ grid-template-columns: auto var(--boxel-sp-sm) 1fr auto;
1329
+
1330
+ align-items: center;
1331
+ padding-top: var(--boxel-sp-lg);
1332
+ padding-bottom: var(--boxel-sp-xl);
1333
+ border: 1px solid transparent;
1334
+ }
1335
+
1336
+ .domain-option:not(:last-child) {
1337
+ border-bottom: 1px solid var(--boxel-200);
1338
+ }
1339
+
1340
+ .cancel {
1341
+ grid-area: cancel;
1342
+ }
1343
+
1344
+ .domain-checkbox {
1345
+ grid-area: checkbox;
1346
+
1347
+ flex-shrink: 0;
1348
+ }
1349
+
1350
+ .option-title {
1351
+ grid-area: title;
1352
+
1353
+ font: 600 var(--boxel-font);
1354
+ color: var(--boxel-dark);
1355
+ }
1356
+
1357
+ .domain-details {
1358
+ grid-area: details;
1359
+
1360
+ display: flex;
1361
+ align-items: center;
1362
+ gap: var(--boxel-sp-sm);
1363
+ margin-top: var(--boxel-sp);
1364
+ }
1365
+
1366
+ .domain-details.full-width {
1367
+ grid-column: 3 / -1;
1368
+ }
1369
+
1370
+ .realm-icon {
1371
+ flex-shrink: 0;
1372
+ --boxel-realm-icon-size: 30px;
1373
+ }
1374
+
1375
+ .domain-url-container {
1376
+ display: flex;
1377
+ flex-direction: column;
1378
+ }
1379
+
1380
+ .domain-url {
1381
+ flex: 1;
1382
+ font-size: var(--boxel-font-size-sm);
1383
+ }
1384
+
1385
+ .url-part {
1386
+ color: var(--boxel-450);
1387
+ }
1388
+
1389
+ .url-part-bold {
1390
+ color: var(--boxel-dark);
1391
+ font-weight: 500;
1392
+ }
1393
+
1394
+ .domain-info {
1395
+ display: flex;
1396
+ align-items: center;
1397
+ gap: var(--boxel-sp-sm);
1398
+ }
1399
+
1400
+ .last-published-at,
1401
+ .not-published-yet {
1402
+ font: normal var(--boxel-font-xs);
1403
+ position: relative;
1404
+ padding-left: calc(var(--boxel-sp-xxxs) + 3px);
1405
+ }
1406
+
1407
+ .last-published-at {
1408
+ color: #00ac00;
1409
+ }
1410
+
1411
+ .not-published-yet {
1412
+ color: var(--boxel-450);
1413
+ }
1414
+
1415
+ .last-published-at::before,
1416
+ .not-published-yet::before {
1417
+ content: '•';
1418
+ position: absolute;
1419
+ left: 0;
1420
+ }
1421
+
1422
+ .unpublish-button {
1423
+ display: flex;
1424
+ align-items: center;
1425
+ gap: var(--boxel-sp-xxxs);
1426
+ background-color: transparent;
1427
+ border: none;
1428
+ --boxel-button-min-height: 0;
1429
+ }
1430
+
1431
+ .unpublish-icon {
1432
+ flex-shrink: 0;
1433
+ }
1434
+
1435
+ .unpublish-button:not(:disabled):hover {
1436
+ color: var(--boxel-dark);
1437
+ }
1438
+
1439
+ .publish-button {
1440
+ display: flex;
1441
+ align-items: center;
1442
+ gap: var(--boxel-sp-xxxs);
1443
+ }
1444
+
1445
+ .action {
1446
+ grid-area: action;
1447
+
1448
+ margin: auto 0;
1449
+ flex-shrink: 0;
1450
+ margin-left: auto;
1451
+ display: flex;
1452
+ align-items: center;
1453
+ gap: var(--boxel-sp-xxxs);
1454
+ font-size: var(--boxel-font-size-xs);
1455
+ text-decoration: none;
1456
+ }
1457
+
1458
+ .action.disabled {
1459
+ pointer-events: none;
1460
+ opacity: 0.5;
1461
+ }
1462
+
1463
+ .domain-option.claiming .action {
1464
+ margin-top: calc(var(--boxel-sp-xl) + var(--boxel-sp-xxxs));
1465
+ }
1466
+
1467
+ .button-icon {
1468
+ flex-shrink: 0;
1469
+ }
1470
+
1471
+ .footer-buttons {
1472
+ display: flex;
1473
+ margin-left: auto;
1474
+ gap: var(--horizontal-gap);
1475
+ }
1476
+
1477
+ .custom-subdomain-setup {
1478
+ display: flex;
1479
+ flex-direction: column;
1480
+ gap: var(--boxel-sp-xxxs);
1481
+ width: 100%;
1482
+ }
1483
+
1484
+ .custom-subdomain-label {
1485
+ font-size: var(--boxel-font-size-xs);
1486
+ font-weight: 600;
1487
+ color: var(--boxel-dark);
1488
+ }
1489
+
1490
+ .custom-subdomain-row {
1491
+ display: flex;
1492
+ align-items: center;
1493
+ gap: var(--boxel-sp-xs);
1494
+ }
1495
+
1496
+ .custom-subdomain-row :deep(.container) {
1497
+ flex: 1;
1498
+ }
1499
+
1500
+ .custom-subdomain-row .claim-custom-subdomain-button {
1501
+ flex-shrink: 0;
1502
+ }
1503
+
1504
+ .custom-domain-suffix {
1505
+ color: var(--boxel-450);
1506
+ }
1507
+
1508
+ .custom-subdomain-cancel {
1509
+ gap: var(--boxel-sp-xxxs);
1510
+ margin-left: auto;
1511
+ }
1512
+
1513
+ .domain-publish-error {
1514
+ grid-area: error;
1515
+ display: flex;
1516
+ align-items: center;
1517
+ gap: var(--boxel-sp-xxxs);
1518
+ margin-top: var(--boxel-sp-xs);
1519
+ }
1520
+
1521
+ .domain-publish-error .error-text {
1522
+ flex: 1;
1523
+ color: var(--boxel-error-200);
1524
+ font-size: var(--boxel-font-size-xs);
1525
+ font-weight: 500;
1526
+ }
1527
+ </style>
1528
+ </template>
1529
+ }