@arpproject/recrate 0.1.36 → 0.1.37

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.
@@ -23,6 +23,7 @@ declare const useEntityMutationHandlers: ({ entity, contextEntity, crateManager,
23
23
  handleCreateEntity: (data: any) => any;
24
24
  handleCreateProperty: (data: {
25
25
  property: string;
26
+ propertyId?: string;
26
27
  value: any;
27
28
  }) => void;
28
29
  handleDeleteEntity: (data: {
@@ -113016,6 +113016,7 @@ const useEntityMutationHandlers = ({
113016
113016
  if (isURL(data.value) && ((_a2 = state.configuration) == null ? void 0 : _a2.enableUrlMarkup)) {
113017
113017
  handleCreateEntity({
113018
113018
  property: data.property,
113019
+ propertyId: data.propertyId,
113019
113020
  json: {
113020
113021
  "@id": data.value,
113021
113022
  "@type": "URL",
@@ -117010,7 +117011,7 @@ class CrateManager {
117010
117011
  return this.warnings;
117011
117012
  }
117012
117013
  __updateContext({ name: name2, id: id2 }) {
117013
- if (id2 && !(id2 in this.contextDefinitions)) {
117014
+ if (id2 && this.localContext[name2] !== id2) {
117014
117015
  this.contextDefinitions[id2] = true;
117015
117016
  this.localContext[name2] = id2;
117016
117017
  }
@@ -123979,7 +123980,7 @@ var EmotionCacheContext = /* @__PURE__ */ React.createContext(
123979
123980
  }) : null
123980
123981
  );
123981
123982
  var CacheProvider = EmotionCacheContext.Provider;
123982
- const version = "0.1.36";
123983
+ const version = "0.1.37";
123983
123984
  const pkg = {
123984
123985
  version
123985
123986
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arpproject/recrate",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "main": "./dist/recrate.es.js",
6
6
  "module": "./dist/recrate.es.js",