@adobe/data 0.9.2 → 0.9.4
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/assembly/package.json +1 -0
- package/blob/package.json +1 -0
- package/cache/package.json +1 -0
- package/ecs/database/combine-plugins.d.ts +21 -0
- package/ecs/database/combine-plugins.js +47 -0
- package/ecs/database/combine-plugins.js.map +1 -0
- package/ecs/database/create-plugin.d.ts +22 -55
- package/ecs/database/create-plugin.js +15 -24
- package/ecs/database/create-plugin.js.map +1 -1
- package/ecs/database/create-plugin.test.js +111 -65
- package/ecs/database/create-plugin.test.js.map +1 -1
- package/ecs/database/create-plugin.type-test.d.ts +1 -0
- package/ecs/database/create-plugin.type-test.js +671 -0
- package/ecs/database/create-plugin.type-test.js.map +1 -0
- package/ecs/database/database-schema/create-database-schema.d.ts +3 -3
- package/ecs/database/database-schema/database-schema.d.ts +3 -3
- package/ecs/database/database.d.ts +33 -45
- package/ecs/database/database.js +2 -16
- package/ecs/database/database.js.map +1 -1
- package/ecs/database/database.test.js +17 -11
- package/ecs/database/database.test.js.map +1 -1
- package/ecs/database/observed/create-observed-database.test.js +5 -6
- package/ecs/database/observed/create-observed-database.test.js.map +1 -1
- package/ecs/database/public/create-database-scheduler.test.d.ts +1 -0
- package/ecs/database/public/create-database-scheduler.test.js +82 -0
- package/ecs/database/public/create-database-scheduler.test.js.map +1 -0
- package/ecs/database/public/create-database.d.ts +18 -5
- package/ecs/database/public/create-database.js +73 -39
- package/ecs/database/public/create-database.js.map +1 -1
- package/ecs/database/public/create-database.test.js +156 -159
- package/ecs/database/public/create-database.test.js.map +1 -1
- package/ecs/database/reconciling/create-reconciling-database.d.ts +2 -2
- package/ecs/database/reconciling/create-reconciling-database.js.map +1 -1
- package/ecs/database/reconciling/create-reconciling-database.test.js +4 -6
- package/ecs/database/reconciling/create-reconciling-database.test.js.map +1 -1
- package/ecs/database/reconciling/reconciling-database.d.ts +2 -2
- package/ecs/index.d.ts +1 -2
- package/ecs/index.js +1 -1
- package/ecs/index.js.map +1 -1
- package/ecs/package.json +1 -0
- package/ecs/plugins/scheduler/scheduler.d.ts +6 -2
- package/ecs/plugins/scheduler/scheduler.js +17 -3
- package/ecs/plugins/scheduler/scheduler.js.map +1 -1
- package/ecs/store/action-functions.d.ts +9 -10
- package/ecs/store/action-functions.js +21 -0
- package/ecs/store/action-functions.js.map +1 -1
- package/ecs/store/archetype-components.d.ts +4 -2
- package/ecs/store/public/create-store.d.ts +1 -2
- package/ecs/store/store.d.ts +5 -5
- package/ecs/store/transaction-functions.d.ts +21 -0
- package/ecs/store/transaction-functions.js +2 -0
- package/ecs/store/transaction-functions.js.map +1 -0
- package/functions/package.json +1 -0
- package/lit/hooks/use-drag-transaction.d.ts +1 -1
- package/lit/package.json +1 -0
- package/math/package.json +1 -0
- package/observe/package.json +1 -0
- package/old-ecs/package.json +1 -0
- package/package.json +109 -1
- package/perftest/package.json +1 -0
- package/samples/package.json +1 -0
- package/samples/todo/services/state-service/create-todo-database.d.ts +2 -2
- package/samples/todo/services/state-service/create-todo-store.d.ts +1 -1
- package/schema/package.json +1 -0
- package/service/package.json +1 -0
- package/table/package.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/typed-buffer/package.json +1 -0
- package/types/package.json +1 -0
- package/types/types.d.ts +1 -0
- package/types/types.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DragEnd, DragMove, DragObserveProps } from './use-drag-observe.js';
|
|
2
|
-
import type { AsyncArgsProvider } from '../../ecs/store/
|
|
2
|
+
import type { AsyncArgsProvider } from '../../ecs/store/transaction-functions.js';
|
|
3
3
|
export type DragTransactionProps<T> = DragObserveProps & {
|
|
4
4
|
transaction: (asyncArgs: AsyncArgsProvider<T>) => void;
|
|
5
5
|
update: (drag: DragMove | DragEnd) => T | void;
|
package/lit/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/data",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Adobe data oriented programming library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -66,6 +66,114 @@
|
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"lit": "^3.3.1"
|
|
68
68
|
},
|
|
69
|
+
"typesVersions": {
|
|
70
|
+
"*": {
|
|
71
|
+
"*": [
|
|
72
|
+
"./index.d.ts"
|
|
73
|
+
],
|
|
74
|
+
"functions": [
|
|
75
|
+
"./functions/index.d.ts"
|
|
76
|
+
],
|
|
77
|
+
"observe": [
|
|
78
|
+
"./observe/index.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"cache": [
|
|
81
|
+
"./cache/index.d.ts"
|
|
82
|
+
],
|
|
83
|
+
"schema": [
|
|
84
|
+
"./schema/index.d.ts"
|
|
85
|
+
],
|
|
86
|
+
"types": [
|
|
87
|
+
"./types/index.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"blob": [
|
|
90
|
+
"./blob/index.d.ts"
|
|
91
|
+
],
|
|
92
|
+
"ecs": [
|
|
93
|
+
"./ecs/index.d.ts"
|
|
94
|
+
],
|
|
95
|
+
"old-ecs": [
|
|
96
|
+
"./old-ecs/index.d.ts"
|
|
97
|
+
],
|
|
98
|
+
"lit": [
|
|
99
|
+
"./lit/index.d.ts"
|
|
100
|
+
],
|
|
101
|
+
"service": [
|
|
102
|
+
"./service/index.d.ts"
|
|
103
|
+
],
|
|
104
|
+
"table": [
|
|
105
|
+
"./table/index.d.ts"
|
|
106
|
+
],
|
|
107
|
+
"typed-buffer": [
|
|
108
|
+
"./typed-buffer/index.d.ts"
|
|
109
|
+
],
|
|
110
|
+
"math": [
|
|
111
|
+
"./math/index.d.ts"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"exports": {
|
|
116
|
+
".": {
|
|
117
|
+
"import": "./index.js",
|
|
118
|
+
"types": "./index.d.ts"
|
|
119
|
+
},
|
|
120
|
+
"./functions": {
|
|
121
|
+
"import": "./functions/index.js",
|
|
122
|
+
"types": "./functions/index.d.ts"
|
|
123
|
+
},
|
|
124
|
+
"./blob": {
|
|
125
|
+
"import": "./blob/index.js",
|
|
126
|
+
"types": "./blob/index.d.ts"
|
|
127
|
+
},
|
|
128
|
+
"./cache": {
|
|
129
|
+
"import": "./cache/index.js",
|
|
130
|
+
"types": "./cache/index.d.ts"
|
|
131
|
+
},
|
|
132
|
+
"./schema": {
|
|
133
|
+
"import": "./schema/index.js",
|
|
134
|
+
"types": "./schema/index.d.ts"
|
|
135
|
+
},
|
|
136
|
+
"./types": {
|
|
137
|
+
"import": "./types/index.js",
|
|
138
|
+
"types": "./types/index.d.ts"
|
|
139
|
+
},
|
|
140
|
+
"./observe": {
|
|
141
|
+
"import": "./observe/index.js",
|
|
142
|
+
"types": "./observe/index.d.ts"
|
|
143
|
+
},
|
|
144
|
+
"./ecs": {
|
|
145
|
+
"import": "./ecs/index.js",
|
|
146
|
+
"types": "./ecs/index.d.ts"
|
|
147
|
+
},
|
|
148
|
+
"./old-ecs": {
|
|
149
|
+
"import": "./old-ecs/index.js",
|
|
150
|
+
"types": "./old-ecs/index.d.ts"
|
|
151
|
+
},
|
|
152
|
+
"./lit": {
|
|
153
|
+
"import": "./lit/index.js",
|
|
154
|
+
"types": "./lit/index.d.ts"
|
|
155
|
+
},
|
|
156
|
+
"./service": {
|
|
157
|
+
"import": "./service/index.js",
|
|
158
|
+
"types": "./service/index.d.ts"
|
|
159
|
+
},
|
|
160
|
+
"./table": {
|
|
161
|
+
"import": "./table/index.js",
|
|
162
|
+
"types": "./table/index.d.ts"
|
|
163
|
+
},
|
|
164
|
+
"./typed-buffer": {
|
|
165
|
+
"import": "./typed-buffer/index.js",
|
|
166
|
+
"types": "./typed-buffer/index.d.ts"
|
|
167
|
+
},
|
|
168
|
+
"./math": {
|
|
169
|
+
"import": "./math/index.js",
|
|
170
|
+
"types": "./math/index.d.ts"
|
|
171
|
+
},
|
|
172
|
+
"./*": {
|
|
173
|
+
"types": "./*.d.ts",
|
|
174
|
+
"import": "./*.js"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
69
177
|
"scripts": {
|
|
70
178
|
"build": "pnpm copy && pnpm build-assembly && run-p build:*",
|
|
71
179
|
"build:code": "tsc -b",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -32,6 +32,6 @@ export declare const createTodoDatabase: () => Database<import("../../../../sche
|
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
34
|
}>, {
|
|
35
|
-
Todo: ("
|
|
36
|
-
}, import("../../../../ecs/index.js").
|
|
35
|
+
Todo: ("order" | "name" | "todo" | "complete" | "dragPosition")[];
|
|
36
|
+
}, import("../../../../ecs/index.js").ToTransactionFunctions<typeof actions>, never, {}>;
|
|
37
37
|
export type TodoDatabase = ReturnType<typeof createTodoDatabase>;
|
|
@@ -32,6 +32,6 @@ export declare const createTodoStore: () => Store<import("../../../../schema/fro
|
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
34
|
}>, {
|
|
35
|
-
Todo: ("
|
|
35
|
+
Todo: ("order" | "name" | "todo" | "complete" | "dragPosition")[];
|
|
36
36
|
}>;
|
|
37
37
|
export type TodoStore = ReturnType<typeof createTodoStore>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","main":"./index.js","types":"./index.d.ts","exports":{".": {"import":"./index.js","types":"./index.d.ts"}}}
|