@hanzogui/static-sync 7.0.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/dist/index.cjs CHANGED
@@ -68,7 +68,7 @@ function extractToClassNamesSync(params) {
68
68
  const result = runTaskSync(task);
69
69
  if (!result.success) {
70
70
  const errorMessage = [
71
- `[hanzogui-extract] Error processing file: ${sourcePath || "(unknown)"}`,
71
+ `[gui-extract] Error processing file: ${sourcePath || "(unknown)"}`,
72
72
  ``,
73
73
  result.error,
74
74
  result.stack ? `
@@ -88,7 +88,7 @@ function extractToNativeSync(sourceFileName, sourceCode, options) {
88
88
  const result = runTaskSync(task);
89
89
  if (!result.success) {
90
90
  const errorMessage = [
91
- `[hanzogui-extract] Error processing file: ${sourceFileName || "(unknown)"}`,
91
+ `[gui-extract] Error processing file: ${sourceFileName || "(unknown)"}`,
92
92
  ``,
93
93
  result.error,
94
94
  result.stack ? `
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hanzogui/static-sync",
3
- "version": "7.0.0",
4
- "license": "MIT",
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": "hanzogui-build --skip-native --bundle",
28
+ "build": "gui-build --skip-native --bundle",
29
29
  "watch": "bun run build --watch",
30
- "clean": "hanzogui-build clean",
31
- "clean:build": "hanzogui-build 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": "7.0.0",
36
- "@hanzogui/types": "7.0.0",
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": "7.0.0"
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 Hanzogui static extraction using synckit.
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
  *
@@ -9,12 +9,12 @@
9
9
  */
10
10
 
11
11
  import type { BabelFileResult } from '@babel/core'
12
- import type { HanzoguiOptions } from '@hanzogui/types'
12
+ import type { GuiOptions } from '@hanzogui/types'
13
13
  import { createSyncFn } from 'synckit'
14
14
  import { fileURLToPath } from 'node:url'
15
15
 
16
- export type { ExtractedResponse, HanzoguiProjectInfo } from '@hanzogui/static'
17
- export type { HanzoguiOptions } from '@hanzogui/types'
16
+ export type { ExtractedResponse, GuiProjectInfo } from '@hanzogui/static'
17
+ export type { GuiOptions } from '@hanzogui/types'
18
18
 
19
19
  // Resolve worker path - works for both CJS and ESM
20
20
  const getWorkerPath = () => {
@@ -41,12 +41,12 @@ export const getPragmaOptions = (props: { source: string; path: string }) => {
41
41
  }
42
42
 
43
43
  /**
44
- * Extract Hanzogui components to className-based CSS for web (synchronous)
44
+ * Extract Gui components to className-based CSS for web (synchronous)
45
45
  */
46
46
  export function extractToClassNamesSync(params: {
47
47
  source: string | Buffer
48
48
  sourcePath?: string
49
- options: HanzoguiOptions
49
+ options: GuiOptions
50
50
  shouldPrintDebug?: boolean | 'verbose'
51
51
  }): any {
52
52
  const { source, sourcePath = '', options, shouldPrintDebug = false } = params
@@ -67,7 +67,7 @@ export function extractToClassNamesSync(params: {
67
67
 
68
68
  if (!result.success) {
69
69
  const errorMessage = [
70
- `[hanzogui-extract] Error processing file: ${sourcePath || '(unknown)'}`,
70
+ `[gui-extract] Error processing file: ${sourcePath || '(unknown)'}`,
71
71
  ``,
72
72
  result.error,
73
73
  result.stack ? `\n${result.stack}` : '',
@@ -82,12 +82,12 @@ export function extractToClassNamesSync(params: {
82
82
  }
83
83
 
84
84
  /**
85
- * Extract Hanzogui components to React Native StyleSheet format (synchronous)
85
+ * Extract Gui components to React Native StyleSheet format (synchronous)
86
86
  */
87
87
  export function extractToNativeSync(
88
88
  sourceFileName: string,
89
89
  sourceCode: string,
90
- options: HanzoguiOptions
90
+ options: GuiOptions
91
91
  ): BabelFileResult {
92
92
  const task = {
93
93
  type: 'extractToNative',
@@ -100,7 +100,7 @@ export function extractToNativeSync(
100
100
 
101
101
  if (!result.success) {
102
102
  const errorMessage = [
103
- `[hanzogui-extract] Error processing file: ${sourceFileName || '(unknown)'}`,
103
+ `[gui-extract] Error processing file: ${sourceFileName || '(unknown)'}`,
104
104
  ``,
105
105
  result.error,
106
106
  result.stack ? `\n${result.stack}` : '',
package/types/index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
1
  /**
2
2
  * @hanzogui/static-sync
3
3
  *
4
- * Synchronous API for Hanzogui static extraction using synckit.
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
  *
8
8
  * This package uses synckit to convert async worker calls into synchronous ones.
9
9
  */
10
10
  import type { BabelFileResult } from '@babel/core';
11
- import type { HanzoguiOptions } from '@hanzogui/types';
12
- export type { ExtractedResponse, HanzoguiProjectInfo } from '@hanzogui/static';
13
- export type { HanzoguiOptions } from '@hanzogui/types';
11
+ import type { GuiOptions } from '@hanzogui/types';
12
+ export type { ExtractedResponse, GuiProjectInfo } from '@hanzogui/static';
13
+ export type { GuiOptions } from '@hanzogui/types';
14
14
  export declare const getPragmaOptions: (props: {
15
15
  source: string;
16
16
  path: string;
17
17
  }) => any;
18
18
  /**
19
- * Extract Hanzogui components to className-based CSS for web (synchronous)
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;
23
23
  sourcePath?: string;
24
- options: HanzoguiOptions;
24
+ options: GuiOptions;
25
25
  shouldPrintDebug?: boolean | 'verbose';
26
26
  }): any;
27
27
  /**
28
- * Extract Hanzogui components to React Native StyleSheet format (synchronous)
28
+ * Extract Gui components to React Native StyleSheet format (synchronous)
29
29
  */
30
- export declare function extractToNativeSync(sourceFileName: string, sourceCode: string, options: HanzoguiOptions): BabelFileResult;
30
+ export declare function extractToNativeSync(sourceFileName: string, sourceCode: string, options: GuiOptions): BabelFileResult;
31
31
  /**
32
32
  * Get babel plugin that uses synchronous extraction
33
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAItD,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC9E,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAoBtD,eAAO,MAAM,gBAAgB,GAAI,OAAO;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,QAIvE,CAAA;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC9C,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,eAAe,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACvC,GAAG,GAAG,CA+BN;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,eAAe,GACvB,eAAe,CAwBjB;AAED;;GAEG;AACH,wB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