@platforma-sdk/ui-vue 1.4.2 → 1.4.4
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/CHANGELOG.md +14 -0
- package/dist/lib.js +3936 -3922
- package/dist/lib.umd.cjs +43 -43
- package/dist/src/composition/fileContent.d.ts +3 -3
- package/dist/src/composition/fileContent.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/composition/fileContent.ts +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/ui-vue",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/lib.umd.cjs",
|
|
6
6
|
"module": "dist/lib.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"vue": "^3.5.9",
|
|
22
|
-
"@milaboratories/uikit": "^1.2.
|
|
22
|
+
"@milaboratories/uikit": "^1.2.15",
|
|
23
23
|
"@platforma-sdk/model": "^1.2.30"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BlobHandleAndSize
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { BlobHandleAndSize } from '@platforma-sdk/model';
|
|
2
|
+
import { getRawPlatformaInstance } from '@platforma-sdk/model';
|
|
3
|
+
import type { ComputedRef, ShallowRef } from 'vue';
|
|
4
|
+
import { computed, shallowRef } from 'vue';
|
|
5
|
+
import type { ZodSchema } from 'zod';
|
|
4
6
|
|
|
5
7
|
type FileHandle = BlobHandleAndSize['handle'];
|
|
6
8
|
|
|
@@ -20,7 +22,7 @@ export class ReactiveFileContent {
|
|
|
20
22
|
(async () => {
|
|
21
23
|
try {
|
|
22
24
|
const content = await getRawPlatformaInstance().blobDriver.getContent(handle);
|
|
23
|
-
newRef.value =
|
|
25
|
+
newRef.value = content;
|
|
24
26
|
} catch (err: unknown) {
|
|
25
27
|
console.error(err);
|
|
26
28
|
}
|
|
@@ -40,6 +42,7 @@ export class ReactiveFileContent {
|
|
|
40
42
|
return new TextDecoder().decode(bytes.value);
|
|
41
43
|
} catch (e: unknown) {
|
|
42
44
|
console.error(e);
|
|
45
|
+
return undefined;
|
|
43
46
|
}
|
|
44
47
|
});
|
|
45
48
|
}
|
|
@@ -60,6 +63,7 @@ export class ReactiveFileContent {
|
|
|
60
63
|
return data;
|
|
61
64
|
} catch (e: unknown) {
|
|
62
65
|
console.error(e);
|
|
66
|
+
return undefined;
|
|
63
67
|
}
|
|
64
68
|
});
|
|
65
69
|
}
|