@lls/store 24.7.0-ba04a5c1 → 24.7.0-bf452c58

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 (2) hide show
  1. package/lib/index.js +4 -12
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -990,17 +990,10 @@ var useSearchCopyNotifications = makeUseSearch(makeSearchCopyNotifications);
990
990
  // src/selectors/document.ts
991
991
  init_define_import_meta();
992
992
  import { makeEntitiesFilter as makeEntitiesFilter8 } from "@lls/utils";
993
- var search10 = ({
994
- ids,
995
- uuids,
996
- resourceIds,
997
- levelIds
998
- }) => {
993
+ var search10 = ({ ids, resourceIds }) => {
999
994
  return makeEntitiesFilter8({
1000
995
  id: ids,
1001
- resourceId: resourceIds,
1002
- levels: levelIds,
1003
- uuidV2: uuids
996
+ resourceId: resourceIds
1004
997
  });
1005
998
  };
1006
999
  var { useSearchDocuments } = crud("documents", {
@@ -1427,7 +1420,7 @@ var auth_default = auth;
1427
1420
  init_define_import_meta();
1428
1421
  var import_normalizr = __toESM(require_normalizr(), 1);
1429
1422
  import _19 from "lodash/fp.js";
1430
- var document = new import_normalizr.schema.Entity("documents");
1423
+ var document = new import_normalizr.schema.Entity("documents", {}, { idAttribute: "resourceId" });
1431
1424
  var subject = new import_normalizr.schema.Entity("subjects");
1432
1425
  var level = new import_normalizr.schema.Entity("levels");
1433
1426
  var book = new import_normalizr.schema.Entity("books");
@@ -1487,8 +1480,7 @@ var garDivisionSchema = define(garDivision, {
1487
1480
  school
1488
1481
  });
1489
1482
  var documentSchema = define(document, {
1490
- page,
1491
- levels: [level]
1483
+ page
1492
1484
  });
1493
1485
  var chapterSchema = define(chapter, {
1494
1486
  book,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lls/store",
3
3
  "description": "model de donnée et selecteurs",
4
4
  "homepage": "https://github.com/lelivrescolaire/monorepo/tree/dev/libs/store",
5
- "version": "24.7.0-ba04a5c1",
5
+ "version": "24.7.0-bf452c58",
6
6
  "type": "module",
7
7
  "types": "./lib/builttypes/store/src/index.d.ts",
8
8
  "exports": {
@@ -48,8 +48,8 @@
48
48
  "typescript": "5.6.3",
49
49
  "vite": "5.4.11",
50
50
  "vite-tsconfig-paths": "5.1.3",
51
- "@lls/utils": "24.7.0-ba04a5c1",
52
- "@lls/vitescripts": "24.7.0-ba04a5c1"
51
+ "@lls/utils": "24.7.0-bf452c58",
52
+ "@lls/vitescripts": "24.7.0-bf452c58"
53
53
  },
54
54
  "license": "ISC",
55
55
  "dependencies": {