@adobe/data 0.9.7 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/data.d.ts +1 -1
  2. package/ecs/database/combine-plugins.d.ts +14 -7
  3. package/ecs/database/combine-plugins.js +6 -3
  4. package/ecs/database/combine-plugins.js.map +1 -1
  5. package/ecs/database/create-plugin.d.ts +37 -17
  6. package/ecs/database/create-plugin.js +3 -30
  7. package/ecs/database/create-plugin.js.map +1 -1
  8. package/ecs/database/create-plugin.test.js +55 -0
  9. package/ecs/database/create-plugin.test.js.map +1 -1
  10. package/ecs/database/create-plugin.type-test.js +157 -0
  11. package/ecs/database/create-plugin.type-test.js.map +1 -1
  12. package/ecs/database/database-schema/create-database-schema.js +3 -3
  13. package/ecs/database/database-schema/create-database-schema.js.map +1 -1
  14. package/ecs/database/database.d.ts +43 -5
  15. package/ecs/database/database.js.map +1 -1
  16. package/ecs/database/observe-dependent-value.test.js +39 -31
  17. package/ecs/database/observe-dependent-value.test.js.map +1 -1
  18. package/ecs/database/observe-select-entities.performance.test.js +30 -31
  19. package/ecs/database/observe-select-entities.performance.test.js.map +1 -1
  20. package/ecs/database/observe-select-entities.test.js +30 -31
  21. package/ecs/database/observe-select-entities.test.js.map +1 -1
  22. package/ecs/database/observed/create-observed-database.js +7 -0
  23. package/ecs/database/observed/create-observed-database.js.map +1 -1
  24. package/ecs/database/public/create-database.d.ts +5 -34
  25. package/ecs/database/public/create-database.js +68 -131
  26. package/ecs/database/public/create-database.js.map +1 -1
  27. package/ecs/database/public/create-database.test.js +324 -62
  28. package/ecs/database/public/create-database.test.js.map +1 -1
  29. package/ecs/database/transactional-store/create-transactional-store.js +16 -1
  30. package/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
  31. package/ecs/plugins/scheduler/scheduler.d.ts +2 -2
  32. package/ecs/plugins/scheduler/scheduler.js +2 -2
  33. package/ecs/plugins/scheduler/scheduler.js.map +1 -1
  34. package/ecs/undo-redo-service/create-undo-redo-service.test.js +22 -23
  35. package/ecs/undo-redo-service/create-undo-redo-service.test.js.map +1 -1
  36. package/package.json +6 -24
  37. package/service/async-data-service/create-lazy.d.ts +40 -0
  38. package/service/async-data-service/create-lazy.js +194 -0
  39. package/service/async-data-service/create-lazy.js.map +1 -0
  40. package/service/async-data-service/create-lazy.test.js +477 -0
  41. package/service/async-data-service/create-lazy.test.js.map +1 -0
  42. package/service/async-data-service/example.d.ts +60 -0
  43. package/service/async-data-service/example.js +35 -0
  44. package/service/async-data-service/example.js.map +1 -0
  45. package/service/async-data-service/index.d.ts +1 -0
  46. package/service/async-data-service/index.js +3 -0
  47. package/service/async-data-service/index.js.map +1 -0
  48. package/service/{is-data-service.d.ts → async-data-service/is-valid.d.ts} +4 -4
  49. package/{lit/hooks/component/component.js → service/async-data-service/is-valid.js} +1 -1
  50. package/service/async-data-service/is-valid.js.map +1 -0
  51. package/service/async-data-service/public.d.ts +2 -0
  52. package/service/async-data-service/public.js +4 -0
  53. package/service/async-data-service/public.js.map +1 -0
  54. package/service/index.d.ts +1 -1
  55. package/service/index.js +1 -0
  56. package/service/index.js.map +1 -1
  57. package/tsconfig.tsbuildinfo +1 -1
  58. package/ecs/database/combine-plugins-test.d.ts +0 -39
  59. package/ecs/database/combine-plugins-test.js +0 -3
  60. package/ecs/database/combine-plugins-test.js.map +0 -1
  61. package/ecs/database/create-plugin-cryos-pattern.test.d.ts +0 -3
  62. package/ecs/database/create-plugin-cryos-pattern.test.js +0 -83
  63. package/ecs/database/create-plugin-cryos-pattern.test.js.map +0 -1
  64. package/ecs/database/create-plugin-graphics.test.d.ts +0 -93
  65. package/ecs/database/create-plugin-graphics.test.js +0 -135
  66. package/ecs/database/create-plugin-graphics.test.js.map +0 -1
  67. package/ecs/database/create-plugin-type.type-test.js +0 -563
  68. package/ecs/database/create-plugin-type.type-test.js.map +0 -1
  69. package/ecs/database/create-plugin-type.type.test.d.ts +0 -1
  70. package/ecs/database/create-plugin-type.type.test.js +0 -563
  71. package/ecs/database/create-plugin-type.type.test.js.map +0 -1
  72. package/ecs/database/experimental-action-types.d.ts +0 -1
  73. package/ecs/database/experimental-action-types.js +0 -275
  74. package/ecs/database/experimental-action-types.js.map +0 -1
  75. package/ecs/database/from-plugin.type-test.d.ts +0 -1
  76. package/ecs/database/from-plugin.type-test.js +0 -180
  77. package/ecs/database/from-plugin.type-test.js.map +0 -1
  78. package/ecs/database/plugin-types.d.ts +0 -1
  79. package/ecs/database/plugin-types.js +0 -5
  80. package/ecs/database/plugin-types.js.map +0 -1
  81. package/ecs/database/type-investigation.test.d.ts +0 -1
  82. package/ecs/database/type-investigation.test.js +0 -54
  83. package/ecs/database/type-investigation.test.js.map +0 -1
  84. package/lit/decorators/apply-decorator.d.ts +0 -1
  85. package/lit/decorators/apply-decorator.js +0 -19
  86. package/lit/decorators/apply-decorator.js.map +0 -1
  87. package/lit/decorators/apply-service-decorators.d.ts +0 -1
  88. package/lit/decorators/apply-service-decorators.js +0 -13
  89. package/lit/decorators/apply-service-decorators.js.map +0 -1
  90. package/lit/decorators/index.d.ts +0 -3
  91. package/lit/decorators/index.js +0 -5
  92. package/lit/decorators/index.js.map +0 -1
  93. package/lit/decorators/require-service.d.ts +0 -1
  94. package/lit/decorators/require-service.js +0 -14
  95. package/lit/decorators/require-service.js.map +0 -1
  96. package/lit/elements/application-element.d.ts +0 -9
  97. package/lit/elements/application-element.js +0 -42
  98. package/lit/elements/application-element.js.map +0 -1
  99. package/lit/elements/application-host.d.ts +0 -16
  100. package/lit/elements/application-host.js +0 -39
  101. package/lit/elements/application-host.js.map +0 -1
  102. package/lit/elements/database-element.d.ts +0 -10
  103. package/lit/elements/database-element.js +0 -40
  104. package/lit/elements/database-element.js.map +0 -1
  105. package/lit/elements/index.d.ts +0 -3
  106. package/lit/elements/index.js +0 -5
  107. package/lit/elements/index.js.map +0 -1
  108. package/lit/functions/index.d.ts +0 -1
  109. package/lit/functions/index.js +0 -3
  110. package/lit/functions/index.js.map +0 -1
  111. package/lit/functions/iterate-self-and-ancestors.d.ts +0 -1
  112. package/lit/functions/iterate-self-and-ancestors.js +0 -24
  113. package/lit/functions/iterate-self-and-ancestors.js.map +0 -1
  114. package/lit/hooks/attach-decorator.d.ts +0 -4
  115. package/lit/hooks/attach-decorator.js +0 -26
  116. package/lit/hooks/attach-decorator.js.map +0 -1
  117. package/lit/hooks/component/component.d.ts +0 -10
  118. package/lit/hooks/component/component.js.map +0 -1
  119. package/lit/hooks/component/stack.d.ts +0 -6
  120. package/lit/hooks/component/stack.js +0 -16
  121. package/lit/hooks/component/stack.js.map +0 -1
  122. package/lit/hooks/index.d.ts +0 -19
  123. package/lit/hooks/index.js +0 -21
  124. package/lit/hooks/index.js.map +0 -1
  125. package/lit/hooks/use-connected.d.ts +0 -2
  126. package/lit/hooks/use-connected.js +0 -32
  127. package/lit/hooks/use-connected.js.map +0 -1
  128. package/lit/hooks/use-debounce.d.ts +0 -8
  129. package/lit/hooks/use-debounce.js +0 -21
  130. package/lit/hooks/use-debounce.js.map +0 -1
  131. package/lit/hooks/use-drag-observe.d.ts +0 -25
  132. package/lit/hooks/use-drag-observe.js +0 -35
  133. package/lit/hooks/use-drag-observe.js.map +0 -1
  134. package/lit/hooks/use-drag-transaction.d.ts +0 -7
  135. package/lit/hooks/use-drag-transaction.js +0 -35
  136. package/lit/hooks/use-drag-transaction.js.map +0 -1
  137. package/lit/hooks/use-draggable.d.ts +0 -15
  138. package/lit/hooks/use-draggable.js +0 -96
  139. package/lit/hooks/use-draggable.js.map +0 -1
  140. package/lit/hooks/use-effect.d.ts +0 -3
  141. package/lit/hooks/use-effect.js +0 -14
  142. package/lit/hooks/use-effect.js.map +0 -1
  143. package/lit/hooks/use-element.d.ts +0 -7
  144. package/lit/hooks/use-element.js +0 -67
  145. package/lit/hooks/use-element.js.map +0 -1
  146. package/lit/hooks/use-memo.d.ts +0 -1
  147. package/lit/hooks/use-memo.js +0 -13
  148. package/lit/hooks/use-memo.js.map +0 -1
  149. package/lit/hooks/use-observable-values.d.ts +0 -4
  150. package/lit/hooks/use-observable-values.js +0 -9
  151. package/lit/hooks/use-observable-values.js.map +0 -1
  152. package/lit/hooks/use-observable.d.ts +0 -2
  153. package/lit/hooks/use-observable.js +0 -13
  154. package/lit/hooks/use-observable.js.map +0 -1
  155. package/lit/hooks/use-ref.d.ts +0 -3
  156. package/lit/hooks/use-ref.js +0 -7
  157. package/lit/hooks/use-ref.js.map +0 -1
  158. package/lit/hooks/use-resize-observer.d.ts +0 -12
  159. package/lit/hooks/use-resize-observer.js +0 -23
  160. package/lit/hooks/use-resize-observer.js.map +0 -1
  161. package/lit/hooks/use-state.d.ts +0 -2
  162. package/lit/hooks/use-state.js +0 -15
  163. package/lit/hooks/use-state.js.map +0 -1
  164. package/lit/hooks/use-updated.d.ts +0 -4
  165. package/lit/hooks/use-updated.js +0 -40
  166. package/lit/hooks/use-updated.js.map +0 -1
  167. package/lit/hooks/use-window-event.d.ts +0 -1
  168. package/lit/hooks/use-window-event.js +0 -11
  169. package/lit/hooks/use-window-event.js.map +0 -1
  170. package/lit/hooks/with-hooks.d.ts +0 -2
  171. package/lit/hooks/with-hooks.js +0 -16
  172. package/lit/hooks/with-hooks.js.map +0 -1
  173. package/lit/index.d.ts +0 -4
  174. package/lit/index.js +0 -5
  175. package/lit/index.js.map +0 -1
  176. package/normalize.test.d.ts +0 -1
  177. package/normalize.test.js +0 -28
  178. package/normalize.test.js.map +0 -1
  179. package/samples/index.d.ts +0 -13
  180. package/samples/index.js +0 -7
  181. package/samples/index.js.map +0 -1
  182. package/samples/todo/elements/todo-list/todo-list-presentation.d.ts +0 -8
  183. package/samples/todo/elements/todo-list/todo-list-presentation.js +0 -12
  184. package/samples/todo/elements/todo-list/todo-list-presentation.js.map +0 -1
  185. package/samples/todo/elements/todo-list/todo-list.css.d.ts +0 -1
  186. package/samples/todo/elements/todo-list/todo-list.css.js +0 -11
  187. package/samples/todo/elements/todo-list/todo-list.css.js.map +0 -1
  188. package/samples/todo/elements/todo-list/todo-list.d.ts +0 -12
  189. package/samples/todo/elements/todo-list/todo-list.js +0 -44
  190. package/samples/todo/elements/todo-list/todo-list.js.map +0 -1
  191. package/samples/todo/elements/todo-row/index.d.ts +0 -1
  192. package/samples/todo/elements/todo-row/index.js +0 -3
  193. package/samples/todo/elements/todo-row/index.js.map +0 -1
  194. package/samples/todo/elements/todo-row/todo-row-presentation.d.ts +0 -18
  195. package/samples/todo/elements/todo-row/todo-row-presentation.js +0 -50
  196. package/samples/todo/elements/todo-row/todo-row-presentation.js.map +0 -1
  197. package/samples/todo/elements/todo-row/todo-row.css.d.ts +0 -1
  198. package/samples/todo/elements/todo-row/todo-row.css.js +0 -49
  199. package/samples/todo/elements/todo-row/todo-row.css.js.map +0 -1
  200. package/samples/todo/elements/todo-row/todo-row.d.ts +0 -14
  201. package/samples/todo/elements/todo-row/todo-row.js +0 -44
  202. package/samples/todo/elements/todo-row/todo-row.js.map +0 -1
  203. package/samples/todo/elements/todo-toolbar/index.d.ts +0 -1
  204. package/samples/todo/elements/todo-toolbar/index.js +0 -3
  205. package/samples/todo/elements/todo-toolbar/index.js.map +0 -1
  206. package/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.d.ts +0 -22
  207. package/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js +0 -41
  208. package/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js.map +0 -1
  209. package/samples/todo/elements/todo-toolbar/todo-toolbar.css.d.ts +0 -1
  210. package/samples/todo/elements/todo-toolbar/todo-toolbar.css.js +0 -34
  211. package/samples/todo/elements/todo-toolbar/todo-toolbar.css.js.map +0 -1
  212. package/samples/todo/elements/todo-toolbar/todo-toolbar.d.ts +0 -11
  213. package/samples/todo/elements/todo-toolbar/todo-toolbar.js +0 -61
  214. package/samples/todo/elements/todo-toolbar/todo-toolbar.js.map +0 -1
  215. package/samples/todo/elements/todo-undo-redo/index.d.ts +0 -1
  216. package/samples/todo/elements/todo-undo-redo/index.js +0 -3
  217. package/samples/todo/elements/todo-undo-redo/index.js.map +0 -1
  218. package/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.d.ts +0 -17
  219. package/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js +0 -29
  220. package/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js.map +0 -1
  221. package/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.d.ts +0 -1
  222. package/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js +0 -12
  223. package/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js.map +0 -1
  224. package/samples/todo/elements/todo-undo-redo/todo-undo-redo.d.ts +0 -11
  225. package/samples/todo/elements/todo-undo-redo/todo-undo-redo.js +0 -36
  226. package/samples/todo/elements/todo-undo-redo/todo-undo-redo.js.map +0 -1
  227. package/samples/todo/services/dependent-state-service/create-dependent-state-service.d.ts +0 -6
  228. package/samples/todo/services/dependent-state-service/create-dependent-state-service.js +0 -5
  229. package/samples/todo/services/dependent-state-service/create-dependent-state-service.js.map +0 -1
  230. package/samples/todo/services/dependent-state-service/dependent-state/all-todos.d.ts +0 -2
  231. package/samples/todo/services/dependent-state-service/dependent-state/all-todos.js +0 -2
  232. package/samples/todo/services/dependent-state-service/dependent-state/all-todos.js.map +0 -1
  233. package/samples/todo/services/dependent-state-service/dependent-state/complete-todos.d.ts +0 -2
  234. package/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js +0 -2
  235. package/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js.map +0 -1
  236. package/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.d.ts +0 -2
  237. package/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js +0 -2
  238. package/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js.map +0 -1
  239. package/samples/todo/services/dependent-state-service/dependent-state/index.d.ts +0 -3
  240. package/samples/todo/services/dependent-state-service/dependent-state/index.js +0 -5
  241. package/samples/todo/services/dependent-state-service/dependent-state/index.js.map +0 -1
  242. package/samples/todo/services/dependent-state-service/dependent-state-service.d.ts +0 -2
  243. package/samples/todo/services/dependent-state-service/dependent-state-service.js +0 -2
  244. package/samples/todo/services/dependent-state-service/dependent-state-service.js.map +0 -1
  245. package/samples/todo/services/main-service/create-main-service.d.ts +0 -8
  246. package/samples/todo/services/main-service/create-main-service.js +0 -39
  247. package/samples/todo/services/main-service/create-main-service.js.map +0 -1
  248. package/samples/todo/services/main-service/todo-main-service.d.ts +0 -18
  249. package/samples/todo/services/main-service/todo-main-service.js +0 -2
  250. package/samples/todo/services/main-service/todo-main-service.js.map +0 -1
  251. package/samples/todo/services/state-service/create-todo-database.d.ts +0 -37
  252. package/samples/todo/services/state-service/create-todo-database.js +0 -10
  253. package/samples/todo/services/state-service/create-todo-database.js.map +0 -1
  254. package/samples/todo/services/state-service/create-todo-store.d.ts +0 -37
  255. package/samples/todo/services/state-service/create-todo-store.js +0 -24
  256. package/samples/todo/services/state-service/create-todo-store.js.map +0 -1
  257. package/samples/todo/services/state-service/todo-state-service.d.ts +0 -5
  258. package/samples/todo/services/state-service/todo-state-service.js +0 -2
  259. package/samples/todo/services/state-service/todo-state-service.js.map +0 -1
  260. package/samples/todo/services/state-service/transactions/create-bulk-todos.d.ts +0 -2
  261. package/samples/todo/services/state-service/transactions/create-bulk-todos.js +0 -10
  262. package/samples/todo/services/state-service/transactions/create-bulk-todos.js.map +0 -1
  263. package/samples/todo/services/state-service/transactions/create-todo.d.ts +0 -5
  264. package/samples/todo/services/state-service/transactions/create-todo.js +0 -13
  265. package/samples/todo/services/state-service/transactions/create-todo.js.map +0 -1
  266. package/samples/todo/services/state-service/transactions/create-todo.test.d.ts +0 -1
  267. package/samples/todo/services/state-service/transactions/create-todo.test.js +0 -16
  268. package/samples/todo/services/state-service/transactions/create-todo.test.js.map +0 -1
  269. package/samples/todo/services/state-service/transactions/delete-all-todos.d.ts +0 -2
  270. package/samples/todo/services/state-service/transactions/delete-all-todos.js +0 -16
  271. package/samples/todo/services/state-service/transactions/delete-all-todos.js.map +0 -1
  272. package/samples/todo/services/state-service/transactions/delete-todo.d.ts +0 -3
  273. package/samples/todo/services/state-service/transactions/delete-todo.js +0 -8
  274. package/samples/todo/services/state-service/transactions/delete-todo.js.map +0 -1
  275. package/samples/todo/services/state-service/transactions/delete-todo.test.d.ts +0 -1
  276. package/samples/todo/services/state-service/transactions/delete-todo.test.js +0 -24
  277. package/samples/todo/services/state-service/transactions/delete-todo.test.js.map +0 -1
  278. package/samples/todo/services/state-service/transactions/drag-todo.d.ts +0 -7
  279. package/samples/todo/services/state-service/transactions/drag-todo.js +0 -17
  280. package/samples/todo/services/state-service/transactions/drag-todo.js.map +0 -1
  281. package/samples/todo/services/state-service/transactions/index.d.ts +0 -6
  282. package/samples/todo/services/state-service/transactions/index.js +0 -9
  283. package/samples/todo/services/state-service/transactions/index.js.map +0 -1
  284. package/samples/todo/services/state-service/transactions/reorder-todos.d.ts +0 -6
  285. package/samples/todo/services/state-service/transactions/reorder-todos.js +0 -11
  286. package/samples/todo/services/state-service/transactions/reorder-todos.js.map +0 -1
  287. package/samples/todo/services/state-service/transactions/toggle-complete.d.ts +0 -3
  288. package/samples/todo/services/state-service/transactions/toggle-complete.js +0 -11
  289. package/samples/todo/services/state-service/transactions/toggle-complete.js.map +0 -1
  290. package/samples/todo/services/state-service/transactions/toggle-complete.test.d.ts +0 -1
  291. package/samples/todo/services/state-service/transactions/toggle-complete.test.js +0 -65
  292. package/samples/todo/services/state-service/transactions/toggle-complete.test.js.map +0 -1
  293. package/samples/todo/todo-element.d.ts +0 -4
  294. package/samples/todo/todo-element.js +0 -4
  295. package/samples/todo/todo-element.js.map +0 -1
  296. package/samples/todo/todo-host.d.ts +0 -8
  297. package/samples/todo/todo-host.js +0 -35
  298. package/samples/todo/todo-host.js.map +0 -1
  299. package/samples/todo/todo-main-element.d.ts +0 -10
  300. package/samples/todo/todo-main-element.js +0 -47
  301. package/samples/todo/todo-main-element.js.map +0 -1
  302. package/samples/todo/todo-sample.d.ts +0 -3
  303. package/samples/todo/todo-sample.js +0 -19
  304. package/samples/todo/todo-sample.js.map +0 -1
  305. package/service/is-data-service.js +0 -2
  306. package/service/is-data-service.js.map +0 -1
  307. package/typed-buffer/public.d.ts +0 -2
  308. package/typed-buffer/public.js +0 -4
  309. package/typed-buffer/public.js.map +0 -1
  310. /package/{ecs/database/create-plugin-type.type-test.d.ts → service/async-data-service/create-lazy.test.d.ts} +0 -0
@@ -1,96 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { Vec2 } from '../../math/vec2/index.js';
3
- import { useEffect } from './use-effect.js';
4
- function toCssUnitString(value) {
5
- return `${value}px`;
6
- }
7
- export function useDraggable(element, props, dependencies) {
8
- const { minDragDistance = 10, dragCursor = 'grab', addPlaceholder = false, stopPropagation = false } = props;
9
- useEffect(() => {
10
- let downPosition = null;
11
- // the bounds of the element when the pointer was first pressed down.
12
- let dragStartOffset = null;
13
- let originalCursor = '';
14
- let placeholder = null;
15
- let movePosition = [0, 0];
16
- function notify(e, dragListener) {
17
- const delta = Vec2.subtract(movePosition, downPosition);
18
- dragListener(e, Vec2.add(dragStartOffset, delta), delta);
19
- }
20
- function onPointerMove(e) {
21
- movePosition = [e.clientX, e.clientY];
22
- if (Vec2.length(Vec2.subtract(movePosition, downPosition)) >= minDragDistance) {
23
- if (!dragStartOffset) {
24
- dragStartOffset = [element.offsetLeft, element.offsetTop];
25
- props.onDragStart(e);
26
- if (dragCursor) {
27
- originalCursor = element.style.cursor;
28
- element.style.cursor = dragCursor;
29
- }
30
- // add a placeholder so the parent element doesn't change size when the element is dragged.
31
- if (addPlaceholder) {
32
- placeholder = document.createElement('div');
33
- Object.assign(placeholder.style, {
34
- position: 'absolute',
35
- backgroundColor: 'pink',
36
- left: toCssUnitString(element.offsetLeft),
37
- top: toCssUnitString(element.offsetTop),
38
- width: toCssUnitString(element.offsetWidth),
39
- height: toCssUnitString(element.offsetHeight),
40
- visibility: 'hidden',
41
- });
42
- element.parentElement?.appendChild(placeholder);
43
- }
44
- }
45
- }
46
- if (dragStartOffset) {
47
- notify(e, props.onDrag);
48
- }
49
- if (stopPropagation)
50
- e.stopPropagation();
51
- }
52
- function cleanup() {
53
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
54
- window.removeEventListener('pointerup', onPointerUp);
55
- window.removeEventListener('pointermove', onPointerMove);
56
- if (dragCursor) {
57
- element.style.cursor = originalCursor;
58
- }
59
- if (placeholder) {
60
- placeholder.remove();
61
- placeholder = null;
62
- }
63
- }
64
- function onPointerUp(e) {
65
- cleanup();
66
- if (dragStartOffset && props.onDragEnd) {
67
- notify(e, props.onDragEnd);
68
- }
69
- if (stopPropagation)
70
- e.stopPropagation();
71
- downPosition = null;
72
- dragStartOffset = null;
73
- }
74
- function onPointerDown(e) {
75
- // Only start drag transaction for left mouse button clicks
76
- if (e.button !== 0)
77
- return;
78
- window.addEventListener('pointermove', onPointerMove);
79
- window.addEventListener('pointerup', onPointerUp);
80
- downPosition = [e.clientX, e.clientY];
81
- if (stopPropagation)
82
- e.stopPropagation();
83
- }
84
- element?.addEventListener('pointerdown', onPointerDown);
85
- return () => {
86
- element?.removeEventListener('pointerdown', onPointerDown);
87
- if (downPosition) {
88
- cleanup();
89
- }
90
- if (dragStartOffset) {
91
- props.onDragCancel?.();
92
- }
93
- };
94
- }, [element, ...(dependencies ?? [])]);
95
- }
96
- //# sourceMappingURL=use-draggable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-draggable.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-draggable.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,SAAS,eAAe,CAAC,KAAa;IAClC,OAAO,GAAG,KAAK,IAAI,CAAC;AACxB,CAAC;AAiBD,MAAM,UAAU,YAAY,CAAC,OAAoB,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KAAK,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC;YACD,IAAI,eAAe;gBAAE,CAAC,CAAC,eAAe,EAAE,CAAC;YACzC,YAAY,GAAG,IAAI,CAAC;YACpB,eAAe,GAAG,IAAI,CAAC;QAC3B,CAAC;QACD,SAAS,aAAa,CAAC,CAAe;YAClC,2DAA2D;YAC3D,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO;YAE3B,MAAM,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YACtD,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YAClD,YAAY,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;YACtC,IAAI,eAAe;gBAAE,CAAC,CAAC,eAAe,EAAE,CAAC;QAC7C,CAAC;QAED,OAAO,EAAE,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QACxD,OAAO,GAAG,EAAE;YACR,OAAO,EAAE,mBAAmB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;YAC3D,IAAI,YAAY,EAAE,CAAC;gBACf,OAAO,EAAE,CAAC;YACd,CAAC;YACD,IAAI,eAAe,EAAE,CAAC;gBAClB,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC;YAC3B,CAAC;QACL,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC3C,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Component } from "./component/component.js";
2
- export type EffectCallback = () => (void | (() => void));
3
- export declare function useEffect<T extends Component>(callback: EffectCallback, dependencies?: unknown[]): void;
@@ -1,14 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { equalsShallow } from "../../equals-shallow.js";
3
- import { Component_stack } from "./component/stack.js";
4
- export function useEffect(callback, dependencies = []) {
5
- const component = Component_stack.active();
6
- const hookIndex = component.hookIndex++;
7
- const oldHookState = component.hooks[hookIndex];
8
- const rerunEffect = !oldHookState || !equalsShallow(dependencies, oldHookState.dependencies);
9
- if (rerunEffect) {
10
- oldHookState?.dispose?.();
11
- component.hooks[hookIndex] = { dispose: callback.call(component) ?? undefined, dependencies };
12
- }
13
- }
14
- //# sourceMappingURL=use-effect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-effect.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-effect.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,UAAU,SAAS,CAAsB,QAAwB,EAAE,eAA0B,EAAE;IACjG,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,EAAO,CAAC;IAChD,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;IACxC,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAgC,CAAC;IAC/E,MAAM,WAAW,GAAG,CAAC,YAAY,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAC7F,IAAI,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,OAAO,EAAE,EAAE,CAAC;QAC1B,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,SAAS,EAAE,YAAY,EAAE,CAAC;IAClG,CAAC;AACL,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Hook that returns the currently active component.
3
- * If a querySelector is provided, it dynamically observes for child elements
4
- * matching the selector and triggers rerender when found.
5
- */
6
- export declare function useElement<K extends keyof HTMLElementTagNameMap>(querySelector: K): HTMLElementTagNameMap[K] | null;
7
- export declare function useElement<T = HTMLElement>(): T;
@@ -1,67 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { Component_stack } from "./component/stack.js";
3
- import { useEffect } from "./use-effect.js";
4
- import { useState } from "./use-state.js";
5
- export function useElement(querySelector) {
6
- const component = Component_stack.active();
7
- // If no querySelector provided, return the active component
8
- if (!querySelector) {
9
- return component;
10
- }
11
- // Use state to track the found element
12
- const [foundElement, setFoundElement] = useState(null);
13
- useEffect(() => {
14
- const element = component;
15
- // Check if element already exists
16
- const existingElement = element.querySelector(querySelector);
17
- if (existingElement) {
18
- setFoundElement(existingElement);
19
- return;
20
- }
21
- // Set up MutationObserver to watch for new child elements
22
- const observer = new MutationObserver((mutations) => {
23
- for (const mutation of mutations) {
24
- if (mutation.type === 'childList') {
25
- // Check if any added nodes match the selector
26
- for (const node of mutation.addedNodes) {
27
- if (node.nodeType === Node.ELEMENT_NODE) {
28
- const element = node;
29
- // Check if the added node itself matches
30
- if (element.matches(querySelector)) {
31
- setFoundElement(element);
32
- observer.disconnect();
33
- return;
34
- }
35
- // Check if any descendant matches
36
- const descendant = element.querySelector(querySelector);
37
- if (descendant) {
38
- setFoundElement(descendant);
39
- observer.disconnect();
40
- return;
41
- }
42
- }
43
- }
44
- }
45
- }
46
- });
47
- // Start observing both element and shadowRoot
48
- for (const observe of [element.shadowRoot, element]) {
49
- if (observe) {
50
- observer.observe(observe, {
51
- childList: true,
52
- subtree: true
53
- });
54
- }
55
- }
56
- observer.observe(element.shadowRoot ?? element, {
57
- childList: true,
58
- subtree: true
59
- });
60
- // Cleanup function
61
- return () => {
62
- observer.disconnect();
63
- };
64
- }, [querySelector]);
65
- return foundElement;
66
- }
67
- //# sourceMappingURL=use-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-element.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-element.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE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a,CAAC;4BACpE,IAAI,UAAU,EAAE,CAAC;gCACb,eAAe,CAAC,UAAU,CAAC,CAAC;gCAC5B,QAAQ,CAAC,UAAU,EAAE,CAAC;gCACtB,OAAO;4BACX,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,8CAA8C;QAC9C,KAAK,MAAM,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC;YAClD,IAAI,OAAO,EAAE,CAAC;gBACV,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE;oBACtB,SAAS,EAAE,IAAI;oBACf,OAAO,EAAE,IAAI;iBAChB,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QACD,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,EAAE;YAC5C,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,mBAAmB;QACnB,OAAO,GAAG,EAAE;YACR,QAAQ,CAAC,UAAU,EAAE,CAAC;QAC1B,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,OAAO,YAAY,CAAC;AACxB,CAAC"}
@@ -1 +0,0 @@
1
- export declare function useMemo<T>(calculateValue: () => T, dependencies?: unknown[]): T;
@@ -1,13 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { useEffect } from "./use-effect.js";
3
- import { useState } from "./use-state.js";
4
- export function useMemo(calculateValue, dependencies = []) {
5
- const [state, setState] = useState(undefined);
6
- let currentValue = state;
7
- useEffect(() => {
8
- currentValue = calculateValue();
9
- setState(currentValue);
10
- }, dependencies);
11
- return currentValue;
12
- }
13
- //# sourceMappingURL=use-memo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-memo.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-memo.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,UAAU,OAAO,CAAI,cAAuB,EAAE,eAA0B,EAAE;IAC5E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,SAAS,CAAC,CAAC;IAC7D,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACX,YAAY,GAAG,cAAc,EAAE,CAAC;QAChC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC3B,CAAC,EAAE,YAAY,CAAC,CAAC;IAEjB,OAAO,YAAa,CAAC;AACzB,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Observe } from "../../observe/index.js";
2
- export declare function useObservableValues<T extends Record<string, Observe<unknown>>>(factory: () => T, deps?: unknown[]): {
3
- [K in keyof T]: T[K] extends Observe<infer U> ? U : never;
4
- } | undefined;
@@ -1,9 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { Observe } from "../../observe/index.js";
3
- import { useMemo } from "./use-memo.js";
4
- import { useObservable } from "./use-observable.js";
5
- export function useObservableValues(factory, deps = []) {
6
- const observable = useMemo(() => Observe.fromProperties(factory()), deps);
7
- return useObservable(observable);
8
- }
9
- //# sourceMappingURL=use-observable-values.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-observable-values.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-observable-values.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,UAAU,mBAAmB,CAA6C,OAAgB,EAAE,OAAkB,EAAE;IAClH,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IAC1E,OAAO,aAAa,CAAC,UAAU,CAAC,CAAC;AACrC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Observe } from "../../observe/index.js";
2
- export declare function useObservable<T>(observable: Observe<T>): T | undefined;
@@ -1,13 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { useState } from "./use-state.js";
3
- import { useEffect } from "./use-effect.js";
4
- export function useObservable(observable) {
5
- let [value, setValue] = useState(undefined);
6
- useEffect(() => {
7
- return observable(newValue => {
8
- setValue(value = newValue);
9
- });
10
- }, [observable]);
11
- return value;
12
- }
13
- //# sourceMappingURL=use-observable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-observable.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-observable.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,UAAU,aAAa,CAAI,UAAsB;IACnD,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,SAAS,CAAC,CAAC;IAC3D,SAAS,CAAC,GAAG,EAAE;QACX,OAAO,UAAU,CAAC,QAAQ,CAAC,EAAE;YACzB,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IACjB,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare function useRef<T>(initialValue: T): {
2
- current: T;
3
- };
@@ -1,7 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { useState } from "./use-state.js";
3
- export function useRef(initialValue) {
4
- const [state] = useState({ current: initialValue });
5
- return state;
6
- }
7
- //# sourceMappingURL=use-ref.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-ref.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-ref.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,UAAU,MAAM,CAAI,YAAe;IACrC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IACpD,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -1,12 +0,0 @@
1
- export interface ResizeInfo {
2
- width: number;
3
- height: number;
4
- entry: ResizeObserverEntry;
5
- }
6
- /**
7
- * Hook to observe element resizes. Calls callback with width, height, and the original entry
8
- * when the element's size changes.
9
- *
10
- * @param onResize - Callback invoked when element size changes
11
- */
12
- export declare function useResizeObserver(onResize: (info: ResizeInfo) => void): void;
@@ -1,23 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { useEffect } from "./use-effect.js";
3
- import { useElement } from "./use-element.js";
4
- /**
5
- * Hook to observe element resizes. Calls callback with width, height, and the original entry
6
- * when the element's size changes.
7
- *
8
- * @param onResize - Callback invoked when element size changes
9
- */
10
- export function useResizeObserver(onResize) {
11
- const element = useElement();
12
- useEffect(() => {
13
- const observer = new ResizeObserver(entries => {
14
- for (const entry of entries) {
15
- const { width, height } = entry.contentRect;
16
- onResize({ width, height, entry });
17
- }
18
- });
19
- observer.observe(element);
20
- return () => observer.disconnect();
21
- }, [element, onResize]);
22
- }
23
- //# sourceMappingURL=use-resize-observer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-resize-observer.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-resize-observer.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQ9C;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,QAAoC;IAClE,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE;YAC1C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;gBAC1B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC;gBAC5C,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;YACvC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC1B,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACvC,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC5B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function useState<T>(initializer: () => T): [T, (value: T) => void];
2
- export declare function useState<T>(initialValue: T): [T, (value: T) => void];
@@ -1,15 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { Component_stack } from "./component/stack.js";
3
- export function useState(initial) {
4
- const component = Component_stack.active();
5
- const hookIndex = component.hookIndex++;
6
- const value = component.hooks[hookIndex] ??= (typeof initial === "function" ? initial() : initial);
7
- return [
8
- value,
9
- (newValue) => {
10
- component.hooks[hookIndex] = newValue;
11
- component.requestUpdate();
12
- }
13
- ];
14
- }
15
- //# sourceMappingURL=use-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-state.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-state.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIvD,MAAM,UAAU,QAAQ,CAAI,OAAgB;IACxC,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC;IAC3C,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;IACxC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACnG,OAAO;QACH,KAAK;QACL,CAAC,QAAW,EAAE,EAAE;YACZ,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC;YACtC,SAAS,CAAC,aAAa,EAAE,CAAC;QAC9B,CAAC;KACJ,CAAC;AAEN,CAAC"}
@@ -1,4 +0,0 @@
1
- export interface UpdateEventHost {
2
- updateListeners: Set<() => void>;
3
- }
4
- export declare function useUpdated(listener: () => void, dependencies?: unknown[]): void;
@@ -1,40 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { useElement } from "./use-element.js";
3
- import { useEffect } from "./use-effect.js";
4
- function hasUpdateListeners(el) {
5
- return (typeof el === 'object' &&
6
- el !== null &&
7
- 'updateListeners' in el &&
8
- el['updateListeners'] instanceof Set);
9
- }
10
- function makeUpdateEventHost(el) {
11
- if (hasUpdateListeners(el))
12
- return el;
13
- const updateListeners = new Set();
14
- Object.defineProperty(el, 'updateListeners', {
15
- value: updateListeners,
16
- writable: false,
17
- enumerable: false,
18
- });
19
- if (!('updated' in el)) {
20
- throw new Error('Element does not have an updated method');
21
- }
22
- const element = el;
23
- const orig = element.updated.bind(el);
24
- element.updated = (changedProps) => {
25
- orig(changedProps);
26
- for (const fn of updateListeners)
27
- fn();
28
- };
29
- return element;
30
- }
31
- export function useUpdated(listener, dependencies = []) {
32
- const element = makeUpdateEventHost(useElement());
33
- useEffect(() => {
34
- element.updateListeners.add(listener);
35
- return () => {
36
- element.updateListeners.delete(listener);
37
- };
38
- }, dependencies);
39
- }
40
- //# sourceMappingURL=use-updated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-updated.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-updated.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,SAAS,kBAAkB,CAAC,EAAW;IACnC,OAAO,CACH,OAAO,EAAE,KAAK,QAAQ;QACtB,EAAE,KAAK,IAAI;QACX,iBAAiB,IAAI,EAAE;QACvB,EAAE,CAAC,iBAAiB,CAAC,YAAY,GAAG,CACvC,CAAC;AACN,CAAC;AAED,SAAS,mBAAmB,CACxB,EAAK;IAEL,IAAI,kBAAkB,CAAC,EAAE,CAAC;QAAE,OAAO,EAAyB,CAAC;IAE7D,MAAM,eAAe,GAAG,IAAI,GAAG,EAAc,CAAC;IAC9C,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,iBAAiB,EAAE;QACzC,KAAK,EAAE,eAAe;QACtB,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,KAAK;KACpB,CAAC,CAAC;IAEH,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,OAAO,GAAG,EAEG,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEtC,OAAO,CAAC,OAAO,GAAG,CAAC,YAAY,EAAE,EAAE;QAC/B,IAAI,CAAC,YAAY,CAAC,CAAC;QACnB,KAAK,MAAM,EAAE,IAAI,eAAe;YAAE,EAAE,EAAE,CAAC;IAC3C,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC;AACnB,CAAC;AAGD,MAAM,UAAU,UAAU,CAAC,QAAoB,EAAE,eAA0B,EAAE;IACzE,MAAM,OAAO,GAAG,mBAAmB,CAAC,UAAU,EAAE,CAAC,CAAC;IAClD,SAAS,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACtC,OAAO,GAAG,EAAE;YACR,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC,CAAA;IACL,CAAC,EAAE,YAAY,CAAC,CAAC;AACrB,CAAC"}
@@ -1 +0,0 @@
1
- export declare function useWindowEvent<K extends keyof WindowEventMap>(event: K, callbackFactory: () => (e: WindowEventMap[K]) => void, deps?: any[]): void;
@@ -1,11 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { useEffect } from "./use-effect.js";
3
- import { useMemo } from "./use-memo.js";
4
- export function useWindowEvent(event, callbackFactory, deps = []) {
5
- const callback = useMemo(callbackFactory, deps);
6
- useEffect(() => {
7
- window.addEventListener(event, callback);
8
- return () => window.removeEventListener(event, callback);
9
- }, [callback]);
10
- }
11
- //# sourceMappingURL=use-window-event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-window-event.js","sourceRoot":"","sources":["../../../src/lit/hooks/use-window-event.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,cAAc,CAC1B,KAAQ,EACR,eAAqD,EACrD,OAAc,EAAE;IAEhB,MAAM,QAAQ,GAAG,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IAChD,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACzC,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACnB,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { Component } from "./component/component.js";
2
- export declare function withHooks<This extends Component, Args extends any[], Return>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Return>): TypedPropertyDescriptor<(this: This, ...args: Args) => Return>;
@@ -1,16 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { Component_stack } from "./component/stack.js";
3
- export function withHooks(target, propertyKey, descriptor) {
4
- const originalMethod = descriptor.value;
5
- descriptor.value = function (...args) {
6
- Component_stack.push(this);
7
- try {
8
- return originalMethod.apply(this, args);
9
- }
10
- finally {
11
- Component_stack.pop();
12
- }
13
- };
14
- return descriptor;
15
- }
16
- //# sourceMappingURL=with-hooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-hooks.js","sourceRoot":"","sources":["../../../src/lit/hooks/with-hooks.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAGvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,UAAU,SAAS,CACrB,MAAc,EACd,WAAmB,EACnB,UAA0E;IAE1E,MAAM,cAAc,GAAG,UAAU,CAAC,KAAM,CAAC;IACzC,UAAU,CAAC,KAAK,GAAG,UAAsB,GAAG,IAAU;QAClD,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,CAAC;YACD,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC5C,CAAC;gBACO,CAAC;YACL,eAAe,CAAC,GAAG,EAAE,CAAC;QAC1B,CAAC;IACL,CAAC,CAAA;IACD,OAAO,UAAU,CAAC;AACtB,CAAC"}
package/lit/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./hooks/index.js";
2
- export * from "./elements/index.js";
3
- export * from "./decorators/index.js";
4
- export type { Vec2 } from "../math/vec2/index.js";
package/lit/index.js DELETED
@@ -1,5 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- export * from "./hooks/index.js";
3
- export * from "./elements/index.js";
4
- export * from "./decorators/index.js";
5
- //# sourceMappingURL=index.js.map
package/lit/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lit/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- export {};
package/normalize.test.js DELETED
@@ -1,28 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { normalize } from "./normalize.js";
3
- import { describe, expect, it } from "vitest";
4
- describe("Data.normalize", () => {
5
- it("should sort object keys alphabetically", () => {
6
- expect(normalize({ b: 1, a: 2, c: null })).toEqual({
7
- a: 2,
8
- b: 1,
9
- c: null,
10
- });
11
- expect(normalize([{ A: [], b: 1, a: 2 }])).toEqual([{ a: 2, A: [], b: 1 }]);
12
- expect(normalize([[{ b: 1, a: 2 }]])).toEqual([[{ a: 2, b: 1 }]]);
13
- expect(normalize({ z: [[{ b: 1, a: 2 }]], q: 10 })).toEqual({
14
- q: 10,
15
- z: [[{ a: 2, b: 1 }]],
16
- });
17
- });
18
- it("should remove undefined values", () => {
19
- expect(normalize({ b: 1, a: 2, value: undefined })).toEqual({
20
- a: 2,
21
- b: 1,
22
- });
23
- expect(normalize([{ b: 1, a: 2, value: undefined }])).toEqual([
24
- { a: 2, b: 1 },
25
- ]);
26
- });
27
- });
28
- //# sourceMappingURL=normalize.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.test.js","sourceRoot":"","sources":["../src/normalize.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,E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M,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1D,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;SACL,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YAC5D,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;SACf,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- export interface SampleMetadata {
2
- readonly id: string;
3
- readonly title: string;
4
- readonly description: string;
5
- readonly category: string;
6
- readonly difficulty: 'beginner' | 'intermediate' | 'advanced';
7
- readonly features: readonly string[];
8
- }
9
- export interface Sample extends SampleMetadata {
10
- readonly elementTag: string;
11
- }
12
- import './todo/todo-host.js';
13
- export declare const samples: readonly Sample[];
package/samples/index.js DELETED
@@ -1,7 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { todoSample } from './todo/todo-sample.js';
3
- import './todo/todo-host.js'; // Ensure todo-host is registered
4
- export const samples = [
5
- todoSample,
6
- ];
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/samples/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAevD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,qBAAqB,CAAC,CAAE,iCAAiC;AAEhE,MAAM,CAAC,MAAM,OAAO,GAAsB;IACtC,UAAU;CACb,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Entity } from '../../../../ecs/index.js';
2
- import '@spectrum-web-components/action-button/sp-action-button.js';
3
- import '../todo-row/todo-row.js';
4
- type RenderArgs = {
5
- todos: readonly Entity[];
6
- };
7
- export declare function render(args: RenderArgs): import("lit").TemplateResult<1>;
8
- export {};
@@ -1,12 +0,0 @@
1
- import { html } from 'lit';
2
- import { repeat } from 'lit/directives/repeat.js';
3
- import '@spectrum-web-components/action-button/sp-action-button.js';
4
- import '../todo-row/todo-row.js';
5
- export function render(args) {
6
- return html `
7
- <div class="todo-list">
8
- ${repeat(args.todos, todo => todo, (todo, index) => html ` <data-todo-row .entity=${todo} .index=${index}></data-todo-row> `)}
9
- </div>
10
- `;
11
- }
12
- //# sourceMappingURL=todo-list-presentation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"todo-list-presentation.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-list/todo-list-presentation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,4DAA4D,CAAC;AACpE,OAAO,yBAAyB,CAAC;AAMjC,MAAM,UAAU,MAAM,CAAC,IAAgB;IACrC,OAAO,IAAI,CAAA;;QAEL,MAAM,CACV,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,EAAE,CAAC,IAAI,EACZ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA,2BAA2B,IAAI,WAAW,KAAK,oBAAoB,CACzF;;GAEA,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- export declare const styles: import("lit").CSSResult;
@@ -1,11 +0,0 @@
1
- // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- import { css } from 'lit';
3
- export const styles = css `
4
- .todo-list {
5
- display: flex;
6
- flex-direction: column;
7
- position: relative;
8
- user-select: none;
9
- }
10
- `;
11
- //# sourceMappingURL=todo-list.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"todo-list.css.js","sourceRoot":"","sources":["../../../../../src/samples/todo/elements/todo-list/todo-list.css.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;CAOxB,CAAC"}
@@ -1,12 +0,0 @@
1
- import { TodoElement } from '../../todo-element.js';
2
- import '../todo-row/todo-row.js';
3
- export declare const tagName = "data-todo-list";
4
- declare global {
5
- interface HTMLElementTagNameMap {
6
- [tagName]: TodoList;
7
- }
8
- }
9
- export declare class TodoList extends TodoElement {
10
- static styles: import("lit").CSSResult[];
11
- render(): import("lit").TemplateResult<1> | undefined;
12
- }