@hanzogui/static-sync 4.4.0 → 7.3.0
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 +10 -9
- package/src/index.ts +3 -3
- package/types/index.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/static-sync",
|
|
3
|
-
"version": "
|
|
4
|
-
"license": "
|
|
3
|
+
"version": "7.3.0",
|
|
4
|
+
"license": "BSD-3-Clause",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
@@ -25,18 +25,19 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "
|
|
28
|
+
"build": "gui-build --skip-native --bundle",
|
|
29
29
|
"watch": "bun run build --watch",
|
|
30
|
-
"clean": "
|
|
31
|
-
"clean:build": "
|
|
30
|
+
"clean": "gui-build clean",
|
|
31
|
+
"clean:build": "gui-build clean:build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/core": "^7.25.2",
|
|
35
|
-
"@hanzogui/static": "
|
|
36
|
-
"@hanzogui/types": "
|
|
35
|
+
"@hanzogui/static": "7.3.0",
|
|
36
|
+
"@hanzogui/types": "7.3.0",
|
|
37
37
|
"synckit": "^0.9.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@hanzogui/build": "
|
|
41
|
-
}
|
|
40
|
+
"@hanzogui/build": "7.3.0"
|
|
41
|
+
},
|
|
42
|
+
"author": "Hanzo AI <dev@hanzo.ai>"
|
|
42
43
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hanzogui/static-sync
|
|
3
3
|
*
|
|
4
|
-
* Synchronous API for
|
|
4
|
+
* Synchronous API for Gui static extraction using synckit.
|
|
5
5
|
* Wraps @hanzogui/static's worker implementation to provide sync APIs
|
|
6
6
|
* required by Babel plugins which cannot use async functions.
|
|
7
7
|
*
|
|
@@ -41,7 +41,7 @@ export const getPragmaOptions = (props: { source: string; path: string }) => {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Extract
|
|
44
|
+
* Extract Gui components to className-based CSS for web (synchronous)
|
|
45
45
|
*/
|
|
46
46
|
export function extractToClassNamesSync(params: {
|
|
47
47
|
source: string | Buffer
|
|
@@ -82,7 +82,7 @@ export function extractToClassNamesSync(params: {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Extract
|
|
85
|
+
* Extract Gui components to React Native StyleSheet format (synchronous)
|
|
86
86
|
*/
|
|
87
87
|
export function extractToNativeSync(
|
|
88
88
|
sourceFileName: string,
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hanzogui/static-sync
|
|
3
3
|
*
|
|
4
|
-
* Synchronous API for
|
|
4
|
+
* Synchronous API for Gui static extraction using synckit.
|
|
5
5
|
* Wraps @hanzogui/static's worker implementation to provide sync APIs
|
|
6
6
|
* required by Babel plugins which cannot use async functions.
|
|
7
7
|
*
|
|
@@ -16,7 +16,7 @@ export declare const getPragmaOptions: (props: {
|
|
|
16
16
|
path: string;
|
|
17
17
|
}) => any;
|
|
18
18
|
/**
|
|
19
|
-
* Extract
|
|
19
|
+
* Extract Gui components to className-based CSS for web (synchronous)
|
|
20
20
|
*/
|
|
21
21
|
export declare function extractToClassNamesSync(params: {
|
|
22
22
|
source: string | Buffer;
|
|
@@ -25,7 +25,7 @@ export declare function extractToClassNamesSync(params: {
|
|
|
25
25
|
shouldPrintDebug?: boolean | 'verbose';
|
|
26
26
|
}): any;
|
|
27
27
|
/**
|
|
28
|
-
* Extract
|
|
28
|
+
* Extract Gui components to React Native StyleSheet format (synchronous)
|
|
29
29
|
*/
|
|
30
30
|
export declare function extractToNativeSync(sourceFileName: string, sourceCode: string, options: GuiOptions): BabelFileResult;
|
|
31
31
|
/**
|