@lobb-js/studio 0.1.36 → 0.1.38
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobb-js/studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -36,33 +36,26 @@
|
|
|
36
36
|
"@storybook/svelte-vite": "^10.0.1",
|
|
37
37
|
"@sveltejs/package": "^2.5.7",
|
|
38
38
|
"@sveltejs/vite-plugin-svelte": "6.2.1",
|
|
39
|
-
"@tsconfig/svelte": "^5.0.4",
|
|
40
39
|
"@types/lodash": "^4.17.17",
|
|
41
40
|
"@types/mustache": "^4.2.6",
|
|
42
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^24.10.1",
|
|
43
42
|
"@types/qs": "^6.9.18",
|
|
44
|
-
"@
|
|
43
|
+
"@tsconfig/svelte": "^5.0.6",
|
|
45
44
|
"@vitest/browser-playwright": "^4.0.5",
|
|
46
45
|
"@vitest/coverage-v8": "^4.0.5",
|
|
47
|
-
"autoprefixer": "^10.4.
|
|
48
|
-
"browser-fs-access": "^0.35.0",
|
|
46
|
+
"autoprefixer": "^10.4.23",
|
|
49
47
|
"dts-bundle-generator": "^9.5.1",
|
|
50
48
|
"playwright": "^1.56.1",
|
|
51
|
-
"qs": "^6.14.1",
|
|
52
|
-
"sortablejs": "^1.15.6",
|
|
53
49
|
"storybook": "^10.0.1",
|
|
54
|
-
"svelte": "
|
|
55
|
-
"svelte-check": "^4.1.4",
|
|
56
|
-
"tailwindcss": "^4.1.18",
|
|
50
|
+
"svelte-check": "^4.3.4",
|
|
57
51
|
"tailwindcss-animate": "^1.0.7",
|
|
58
52
|
"tw-animate-css": "^1.4.0",
|
|
59
|
-
"typescript": "~5.
|
|
60
|
-
"vite": "6.3.3",
|
|
53
|
+
"typescript": "~5.9.3",
|
|
61
54
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
62
|
-
"vitest": "^4.0.5"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
55
|
+
"vitest": "^4.0.5",
|
|
56
|
+
"tailwindcss": "4.1.18",
|
|
57
|
+
"svelte": "5.39.8",
|
|
58
|
+
"vite": "6.3.3"
|
|
66
59
|
},
|
|
67
60
|
"dependencies": {
|
|
68
61
|
"@andrewbranch/untar.js": "^1.0.3",
|
|
@@ -80,6 +73,7 @@
|
|
|
80
73
|
"mode-watcher": "^0.5.1",
|
|
81
74
|
"monaco-editor": "^0.52.2",
|
|
82
75
|
"mustache": "^4.2.0",
|
|
76
|
+
"qs": "^6.14.1",
|
|
83
77
|
"svelte-sonner": "^0.3.28",
|
|
84
78
|
"tailwind-merge": "^3.4.0",
|
|
85
79
|
"tailwind-variants": "^3.2.2"
|
|
@@ -9,7 +9,7 @@ import type Sidebar from "$lib/components/sidebar/sidebar.svelte";
|
|
|
9
9
|
import type SidebarTrigger from "$lib/components/sidebar/sidebarTrigger.svelte";
|
|
10
10
|
import type CreateDetailViewButton from "$lib/components/detailView/create/createDetailViewButton.svelte";
|
|
11
11
|
import type UpdateDetailViewButton from "$lib/components/detailView/update/updateDetailViewButton.svelte";
|
|
12
|
-
import type {
|
|
12
|
+
import type { mediaQueries } from "$lib/utils";
|
|
13
13
|
import type Table from "$lib/components/dataTable/table.svelte";
|
|
14
14
|
import type { Location } from "@wjfe/n-savant";
|
|
15
15
|
import type RangeCalendarButton from "$lib/components/rangeCalendarButton.svelte";
|
|
@@ -53,7 +53,6 @@ export interface ExtensionUtils {
|
|
|
53
53
|
location: Location;
|
|
54
54
|
toast: typeof toast;
|
|
55
55
|
showDialog: typeof showDialog;
|
|
56
|
-
getFileFromUser: typeof getFileFromUser;
|
|
57
56
|
components: Components;
|
|
58
57
|
mediaQueries: typeof mediaQueries;
|
|
59
58
|
intlDate: typeof intlDate;
|
|
@@ -9,7 +9,7 @@ import type Sidebar from "$lib/components/sidebar/sidebar.svelte";
|
|
|
9
9
|
import type SidebarTrigger from "$lib/components/sidebar/sidebarTrigger.svelte";
|
|
10
10
|
import type CreateDetailViewButton from "$lib/components/detailView/create/createDetailViewButton.svelte";
|
|
11
11
|
import type UpdateDetailViewButton from "$lib/components/detailView/update/updateDetailViewButton.svelte";
|
|
12
|
-
import type {
|
|
12
|
+
import type { mediaQueries } from "$lib/utils";
|
|
13
13
|
import type Table from "$lib/components/dataTable/table.svelte";
|
|
14
14
|
import type { Location } from "@wjfe/n-savant";
|
|
15
15
|
import type RangeCalendarButton from "$lib/components/rangeCalendarButton.svelte";
|
|
@@ -57,7 +57,6 @@ export interface ExtensionUtils {
|
|
|
57
57
|
location: Location;
|
|
58
58
|
toast: typeof toast;
|
|
59
59
|
showDialog: typeof showDialog;
|
|
60
|
-
getFileFromUser: typeof getFileFromUser;
|
|
61
60
|
components: Components;
|
|
62
61
|
mediaQueries: typeof mediaQueries;
|
|
63
62
|
intlDate: typeof intlDate;
|
|
@@ -13,7 +13,7 @@ import { Input } from "$lib/components/ui/input";
|
|
|
13
13
|
import { Separator } from "$lib/components/ui/separator";
|
|
14
14
|
import { Skeleton } from "$lib/components/ui/skeleton";
|
|
15
15
|
import Table from "$lib/components/dataTable/table.svelte";
|
|
16
|
-
import {
|
|
16
|
+
import { mediaQueries } from "$lib/utils";
|
|
17
17
|
import LlmButton from "$lib/components/LlmButton.svelte";
|
|
18
18
|
import Sidebar from "$lib/components/sidebar/sidebar.svelte";
|
|
19
19
|
import SidebarTrigger from "$lib/components/sidebar/sidebarTrigger.svelte";
|
|
@@ -64,7 +64,6 @@ export function getExtensionUtils(): ExtensionUtils {
|
|
|
64
64
|
location: location,
|
|
65
65
|
toast: toast,
|
|
66
66
|
showDialog: showDialog,
|
|
67
|
-
getFileFromUser: getFileFromUser,
|
|
68
67
|
components: getComponents(),
|
|
69
68
|
mediaQueries: mediaQueries,
|
|
70
69
|
intlDate: intlDate,
|
package/src/lib/utils.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export declare const mediaQueries: {
|
|
|
18
18
|
xl: MediaQuery;
|
|
19
19
|
'2xl': MediaQuery;
|
|
20
20
|
};
|
|
21
|
-
export declare function getFileFromUser(): Promise<import("browser-fs-access").FileWithHandle>;
|
|
22
21
|
export declare function getFieldRelation(collectionName: string, fieldName: string): any;
|
|
23
22
|
export declare function getDiscriminatorFieldRelation(collectionName: string, fieldName: string): any;
|
|
24
23
|
export declare function recordHasChildrean(collectionName: string): boolean;
|
package/src/lib/utils.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { clsx, type ClassValue } from "clsx";
|
|
2
2
|
import { twMerge } from "tailwind-merge";
|
|
3
3
|
|
|
4
|
-
import { fileOpen } from 'browser-fs-access';
|
|
5
4
|
import { MediaQuery } from 'svelte/reactivity';
|
|
6
5
|
import { ctx } from "./store.svelte";
|
|
7
6
|
|
|
@@ -25,10 +24,6 @@ export const mediaQueries = {
|
|
|
25
24
|
'2xl': new MediaQuery('min-width: 1536px'),
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
export async function getFileFromUser() {
|
|
29
|
-
return await fileOpen()
|
|
30
|
-
};
|
|
31
|
-
|
|
32
27
|
export function getFieldRelation(collectionName: string, fieldName: string) {
|
|
33
28
|
const relations = ctx.meta.relations;
|
|
34
29
|
for (let index = 0; index < relations.length; index++) {
|