@adobe/data 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/dist/ecs/database/create-database.d.ts +2 -2
  2. package/dist/ecs/database/database-schema/create-database-schema-test.d.ts +1 -0
  3. package/dist/ecs/database/database-schema/create-database-schema-test.js +42 -0
  4. package/dist/ecs/database/database-schema/create-database-schema-test.js.map +1 -0
  5. package/dist/ecs/database/database-schema/create-database-schema.d.ts +14 -0
  6. package/dist/ecs/database/database-schema/create-database-schema.js +32 -0
  7. package/dist/ecs/database/database-schema/create-database-schema.js.map +1 -0
  8. package/dist/ecs/database/database-schema/database-schema.d.ts +13 -0
  9. package/dist/{services/is-service.js → ecs/database/database-schema/database-schema.js} +2 -4
  10. package/dist/ecs/database/database-schema/database-schema.js.map +1 -0
  11. package/dist/ecs/database/database-schema/index.d.ts +2 -0
  12. package/dist/{services → ecs/database/database-schema}/index.js +2 -3
  13. package/dist/ecs/database/database-schema/index.js.map +1 -0
  14. package/dist/ecs/database/database.d.ts +3 -1
  15. package/dist/ecs/database/index.d.ts +1 -0
  16. package/dist/ecs/database/index.js +1 -0
  17. package/dist/ecs/database/index.js.map +1 -1
  18. package/dist/ecs/index.d.ts +2 -1
  19. package/dist/ecs/index.js +2 -1
  20. package/dist/ecs/index.js.map +1 -1
  21. package/dist/ecs/store/archetype-components.d.ts +3 -1
  22. package/dist/ecs/store/core/core.d.ts +1 -8
  23. package/dist/ecs/store/core/create-core.js +9 -4
  24. package/dist/ecs/store/core/create-core.js.map +1 -1
  25. package/dist/ecs/store/core/create-core.test.js +0 -109
  26. package/dist/ecs/store/core/create-core.test.js.map +1 -1
  27. package/dist/ecs/store/create-store.js +21 -0
  28. package/dist/ecs/store/create-store.js.map +1 -1
  29. package/dist/ecs/store/store-schema/create-store-schema-test.js +4 -7
  30. package/dist/ecs/store/store-schema/create-store-schema-test.js.map +1 -1
  31. package/dist/ecs/store/store-schema/create-store-schema.d.ts +2 -0
  32. package/dist/ecs/store/store-schema/create-store-schema.js +5 -0
  33. package/dist/ecs/store/store-schema/create-store-schema.js.map +1 -1
  34. package/dist/ecs/store/store-schema/index.d.ts +1 -1
  35. package/dist/ecs/store/store-schema/index.js +1 -1
  36. package/dist/ecs/store/store-schema/index.js.map +1 -1
  37. package/dist/ecs/store/store-schema/store-schema.d.ts +1 -1
  38. package/dist/ecs/world/create-world.d.ts +7 -0
  39. package/dist/ecs/world/create-world.js +108 -0
  40. package/dist/ecs/world/create-world.js.map +1 -0
  41. package/dist/ecs/world/create-world.test.d.ts +1 -0
  42. package/dist/ecs/world/create-world.test.js +499 -0
  43. package/dist/ecs/world/create-world.test.js.map +1 -0
  44. package/dist/ecs/world/index.d.ts +4 -0
  45. package/dist/ecs/world/index.js +26 -0
  46. package/dist/ecs/world/index.js.map +1 -0
  47. package/dist/ecs/world/system.d.ts +20 -0
  48. package/dist/ecs/world/system.js +2 -0
  49. package/dist/ecs/world/system.js.map +1 -0
  50. package/dist/ecs/world/world-schema/create-world-schema-test.d.ts +1 -0
  51. package/dist/ecs/world/world-schema/create-world-schema-test.js +55 -0
  52. package/dist/ecs/world/world-schema/create-world-schema-test.js.map +1 -0
  53. package/dist/ecs/world/world-schema/create-world-schema.d.ts +19 -0
  54. package/dist/ecs/world/world-schema/create-world-schema.js +33 -0
  55. package/dist/ecs/world/world-schema/create-world-schema.js.map +1 -0
  56. package/dist/ecs/world/world-schema/index.d.ts +2 -0
  57. package/dist/ecs/world/world-schema/index.js +24 -0
  58. package/dist/ecs/world/world-schema/index.js.map +1 -0
  59. package/dist/ecs/world/world-schema/world-schema.d.ts +18 -0
  60. package/dist/ecs/world/world-schema/world-schema.js +23 -0
  61. package/dist/ecs/world/world-schema/world-schema.js.map +1 -0
  62. package/dist/ecs/world/world.d.ts +9 -0
  63. package/dist/ecs/world/world.js +2 -0
  64. package/dist/ecs/world/world.js.map +1 -0
  65. package/dist/functions/serialization/serialization.test.js +78 -0
  66. package/dist/functions/serialization/serialization.test.js.map +1 -1
  67. package/dist/graphics/camera/camera.d.ts +62 -0
  68. package/dist/graphics/camera/camera.js +17 -0
  69. package/dist/graphics/camera/camera.js.map +1 -0
  70. package/dist/graphics/camera/index.d.ts +4 -0
  71. package/dist/graphics/camera/index.js +5 -0
  72. package/dist/graphics/camera/index.js.map +1 -0
  73. package/dist/graphics/camera/screen-to-world-ray.d.ts +12 -0
  74. package/dist/graphics/camera/screen-to-world-ray.js +49 -0
  75. package/dist/graphics/camera/screen-to-world-ray.js.map +1 -0
  76. package/dist/graphics/camera/screen-to-world-ray.test.d.ts +1 -0
  77. package/dist/graphics/camera/screen-to-world-ray.test.js +171 -0
  78. package/dist/graphics/camera/screen-to-world-ray.test.js.map +1 -0
  79. package/dist/graphics/camera/to-view-projection.d.ts +3 -0
  80. package/dist/graphics/camera/to-view-projection.js +8 -0
  81. package/dist/graphics/camera/to-view-projection.js.map +1 -0
  82. package/dist/graphics/camera/world-to-screen.d.ts +12 -0
  83. package/dist/graphics/camera/world-to-screen.js +38 -0
  84. package/dist/graphics/camera/world-to-screen.js.map +1 -0
  85. package/dist/graphics/camera/world-to-screen.test.d.ts +1 -0
  86. package/dist/graphics/camera/world-to-screen.test.js +124 -0
  87. package/dist/graphics/camera/world-to-screen.test.js.map +1 -0
  88. package/dist/graphics/create-struct-gpu-buffer.d.ts +7 -0
  89. package/dist/graphics/create-struct-gpu-buffer.js +17 -0
  90. package/dist/graphics/create-struct-gpu-buffer.js.map +1 -0
  91. package/dist/graphics/extract-wgsl-bindings.d.ts +5 -0
  92. package/dist/graphics/extract-wgsl-bindings.js +10 -0
  93. package/dist/graphics/extract-wgsl-bindings.js.map +1 -0
  94. package/dist/graphics/frame.d.ts +22 -0
  95. package/dist/graphics/frame.js +12 -0
  96. package/dist/graphics/frame.js.map +1 -0
  97. package/dist/graphics/get-web-gpu-device-and-context.d.ts +2 -0
  98. package/dist/graphics/get-web-gpu-device-and-context.js +21 -0
  99. package/dist/graphics/get-web-gpu-device-and-context.js.map +1 -0
  100. package/dist/graphics/graphics-context.d.ts +5 -0
  101. package/dist/graphics/graphics-context.js +2 -0
  102. package/dist/graphics/graphics-context.js.map +1 -0
  103. package/dist/graphics/index.d.ts +5 -0
  104. package/dist/graphics/index.js +5 -0
  105. package/dist/graphics/index.js.map +1 -0
  106. package/dist/graphics/to-gpu-buffer.d.ts +2 -0
  107. package/dist/graphics/to-gpu-buffer.js +14 -0
  108. package/dist/graphics/to-gpu-buffer.js.map +1 -0
  109. package/dist/internal/array/index.d.ts +1 -0
  110. package/dist/internal/array/index.js +23 -0
  111. package/dist/internal/array/index.js.map +1 -0
  112. package/dist/internal/array/topological-sort.d.ts +26 -0
  113. package/dist/internal/array/topological-sort.js +79 -0
  114. package/dist/internal/array/topological-sort.js.map +1 -0
  115. package/dist/internal/array/topological-sort.test.d.ts +1 -0
  116. package/dist/internal/array/topological-sort.test.js +100 -0
  117. package/dist/internal/array/topological-sort.test.js.map +1 -0
  118. package/dist/internal/function/debounce.d.ts +70 -0
  119. package/dist/internal/function/debounce.js +155 -0
  120. package/dist/internal/function/debounce.js.map +1 -0
  121. package/dist/internal/function/debounce.test.d.ts +1 -0
  122. package/dist/internal/function/debounce.test.js +306 -0
  123. package/dist/internal/function/debounce.test.js.map +1 -0
  124. package/dist/lit/elements/application-element.js.map +1 -1
  125. package/dist/lit/elements/application-host.d.ts +16 -0
  126. package/dist/lit/elements/application-host.js +59 -0
  127. package/dist/lit/elements/application-host.js.map +1 -0
  128. package/dist/lit/elements/index.d.ts +2 -0
  129. package/dist/lit/elements/index.js +2 -0
  130. package/dist/lit/elements/index.js.map +1 -1
  131. package/dist/lit/hooks/index.d.ts +3 -0
  132. package/dist/lit/hooks/index.js +3 -0
  133. package/dist/lit/hooks/index.js.map +1 -1
  134. package/dist/lit/hooks/use-drag-observe.d.ts +1 -1
  135. package/dist/lit/hooks/use-drag-observe.js +1 -1
  136. package/dist/lit/hooks/use-drag-observe.js.map +1 -1
  137. package/dist/lit/hooks/use-drag-transaction.d.ts +2 -3
  138. package/dist/lit/hooks/use-drag-transaction.js +3 -3
  139. package/dist/lit/hooks/use-drag-transaction.js.map +1 -1
  140. package/dist/math/aabb/aabb.d.ts +48 -0
  141. package/dist/math/aabb/aabb.js +86 -0
  142. package/dist/math/aabb/aabb.js.map +1 -0
  143. package/dist/math/aabb/line-intersection.test.d.ts +1 -0
  144. package/dist/math/aabb/line-intersection.test.js +210 -0
  145. package/dist/math/aabb/line-intersection.test.js.map +1 -0
  146. package/dist/math/constants.d.ts +4 -0
  147. package/dist/math/constants.js +26 -0
  148. package/dist/math/constants.js.map +1 -0
  149. package/dist/math/index.d.ts +18 -0
  150. package/dist/math/index.js +40 -0
  151. package/dist/math/index.js.map +1 -0
  152. package/dist/math/line2/intersects.test.d.ts +1 -0
  153. package/dist/math/line2/intersects.test.js +104 -0
  154. package/dist/math/line2/intersects.test.js.map +1 -0
  155. package/dist/math/line2/line2.d.ts +42 -0
  156. package/dist/math/line2/line2.js +78 -0
  157. package/dist/math/line2/line2.js.map +1 -0
  158. package/dist/math/line3/closest-point-on-line.test.d.ts +1 -0
  159. package/dist/math/line3/closest-point-on-line.test.js +107 -0
  160. package/dist/math/line3/closest-point-on-line.test.js.map +1 -0
  161. package/dist/math/line3/interpolate.test.d.ts +1 -0
  162. package/dist/math/line3/interpolate.test.js +66 -0
  163. package/dist/math/line3/interpolate.test.js.map +1 -0
  164. package/dist/math/line3/line3.d.ts +49 -0
  165. package/dist/math/line3/line3.js +77 -0
  166. package/dist/math/line3/line3.js.map +1 -0
  167. package/dist/math/line3/sub-line.test.d.ts +1 -0
  168. package/dist/math/line3/sub-line.test.js +70 -0
  169. package/dist/math/line3/sub-line.test.js.map +1 -0
  170. package/dist/math/mat4x4/mat4x4.d.ts +37 -0
  171. package/dist/math/mat4x4/mat4x4.js +246 -0
  172. package/dist/math/mat4x4/mat4x4.js.map +1 -0
  173. package/dist/math/picking/index.d.ts +1 -0
  174. package/dist/math/picking/index.js +23 -0
  175. package/dist/math/picking/index.js.map +1 -0
  176. package/dist/math/picking/pick-from-tables.d.ts +18 -0
  177. package/dist/math/picking/pick-from-tables.js +154 -0
  178. package/dist/math/picking/pick-from-tables.js.map +1 -0
  179. package/dist/math/picking/pick-result.d.ts +7 -0
  180. package/dist/{services/service.js → math/picking/pick-result.js} +1 -1
  181. package/dist/math/picking/pick-result.js.map +1 -0
  182. package/dist/math/quat/quat.d.ts +42 -0
  183. package/dist/math/quat/quat.js +220 -0
  184. package/dist/math/quat/quat.js.map +1 -0
  185. package/dist/math/vec2/vec2.d.ts +63 -0
  186. package/dist/math/vec2/vec2.js +114 -0
  187. package/dist/math/vec2/vec2.js.map +1 -0
  188. package/dist/math/vec3/vec3.d.ts +65 -0
  189. package/dist/math/vec3/vec3.js +154 -0
  190. package/dist/math/vec3/vec3.js.map +1 -0
  191. package/dist/math/vec4/vec4.d.ts +63 -0
  192. package/dist/math/vec4/vec4.js +154 -0
  193. package/dist/math/vec4/vec4.js.map +1 -0
  194. package/dist/observe/to-async-generator.js +4 -0
  195. package/dist/observe/to-async-generator.js.map +1 -1
  196. package/dist/observe/with-filter.d.ts +1 -1
  197. package/dist/observe/with-filter.js.map +1 -1
  198. package/dist/samples/index.d.ts +13 -0
  199. package/dist/samples/index.js +27 -0
  200. package/dist/samples/index.js.map +1 -0
  201. package/dist/samples/todo/elements/todo-list/todo-list-presentation.d.ts +25 -0
  202. package/dist/samples/todo/elements/todo-list/todo-list-presentation.js +12 -0
  203. package/dist/samples/todo/elements/todo-list/todo-list-presentation.js.map +1 -0
  204. package/dist/samples/todo/elements/todo-list/todo-list.css.d.ts +18 -0
  205. package/dist/samples/todo/elements/todo-list/todo-list.css.js +27 -0
  206. package/dist/samples/todo/elements/todo-list/todo-list.css.js.map +1 -0
  207. package/dist/samples/todo/elements/todo-list/todo-list.d.ts +12 -0
  208. package/dist/samples/todo/elements/todo-list/todo-list.js +60 -0
  209. package/dist/samples/todo/elements/todo-list/todo-list.js.map +1 -0
  210. package/dist/samples/todo/elements/todo-row/index.d.ts +18 -0
  211. package/dist/samples/todo/elements/todo-row/index.js +19 -0
  212. package/dist/samples/todo/elements/todo-row/index.js.map +1 -0
  213. package/dist/samples/todo/elements/todo-row/todo-row-presentation.d.ts +18 -0
  214. package/dist/samples/todo/elements/todo-row/todo-row-presentation.js +66 -0
  215. package/dist/samples/todo/elements/todo-row/todo-row-presentation.js.map +1 -0
  216. package/dist/samples/todo/elements/todo-row/todo-row.css.d.ts +1 -0
  217. package/dist/samples/todo/elements/todo-row/todo-row.css.js +65 -0
  218. package/dist/samples/todo/elements/todo-row/todo-row.css.js.map +1 -0
  219. package/dist/samples/todo/elements/todo-row/todo-row.d.ts +14 -0
  220. package/dist/samples/todo/elements/todo-row/todo-row.js +60 -0
  221. package/dist/samples/todo/elements/todo-row/todo-row.js.map +1 -0
  222. package/dist/samples/todo/elements/todo-toolbar/index.d.ts +18 -0
  223. package/dist/samples/todo/elements/todo-toolbar/index.js +19 -0
  224. package/dist/samples/todo/elements/todo-toolbar/index.js.map +1 -0
  225. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.d.ts +22 -0
  226. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js +57 -0
  227. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js.map +1 -0
  228. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.d.ts +1 -0
  229. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.js +50 -0
  230. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.js.map +1 -0
  231. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.d.ts +11 -0
  232. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js +77 -0
  233. package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js.map +1 -0
  234. package/dist/samples/todo/elements/todo-undo-redo/index.d.ts +18 -0
  235. package/dist/samples/todo/elements/todo-undo-redo/index.js +19 -0
  236. package/dist/samples/todo/elements/todo-undo-redo/index.js.map +1 -0
  237. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.d.ts +17 -0
  238. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js +45 -0
  239. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js.map +1 -0
  240. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.d.ts +1 -0
  241. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js +28 -0
  242. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js.map +1 -0
  243. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.d.ts +11 -0
  244. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.js +52 -0
  245. package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.js.map +1 -0
  246. package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.d.ts +6 -0
  247. package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js +21 -0
  248. package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js.map +1 -0
  249. package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.d.ts +19 -0
  250. package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.js +2 -0
  251. package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.js.map +1 -0
  252. package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.d.ts +19 -0
  253. package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js +2 -0
  254. package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js.map +1 -0
  255. package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.d.ts +19 -0
  256. package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js +2 -0
  257. package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js.map +1 -0
  258. package/dist/samples/todo/services/dependent-state-service/dependent-state/index.d.ts +20 -0
  259. package/dist/samples/todo/services/dependent-state-service/dependent-state/index.js +21 -0
  260. package/dist/samples/todo/services/dependent-state-service/dependent-state/index.js.map +1 -0
  261. package/dist/samples/todo/services/dependent-state-service/dependent-state-service.d.ts +19 -0
  262. package/dist/samples/todo/services/dependent-state-service/dependent-state-service.js +2 -0
  263. package/dist/samples/todo/services/dependent-state-service/dependent-state-service.js.map +1 -0
  264. package/dist/samples/todo/services/main-service/create-main-service.d.ts +25 -0
  265. package/dist/samples/todo/services/main-service/create-main-service.js +39 -0
  266. package/dist/samples/todo/services/main-service/create-main-service.js.map +1 -0
  267. package/dist/samples/todo/services/main-service/todo-main-service.d.ts +35 -0
  268. package/dist/samples/todo/services/main-service/todo-main-service.js +2 -0
  269. package/dist/samples/todo/services/main-service/todo-main-service.js.map +1 -0
  270. package/dist/samples/todo/services/state-service/create-todo-database.d.ts +13 -0
  271. package/dist/samples/todo/services/state-service/create-todo-database.js +26 -0
  272. package/dist/samples/todo/services/state-service/create-todo-database.js.map +1 -0
  273. package/dist/samples/todo/services/state-service/create-todo-store.d.ts +13 -0
  274. package/dist/samples/todo/services/state-service/create-todo-store.js +41 -0
  275. package/dist/samples/todo/services/state-service/create-todo-store.js.map +1 -0
  276. package/dist/samples/todo/services/state-service/todo-state-service.d.ts +22 -0
  277. package/dist/samples/todo/services/state-service/todo-state-service.js +2 -0
  278. package/dist/samples/todo/services/state-service/todo-state-service.js.map +1 -0
  279. package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.d.ts +2 -0
  280. package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.js +26 -0
  281. package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.js.map +1 -0
  282. package/dist/samples/todo/services/state-service/transactions/create-todo.d.ts +22 -0
  283. package/dist/samples/todo/services/state-service/transactions/create-todo.js +13 -0
  284. package/dist/samples/todo/services/state-service/transactions/create-todo.js.map +1 -0
  285. package/dist/samples/todo/services/state-service/transactions/create-todo.test.d.ts +1 -0
  286. package/dist/samples/todo/services/state-service/transactions/create-todo.test.js +32 -0
  287. package/dist/samples/todo/services/state-service/transactions/create-todo.test.js.map +1 -0
  288. package/dist/samples/todo/services/state-service/transactions/delete-all-todos.d.ts +19 -0
  289. package/dist/samples/todo/services/state-service/transactions/delete-all-todos.js +16 -0
  290. package/dist/samples/todo/services/state-service/transactions/delete-all-todos.js.map +1 -0
  291. package/dist/samples/todo/services/state-service/transactions/delete-todo.d.ts +3 -0
  292. package/dist/samples/todo/services/state-service/transactions/delete-todo.js +24 -0
  293. package/dist/samples/todo/services/state-service/transactions/delete-todo.js.map +1 -0
  294. package/dist/samples/todo/services/state-service/transactions/delete-todo.test.d.ts +1 -0
  295. package/dist/samples/todo/services/state-service/transactions/delete-todo.test.js +40 -0
  296. package/dist/samples/todo/services/state-service/transactions/delete-todo.test.js.map +1 -0
  297. package/dist/samples/todo/services/state-service/transactions/drag-todo.d.ts +7 -0
  298. package/dist/samples/todo/services/state-service/transactions/drag-todo.js +33 -0
  299. package/dist/samples/todo/services/state-service/transactions/drag-todo.js.map +1 -0
  300. package/dist/samples/todo/services/state-service/transactions/index.d.ts +23 -0
  301. package/dist/samples/todo/services/state-service/transactions/index.js +25 -0
  302. package/dist/samples/todo/services/state-service/transactions/index.js.map +1 -0
  303. package/dist/samples/todo/services/state-service/transactions/reorder-todos.d.ts +23 -0
  304. package/dist/samples/todo/services/state-service/transactions/reorder-todos.js +11 -0
  305. package/dist/samples/todo/services/state-service/transactions/reorder-todos.js.map +1 -0
  306. package/dist/samples/todo/services/state-service/transactions/toggle-complete.d.ts +20 -0
  307. package/dist/samples/todo/services/state-service/transactions/toggle-complete.js +11 -0
  308. package/dist/samples/todo/services/state-service/transactions/toggle-complete.js.map +1 -0
  309. package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.d.ts +1 -0
  310. package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.js +81 -0
  311. package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.js.map +1 -0
  312. package/dist/samples/todo/todo-element.d.ts +21 -0
  313. package/dist/samples/todo/todo-element.js +4 -0
  314. package/dist/samples/todo/todo-element.js.map +1 -0
  315. package/dist/samples/todo/todo-host.d.ts +8 -0
  316. package/dist/samples/todo/todo-host.js +55 -0
  317. package/dist/samples/todo/todo-host.js.map +1 -0
  318. package/dist/samples/todo/todo-main-element.d.ts +27 -0
  319. package/dist/samples/todo/todo-main-element.js +63 -0
  320. package/dist/samples/todo/todo-main-element.js.map +1 -0
  321. package/dist/samples/todo/todo-sample.d.ts +3 -0
  322. package/dist/samples/todo/todo-sample.js +39 -0
  323. package/dist/samples/todo/todo-sample.js.map +1 -0
  324. package/dist/schema/schema.d.ts +11 -6
  325. package/dist/schema/schema.js.map +1 -1
  326. package/dist/tsconfig.tsbuildinfo +1 -1
  327. package/dist/typed-buffer/register-typed-buffer-codecs.js +39 -22
  328. package/dist/typed-buffer/register-typed-buffer-codecs.js.map +1 -1
  329. package/dist/typed-buffer/structs/get-struct-layout.js +3 -0
  330. package/dist/typed-buffer/structs/get-struct-layout.js.map +1 -1
  331. package/package.json +20 -3
  332. package/dist/service/to-frontend-service.d.ts +0 -12
  333. package/dist/service/to-frontend-service.js +0 -5
  334. package/dist/service/to-frontend-service.js.map +0 -1
  335. package/dist/services/add-observable-actions.d.ts +0 -29
  336. package/dist/services/add-observable-actions.js +0 -108
  337. package/dist/services/add-observable-actions.js.map +0 -1
  338. package/dist/services/index.d.ts +0 -4
  339. package/dist/services/index.js.map +0 -1
  340. package/dist/services/is-service.d.ts +0 -2
  341. package/dist/services/is-service.js.map +0 -1
  342. package/dist/services/progressive-result.d.ts +0 -96
  343. package/dist/services/progressive-result.js +0 -99
  344. package/dist/services/progressive-result.js.map +0 -1
  345. package/dist/services/service.d.ts +0 -4
  346. package/dist/services/service.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-complete.test.js","sourceRoot":"","sources":["../../../../../../src/samples/todo/services/state-service/transactions/toggle-complete.test.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ /*************************************************************************
2
+ *
3
+ * ADOBE CONFIDENTIAL
4
+ * ___________________
5
+ *
6
+ * Copyright 2024 Adobe
7
+ * All Rights Reserved.
8
+ *
9
+ * NOTICE: All information contained herein is, and remains
10
+ * the property of Adobe and its suppliers, if any. The intellectual
11
+ * and technical concepts contained herein are proprietary to Adobe
12
+ * and its suppliers and are protected by all applicable intellectual
13
+ * property laws, including trade secret and copyright laws.
14
+ * Dissemination of this information or reproduction of this material
15
+ * is strictly forbidden unless prior written permission is obtained
16
+ * from Adobe.
17
+ **************************************************************************/
18
+ import { TodoMainService } from './services/main-service/todo-main-service.js';
19
+ import { ApplicationElement } from '../../lit/elements/application-element.js';
20
+ export declare class TodoElement extends ApplicationElement<TodoMainService> {
21
+ }
@@ -0,0 +1,4 @@
1
+ import { ApplicationElement } from '../../lit/elements/application-element.js';
2
+ export class TodoElement extends ApplicationElement {
3
+ }
4
+ //# sourceMappingURL=todo-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-element.js","sourceRoot":"","sources":["../../../src/samples/todo/todo-element.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAE/E,MAAM,OAAO,WAAY,SAAQ,kBAAmC;CAAI"}
@@ -0,0 +1,8 @@
1
+ import { LitElement } from 'lit';
2
+ import './todo-main-element.js';
3
+ import '../../lit/elements/application-host.js';
4
+ export declare const tagName = "todo-host";
5
+ export declare class TodoHost extends LitElement {
6
+ static styles: import("lit").CSSResult;
7
+ render(): import("lit").TemplateResult<1>;
8
+ }
@@ -0,0 +1,55 @@
1
+ /*MIT License
2
+
3
+ © Copyright 2025 Adobe. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.*/
22
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
25
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
26
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
27
+ };
28
+ import { LitElement, html, css } from 'lit';
29
+ import { customElement } from 'lit/decorators.js';
30
+ import { createMainService } from './services/main-service/create-main-service.js';
31
+ import './todo-main-element.js'; // Side effect: registers custom elements
32
+ import '../../lit/elements/application-host.js'; // Side effect: registers application-host
33
+ export const tagName = 'todo-host';
34
+ let TodoHost = class TodoHost extends LitElement {
35
+ static { this.styles = css `
36
+ :host {
37
+ display: flex;
38
+ flex: 1 1 auto;
39
+ color: red;
40
+ }
41
+ `; }
42
+ render() {
43
+ return html `
44
+ <application-host
45
+ .createService=${createMainService}
46
+ .renderElement=${() => html `<data-todo></data-todo>`}>
47
+ </application-host>
48
+ `;
49
+ }
50
+ };
51
+ TodoHost = __decorate([
52
+ customElement(tagName)
53
+ ], TodoHost);
54
+ export { TodoHost };
55
+ //# sourceMappingURL=todo-host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-host.js","sourceRoot":"","sources":["../../../src/samples/todo/todo-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;;;;;;;AAEX,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,wBAAwB,CAAC,CAAE,yCAAyC;AAC3E,OAAO,wCAAwC,CAAC,CAAE,0CAA0C;AAE5F,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC;AAG5B,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;aAC7B,WAAM,GAAG,GAAG,CAAA;;;;;;KAMlB,AANY,CAMX;IAEF,MAAM;QACF,OAAO,IAAI,CAAA;;iCAEc,iBAAiB;iCACjB,GAAG,EAAE,CAAC,IAAI,CAAA,yBAAyB;;SAE3D,CAAC;IACN,CAAC;;AAhBQ,QAAQ;IADpB,aAAa,CAAC,OAAO,CAAC;GACV,QAAQ,CAiBpB"}
@@ -0,0 +1,27 @@
1
+ /*************************************************************************
2
+ *
3
+ * ADOBE CONFIDENTIAL
4
+ * ___________________
5
+ *
6
+ * Copyright 2024 Adobe
7
+ * All Rights Reserved.
8
+ *
9
+ * NOTICE: All information contained herein is, and remains
10
+ * the property of Adobe and its suppliers, if any. The intellectual
11
+ * and technical concepts contained herein are proprietary to Adobe
12
+ * and its suppliers and are protected by all applicable intellectual
13
+ * property laws, including trade secret and copyright laws.
14
+ * Dissemination of this information or reproduction of this material
15
+ * is strictly forbidden unless prior written permission is obtained
16
+ * from Adobe.
17
+ **************************************************************************/
18
+ import './elements/todo-list/todo-list.js';
19
+ import './elements/todo-row/todo-row.js';
20
+ import './elements/todo-toolbar/todo-toolbar.js';
21
+ import './elements/todo-undo-redo/todo-undo-redo.js';
22
+ import { TodoElement } from './todo-element.js';
23
+ export declare const tagName = "data-todo";
24
+ export declare class TodoMainElement extends TodoElement {
25
+ static styles: import("lit").CSSResult;
26
+ render(): import("lit").TemplateResult<1>;
27
+ }
@@ -0,0 +1,63 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ /*************************************************************************
8
+ *
9
+ * ADOBE CONFIDENTIAL
10
+ * ___________________
11
+ *
12
+ * Copyright 2024 Adobe
13
+ * All Rights Reserved.
14
+ *
15
+ * NOTICE: All information contained herein is, and remains
16
+ * the property of Adobe and its suppliers, if any. The intellectual
17
+ * and technical concepts contained herein are proprietary to Adobe
18
+ * and its suppliers and are protected by all applicable intellectual
19
+ * property laws, including trade secret and copyright laws.
20
+ * Dissemination of this information or reproduction of this material
21
+ * is strictly forbidden unless prior written permission is obtained
22
+ * from Adobe.
23
+ **************************************************************************/
24
+ import './elements/todo-list/todo-list.js';
25
+ import './elements/todo-row/todo-row.js';
26
+ import './elements/todo-toolbar/todo-toolbar.js';
27
+ import './elements/todo-undo-redo/todo-undo-redo.js';
28
+ import { TodoElement } from './todo-element.js';
29
+ import { html, css } from 'lit';
30
+ import { customElement } from 'lit/decorators.js';
31
+ export const tagName = 'data-todo';
32
+ let TodoMainElement = class TodoMainElement extends TodoElement {
33
+ static { this.styles = css `
34
+ :host {
35
+ display: flex;
36
+ flex-direction: column;
37
+ height: 400px;
38
+ max-height: 400px;
39
+ overflow: hidden;
40
+ }
41
+
42
+ data-todo-toolbar {
43
+ flex-shrink: 0;
44
+ }
45
+
46
+ data-todo-list {
47
+ flex: 1;
48
+ overflow-y: auto;
49
+ min-height: 0;
50
+ }
51
+ `; }
52
+ render() {
53
+ return html `
54
+ <data-todo-toolbar></data-todo-toolbar>
55
+ <data-todo-list></data-todo-list>
56
+ `;
57
+ }
58
+ };
59
+ TodoMainElement = __decorate([
60
+ customElement(tagName)
61
+ ], TodoMainElement);
62
+ export { TodoMainElement };
63
+ //# sourceMappingURL=todo-main-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-main-element.js","sourceRoot":"","sources":["../../../src/samples/todo/todo-main-element.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;4EAgB4E;AAC5E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,iCAAiC,CAAC;AACzC,OAAO,yCAAyC,CAAC;AACjD,OAAO,6CAA6C,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC;AAG5B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,WAAW;aACvC,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;GAkBlB,AAlBY,CAkBX;IAEF,MAAM;QACJ,OAAO,IAAI,CAAA;;;KAGV,CAAC;IACJ,CAAC;;AA1BU,eAAe;IAD3B,aAAa,CAAC,OAAO,CAAC;GACV,eAAe,CA2B3B"}
@@ -0,0 +1,3 @@
1
+ import { Sample } from '../index.js';
2
+ import './todo-host.js';
3
+ export declare const todoSample: Sample;
@@ -0,0 +1,39 @@
1
+ /*MIT License
2
+
3
+ © Copyright 2025 Adobe. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.*/
22
+ import './todo-host.js'; // Side effect: registers todo-host
23
+ export const todoSample = {
24
+ id: 'todo',
25
+ title: 'Todo Application',
26
+ description: 'A complete todo application demonstrating ECS architecture, state management, undo/redo, and persistence.',
27
+ category: 'Application Examples',
28
+ difficulty: 'intermediate',
29
+ features: [
30
+ 'Entity-Component-System (ECS)',
31
+ 'State Management',
32
+ 'Undo/Redo System',
33
+ 'Local Storage Persistence',
34
+ 'Drag and Drop Reordering',
35
+ 'Reactive UI Updates'
36
+ ],
37
+ elementTag: 'todo-host'
38
+ };
39
+ //# sourceMappingURL=todo-sample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-sample.js","sourceRoot":"","sources":["../../../src/samples/todo/todo-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,OAAO,gBAAgB,CAAC,CAAE,mCAAmC;AAE7D,MAAM,CAAC,MAAM,UAAU,GAAW;IAC9B,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,2GAA2G;IACxH,QAAQ,EAAE,sBAAsB;IAChC,UAAU,EAAE,cAAc;IAC1B,QAAQ,EAAE;QACN,+BAA+B;QAC/B,kBAAkB;QAClB,kBAAkB;QAClB,2BAA2B;QAC3B,0BAA0B;QAC1B,qBAAqB;KACxB;IACD,UAAU,EAAE,WAAW;CAC1B,CAAC"}
@@ -33,6 +33,7 @@ export interface Schema {
33
33
  conditionals?: readonly Conditional[];
34
34
  ui?: UIProperties;
35
35
  transient?: boolean;
36
+ mutable?: boolean;
36
37
  default?: any;
37
38
  precision?: 1 | 2;
38
39
  multipleOf?: number;
@@ -53,22 +54,25 @@ export interface Schema {
53
54
  required?: readonly string[];
54
55
  additionalProperties?: boolean | Schema;
55
56
  oneOf?: readonly Schema[];
57
+ allOf?: readonly Schema[];
56
58
  const?: any;
57
59
  enum?: readonly any[];
58
60
  }
59
61
  export type FromSchemas<T> = {
60
62
  [K in keyof T]: FromSchema<T[K]>;
61
63
  };
62
- export type FromSchema<T, Depth extends number = 5> = DeepReadonly<Depth extends 0 ? any : T extends {
63
- type?: undefined;
64
- default: infer D;
65
- } ? D : T extends {
64
+ export type FromSchema<T, Depth extends number = 5> = T extends {
65
+ mutable: true;
66
+ } ? FromSchemaInternal<T> : DeepReadonly<Depth extends 0 ? any : FromSchemaInternal<T, Depth>>;
67
+ type FromSchemaInternal<T, Depth extends number = 5> = T extends {
66
68
  const: infer Const;
67
69
  } ? Const : T extends {
68
70
  enum: infer Enum;
69
71
  } ? Enum extends ReadonlyArray<any> ? Enum[number] : never : T extends {
70
72
  oneOf: infer Schemas;
71
73
  } ? Schemas extends ReadonlyArray<Schema> ? FromOneOfSchema<Schemas, Decrement<Depth>> : never : T extends {
74
+ allOf: infer Schemas;
75
+ } ? Schemas extends ReadonlyArray<Schema> ? FromAllOfSchema<Schemas, Decrement<Depth>> : never : T extends {
72
76
  type: 'number' | 'integer';
73
77
  } ? number : T extends {
74
78
  type: 'string';
@@ -79,7 +83,7 @@ export type FromSchema<T, Depth extends number = 5> = DeepReadonly<Depth extends
79
83
  } ? null : T extends {
80
84
  type: 'typed-buffer';
81
85
  items: infer Items;
82
- } ? TypedBuffer<FromSchema<Items>> : T extends {
86
+ } ? TypedBuffer<FromSchemaInternal<Items>> : T extends {
83
87
  type: 'array';
84
88
  } | {
85
89
  items: any;
@@ -90,7 +94,7 @@ export type FromSchema<T, Depth extends number = 5> = DeepReadonly<Depth extends
90
94
  type: 'object';
91
95
  } | {
92
96
  properties: any;
93
- } ? FromSchemaObject<T, Decrement<Depth>> : any>;
97
+ } ? FromSchemaObject<T, Decrement<Depth>> : any;
94
98
  type Decrement<N extends number> = ((...x: any[]) => void) extends (arg: any, ...rest: infer R) => void ? R['length'] : never;
95
99
  type FromSchemaArray<T, Depth extends number> = T extends {
96
100
  items: infer Items;
@@ -129,4 +133,5 @@ type Simplify<T> = T extends infer O ? {
129
133
  [K in keyof O]: O[K];
130
134
  } : never;
131
135
  type FromOneOfSchema<Schemas extends ReadonlyArray<Schema>, Depth extends number> = Schemas[number] extends infer S ? S extends Schema ? FromSchema<S, Depth> : never : never;
136
+ type FromAllOfSchema<Schemas extends ReadonlyArray<Schema>, Depth extends number> = Schemas extends readonly [infer First, ...infer Rest] ? First extends Schema ? Rest extends ReadonlyArray<Schema> ? FromSchema<First, Depth> & FromAllOfSchema<Rest, Depth> : FromSchema<First, Depth> : never : {};
132
137
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AA2MX,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;KACvB;IACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,KAAK;CACF,CAAC"}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AA4NX,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;KACvB;IACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,KAAK;CACF,CAAC"}