@noya-app/noya-api-client-react 0.1.52 → 0.1.53

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
@@ -5615,7 +5615,8 @@ var baseSchemaProperties = {
5615
5615
  })
5616
5616
  ),
5617
5617
  accessibleByFileVersionId: Nullable(Type.String()),
5618
- url: Type.Optional(Type.String())
5618
+ url: Type.Optional(Type.String()),
5619
+ transformUrl: Type.Optional(Type.String())
5619
5620
  };
5620
5621
  var uploadableAssetSchema = Type.Object({
5621
5622
  content: Type.String(),
@@ -10478,12 +10479,19 @@ var createHash = (value, options) => hash(value, { ...options, ignoreUndefinedPr
10478
10479
  // ../state-manager/src/GitManager.ts
10479
10480
  import { Observable as Observable9 } from "@noya-app/observable";
10480
10481
 
10481
- // ../state-manager/src/ImagePickerManager.ts
10482
+ // ../state-manager/src/ResourceManager.ts
10483
+ import { isDeepEqual as isDeepEqual4, uuid as uuid6 } from "@noya-app/noya-utils";
10482
10484
  import { Observable as Observable10 } from "@noya-app/observable";
10483
- import { uuid as uuid6 } from "@noya-app/noya-utils";
10484
10485
 
10485
- // ../state-manager/src/IOManager.ts
10486
+ // ../state-manager/src/HostStorageManager.ts
10487
+ import { uuid as uuid7 } from "@noya-app/noya-utils";
10488
+
10489
+ // ../state-manager/src/ImagePickerManager.ts
10486
10490
  import { Observable as Observable11 } from "@noya-app/observable";
10491
+ import { uuid as uuid8 } from "@noya-app/noya-utils";
10492
+
10493
+ // ../state-manager/src/IOManager.ts
10494
+ import { Observable as Observable12 } from "@noya-app/observable";
10487
10495
 
10488
10496
  // ../state-manager/src/jwt.ts
10489
10497
  function base64UrlEncode(str) {
@@ -10585,18 +10593,18 @@ var jwt;
10585
10593
  })(jwt || (jwt = {}));
10586
10594
 
10587
10595
  // ../state-manager/src/MenuManager.ts
10588
- import { isDeepEqual as isDeepEqual4 } from "@noya-app/noya-utils";
10589
- import { Observable as Observable12 } from "@noya-app/observable";
10596
+ import { isDeepEqual as isDeepEqual5 } from "@noya-app/noya-utils";
10597
+ import { Observable as Observable13 } from "@noya-app/observable";
10590
10598
 
10591
10599
  // ../state-manager/src/NoyaManager.ts
10592
- import { uuid as uuid14 } from "@noya-app/noya-utils";
10600
+ import { uuid as uuid15 } from "@noya-app/noya-utils";
10593
10601
  import { Observable as Observable23 } from "@noya-app/observable";
10594
10602
 
10595
10603
  // ../noya-pipeline/src/graphToTasks.ts
10596
10604
  import { get as get4 } from "@noya-app/observable";
10597
10605
 
10598
10606
  // ../noya-pipeline/src/state.ts
10599
- import { uuid as uuid7 } from "@noya-app/noya-utils";
10607
+ import { uuid as uuid9 } from "@noya-app/noya-utils";
10600
10608
  var rectSchema = Type.Object({
10601
10609
  x: Type.Number(),
10602
10610
  y: Type.Number(),
@@ -10695,20 +10703,16 @@ var pipelineSchema = Type.Object(
10695
10703
  );
10696
10704
 
10697
10705
  // ../state-manager/src/PipelineManager.ts
10698
- import { Observable as Observable13 } from "@noya-app/observable";
10699
-
10700
- // ../state-manager/src/PublishingManager.ts
10701
10706
  import { Observable as Observable14 } from "@noya-app/observable";
10702
10707
 
10703
- // ../state-manager/src/ResourceManager.ts
10704
- import { isDeepEqual as isDeepEqual5, uuid as uuid8 } from "@noya-app/noya-utils";
10708
+ // ../state-manager/src/PublishingManager.ts
10705
10709
  import { Observable as Observable15 } from "@noya-app/observable";
10706
10710
 
10707
10711
  // ../state-manager/src/SandboxManager.ts
10708
10712
  import { Observable as Observable16 } from "@noya-app/observable";
10709
10713
 
10710
10714
  // ../state-manager/src/rpcManager.ts
10711
- import { uuid as uuid9 } from "@noya-app/noya-utils";
10715
+ import { uuid as uuid10 } from "@noya-app/noya-utils";
10712
10716
  import { Observable as Observable17 } from "@noya-app/observable";
10713
10717
 
10714
10718
  // ../state-manager/src/SecretManager.ts
@@ -10725,7 +10729,7 @@ import { Observable as Observable20 } from "@noya-app/observable";
10725
10729
  import { Observable as Observable22 } from "@noya-app/observable";
10726
10730
 
10727
10731
  // ../state-manager/src/sync/clientId.ts
10728
- import { uuid as uuid10 } from "@noya-app/noya-utils";
10732
+ import { uuid as uuid11 } from "@noya-app/noya-utils";
10729
10733
  import { Observable as Observable21 } from "@noya-app/observable";
10730
10734
 
10731
10735
  // ../state-manager/src/sync/defaultNames.ts
@@ -10822,7 +10826,7 @@ if (typeof window !== "undefined") {
10822
10826
  if (storedClientId) {
10823
10827
  clientId$.set(storedClientId);
10824
10828
  } else {
10825
- const newClientId = uuid10();
10829
+ const newClientId = uuid11();
10826
10830
  safeSetItem(CLIENT_ID_STORAGE_KEY, newClientId);
10827
10831
  clientId$.set(newClientId);
10828
10832
  }
@@ -10845,13 +10849,13 @@ if (typeof window !== "undefined") {
10845
10849
  }
10846
10850
 
10847
10851
  // ../state-manager/src/sync/syncUtils.ts
10848
- import { uuid as uuid11 } from "@noya-app/noya-utils";
10852
+ import { uuid as uuid12 } from "@noya-app/noya-utils";
10849
10853
 
10850
10854
  // ../state-manager/src/sync/localRpcHelpers.ts
10851
- import { Base64 as Base644, uuid as uuid12 } from "@noya-app/noya-utils";
10855
+ import { Base64 as Base644, uuid as uuid13 } from "@noya-app/noya-utils";
10852
10856
 
10853
10857
  // ../state-manager/src/sync/localStorageSync.ts
10854
- import { uuid as uuid13 } from "@noya-app/noya-utils";
10858
+ import { uuid as uuid14 } from "@noya-app/noya-utils";
10855
10859
 
10856
10860
  // ../noya-keymap/src/hooks.ts
10857
10861
  import { useEffect as useEffect2, useRef as useRef2 } from "react";
@@ -11378,7 +11382,7 @@ import React35 from "react";
11378
11382
  import { createRoot } from "react-dom/client";
11379
11383
 
11380
11384
  // ../noya-multiplayer-react/src/inspector/StateInspector.tsx
11381
- import { Base64 as Base645, memoize, uuid as uuid15 } from "@noya-app/noya-utils";
11385
+ import { Base64 as Base645, memoize, uuid as uuid16 } from "@noya-app/noya-utils";
11382
11386
  import React34, {
11383
11387
  useCallback as useCallback12,
11384
11388
  useEffect as useEffect14,
@@ -14908,7 +14912,7 @@ var StateInspector = memoGeneric(function StateInspector2({
14908
14912
  {
14909
14913
  theme: theme3,
14910
14914
  onClick: async () => {
14911
- const path2 = prompt("Enter directory path") || uuid15();
14915
+ const path2 = prompt("Enter directory path") || uuid16();
14912
14916
  await resourceManager.createResource({
14913
14917
  type: "directory",
14914
14918
  path: path2
@@ -14924,7 +14928,7 @@ var StateInspector = memoGeneric(function StateInspector2({
14924
14928
  const file = await uploadFile();
14925
14929
  resourceManager.createResource({
14926
14930
  type: "asset",
14927
- path: file.name || uuid15(),
14931
+ path: file.name || uuid16(),
14928
14932
  asset: {
14929
14933
  content: Base645.encode(await file.arrayBuffer()),
14930
14934
  contentType: file.type,