@adobe/data 0.9.68 → 0.9.70

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 (107) hide show
  1. package/dist/cache/functions/hashing/blob-to-hash.js +59 -11
  2. package/dist/cache/functions/hashing/blob-to-hash.js.map +1 -1
  3. package/dist/cache/functions/hashing/hashing.test.js +59 -0
  4. package/dist/cache/functions/hashing/hashing.test.js.map +1 -1
  5. package/dist/ecs/database/concurrency/concurrency-strategy.d.ts +10 -10
  6. package/dist/ecs/database/concurrency/immediate-concurrency.d.ts +3 -3
  7. package/dist/ecs/database/concurrency/immediate-concurrency.js +9 -9
  8. package/dist/ecs/database/concurrency/immediate-concurrency.js.map +1 -1
  9. package/dist/ecs/database/concurrency/roll-forward-concurrency.js +4 -4
  10. package/dist/ecs/database/concurrency/roll-forward-concurrency.js.map +1 -1
  11. package/dist/ecs/database/database.d.ts +5 -5
  12. package/dist/ecs/database/observed/create-observed-database.js +5 -5
  13. package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
  14. package/dist/ecs/database/public/create-transaction-dispatcher.d.ts +4 -4
  15. package/dist/ecs/database/public/create-transaction-dispatcher.js +15 -15
  16. package/dist/ecs/database/public/create-transaction-dispatcher.js.map +1 -1
  17. package/dist/ecs/database/reconciling/create-rebase-replay-applier.js +3 -3
  18. package/dist/ecs/database/reconciling/create-rebase-replay-applier.js.map +1 -1
  19. package/dist/ecs/database/transactional-store/coalesce-actions.js +2 -2
  20. package/dist/ecs/database/transactional-store/coalesce-actions.js.map +1 -1
  21. package/dist/ecs/database/transactional-store/coalesce-actions.test.js +57 -57
  22. package/dist/ecs/database/transactional-store/coalesce-actions.test.js.map +1 -1
  23. package/dist/ecs/database/transactional-store/create-transactional-store.js +13 -13
  24. package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
  25. package/dist/ecs/database/transactional-store/create-transactional-store.test.js +51 -51
  26. package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
  27. package/dist/ecs/database/transactional-store/transaction-options.d.ts +3 -3
  28. package/dist/ecs/database/transactional-store/transactional-store.d.ts +4 -4
  29. package/dist/ecs/entity/is-ephemeral.d.ts +3 -0
  30. package/dist/ecs/entity/is-ephemeral.js +4 -1
  31. package/dist/ecs/entity/is-ephemeral.js.map +1 -1
  32. package/dist/ecs/entity/is-ephemeral.test.js +22 -5
  33. package/dist/ecs/entity/is-ephemeral.test.js.map +1 -1
  34. package/dist/ecs/entity/public.d.ts +1 -1
  35. package/dist/ecs/entity/public.js +1 -1
  36. package/dist/ecs/entity/public.js.map +1 -1
  37. package/dist/ecs/optional-components.d.ts +3 -1
  38. package/dist/ecs/persistence-service/create-storage-persistence-service.js +1 -1
  39. package/dist/ecs/persistence-service/create-storage-persistence-service.js.map +1 -1
  40. package/dist/ecs/plugins/scheduler/scheduler.js +9 -2
  41. package/dist/ecs/plugins/scheduler/scheduler.js.map +1 -1
  42. package/dist/ecs/store/archetype-row.d.ts +16 -0
  43. package/dist/ecs/store/archetype-row.js +2 -0
  44. package/dist/ecs/store/archetype-row.js.map +1 -0
  45. package/dist/ecs/store/core/create-core.js +15 -10
  46. package/dist/ecs/store/core/create-core.js.map +1 -1
  47. package/dist/ecs/store/index.d.ts +1 -0
  48. package/dist/ecs/store/index.js.map +1 -1
  49. package/dist/ecs/store/public/create-store.js +5 -5
  50. package/dist/ecs/store/public/create-store.js.map +1 -1
  51. package/dist/ecs/store/store.js +6 -0
  52. package/dist/ecs/store/store.js.map +1 -1
  53. package/dist/ecs/undo-redo-service/create-undo-redo-service.js +1 -1
  54. package/dist/ecs/undo-redo-service/create-undo-redo-service.js.map +1 -1
  55. package/dist/math/mat4x4/functions.js +6 -3
  56. package/dist/math/mat4x4/functions.js.map +1 -1
  57. package/dist/math/quat/index.d.ts +1 -3
  58. package/dist/math/quat/schema.d.ts +3 -0
  59. package/dist/math/quat/schema.js +4 -0
  60. package/dist/math/quat/schema.js.map +1 -1
  61. package/dist/observe/with-batch.js +7 -6
  62. package/dist/observe/with-batch.js.map +1 -1
  63. package/dist/observe/with-batch.test.js +11 -0
  64. package/dist/observe/with-batch.test.js.map +1 -1
  65. package/dist/observe/with-deduplicate-data.js +4 -2
  66. package/dist/observe/with-deduplicate-data.js.map +1 -1
  67. package/dist/observe/with-deduplicate-data.test.d.ts +1 -0
  68. package/dist/observe/with-deduplicate-data.test.js +39 -0
  69. package/dist/observe/with-deduplicate-data.test.js.map +1 -0
  70. package/dist/observe/with-filter.d.ts +4 -3
  71. package/dist/observe/with-filter.js +3 -2
  72. package/dist/observe/with-filter.js.map +1 -1
  73. package/dist/observe/with-filter.type-test.d.ts +1 -0
  74. package/dist/observe/with-filter.type-test.js +14 -0
  75. package/dist/observe/with-filter.type-test.js.map +1 -0
  76. package/dist/schema/index.d.ts +2 -0
  77. package/dist/schema/index.js +1 -0
  78. package/dist/schema/index.js.map +1 -1
  79. package/dist/schema/schema.d.ts +7 -0
  80. package/dist/service/ui-service/public.d.ts +1 -0
  81. package/dist/service/ui-service/public.js +1 -0
  82. package/dist/service/ui-service/public.js.map +1 -1
  83. package/dist/service/ui-service/restrict.d.ts +17 -0
  84. package/dist/service/ui-service/restrict.js +5 -0
  85. package/dist/service/ui-service/restrict.js.map +1 -0
  86. package/dist/tsconfig.tsbuildinfo +1 -1
  87. package/dist/typed-buffer/register-typed-buffer-codecs.js +4 -4
  88. package/dist/typed-buffer/register-typed-buffer-codecs.js.map +1 -1
  89. package/dist/typed-buffer/structs/index.d.ts +2 -0
  90. package/dist/typed-buffer/structs/index.js +2 -0
  91. package/dist/typed-buffer/structs/index.js.map +1 -1
  92. package/dist/typed-buffer/structs/wgsl-struct-fields.d.ts +17 -0
  93. package/dist/typed-buffer/structs/wgsl-struct-fields.js +58 -0
  94. package/dist/typed-buffer/structs/wgsl-struct-fields.js.map +1 -0
  95. package/package.json +2 -1
  96. package/references/data-lit/package.json +1 -1
  97. package/references/data-lit/src/elements/database-element.ts +22 -7
  98. package/references/data-lit/src/hooks/use-drag-transaction.ts +2 -2
  99. package/references/data-lit/src/hooks/use-pointer-observe.ts +2 -2
  100. package/references/data-lit-tictactoe/package.json +1 -1
  101. package/references/data-lit-tictactoe/src/elements/tictactoe-app/tictactoe-app.ts +1 -1
  102. package/references/data-react/package.json +1 -1
  103. package/references/data-react-hello/package.json +3 -2
  104. package/references/data-react-pixie/package.json +1 -1
  105. package/dist/service/async-data-service/index.d.ts +0 -1
  106. package/dist/service/async-data-service/index.js +0 -3
  107. package/dist/service/async-data-service/index.js.map +0 -1
@@ -27,6 +27,8 @@ export interface Schema {
27
27
  title?: string;
28
28
  description?: string;
29
29
  conditionals?: readonly Conditional[];
30
+ nonPersistent?: boolean;
31
+ /** @deprecated Use `nonPersistent` instead */
30
32
  ephemeral?: boolean;
31
33
  mutable?: boolean;
32
34
  default?: any;
@@ -54,5 +56,10 @@ export interface Schema {
54
56
  const?: any;
55
57
  enum?: readonly any[];
56
58
  layout?: Layout;
59
+ interpolators?: {
60
+ readonly linear?: (prev: any, next: any, t: number) => any;
61
+ readonly step?: (prev: any, next: any, t: number) => any;
62
+ readonly cubicSpline?: (prev: any, next: any, t: number) => any;
63
+ };
57
64
  }
58
65
  export {};
@@ -1,2 +1,3 @@
1
1
  export * from "./is-valid.js";
2
2
  export * from "./from-service.js";
3
+ export * from "./restrict.js";
@@ -1,4 +1,5 @@
1
1
  // © 2026 Adobe. MIT License. See /LICENSE for details.
2
2
  export * from "./is-valid.js";
3
3
  export * from "./from-service.js";
4
+ export * from "./restrict.js";
4
5
  //# sourceMappingURL=public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/service/ui-service/public.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/service/ui-service/public.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { Service } from "../service.js";
2
+ import type { FromService } from "./from-service.js";
3
+ /**
4
+ * Narrows a full service/database to its UI-restricted view (see
5
+ * {@link FromService}): transactions and other mutators become fire-and-forget
6
+ * `void`, while `observe` surfaces pass through. The restriction is **purely
7
+ * type-level** — the value returned is the very same instance — so this is the
8
+ * single sanctioned boundary between the full transactional surface (used by
9
+ * controllers / bootstrap containers) and the surface UI widgets consume.
10
+ *
11
+ * `T` is always assignable to `FromService<T>` by construction, but TypeScript
12
+ * cannot prove it for a generic `T` (the `IsValid<T>` conditional inside
13
+ * `FromService` stays deferred). Rather than reach for a cast, we declare the
14
+ * precise mapped return as an overload and broaden the *implementation*
15
+ * signature to `Service` — the identity body then type-checks with no cast.
16
+ */
17
+ export declare function restrict<T extends Service>(service: T): FromService<T>;
@@ -0,0 +1,5 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export function restrict(service) {
3
+ return service;
4
+ }
5
+ //# sourceMappingURL=restrict.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restrict.js","sourceRoot":"","sources":["../../../src/service/ui-service/restrict.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAoBvD,MAAM,UAAU,QAAQ,CAAC,OAAgB;IACrC,OAAO,OAAO,CAAC;AACnB,CAAC"}