@plasmicapp/react-web 0.2.184 → 0.2.186

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/all.d.ts CHANGED
@@ -11947,7 +11947,9 @@ declare function useCurrentUser(): {
11947
11947
  roleName: string;
11948
11948
  roleIds: string[];
11949
11949
  roleNames: string[];
11950
- } | undefined;
11950
+ } | {
11951
+ isLoggedIn: boolean;
11952
+ };
11951
11953
  declare const PlasmicDataSourceContextProvider: React__default.Provider<PlasmicDataSourceContextValue | undefined>;
11952
11954
 
11953
11955
  interface PlasmicRootProviderProps {
@@ -2907,7 +2907,7 @@ function useDollarState(specs) {
2907
2907
  }
2908
2908
  // we need to eager initialize all states in canvas to populate the data picker
2909
2909
  $$state.specTreeLeaves.forEach(function (node) {
2910
- var _newSpec$initFuncHash;
2910
+ var _newSpec$initFuncHash, _newSpec$initFuncHash2;
2911
2911
  var spec = node.getSpec();
2912
2912
  if (spec.isRepeated) {
2913
2913
  return;
@@ -2916,11 +2916,11 @@ function useDollarState(specs) {
2916
2916
  var newSpec = specs.find(function (sp) {
2917
2917
  return sp.path === spec.path;
2918
2918
  });
2919
- if (!newSpec || stateCell.initFuncHash === (newSpec == null ? void 0 : newSpec.initFuncHash) || stateCell.initialValue !== UNINITIALIZED) {
2919
+ if (!newSpec || stateCell.initFuncHash === ((_newSpec$initFuncHash = newSpec == null ? void 0 : newSpec.initFuncHash) != null ? _newSpec$initFuncHash : "") && stateCell.initialValue !== UNINITIALIZED) {
2920
2920
  return;
2921
2921
  }
2922
2922
  stateCell.initFunc = newSpec.initFunc;
2923
- stateCell.initFuncHash = (_newSpec$initFuncHash = newSpec.initFuncHash) != null ? _newSpec$initFuncHash : "";
2923
+ stateCell.initFuncHash = (_newSpec$initFuncHash2 = newSpec.initFuncHash) != null ? _newSpec$initFuncHash2 : "";
2924
2924
  var init = spec.valueProp ? $$state.env.$props[spec.valueProp] : spec.initFunc ? initializeStateValue($$state, stateCell, $state) : spec.initVal;
2925
2925
  set($state, spec.pathObj, init);
2926
2926
  });