@pyric/ui 0.1.0-alpha.16 → 0.1.0-alpha.17

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.
@@ -19,7 +19,7 @@ import { type ReactNode } from 'react';
19
19
  * rules internals and no-ops on a handle without them (worker handles), which is
20
20
  * the correct degrade (the worker enforces read rules on `listAll` server-side).
21
21
  */
22
- export type StorageApi = Pick<typeof import('pyric/storage'), 'ref' | 'listAll' | 'getMetadata' | 'getBlob' | 'uploadBytes' | 'deleteObject'>;
22
+ export type StorageApi = Pick<typeof import('pyric/storage'), 'ref' | 'listAll' | 'getMetadata' | 'getBlob' | 'uploadBytes' | 'uploadBytesResumable' | 'deleteObject'>;
23
23
  /** Read the active Storage API bundle (defaults to in-process `pyric/storage`). */
24
24
  export declare function useStorageApi(): StorageApi;
25
25
  /** Provide a Storage API bundle to the subtree (Studio's worker client). */
@@ -1 +1 @@
1
- {"version":3,"file":"storageApi.d.ts","sourceRoot":"","sources":["../../src/storage/storageApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,eAAe,CAAC,EAC9B,KAAK,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,cAAc,CAC/E,CAAC;AAaF,mFAAmF;AACnF,wBAAgB,aAAa,IAAI,UAAU,CAE1C;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,uFAEA"}
1
+ {"version":3,"file":"storageApi.d.ts","sourceRoot":"","sources":["../../src/storage/storageApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,eAAe,CAAC,EAC9B,KAAK,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,sBAAsB,GAAG,cAAc,CACxG,CAAC;AAcF,mFAAmF;AACnF,wBAAgB,aAAa,IAAI,UAAU,CAE1C;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,uFAEA"}
@@ -1,11 +1,12 @@
1
1
  import { createContext, createElement, useContext } from 'react';
2
- import { ref, listAll, getMetadata, getBlob, uploadBytes, deleteObject } from 'pyric/storage';
2
+ import { ref, listAll, getMetadata, getBlob, uploadBytes, uploadBytesResumable, deleteObject } from 'pyric/storage';
3
3
  const inProcessStorageApi = {
4
4
  ref,
5
5
  listAll,
6
6
  getMetadata,
7
7
  getBlob,
8
8
  uploadBytes,
9
+ uploadBytesResumable,
9
10
  deleteObject,
10
11
  };
11
12
  const StorageApiContext = createContext(inProcessStorageApi);
@@ -1 +1 @@
1
- {"version":3,"file":"storageApi.js","sourceRoot":"","sources":["../../src/storage/storageApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA2B9F,MAAM,mBAAmB,GAAe;IACtC,GAAG;IACH,OAAO;IACP,WAAW;IACX,OAAO;IACP,WAAW;IACX,YAAY;CACb,CAAC;AAEF,MAAM,iBAAiB,GAAG,aAAa,CAAa,mBAAmB,CAAC,CAAC;AAEzE,mFAAmF;AACnF,MAAM,UAAU,aAAa;IAC3B,OAAO,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACvC,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GAIT;IACC,OAAO,aAAa,CAAC,iBAAiB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAC;AACxE,CAAC"}
1
+ {"version":3,"file":"storageApi.js","sourceRoot":"","sources":["../../src/storage/storageApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA2BpH,MAAM,mBAAmB,GAAe;IACtC,GAAG;IACH,OAAO;IACP,WAAW;IACX,OAAO;IACP,WAAW;IACX,oBAAoB;IACpB,YAAY;CACb,CAAC;AAEF,MAAM,iBAAiB,GAAG,aAAa,CAAa,mBAAmB,CAAC,CAAC;AAEzE,mFAAmF;AACnF,MAAM,UAAU,aAAa;IAC3B,OAAO,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACvC,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,GAIT;IACC,OAAO,aAAa,CAAC,iBAAiB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAC;AACxE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyric/ui",
3
- "version": "0.1.0-alpha.16",
3
+ "version": "0.1.0-alpha.17",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://pyric.dev",
6
6
  "repository": {
@@ -90,10 +90,10 @@
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@inbrowser/agent": "0.4.2",
93
- "react": ">=19",
94
- "react-dom": ">=19",
93
+ "react": ">=18",
94
+ "react-dom": ">=18",
95
95
  "firebase": ">=12",
96
- "pyric": "^0.1.0-alpha.16"
96
+ "pyric": "^0.1.0-alpha.17"
97
97
  },
98
98
  "peerDependenciesMeta": {
99
99
  "@inbrowser/agent": {
@@ -109,8 +109,8 @@
109
109
  "fake-indexeddb": "^6.0.0",
110
110
  "firebase": "^12.12.0",
111
111
  "jsdom": "^29.1.1",
112
- "pyric": "^0.1.0-alpha.16",
113
- "pyric-admin": "^0.1.0-alpha.16",
112
+ "pyric": "^0.1.0-alpha.17",
113
+ "pyric-admin": "^0.1.0-alpha.17",
114
114
  "react": "^19.0.0",
115
115
  "react-dom": "^19.0.0",
116
116
  "react-test-renderer": "^19.2.6",
@@ -1,5 +1,5 @@
1
1
  import { createContext, createElement, useContext, type ReactNode } from 'react';
2
- import { ref, listAll, getMetadata, getBlob, uploadBytes, deleteObject } from 'pyric/storage';
2
+ import { ref, listAll, getMetadata, getBlob, uploadBytes, uploadBytesResumable, deleteObject } from 'pyric/storage';
3
3
 
4
4
  /**
5
5
  * The modular Storage fns the browse/inspect hooks call, as an INJECTABLE
@@ -23,7 +23,7 @@ import { ref, listAll, getMetadata, getBlob, uploadBytes, deleteObject } from 'p
23
23
  */
24
24
  export type StorageApi = Pick<
25
25
  typeof import('pyric/storage'),
26
- 'ref' | 'listAll' | 'getMetadata' | 'getBlob' | 'uploadBytes' | 'deleteObject'
26
+ 'ref' | 'listAll' | 'getMetadata' | 'getBlob' | 'uploadBytes' | 'uploadBytesResumable' | 'deleteObject'
27
27
  >;
28
28
 
29
29
  const inProcessStorageApi: StorageApi = {
@@ -32,6 +32,7 @@ const inProcessStorageApi: StorageApi = {
32
32
  getMetadata,
33
33
  getBlob,
34
34
  uploadBytes,
35
+ uploadBytesResumable,
35
36
  deleteObject,
36
37
  };
37
38