hazo_config 1.4.0 → 1.4.1

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ConfigProvider } from '../lib/types';
2
+ import type { ConfigProvider } from '../lib/types.js';
3
3
  /**
4
4
  * Config editor component props
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"config_editor.d.ts","sourceRoot":"","sources":["../../src/components/config_editor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,cAAc,CAAA;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmLpD,CAAA"}
1
+ {"version":3,"file":"config_editor.d.ts","sourceRoot":"","sources":["../../src/components/config_editor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGrD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,cAAc,CAAA;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmLpD,CAAA"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  // Config editor component for managing configuration
3
3
  // Provides a more advanced interface for editing configuration values
4
4
  import { useState, useEffect } from 'react';
5
- import { cn } from '../lib/utils';
5
+ import { cn } from '../lib/utils.js';
6
6
  import { RefreshCw, Save } from 'lucide-react';
7
7
  /**
8
8
  * Config editor component
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ConfigProvider } from '../lib/types';
2
+ import type { ConfigProvider } from '../lib/types.js';
3
3
  /**
4
4
  * Config viewer component props
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"config_viewer.d.ts","sourceRoot":"","sources":["../../src/components/config_viewer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,cAAc,CAAA;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwIpD,CAAA"}
1
+ {"version":3,"file":"config_viewer.d.ts","sourceRoot":"","sources":["../../src/components/config_viewer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGrD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,cAAc,CAAA;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwIpD,CAAA"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // Config viewer component for displaying configuration data
3
3
  // Displays configuration sections and values in a readable format
4
4
  import { useState, useEffect } from 'react';
5
- import { cn } from '../lib/utils';
5
+ import { cn } from '../lib/utils.js';
6
6
  import { Pencil, CheckCircle2, XCircle } from 'lucide-react';
7
7
  /**
8
8
  * Config viewer component
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '../lib/utils';
2
+ import { cn } from '../lib/utils.js';
3
3
  /**
4
4
  * Example component for demonstrating the component library setup
5
5
  * @param props - Component props
@@ -6,7 +6,7 @@
6
6
  * in-memory caching, sync operations, and preservation of file formatting.
7
7
  * Zero dependencies - only Node.js built-ins and the 'ini' package.
8
8
  */
9
- import type { ConfigProvider, HazoConfigOptions } from './types';
9
+ import type { ConfigProvider, HazoConfigOptions } from './types.js';
10
10
  /**
11
11
  * HazoConfig class
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/lib/config-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAU,MAAM,SAAS,CAAA;AAaxE;;;;;GAKG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC/C,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAA6C;IAC3D,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,kBAAkB,CAAY;IAEtC;;;;OAIG;gBACS,OAAO,EAAE,iBAAiB;IAkBtC;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAsB1B;;;;;OAKG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,S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KAAK,EAAE,MAAM,GAAG,IAAI;IAQtD;;;OAGG;IACH,IAAI,IAAI,IAAI;IAqBZ;;;OAGG;IACH,OAAO,IAAI,IAAI;IA0Cf;;;OAGG;IACH,WAAW,IAAI,MAAM;IAIrB;;;OAGG;IACH,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CASzD"}
@@ -9,7 +9,7 @@
9
9
  import fs from 'fs';
10
10
  import path from 'path';
11
11
  import ini from 'ini';
12
- import { ConfigErrorCode as EC } from './types';
12
+ import { ConfigErrorCode as EC } from './types.js';
13
13
  /**
14
14
  * No-op logger implementation (default when no logger provided)
15
15
  */
@@ -1,4 +1,4 @@
1
- import type { ConfigProvider } from './types';
1
+ import type { ConfigProvider } from './types.js';
2
2
  /**
3
3
  * Mock config provider that stores configuration in memory
4
4
  * Useful for testing and Storybook demonstrations where file system is not available
@@ -1 +1 @@
1
- {"version":3,"file":"mock_config_provider.d.ts","sourceRoot":"","sources":["../../src/lib/mock_config_provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,MAAM,CAA6C;IAE3D;;;OAGG;gBACS,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAMnE;;;;;OAKG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIrD;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;IAI/D;;;;;OAKG;IACH,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAO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,CAAC,GAAG,IAAI;CAOjE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_config",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Config wrapper with error handling",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -2,8 +2,8 @@
2
2
  // Demonstrates the config editor component with mock config provider
3
3
 
4
4
  import type { Meta, StoryObj } from '@storybook/react'
5
- import { ConfigEditor } from './config_editor'
6
- import { MockConfigProvider } from '../lib/mock_config_provider'
5
+ import { ConfigEditor } from './config_editor.js'
6
+ import { MockConfigProvider } from '../lib/mock_config_provider.js'
7
7
 
8
8
  /**
9
9
  * Sample configuration data for testing
@@ -2,8 +2,8 @@
2
2
  // Provides a more advanced interface for editing configuration values
3
3
 
4
4
  import React, { useState, useEffect } from 'react'
5
- import { cn } from '../lib/utils'
6
- import type { ConfigProvider } from '../lib/types'
5
+ import { cn } from '../lib/utils.js'
6
+ import type { ConfigProvider } from '../lib/types.js'
7
7
  import { RefreshCw, Save } from 'lucide-react'
8
8
 
9
9
  /**
@@ -2,8 +2,8 @@
2
2
  // Demonstrates the config viewer component with mock config provider
3
3
 
4
4
  import type { Meta, StoryObj } from '@storybook/react'
5
- import { ConfigViewer } from './config_viewer'
6
- import { MockConfigProvider } from '../lib/mock_config_provider'
5
+ import { ConfigViewer } from './config_viewer.js'
6
+ import { MockConfigProvider } from '../lib/mock_config_provider.js'
7
7
 
8
8
  /**
9
9
  * Sample configuration data for testing
@@ -2,8 +2,8 @@
2
2
  // Displays configuration sections and values in a readable format
3
3
 
4
4
  import React, { useState, useEffect } from 'react'
5
- import { cn } from '../lib/utils'
6
- import type { ConfigProvider } from '../lib/types'
5
+ import { cn } from '../lib/utils.js'
6
+ import type { ConfigProvider } from '../lib/types.js'
7
7
  import { Pencil, CheckCircle2, XCircle } from 'lucide-react'
8
8
 
9
9
  /**
@@ -2,7 +2,7 @@
2
2
  // Demonstrates how to create stories for components
3
3
 
4
4
  import type { Meta, StoryObj } from '@storybook/react'
5
- import { ExampleComponent } from './example_component'
5
+ import { ExampleComponent } from './example_component.js'
6
6
 
7
7
  /**
8
8
  * Meta configuration for ExampleComponent stories
@@ -2,7 +2,7 @@
2
2
  // This is a placeholder component to demonstrate the setup
3
3
 
4
4
  import React from 'react'
5
- import { cn } from '../lib/utils'
5
+ import { cn } from '../lib/utils.js'
6
6
 
7
7
  /**
8
8
  * Example component props interface
@@ -10,8 +10,8 @@
10
10
  import fs from 'fs'
11
11
  import path from 'path'
12
12
  import ini from 'ini'
13
- import type { ConfigProvider, HazoConfigOptions, Logger } from './types'
14
- import { ConfigErrorCode as EC } from './types'
13
+ import type { ConfigProvider, HazoConfigOptions, Logger } from './types.js'
14
+ import { ConfigErrorCode as EC } from './types.js'
15
15
 
16
16
  /**
17
17
  * No-op logger implementation (default when no logger provided)
@@ -1,7 +1,7 @@
1
1
  // Mock config provider for browser/Storybook testing
2
2
  // Implements ConfigProvider interface using in-memory storage instead of file system
3
3
 
4
- import type { ConfigProvider } from './types'
4
+ import type { ConfigProvider } from './types.js'
5
5
 
6
6
  /**
7
7
  * Mock config provider that stores configuration in memory