@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.
- package/dist/cache/functions/hashing/blob-to-hash.js +59 -11
- package/dist/cache/functions/hashing/blob-to-hash.js.map +1 -1
- package/dist/cache/functions/hashing/hashing.test.js +59 -0
- package/dist/cache/functions/hashing/hashing.test.js.map +1 -1
- package/dist/ecs/database/concurrency/concurrency-strategy.d.ts +10 -10
- package/dist/ecs/database/concurrency/immediate-concurrency.d.ts +3 -3
- package/dist/ecs/database/concurrency/immediate-concurrency.js +9 -9
- package/dist/ecs/database/concurrency/immediate-concurrency.js.map +1 -1
- package/dist/ecs/database/concurrency/roll-forward-concurrency.js +4 -4
- package/dist/ecs/database/concurrency/roll-forward-concurrency.js.map +1 -1
- package/dist/ecs/database/database.d.ts +5 -5
- package/dist/ecs/database/observed/create-observed-database.js +5 -5
- package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
- package/dist/ecs/database/public/create-transaction-dispatcher.d.ts +4 -4
- package/dist/ecs/database/public/create-transaction-dispatcher.js +15 -15
- package/dist/ecs/database/public/create-transaction-dispatcher.js.map +1 -1
- package/dist/ecs/database/reconciling/create-rebase-replay-applier.js +3 -3
- package/dist/ecs/database/reconciling/create-rebase-replay-applier.js.map +1 -1
- package/dist/ecs/database/transactional-store/coalesce-actions.js +2 -2
- package/dist/ecs/database/transactional-store/coalesce-actions.js.map +1 -1
- package/dist/ecs/database/transactional-store/coalesce-actions.test.js +57 -57
- package/dist/ecs/database/transactional-store/coalesce-actions.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.js +13 -13
- package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js +51 -51
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/transaction-options.d.ts +3 -3
- package/dist/ecs/database/transactional-store/transactional-store.d.ts +4 -4
- package/dist/ecs/entity/is-ephemeral.d.ts +3 -0
- package/dist/ecs/entity/is-ephemeral.js +4 -1
- package/dist/ecs/entity/is-ephemeral.js.map +1 -1
- package/dist/ecs/entity/is-ephemeral.test.js +22 -5
- package/dist/ecs/entity/is-ephemeral.test.js.map +1 -1
- package/dist/ecs/entity/public.d.ts +1 -1
- package/dist/ecs/entity/public.js +1 -1
- package/dist/ecs/entity/public.js.map +1 -1
- package/dist/ecs/optional-components.d.ts +3 -1
- package/dist/ecs/persistence-service/create-storage-persistence-service.js +1 -1
- package/dist/ecs/persistence-service/create-storage-persistence-service.js.map +1 -1
- package/dist/ecs/plugins/scheduler/scheduler.js +9 -2
- package/dist/ecs/plugins/scheduler/scheduler.js.map +1 -1
- package/dist/ecs/store/archetype-row.d.ts +16 -0
- package/dist/ecs/store/archetype-row.js +2 -0
- package/dist/ecs/store/archetype-row.js.map +1 -0
- package/dist/ecs/store/core/create-core.js +15 -10
- package/dist/ecs/store/core/create-core.js.map +1 -1
- package/dist/ecs/store/index.d.ts +1 -0
- package/dist/ecs/store/index.js.map +1 -1
- package/dist/ecs/store/public/create-store.js +5 -5
- package/dist/ecs/store/public/create-store.js.map +1 -1
- package/dist/ecs/store/store.js +6 -0
- package/dist/ecs/store/store.js.map +1 -1
- package/dist/ecs/undo-redo-service/create-undo-redo-service.js +1 -1
- package/dist/ecs/undo-redo-service/create-undo-redo-service.js.map +1 -1
- package/dist/math/mat4x4/functions.js +6 -3
- package/dist/math/mat4x4/functions.js.map +1 -1
- package/dist/math/quat/index.d.ts +1 -3
- package/dist/math/quat/schema.d.ts +3 -0
- package/dist/math/quat/schema.js +4 -0
- package/dist/math/quat/schema.js.map +1 -1
- package/dist/observe/with-batch.js +7 -6
- package/dist/observe/with-batch.js.map +1 -1
- package/dist/observe/with-batch.test.js +11 -0
- package/dist/observe/with-batch.test.js.map +1 -1
- package/dist/observe/with-deduplicate-data.js +4 -2
- package/dist/observe/with-deduplicate-data.js.map +1 -1
- package/dist/observe/with-deduplicate-data.test.d.ts +1 -0
- package/dist/observe/with-deduplicate-data.test.js +39 -0
- package/dist/observe/with-deduplicate-data.test.js.map +1 -0
- package/dist/observe/with-filter.d.ts +4 -3
- package/dist/observe/with-filter.js +3 -2
- package/dist/observe/with-filter.js.map +1 -1
- package/dist/observe/with-filter.type-test.d.ts +1 -0
- package/dist/observe/with-filter.type-test.js +14 -0
- package/dist/observe/with-filter.type-test.js.map +1 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/schema.d.ts +7 -0
- package/dist/service/ui-service/public.d.ts +1 -0
- package/dist/service/ui-service/public.js +1 -0
- package/dist/service/ui-service/public.js.map +1 -1
- package/dist/service/ui-service/restrict.d.ts +17 -0
- package/dist/service/ui-service/restrict.js +5 -0
- package/dist/service/ui-service/restrict.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typed-buffer/register-typed-buffer-codecs.js +4 -4
- package/dist/typed-buffer/register-typed-buffer-codecs.js.map +1 -1
- package/dist/typed-buffer/structs/index.d.ts +2 -0
- package/dist/typed-buffer/structs/index.js +2 -0
- package/dist/typed-buffer/structs/index.js.map +1 -1
- package/dist/typed-buffer/structs/wgsl-struct-fields.d.ts +17 -0
- package/dist/typed-buffer/structs/wgsl-struct-fields.js +58 -0
- package/dist/typed-buffer/structs/wgsl-struct-fields.js.map +1 -0
- package/package.json +2 -1
- package/references/data-lit/package.json +1 -1
- package/references/data-lit/src/elements/database-element.ts +22 -7
- package/references/data-lit/src/hooks/use-drag-transaction.ts +2 -2
- package/references/data-lit/src/hooks/use-pointer-observe.ts +2 -2
- package/references/data-lit-tictactoe/package.json +1 -1
- package/references/data-lit-tictactoe/src/elements/tictactoe-app/tictactoe-app.ts +1 -1
- package/references/data-react/package.json +1 -1
- package/references/data-react-hello/package.json +3 -2
- package/references/data-react-pixie/package.json +1 -1
- package/dist/service/async-data-service/index.d.ts +0 -1
- package/dist/service/async-data-service/index.js +0 -3
- package/dist/service/async-data-service/index.js.map +0 -1
package/dist/schema/schema.d.ts
CHANGED
|
@@ -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 +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 @@
|
|
|
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"}
|