@netlisian/softconfig 0.0.3 → 0.0.4

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,6 +1,6 @@
1
1
  import * as zustand from 'zustand';
2
2
  import { StoreApi } from 'zustand';
3
- import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Fields, Config, Data } from '@measured/puck';
3
+ import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Config, Fields, Data } from '@measured/puck';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, ReactElement } from 'react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -113,6 +113,7 @@ type BuilderComponentConfig = {
113
113
  }[];
114
114
  [key: string]: any;
115
115
  };
116
+ type BuilderConfig = Config<any, BuilderRootConfig>;
116
117
 
117
118
  type SoftSubComponent = {
118
119
  type: string;
@@ -343,4 +344,10 @@ declare const confirm: (message: string) => Promise<boolean>;
343
344
  */
344
345
  declare const resolveSoftConfig: (data: Data, softComponents: SoftComponents, config: Config) => Data;
345
346
 
346
- export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, ComponentItem, Header, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
347
+ declare const Modal: ({ children, onClose, isOpen, }: {
348
+ children: ReactNode;
349
+ onClose: () => void;
350
+ isOpen: boolean;
351
+ }) => react_jsx_runtime.JSX.Element;
352
+
353
+ export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, type BuilderComponentConfig, type BuilderConfig, type BuilderRootConfig, ComponentItem, Header, Modal, type Overrides, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
@@ -1,6 +1,6 @@
1
1
  import * as zustand from 'zustand';
2
2
  import { StoreApi } from 'zustand';
3
- import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Fields, Config, Data } from '@measured/puck';
3
+ import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Config, Fields, Data } from '@measured/puck';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, ReactElement } from 'react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -113,6 +113,7 @@ type BuilderComponentConfig = {
113
113
  }[];
114
114
  [key: string]: any;
115
115
  };
116
+ type BuilderConfig = Config<any, BuilderRootConfig>;
116
117
 
117
118
  type SoftSubComponent = {
118
119
  type: string;
@@ -343,4 +344,10 @@ declare const confirm: (message: string) => Promise<boolean>;
343
344
  */
344
345
  declare const resolveSoftConfig: (data: Data, softComponents: SoftComponents, config: Config) => Data;
345
346
 
346
- export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, ComponentItem, Header, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
347
+ declare const Modal: ({ children, onClose, isOpen, }: {
348
+ children: ReactNode;
349
+ onClose: () => void;
350
+ isOpen: boolean;
351
+ }) => react_jsx_runtime.JSX.Element;
352
+
353
+ export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, type BuilderComponentConfig, type BuilderConfig, type BuilderRootConfig, ComponentItem, Header, Modal, type Overrides, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
@@ -83,6 +83,7 @@ __export(puck_exports, {
83
83
  ActionBar: () => ActionBarOverride,
84
84
  ComponentItem: () => ComponentItem,
85
85
  Header: () => Header,
86
+ Modal: () => Modal,
86
87
  SoftConfigProvider: () => SoftConfigProvider,
87
88
  confirm: () => confirm,
88
89
  createSoftConfigStore: () => createSoftConfigStore,
@@ -2828,6 +2829,7 @@ var resolveSoftConfig = (data, softComponents, config) => {
2828
2829
  ActionBar,
2829
2830
  ComponentItem,
2830
2831
  Header,
2832
+ Modal,
2831
2833
  SoftConfigProvider,
2832
2834
  confirm,
2833
2835
  createSoftConfigStore,
@@ -2778,6 +2778,7 @@ export {
2778
2778
  ActionBarOverride as ActionBar,
2779
2779
  ComponentItem,
2780
2780
  Header,
2781
+ Modal,
2781
2782
  SoftConfigProvider,
2782
2783
  confirm,
2783
2784
  createSoftConfigStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlisian/softconfig",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "typescript": "5.9.3",
38
38
  "typescript-plugin-css-modules": "^5.1.0",
39
39
  "@netlisian/eslint-config": "0.0.0",
40
- "@netlisian/tsconfig": "0.0.0"
40
+ "@netlisian/tsconfig": "0.0.1"
41
41
  },
42
42
  "dependencies": {
43
43
  "classnames": "^2.5.1",