@hanzogui/static 7.3.0 → 8.0.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.
Files changed (59) hide show
  1. package/dist/check-dep-versions.cjs +1 -1
  2. package/dist/checkDeps.cjs +10 -10
  3. package/dist/constants.cjs +2 -2
  4. package/dist/exports.cjs +2 -0
  5. package/dist/extractor/bundle.cjs +14 -4
  6. package/dist/extractor/bundleConfig.cjs +40 -27
  7. package/dist/extractor/concatClassName.cjs +40 -11
  8. package/dist/extractor/createExtractor.cjs +137 -30
  9. package/dist/extractor/extractHelpers.cjs +1 -1
  10. package/dist/extractor/extractMediaStyle.cjs +5 -5
  11. package/dist/extractor/extractToClassNames.cjs +52 -4
  12. package/dist/extractor/extractToNative.cjs +16 -8
  13. package/dist/extractor/getPrefixLogs.cjs +1 -1
  14. package/dist/extractor/getStaticBindingsForScope.cjs +2 -2
  15. package/dist/extractor/loadGui.cjs +52 -46
  16. package/dist/extractor/regenerateConfig.cjs +17 -17
  17. package/dist/extractor/watchGuiConfig.cjs +9 -9
  18. package/dist/getPragmaOptions.cjs +4 -4
  19. package/dist/registerRequire.cjs +17 -16
  20. package/package.json +22 -24
  21. package/src/check-dep-versions.ts +1 -1
  22. package/src/checkDeps.ts +25 -25
  23. package/src/constants.ts +2 -2
  24. package/src/exports.ts +1 -0
  25. package/src/extractor/bundle.ts +35 -6
  26. package/src/extractor/bundleConfig.ts +48 -28
  27. package/src/extractor/concatClassName.ts +37 -20
  28. package/src/extractor/createExtractor.ts +256 -36
  29. package/src/extractor/extractHelpers.ts +2 -2
  30. package/src/extractor/extractMediaStyle.ts +5 -5
  31. package/src/extractor/extractToClassNames.ts +109 -7
  32. package/src/extractor/extractToNative.ts +27 -10
  33. package/src/extractor/getPrefixLogs.ts +1 -1
  34. package/src/extractor/getStaticBindingsForScope.ts +2 -2
  35. package/src/extractor/loadGui.ts +66 -51
  36. package/src/extractor/regenerateConfig.ts +17 -17
  37. package/src/extractor/watchGuiConfig.ts +14 -9
  38. package/src/getPragmaOptions.ts +4 -4
  39. package/src/registerRequire.ts +32 -19
  40. package/types/constants.d.ts.map +1 -1
  41. package/types/exports.d.ts +1 -0
  42. package/types/exports.d.ts.map +1 -1
  43. package/types/extractor/bundle.d.ts.map +1 -1
  44. package/types/extractor/bundleConfig.d.ts +1 -1
  45. package/types/extractor/bundleConfig.d.ts.map +1 -1
  46. package/types/extractor/createExtractor.d.ts.map +1 -1
  47. package/types/extractor/extractMediaStyle.d.ts +1 -1
  48. package/types/extractor/extractMediaStyle.d.ts.map +1 -1
  49. package/types/extractor/extractToClassNames.d.ts.map +1 -1
  50. package/types/extractor/extractToNative.d.ts.map +1 -1
  51. package/types/extractor/loadGui.d.ts +5 -5
  52. package/types/extractor/loadGui.d.ts.map +1 -1
  53. package/types/extractor/regenerateConfig.d.ts +3 -3
  54. package/types/extractor/regenerateConfig.d.ts.map +1 -1
  55. package/types/extractor/watchGuiConfig.d.ts +1 -1
  56. package/types/extractor/watchGuiConfig.d.ts.map +1 -1
  57. package/types/registerRequire.d.ts +1 -1
  58. package/types/registerRequire.d.ts.map +1 -1
  59. package/LICENSE +0 -42
@@ -9,31 +9,31 @@ import type { GuiPlatform } from '../types'
9
9
  import type { BundledConfig } from './bundleConfig'
10
10
  import { getBundledConfig } from './bundleConfig'
11
11
 
12
- const guiDir = join(process.cwd(), '.gui')
13
- const confFile = join(guiDir, 'gui.config.json')
12
+ const hanzoguiDir = join(process.cwd(), '.hanzogui')
13
+ const confFile = join(hanzoguiDir, 'hanzogui.config.json')
14
14
 
15
15
  /**
16
16
  * Sort of a super-set of bundleConfig(), this code needs some refactoring ideally
17
17
  */
18
18
 
19
19
  export async function regenerateConfig(
20
- guiOptions: GuiOptions,
20
+ hanzoguiOptions: GuiOptions,
21
21
  configIn?: BundledConfig | null,
22
22
  rebuild = false
23
23
  ) {
24
24
  try {
25
25
  // this has a side effect of rebuilding config and css!
26
26
  // need to improve code here:
27
- const config = configIn ?? (await getBundledConfig(guiOptions, rebuild))
27
+ const config = configIn ?? (await getBundledConfig(hanzoguiOptions, rebuild))
28
28
  if (!config) return
29
- const out = transformConfig(config, guiOptions.platform || 'web')
29
+ const out = transformConfig(config, hanzoguiOptions.platform || 'web')
30
30
 
31
31
  await FS.ensureDir(dirname(confFile))
32
32
  await FS.writeJSON(confFile, out, {
33
33
  spaces: 2,
34
34
  })
35
35
  } catch (err) {
36
- if (process.env.DEBUG?.includes('gui') || process.env.IS_GUI_DEV) {
36
+ if (process.env.DEBUG?.includes('hanzogui') || process.env.IS_GUI_DEV) {
37
37
  console.warn('regenerateConfig error', err)
38
38
  }
39
39
  // ignore for now
@@ -41,20 +41,20 @@ export async function regenerateConfig(
41
41
  }
42
42
 
43
43
  export function regenerateConfigSync(
44
- _guiOptions: GuiOptions,
44
+ _hanzoguiOptions: GuiOptions,
45
45
  config: BundledConfig
46
46
  ) {
47
47
  try {
48
48
  FS.ensureDirSync(dirname(confFile))
49
49
  FS.writeJSONSync(
50
50
  confFile,
51
- transformConfig(config, _guiOptions.platform || 'web'),
51
+ transformConfig(config, _hanzoguiOptions.platform || 'web'),
52
52
  {
53
53
  spaces: 2,
54
54
  }
55
55
  )
56
56
  } catch (err) {
57
- if (process.env.DEBUG?.includes('gui') || process.env.IS_GUI_DEV) {
57
+ if (process.env.DEBUG?.includes('hanzogui') || process.env.IS_GUI_DEV) {
58
58
  console.warn('regenerateConfig error', err)
59
59
  }
60
60
  // ignore for now
@@ -62,14 +62,14 @@ export function regenerateConfigSync(
62
62
  }
63
63
 
64
64
  export async function generateGuiThemes(
65
- guiOptions: GuiOptions,
65
+ hanzoguiOptions: GuiOptions,
66
66
  force = false
67
67
  ) {
68
- if (!guiOptions.themeBuilder) {
68
+ if (!hanzoguiOptions.themeBuilder) {
69
69
  return
70
70
  }
71
71
 
72
- const { input, output } = guiOptions.themeBuilder
72
+ const { input, output } = hanzoguiOptions.themeBuilder
73
73
  const inPath = resolveRelativePath(input)
74
74
  const outPath = resolveRelativePath(output)
75
75
  const generatedOutput = await generateThemes(inPath)
@@ -90,7 +90,7 @@ export async function generateGuiThemes(
90
90
  })())
91
91
 
92
92
  if (hasChanged) {
93
- await writeGeneratedThemes(guiDir, outPath, generatedOutput)
93
+ await writeGeneratedThemes(hanzoguiDir, outPath, generatedOutput)
94
94
  }
95
95
 
96
96
  return hasChanged
@@ -122,8 +122,8 @@ function transformConfig(config: BundledConfig, platform: GuiPlatform) {
122
122
  validStyles: true,
123
123
  }) as BundledConfig
124
124
 
125
- const { components, nameToPaths, guiConfig } = next
126
- const { themes, tokens } = guiConfig
125
+ const { components, nameToPaths, hanzoguiConfig } = next
126
+ const { themes, tokens } = hanzoguiConfig
127
127
 
128
128
  // reduce down to usable, smaller json
129
129
 
@@ -172,12 +172,12 @@ function transformConfig(config: BundledConfig, platform: GuiPlatform) {
172
172
  shorthands: _shorthands,
173
173
  userShorthands,
174
174
  ...cleanedConfig
175
- } = next.guiConfig
175
+ } = next.hanzoguiConfig
176
176
 
177
177
  return {
178
178
  components,
179
179
  nameToPaths,
180
- guiConfig: {
180
+ hanzoguiConfig: {
181
181
  ...cleanedConfig,
182
182
  // Output userShorthands as shorthands (excludes built-ins)
183
183
  shorthands: userShorthands,
@@ -4,8 +4,13 @@ import { regenerateConfig } from './regenerateConfig'
4
4
 
5
5
  let isWatching = false
6
6
 
7
- export async function watchGuiConfig(guiOptions: GuiOptions) {
8
- if (process.env.NODE_ENV === 'production') {
7
+ export async function watchGuiConfig(hanzoguiOptions: GuiOptions) {
8
+ // when the compiler is disabled there's nothing to regenerate, so don't boot
9
+ // a persistent esbuild watch service just to track the config graph. this is
10
+ // the common dev setup (e.g. `disable: NODE_ENV === 'development'`) where the
11
+ // plugin should be a no-op - otherwise every dev server leaks a long-lived
12
+ // esbuild `--service` child watching a config it never compiles.
13
+ if (process.env.NODE_ENV === 'production' || hanzoguiOptions.disable) {
9
14
  return {
10
15
  dispose() {},
11
16
  }
@@ -17,22 +22,22 @@ export async function watchGuiConfig(guiOptions: GuiOptions) {
17
22
 
18
23
  isWatching = true
19
24
 
20
- const options = await getOptions({ guiOptions })
25
+ const options = await getOptions({ hanzoguiOptions })
21
26
 
22
- if (!options.guiOptions.config) {
27
+ if (!options.hanzoguiOptions.config) {
23
28
  isWatching = false
24
29
  throw new Error(`No config`)
25
30
  }
26
31
 
27
32
  const disposeConfigWatcher = await esbuildWatchFiles(
28
- options.guiOptions.config,
33
+ options.hanzoguiOptions.config,
29
34
  async () => {
30
- await generateThemesAndLog(options.guiOptions)
31
- await regenerateConfig(options.guiOptions, null, true)
35
+ await generateThemesAndLog(options.hanzoguiOptions)
36
+ await regenerateConfig(options.hanzoguiOptions, null, true)
32
37
  }
33
38
  )
34
39
 
35
- const themeBuilderInput = options.guiOptions.themeBuilder?.input
40
+ const themeBuilderInput = options.hanzoguiOptions.themeBuilder?.input
36
41
  let disposeThemesWatcher: Function | undefined
37
42
 
38
43
  if (themeBuilderInput) {
@@ -43,7 +48,7 @@ export async function watchGuiConfig(guiOptions: GuiOptions) {
43
48
  // ok
44
49
  }
45
50
  disposeThemesWatcher = await esbuildWatchFiles(inputPath, async () => {
46
- await generateThemesAndLog(options.guiOptions)
51
+ await generateThemesAndLog(options.hanzoguiOptions)
47
52
  })
48
53
  }
49
54
 
@@ -14,7 +14,7 @@ export function getPragmaOptions({ source, path }: { source: string; path: strin
14
14
  }
15
15
  pragma =
16
16
  trimmed
17
- .match(/(\/\/|\/\*)\s?!?\s?(gui-ignore|debug|debug-verbose)(\n|\s|$).*/)?.[2]
17
+ .match(/(\/\/|\/\*)\s?!?\s?(hanzogui-ignore|debug|debug-verbose)(\n|\s|$).*/)?.[2]
18
18
  .trim() || ''
19
19
  if (pragma) {
20
20
  pragma = pragma.replace('!', '').trim()
@@ -23,7 +23,7 @@ export function getPragmaOptions({ source, path }: { source: string; path: strin
23
23
  }
24
24
 
25
25
  switch (pragma) {
26
- case 'gui-ignore':
26
+ case 'hanzogui-ignore':
27
27
  shouldDisable = true
28
28
  break
29
29
 
@@ -42,11 +42,11 @@ export function getPragmaOptions({ source, path }: { source: string; path: strin
42
42
  }
43
43
  }
44
44
 
45
- if (process.env.DEBUG?.includes('gui')) {
45
+ if (process.env.DEBUG?.includes('hanzogui')) {
46
46
  shouldPrintDebug ||= true
47
47
  }
48
48
 
49
- if (process.env.DEBUG?.includes('gui-verbose')) {
49
+ if (process.env.DEBUG?.includes('hanzogui-verbose')) {
50
50
  shouldPrintDebug = 'verbose'
51
51
  }
52
52
 
@@ -62,7 +62,7 @@ export function registerRequire(
62
62
  // already registered
63
63
  if (isRegistered) {
64
64
  return {
65
- guiRequire: require,
65
+ hanzoguiRequire: require,
66
66
  unregister: () => {},
67
67
  }
68
68
  }
@@ -77,7 +77,7 @@ export function registerRequire(
77
77
  hookMatcher: (filename) => {
78
78
  if (
79
79
  filename.includes('@hanzogui') ||
80
- /\/gui\/code\/(core|ui|packages)\//.test(filename)
80
+ /\/hanzogui\/code\/(core|ui|packages)\//.test(filename)
81
81
  ) {
82
82
  return false
83
83
  }
@@ -104,16 +104,16 @@ export function registerRequire(
104
104
 
105
105
  isRegistered = true
106
106
 
107
- Module.prototype.require = guiRequire
107
+ Module.prototype.require = hanzoguiRequire
108
108
 
109
- function guiRequire(this: any, path: string) {
109
+ function hanzoguiRequire(this: any, path: string) {
110
110
  const staticExtractionStub = getStaticExtractionStub(path)
111
111
  if (staticExtractionStub) {
112
112
  return staticExtractionStub
113
113
  }
114
114
 
115
- if (path === 'gui' && platform === 'native') {
116
- return og.apply(this, ['gui/native'])
115
+ if (path === 'hanzogui' && platform === 'native') {
116
+ return og.apply(this, ['hanzogui/native'])
117
117
  }
118
118
 
119
119
  if (path === '@hanzogui/core') {
@@ -145,7 +145,9 @@ export function registerRequire(
145
145
  if (
146
146
  path === '@hanzogui/react-native-web-lite' ||
147
147
  path === 'react-native' ||
148
- path.startsWith('react-native/')
148
+ path.startsWith('react-native/') ||
149
+ path === 'react-native-web' ||
150
+ path.startsWith('react-native-web/')
149
151
  ) {
150
152
  try {
151
153
  return og.apply('react-native')
@@ -155,24 +157,35 @@ export function registerRequire(
155
157
  }
156
158
 
157
159
  if (!whitelisted[path]) {
158
- if (proxyWormImports && !path.includes('.gui-dynamic-eval')) {
159
- // allow gui and its sub-packages through - they re-export components
160
+ if (proxyWormImports && !path.includes('.hanzogui-dynamic-eval')) {
161
+ // allow hanzogui and its sub-packages through - they re-export components
160
162
  // with staticConfig needed for dynamic eval optimization.
161
- // also allow requires FROM within gui packages (relative imports like ./Separator.cjs)
163
+ // also allow requires FROM within hanzogui packages (relative imports like ./Separator.cjs)
162
164
  const callerFile = this?.filename || this?.id || ''
163
165
  const isFromGuiPkg =
164
- callerFile.includes('@hanzogui') || callerFile.includes('node_modules/gui/')
166
+ callerFile.includes('@hanzogui') ||
167
+ callerFile.includes('node_modules/hanzogui/') ||
168
+ /\/hanzogui\/code\/(core|ui|packages)\//.test(callerFile)
165
169
  const isFromStaticLoader =
166
170
  !callerFile ||
167
171
  callerFile === '.' ||
168
172
  callerFile === '[eval]' ||
169
173
  callerFile.endsWith('/[eval]') ||
170
- callerFile.includes('/code/compiler/static/') ||
171
- callerFile.includes('/.gui/')
174
+ callerFile.includes('/pkgs/compiler/static/') ||
175
+ callerFile.includes('/.hanzogui/')
176
+ // relative requires from within a whitelisted package's own files
177
+ // (e.g. react/index.js does require('./cjs/react.development.js')).
178
+ // proxy-worming these breaks the package's own internals.
179
+ const isRelativeFromWhitelisted =
180
+ path.startsWith('.') &&
181
+ Object.keys(whitelisted).some((pkg) =>
182
+ callerFile.includes(`/node_modules/${pkg}/`)
183
+ )
172
184
 
173
185
  if (
174
- path === 'gui' ||
186
+ path === 'hanzogui' ||
175
187
  path.startsWith('@hanzogui/') ||
188
+ isRelativeFromWhitelisted ||
176
189
  isFromGuiPkg ||
177
190
  isFromStaticLoader
178
191
  ) {
@@ -211,7 +224,7 @@ export function registerRequire(
211
224
  } catch (err: any) {
212
225
  if (
213
226
  !process.env.GUI_ENABLE_WARN_DYNAMIC_LOAD &&
214
- path.includes('gui-dynamic-eval')
227
+ path.includes('hanzogui-dynamic-eval')
215
228
  ) {
216
229
  // ok, dynamic eval fails
217
230
  return
@@ -231,7 +244,7 @@ export function registerRequire(
231
244
  */
232
245
 
233
246
  console.warn(
234
- ` [gui] skipped "${path}" (set GUI_IGNORE_BUNDLE_ERRORS="${path}" to silence)`
247
+ ` [hanzogui] skipped "${path}" (set GUI_IGNORE_BUNDLE_ERRORS="${path}" to silence)`
235
248
  )
236
249
  }
237
250
 
@@ -240,11 +253,11 @@ export function registerRequire(
240
253
  }
241
254
 
242
255
  return {
243
- guiRequire,
256
+ hanzoguiRequire,
244
257
  unregister: () => {
245
258
  if (hasWarnedForModules.size) {
246
259
  console.info(
247
- ` [gui] skipped loading ${hasWarnedForModules.size} module, see: https://gui.dev/docs/intro/errors#warning-001`
260
+ ` [hanzogui] skipped loading ${hasWarnedForModules.size} module, see: https://hanzogui.dev/docs/intro/errors#warning-001`
248
261
  )
249
262
  hasWarnedForModules.clear()
250
263
  }
@@ -266,7 +279,7 @@ const knownIgnorableModules = {
266
279
  solito: true,
267
280
  'expo-linear-gradient': true,
268
281
  '@expo/vector-icons': true,
269
- 'gui/linear-gradient': true,
282
+ 'hanzogui/linear-gradient': true,
270
283
  // animation libraries not needed for static extraction
271
284
  '@emotion/is-prop-valid': true,
272
285
  'framer-motion': true,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAG1C,eAAO,MAAM,SAAS,MAAM,CAAA;AAG5B,eAAO,MAAM,QAAQ,KAA8C,CAAA;AAEnE,eAAO,MAAM,WAAW,eAA8B,CAAA;AAEtD,eAAO,MAAM,YAAY,qBAC0C,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAG1C,eAAO,MAAM,SAAS,MAAM,CAAA;AAG5B,eAAO,MAAM,QAAQ,KAAmD,CAAA;AAExE,eAAO,MAAM,WAAW,eAA8B,CAAA;AAEtD,eAAO,MAAM,YAAY,qBAC+C,CAAA"}
@@ -12,5 +12,6 @@ export * from './extractor/watchGuiConfig';
12
12
  export * from './extractor/createLogger';
13
13
  export * from './registerRequire';
14
14
  export { detectModuleFormat, clearFormatCache } from './extractor/detectModuleFormat';
15
+ export { esbundleGuiConfig } from './extractor/bundle';
15
16
  export * from './getPragmaOptions';
16
17
  //# sourceMappingURL=exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACrF,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,cAAc,oBAAoB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAO3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAwBtB,CAAA;AAQV,eAAO,MAAM,uBAAuB,QAAqD,CAAA;AAEzF;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AA6MD,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBjC"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAO3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAwBtB,CAAA;AAQV,eAAO,MAAM,uBAAuB,QAAqD,CAAA;AAEzF;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AA0OD,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBjC"}
@@ -12,7 +12,7 @@ export type LoadedComponents = {
12
12
  };
13
13
  export type GuiProjectInfo = {
14
14
  components?: LoadedComponents[];
15
- guiConfig?: GuiInternalConfig | null;
15
+ hanzoguiConfig?: GuiInternalConfig | null;
16
16
  nameToPaths?: NameToPaths;
17
17
  cached?: boolean;
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"bundleConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/bundleConfig.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACzE,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAyE1C,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,M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,+BAI3E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,YAAY,UAAQ,sBAIzE;AAqBD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,UAAU,EACjB,YAAY,UAAQ,GACnB,OAAO,CAAC,IAAI,GAAG,gBAAgB,EAAE,CAAC,CAyJpC;AAGD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,UAAU,EACjB,YAAY,UAAQ,GACnB,IAAI,GAAG,gBAAgB,EAAE,CAyI3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAmBjC,OAAO,KAAK,EAGV,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EAGX,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAA;AActE,OAAO,EAAE,iBAAiB,EAA6B,MAAM,6BAA6B,CAAA;AAwB1F,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,KAAK,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAQ9C,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,QAAgB,EAAE,GAAE,gBAAsC;;;;;qBAsJnD,UAAU;yBAPZ,UAAU;;mBAwBlB,UAAU,SAAS,mBAAmB;;;;;;;eAKpC,UAAU,SAAS,mBAAmB;;;;;;;EA43E1D"}
1
+ {"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAmB,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAmBjC,OAAO,KAAK,EAGV,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EAGX,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAA;AActE,OAAO,EAAE,iBAAiB,EAA6B,MAAM,6BAA6B,CAAA;AAwB1F,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,KAAK,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AA6C9C,wBAAgB,eAAe,CAC7B,EAAE,MAAgB,EAAE,QAAgB,EAAE,GAAE,gBAAsC;;;;;qBAsJnD,UAAU;yBAPZ,UAAU;;mBAwBlB,UAAU,SAAS,mBAAmB;;;;;;;eAKpC,UAAU,SAAS,mBAAmB;;;;;;;EAmjF1D"}
@@ -3,7 +3,7 @@ import * as t from '@babel/types';
3
3
  import type { GuiInternalConfig } from '@hanzogui/core';
4
4
  import * as core from '@hanzogui/core';
5
5
  import type { GuiOptionsWithFileInfo, Ternary } from '../types';
6
- export declare function extractMediaStyle(props: GuiOptionsWithFileInfo, ternary: Ternary, jsxPath: NodePath<t.JSXElement>, guiConfig: GuiInternalConfig, sourcePath: string, importance?: number, shouldPrintDebug?: boolean | 'verbose'): {
6
+ export declare function extractMediaStyle(props: GuiOptionsWithFileInfo, ternary: Ternary, jsxPath: NodePath<t.JSXElement>, hanzoguiConfig: GuiInternalConfig, sourcePath: string, importance?: number, shouldPrintDebug?: boolean | 'verbose'): {
7
7
  mediaStyles: core.StyleObject[];
8
8
  ternaryWithoutMedia: Ternary | null;
9
9
  } | null;
@@ -1 +1 @@
1
- {"version":3,"file":"extractMediaStyle.d.ts","sourceRoot":"","sources":["../../src/extractor/extractMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,O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SAAiB;;;SAmE9C;AA0FD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,sBAAsB,EAC7B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,IAAI,EAAE,CAAC,CAAC,UAAU,EAClB,UAAU,EAAE,MAAM,WAenB"}
@@ -1 +1 @@
1
- {"version":3,"file":"extractToClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToClassNames.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAKjC,OAAO,KAAK,EAAe,UAAU,EAAW,MAAM,UAAU,CAAA;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAYlD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,EAAE,MAAM,CAAA;QACjB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,UAAU,CAAA;IACnB,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,CAAA;AAQD,wBAAsB,mBAAmB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,UAAe,EACf,OAAO,EACP,gBAAgB,GACjB,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CA2gB9D"}
1
+ {"version":3,"file":"extractToClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToClassNames.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAKjC,OAAO,KAAK,EAAe,UAAU,EAAW,MAAM,UAAU,CAAA;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAYlD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,EAAE,MAAM,CAAA;QACjB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,UAAU,CAAA;IACnB,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC,CAAA;AAQD,wBAAsB,mBAAmB,CAAC,EACxC,SAAS,EACT,MAAM,EACN,UAAe,EACf,OAAO,EACP,gBAAgB,GACjB,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAinB9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"extractToNative.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToNative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,aAAa,CAAA;AAQxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAsB1C,wBAAgB,eAAe,CAC7B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,UAAU,GAClB,eAAe,CAoBjB;AAED,wBAAgB,cAAc,QAK7B;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU;;;;wBAMvC,GAAG;;;EAyYtB"}
1
+ {"version":3,"file":"extractToNative.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToNative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,aAAa,CAAA;AAQxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAsB1C,wBAAgB,eAAe,CAC7B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,UAAU,GAClB,eAAe,CAoBjB;AAED,wBAAgB,cAAc,QAK7B;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU;;;;wBAMvC,GAAG;;;EA0ZtB"}
@@ -3,20 +3,20 @@ import { type GuiProjectInfo } from './bundleConfig';
3
3
  export declare function loadGui(propsIn: Partial<GuiOptions>): Promise<GuiProjectInfo | null>;
4
4
  export declare const generateThemesAndLog: (options: GuiOptions, force?: boolean) => Promise<void>;
5
5
  /**
6
- * Load gui.build.ts config using esbuild-wasm transform
6
+ * Load hanzogui.build.ts config using esbuild-wasm transform
7
7
  * Uses WASM to avoid native esbuild service lifecycle issues (EPIPE errors)
8
8
  */
9
- export declare function loadGuiBuildConfigAsync(guiOptions: Partial<GuiOptions> | undefined): Promise<GuiOptions>;
9
+ export declare function loadGuiBuildConfigAsync(hanzoguiOptions: Partial<GuiOptions> | undefined): Promise<GuiOptions>;
10
10
  /**
11
11
  * @deprecated Use loadGuiBuildConfigAsync instead to avoid EPIPE errors
12
12
  */
13
- export declare function loadGuiBuildConfigSync(guiOptions: Partial<GuiOptions> | undefined): GuiOptions;
13
+ export declare function loadGuiBuildConfigSync(hanzoguiOptions: Partial<GuiOptions> | undefined): GuiOptions;
14
14
  export declare function loadGuiSync({ forceExports, cacheKey, ...propsIn }: Partial<GuiOptions> & {
15
15
  forceExports?: boolean;
16
16
  cacheKey?: string;
17
17
  }): GuiProjectInfo;
18
- export declare function getOptions({ root, tsconfigPath, guiOptions, host, debug, }?: Partial<CLIUserOptions>): Promise<CLIResolvedOptions>;
19
- export declare function resolveWebOrNativeSpecificEntry(entry: string): string;
18
+ export declare function getOptions({ root, tsconfigPath, hanzoguiOptions, host, debug, }?: Partial<CLIUserOptions>): Promise<CLIResolvedOptions>;
19
+ export declare function resolveWebOrNativeSpecificEntry(entry: string, platform?: string): string;
20
20
  export type { GuiProjectInfo };
21
21
  export declare function esbuildWatchFiles(entry: string, onChanged: () => void): Promise<() => void>;
22
22
  //# sourceMappingURL=loadGui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadGui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadGui.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AASrF,OAAO,EACL,KAAK,cAAc,EAMpB,MAAM,gBAAgB,CAAA;AAkBvB,wBAAsB,OAAO,CAC3B,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,GAC3B,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CA+ChC;AAKD,eAAO,MAAM,oBAAoB,GAAU,SAAS,UAAU,EAAE,eAAa,kBA6B5E,CAAA;AAQD;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,SAAS,GAC1C,OAAO,CAAC,UAAU,CAAC,CAuDrB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,SAAS,GA8BtC,UAAU,CAChB;AAGD,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,OAAO,CAAC,UAAU,CAAC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,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,cAAc,CAgHjB;AAED,wBAAsB,UAAU,CAAC,EAC/B,IAAoB,EACpB,YAA8B,EAC9B,eAAe,EACf,IAAI,EACJ,KAAK,GACN,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAgC5D;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,UAY/E;AA0BD,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,uBAyD3E"}
@@ -3,7 +3,7 @@ import type { BundledConfig } from './bundleConfig';
3
3
  /**
4
4
  * Sort of a super-set of bundleConfig(), this code needs some refactoring ideally
5
5
  */
6
- export declare function regenerateConfig(guiOptions: GuiOptions, configIn?: BundledConfig | null, rebuild?: boolean): Promise<void>;
7
- export declare function regenerateConfigSync(_guiOptions: GuiOptions, config: BundledConfig): void;
8
- export declare function generateGuiThemes(guiOptions: GuiOptions, force?: boolean): Promise<boolean | undefined>;
6
+ export declare function regenerateConfig(hanzoguiOptions: GuiOptions, configIn?: BundledConfig | null, rebuild?: boolean): Promise<void>;
7
+ export declare function regenerateConfigSync(_hanzoguiOptions: GuiOptions, config: BundledConfig): void;
8
+ export declare function generateGuiThemes(hanzoguiOptions: GuiOptions, force?: boolean): Promise<boolean | undefined>;
9
9
  //# sourceMappingURL=regenerateConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"regenerateConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/regenerateConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAKjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAMnD;;GAEG;AAEH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,UAAU,EACtB,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,EAC/B,OAAO,UAAQ,iBAmBhB;AAED,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,UAAU,EACvB,MAAM,EAAE,aAAa,QAiBtB;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,UAAU,EACtB,KAAK,UAAQ,gCA+Bd"}
1
+ {"version":3,"file":"regenerateConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/regenerateConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAKjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAMnD;;GAEG;AAEH,wBAAsB,gBAAgB,CACpC,eAAe,EAAE,UAAU,EAC3B,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,EAC/B,OAAO,UAAQ,iBAmBhB;AAED,wBAAgB,oBAAoB,CAClC,gBAAgB,EAAE,UAAU,EAC5B,MAAM,EAAE,aAAa,QAiBtB;AAED,wBAAsB,iBAAiB,CACrC,eAAe,EAAE,UAAU,EAC3B,KAAK,UAAQ,gCA+Bd"}
@@ -1,5 +1,5 @@
1
1
  import type { GuiOptions } from '@hanzogui/types';
2
- export declare function watchGuiConfig(guiOptions: GuiOptions): Promise<{
2
+ export declare function watchGuiConfig(hanzoguiOptions: GuiOptions): Promise<{
3
3
  dispose(): void;
4
4
  } | undefined>;
5
5
  //# sourceMappingURL=watchGuiConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"watchGuiConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/watchGuiConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAMjD,wBAAsB,cAAc,CAAC,UAAU,EAAE,UAAU;;eAkD1D"}
1
+ {"version":3,"file":"watchGuiConfig.d.ts","sourceRoot":"","sources":["../../src/extractor/watchGuiConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAMjD,wBAAsB,cAAc,CAAC,eAAe,EAAE,UAAU;;eAuD/D"}
@@ -4,7 +4,7 @@ export declare function setRequireResult(name: string, result: any): void;
4
4
  export declare function registerRequire(platform: GuiPlatform, { proxyWormImports }?: {
5
5
  proxyWormImports: boolean;
6
6
  }): {
7
- guiRequire: (this: any, path: string) => any;
7
+ hanzoguiRequire: (this: any, path: string) => any;
8
8
  unregister: () => void;
9
9
  };
10
10
  //# sourceMappingURL=registerRequire.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,eAAO,MAAM,cAAc,UAAoB,CAAA;AAa/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;AAgCD,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,WAAW,EACrB,EAAE,gBAAgB,EAAE;;CAEnB;uBAiDyB,GAAG,QAAQ,MAAM;;EAoJ5C"}
1
+ {"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C,eAAO,MAAM,cAAc,UAAoB,CAAA;AAa/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;AAgCD,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,WAAW,EACrB,EAAE,gBAAgB,EAAE;;CAEnB;4BAiD8B,GAAG,QAAQ,MAAM;;EAiKjD"}
package/LICENSE DELETED
@@ -1,42 +0,0 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2026-present, Hanzo AI, Inc.
4
-
5
- Portions of this software are derived from upstream code originally licensed under
6
- the MIT License, with the following copyright notices retained per its terms:
7
-
8
- Copyright (c) 2020 Nate Wienert
9
- Copyright (c) 2015-present, Nicolas Gallagher.
10
- Copyright (c) 2015-present, Facebook, Inc.
11
- Copyright (c) 2021 Radix
12
- Copyright (c) 2017 Carmelo Pullara
13
- Copyright (c) 2018 Framer B.V.
14
- Copyright (c) 2022 WorkOS
15
-
16
- All rights reserved.
17
-
18
- Redistribution and use in source and binary forms, with or without
19
- modification, are permitted provided that the following conditions are met:
20
-
21
- 1. Redistributions of source code must retain the above copyright notice, this
22
- list of conditions and the following disclaimer.
23
-
24
- 2. Redistributions in binary form must reproduce the above copyright notice,
25
- this list of conditions and the following disclaimer in the documentation
26
- and/or other materials provided with the distribution.
27
-
28
- 3. Neither the name of the copyright holder nor the names of its contributors
29
- may be used to endorse or promote products derived from this software
30
- without specific prior written permission.
31
-
32
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
- POSSIBILITY OF SUCH DAMAGE.