vim-web 0.6.0-dev.5 → 0.6.0-dev.7

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/vim-web.d.ts CHANGED
@@ -2244,6 +2244,11 @@ interface StateRef<T> {
2244
2244
  confirm(): void;
2245
2245
  onChange: ISimpleEvent<T>;
2246
2246
  }
2247
+ /**
2248
+ * Creates a standalone StateRef<T> without React hooks.
2249
+ * Use this when you need observable state outside of React components.
2250
+ */
2251
+ declare function createState<T>(initial: T): StateRef<T>;
2247
2252
  /**
2248
2253
  * A callable function reference with middleware support.
2249
2254
  * All ref types (sync, async, with/without args) use this single interface.
@@ -3343,7 +3348,7 @@ declare const IsolationPanel: {
3343
3348
  type ViewerApi = WebglViewerApi | UltraViewerApi;
3344
3349
 
3345
3350
  declare namespace React {
3346
- export { React_ContextMenu as ContextMenu, React_ControlBar as ControlBar, React_Errors as Errors, React_Icons as Icons, IsolationPanel, SectionBoxPanel, React_Settings as Settings, React_Ultra as Ultra, React_Webgl as Webgl, createContainer };
3351
+ export { React_ContextMenu as ContextMenu, React_ControlBar as ControlBar, React_Errors as Errors, React_Icons as Icons, IsolationPanel, SectionBoxPanel, React_Settings as Settings, React_Ultra as Ultra, React_Webgl as Webgl, createContainer, createState };
3347
3352
  export type { AugmentedElement, BimInfoPanelApi, Container, Data, DataCustomization, DataRender, Entry, FramingApi, FuncRef, GenericBoolEntry, GenericEntryType, GenericNumberEntry, GenericPanelApi, GenericTextEntry, Group, IsolationApi, LoadingBoxProps, MessageBoxProps, ModalApi, ModalProps, ProgressMode, Section, SectionBoxApi, SettingsApi, StateRef, ViewerApi, VisibilityStatus };
3348
3353
  }
3349
3354