@adobe/data 0.5.16 → 0.5.17

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 (68) hide show
  1. package/dist/ecs/database/create-database.test.js +11 -0
  2. package/dist/ecs/database/create-database.test.js.map +1 -1
  3. package/dist/graphics/frame.d.ts +22 -1
  4. package/dist/graphics/frame.js +11 -14
  5. package/dist/graphics/frame.js.map +1 -1
  6. package/dist/graphics/get-web-gpu-device-and-context.d.ts +2 -1
  7. package/dist/graphics/get-web-gpu-device-and-context.js +20 -23
  8. package/dist/graphics/get-web-gpu-device-and-context.js.map +1 -1
  9. package/dist/graphics/graphics-context.d.ts +5 -1
  10. package/dist/graphics/graphics-context.js +0 -5
  11. package/dist/graphics/graphics-context.js.map +1 -1
  12. package/dist/lit/elements/service-application.d.ts +9 -0
  13. package/dist/lit/elements/service-application.js +55 -0
  14. package/dist/lit/elements/service-application.js.map +1 -0
  15. package/dist/lit/elements/service-context.d.ts +1 -0
  16. package/dist/{ecs/entity/u32.js → lit/elements/service-context.js} +3 -3
  17. package/dist/lit/elements/service-context.js.map +1 -0
  18. package/dist/lit/elements/service-element.d.ts +6 -0
  19. package/dist/lit/elements/service-element.js +43 -0
  20. package/dist/lit/elements/service-element.js.map +1 -0
  21. package/dist/observe/to-async-generator.js.map +1 -1
  22. package/dist/old-ecs/core-ecs/core-ecs-serialization.test.js +205 -1
  23. package/dist/old-ecs/core-ecs/core-ecs-serialization.test.js.map +1 -1
  24. package/dist/old-ecs/core-ecs/core-ecs-types.d.ts +4 -1
  25. package/dist/old-ecs/core-ecs/core-ecs.d.ts +2 -0
  26. package/dist/old-ecs/core-ecs/core-ecs.js +23 -9
  27. package/dist/old-ecs/core-ecs/core-ecs.js.map +1 -1
  28. package/dist/old-ecs/privacy/helper-functions.d.ts +43 -0
  29. package/dist/old-ecs/privacy/helper-functions.js +76 -0
  30. package/dist/old-ecs/privacy/helper-functions.js.map +1 -0
  31. package/dist/old-ecs/privacy/helper-functions.test.js +173 -0
  32. package/dist/old-ecs/privacy/helper-functions.test.js.map +1 -0
  33. package/dist/samples/todo/services/state-service/create-todo-database.d.ts +2 -2
  34. package/dist/samples/todo/services/state-service/create-todo-store.d.ts +2 -2
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +1 -1
  37. package/dist/ecs/entity/entity.d.ts +0 -8
  38. package/dist/ecs/entity/entity.js +0 -3
  39. package/dist/ecs/entity/entity.js.map +0 -1
  40. package/dist/ecs/entity/u32.d.ts +0 -8
  41. package/dist/ecs/entity/u32.js.map +0 -1
  42. package/dist/math/aabb-face/face.d.ts +0 -51
  43. package/dist/math/aabb-face/face.js +0 -110
  44. package/dist/math/aabb-face/face.js.map +0 -1
  45. package/dist/math/aabb-face/face.test.js +0 -94
  46. package/dist/math/aabb-face/face.test.js.map +0 -1
  47. package/dist/math/box/box.d.ts +0 -50
  48. package/dist/math/box/box.js +0 -23
  49. package/dist/math/box/box.js.map +0 -1
  50. package/dist/math/face/face.d.ts +0 -51
  51. package/dist/math/face/face.js +0 -110
  52. package/dist/math/face/face.js.map +0 -1
  53. package/dist/math/face/face.test.d.ts +0 -1
  54. package/dist/math/face/face.test.js +0 -94
  55. package/dist/math/face/face.test.js.map +0 -1
  56. package/dist/math/picking/face.d.ts +0 -1
  57. package/dist/math/picking/face.js +0 -2
  58. package/dist/math/picking/face.js.map +0 -1
  59. package/dist/math/picking/getClosestEntityToLine.d.ts +0 -4
  60. package/dist/math/picking/getClosestEntityToLine.js +0 -29
  61. package/dist/math/picking/getClosestEntityToLine.js.map +0 -1
  62. package/dist/math/picking/getClosestEntityToPoint.d.ts +0 -4
  63. package/dist/math/picking/getClosestEntityToPoint.js +0 -27
  64. package/dist/math/picking/getClosestEntityToPoint.js.map +0 -1
  65. package/dist/math/picking/getIntersectingEntities.d.ts +0 -12
  66. package/dist/math/picking/getIntersectingEntities.js +0 -15
  67. package/dist/math/picking/getIntersectingEntities.js.map +0 -1
  68. /package/dist/{math/aabb-face/face.test.d.ts → old-ecs/privacy/helper-functions.test.d.ts} +0 -0
@@ -0,0 +1,173 @@
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 { shouldIncludeComponentForSerialization, filterColumnForPrivacy, getFilteredColumn, filterTableForPrivacy } from "./helper-functions.js";
23
+ import { describe, expect, test } from "vitest";
24
+ describe("Privacy Helper Functions", () => {
25
+ test("shouldIncludeComponentForSerialization works correctly", () => {
26
+ const testCases = [
27
+ {
28
+ schema: { type: "string", privacy: "strictlyNecessary" },
29
+ options: { strictlyNecessary: true },
30
+ expected: true,
31
+ description: "strictlyNecessary with permission"
32
+ },
33
+ {
34
+ schema: { type: "string", privacy: "strictlyNecessary" },
35
+ options: undefined,
36
+ expected: true,
37
+ description: "strictlyNecessary without options (default)"
38
+ },
39
+ {
40
+ schema: { type: "string", privacy: "functional" },
41
+ options: { functional: true },
42
+ expected: true,
43
+ description: "functional with permission"
44
+ },
45
+ {
46
+ schema: { type: "string", privacy: "functional" },
47
+ options: { functional: false },
48
+ expected: false,
49
+ description: "functional without permission"
50
+ },
51
+ {
52
+ schema: { type: "string", privacy: "performance" },
53
+ options: { performance: true },
54
+ expected: true,
55
+ description: "performance with permission"
56
+ },
57
+ {
58
+ schema: { type: "string", privacy: "performance" },
59
+ options: { performance: false },
60
+ expected: false,
61
+ description: "performance without permission"
62
+ },
63
+ {
64
+ schema: { type: "string", privacy: "advertising" },
65
+ options: { advertising: true },
66
+ expected: true,
67
+ description: "advertising with permission"
68
+ },
69
+ {
70
+ schema: { type: "string", privacy: "advertising" },
71
+ options: { advertising: false },
72
+ expected: false,
73
+ description: "advertising without permission"
74
+ },
75
+ {
76
+ schema: { type: "string" },
77
+ options: {},
78
+ expected: true,
79
+ description: "no privacy classification (always included)"
80
+ },
81
+ {
82
+ schema: { type: "string" },
83
+ options: { strictlyNecessary: false, functional: false, performance: false, advertising: false },
84
+ expected: true,
85
+ description: "no privacy classification with all permissions false"
86
+ },
87
+ ];
88
+ for (const testCase of testCases) {
89
+ const result = shouldIncludeComponentForSerialization(testCase.schema, testCase.options);
90
+ expect(result).toBe(testCase.expected);
91
+ }
92
+ });
93
+ test("filterColumnForPrivacy replaces data with default values", () => {
94
+ const schema = { type: "string", default: "defaultValue" };
95
+ const rows = 3;
96
+ const originalData = ["value1", "value2", "value3"];
97
+ const result = filterColumnForPrivacy(schema, rows, originalData);
98
+ expect(result).toEqual(["defaultValue", "defaultValue", "defaultValue"]);
99
+ });
100
+ test("filterColumnForPrivacy handles empty data", () => {
101
+ const schema = { type: "string", default: "defaultValue" };
102
+ const rows = 0;
103
+ const originalData = [];
104
+ const result = filterColumnForPrivacy(schema, rows, originalData);
105
+ expect(result).toEqual([]);
106
+ });
107
+ test("filterColumnForPrivacy handles null/undefined data", () => {
108
+ const schema = { type: "string", default: "defaultValue" };
109
+ const rows = 2;
110
+ expect(filterColumnForPrivacy(schema, rows, null)).toBe(null);
111
+ expect(filterColumnForPrivacy(schema, rows, undefined)).toBe(undefined);
112
+ });
113
+ test("getFilteredColumn returns original data when component should be included", () => {
114
+ const componentSchemas = {
115
+ allowedComponent: { type: "string", privacy: "strictlyNecessary" }
116
+ };
117
+ const privacyOptions = { strictlyNecessary: true };
118
+ const originalData = ["value1", "value2"];
119
+ const rows = 2;
120
+ const [name, data] = getFilteredColumn("allowedComponent", privacyOptions, originalData, componentSchemas, rows);
121
+ expect(name).toBe("allowedComponent");
122
+ expect(data).toBe(originalData);
123
+ });
124
+ test("getFilteredColumn returns filtered data when component should be excluded", () => {
125
+ const componentSchemas = {
126
+ blockedComponent: { type: "string", privacy: "advertising", default: "blocked" }
127
+ };
128
+ const privacyOptions = { strictlyNecessary: true };
129
+ const originalData = ["value1", "value2"];
130
+ const rows = 2;
131
+ const [name, data] = getFilteredColumn("blockedComponent", privacyOptions, originalData, componentSchemas, rows);
132
+ expect(name).toBe("blockedComponent");
133
+ expect(data).toEqual(["blocked", "blocked"]);
134
+ });
135
+ test("filterTableForPrivacy filters table columns based on privacy", () => {
136
+ const componentSchemas = {
137
+ allowedComponent: { type: "string", privacy: "strictlyNecessary" },
138
+ blockedComponent: { type: "string", privacy: "advertising", default: "filtered" }
139
+ };
140
+ const privacyOptions = { strictlyNecessary: true };
141
+ const table = {
142
+ rows: 2,
143
+ columns: {
144
+ allowedComponent: ["allowed1", "allowed2"],
145
+ blockedComponent: ["blocked1", "blocked2"]
146
+ }
147
+ };
148
+ const result = filterTableForPrivacy(componentSchemas, table, privacyOptions);
149
+ expect(result.rows).toBe(2);
150
+ expect(result.columns.allowedComponent).toEqual(["allowed1", "allowed2"]);
151
+ expect(result.columns.blockedComponent).toEqual(["filtered", "filtered"]);
152
+ });
153
+ test("filterTableForPrivacy preserves table structure", () => {
154
+ const componentSchemas = {
155
+ comp1: { type: "string", privacy: "functional", default: "default1" },
156
+ comp2: { type: "number", privacy: "performance", default: 0 }
157
+ };
158
+ const privacyOptions = { functional: true };
159
+ const table = {
160
+ rows: 3,
161
+ columns: {
162
+ comp1: ["a", "b", "c"],
163
+ comp2: [1, 2, 3]
164
+ }
165
+ };
166
+ const result = filterTableForPrivacy(componentSchemas, table, privacyOptions);
167
+ expect(result.rows).toBe(3);
168
+ expect(Object.keys(result.columns)).toEqual(["comp1", "comp2"]);
169
+ expect(result.columns.comp1).toEqual(["a", "b", "c"]);
170
+ expect(result.columns.comp2).toEqual([0, 0, 0]);
171
+ });
172
+ });
173
+ //# sourceMappingURL=helper-functions.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper-functions.test.js","sourceRoot":"","sources":["../../../src/old-ecs/privacy/helper-functions.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AACX,OAAO,EAEH,sCAAsC,EACtC,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGhD,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACtC,IAAI,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,SAAS,GAA2F;YACtG;gBACI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;gBACxD,OAAO,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;gBACpC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mCAAmC;aACnD;YACD;gBACI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;gBACxD,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,6CAA6C;aAC7D;YACD;gBACI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE;gBACjD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K,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import * as transactions from './transactions/index.js';
2
2
  export declare const createTodoDatabase: () => import("../../../../ecs/index.js").Database<{
3
3
  name: string;
4
- order: number;
5
4
  todo: true;
6
5
  complete: boolean;
6
+ order: number;
7
7
  dragPosition: number | null;
8
8
  }, {
9
9
  displayCompleted: boolean;
10
10
  }, {
11
- Todo: ("name" | "order" | "todo" | "complete" | "dragPosition")[];
11
+ Todo: ("name" | "todo" | "complete" | "order" | "dragPosition")[];
12
12
  }, import("../../../../ecs/index.js").ToTransactionFunctions<typeof transactions>>;
13
13
  export type TodoDatabase = ReturnType<typeof createTodoDatabase>;
@@ -1,13 +1,13 @@
1
1
  export declare const todoStoreSchemaVersion = 1;
2
2
  export declare const createTodoStore: () => import("../../../../ecs/index.js").Store<{
3
3
  name: string;
4
- order: number;
5
4
  todo: true;
6
5
  complete: boolean;
6
+ order: number;
7
7
  dragPosition: number | null;
8
8
  }, {
9
9
  displayCompleted: boolean;
10
10
  }, {
11
- Todo: ("name" | "order" | "todo" | "complete" | "dragPosition")[];
11
+ Todo: ("name" | "todo" | "complete" | "order" | "dragPosition")[];
12
12
  }>;
13
13
  export type TodoStore = ReturnType<typeof createTodoStore>;