@supernova-studio/model 0.53.3 → 0.53.5

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/index.mjs CHANGED
@@ -643,7 +643,6 @@ var ComponentElementData = z33.object({
643
643
  });
644
644
 
645
645
  // src/dsm/elements/data/documentation-block-v1.ts
646
- import deepEqual from "deep-equal";
647
646
  import { z as z40 } from "zod";
648
647
 
649
648
  // src/utils/errors.ts
@@ -797,6 +796,27 @@ async function sleep(ms) {
797
796
  function uniqueBy(items, prop) {
798
797
  return Array.from(mapByUnique(items, prop).values());
799
798
  }
799
+ function areShallowObjectsEqual(lhs, rhs) {
800
+ if (lhs === void 0 !== (rhs === void 0))
801
+ return false;
802
+ if (lhs === void 0 || rhs === void 0)
803
+ return true;
804
+ if (lhs === null !== (rhs === null))
805
+ return false;
806
+ if (lhs === null || rhs === null)
807
+ return true;
808
+ for (const key in lhs) {
809
+ if (!(key in rhs) || lhs[key] !== rhs[key]) {
810
+ return false;
811
+ }
812
+ }
813
+ for (const key in rhs) {
814
+ if (!(key in lhs)) {
815
+ return false;
816
+ }
817
+ }
818
+ return true;
819
+ }
800
820
 
801
821
  // src/utils/content-loader-instruction.ts
802
822
  import { z as z34 } from "zod";
@@ -1977,7 +1997,7 @@ function areAttributesEqual(lhs, rhs) {
1977
1997
  const lhsMap = mapByUnique(lhs, (i) => i.type);
1978
1998
  for (const rhsAttribute of rhs) {
1979
1999
  const lhsAttribute = lhsMap.get(rhsAttribute.type);
1980
- if (!deepEqual(lhsAttribute, rhsAttribute))
2000
+ if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
1981
2001
  return false;
1982
2002
  }
1983
2003
  return true;
@@ -5064,7 +5084,7 @@ import { z as z165 } from "zod";
5064
5084
 
5065
5085
  // src/workspace/workspace-role.ts
5066
5086
  import { z as z164 } from "zod";
5067
- var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
5087
+ var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5068
5088
  var WorkspaceRole = WorkspaceRoleSchema.enum;
5069
5089
 
5070
5090
  // src/workspace/user-invite.ts
@@ -5754,6 +5774,7 @@ export {
5754
5774
  ZIndexUnit,
5755
5775
  ZIndexValue,
5756
5776
  addImportModelCollections,
5777
+ areShallowObjectsEqual,
5757
5778
  buildConstantEnum,
5758
5779
  defaultDocumentationItemConfigurationV1,
5759
5780
  defaultDocumentationItemConfigurationV2,