uiconfig-blueprint 0.1.0-dev.15 → 0.1.0-dev.17

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 (153) hide show
  1. package/NOTICE +13 -0
  2. package/README.md +26 -15
  3. package/dist/ConfigObject.d.ts +7 -7
  4. package/dist/UiConfigRendererBlueprint.d.ts +3 -3
  5. package/dist/bpComponents/BPButtonComponent.d.ts +4 -4
  6. package/dist/bpComponents/BPColorInputComponent.d.ts +4 -4
  7. package/dist/bpComponents/BPComponent.d.ts +4 -4
  8. package/dist/bpComponents/BPContainerComponent.d.ts +4 -4
  9. package/dist/bpComponents/BPDropdownInputComponent.d.ts +4 -4
  10. package/dist/bpComponents/BPFileComponent.d.ts +5 -5
  11. package/dist/bpComponents/BPFolderComponent.d.ts +6 -6
  12. package/dist/bpComponents/BPInputComponent.d.ts +5 -5
  13. package/dist/bpComponents/BPLabelledComponent.d.ts +1 -1
  14. package/dist/bpComponents/BPNumberInputComponent.d.ts +5 -4
  15. package/dist/bpComponents/BPPanelComponent.d.ts +5 -5
  16. package/dist/bpComponents/BPSliderInputComponent.d.ts +4 -4
  17. package/dist/bpComponents/BPTextInputComponent.d.ts +7 -4
  18. package/dist/bpComponents/BPToggleInputComponent.d.ts +4 -4
  19. package/dist/bpComponents/BPValueComponent.d.ts +3 -3
  20. package/dist/bpComponents/BPVectorInputComponent.d.ts +6 -5
  21. package/dist/bpComponents/InputGroup2.d.ts +2 -2
  22. package/dist/components/AppToaster.d.ts +2 -2
  23. package/dist/components/ConfigurationPanelComponent.d.ts +2 -1
  24. package/dist/components/DialogContext.d.ts +4 -4
  25. package/dist/components/DraggableIcon.d.ts +2 -2
  26. package/dist/components/ExtendedNumericInput.d.ts +3 -3
  27. package/dist/components/FileComponent.d.ts +3 -3
  28. package/dist/components/FormGroupComponent.d.ts +2 -2
  29. package/dist/components/InspectorStackComponent.d.ts +5 -4
  30. package/dist/components/NumericInput.d.ts +4 -3
  31. package/dist/components/VisualStyleContext.d.ts +3 -3
  32. package/dist/components/axesIcons.d.ts +7 -7
  33. package/dist/components/bpIconWrapper.d.ts +2 -2
  34. package/dist/components/iconMapping.d.ts +195 -195
  35. package/dist/components/shapesIcons.d.ts +100 -100
  36. package/dist/components/variableIcons.d.ts +40 -40
  37. package/dist/dependencies.txt +1329 -0
  38. package/dist/index.cjs +102 -0
  39. package/dist/index.cjs.map +1 -0
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.js +41 -40
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +2500 -5
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/lib.d.ts +35 -35
  46. package/docs/assets/icons.js +15 -0
  47. package/docs/assets/icons.svg +1 -0
  48. package/docs/assets/main.js +4 -4
  49. package/docs/assets/navigation.js +1 -1
  50. package/docs/assets/search.js +1 -1
  51. package/docs/assets/style.css +40 -22
  52. package/docs/classes/UI.html +27 -27
  53. package/docs/classes/UiConfigRendererBlueprint.html +27 -27
  54. package/docs/hierarchy.html +1 -0
  55. package/docs/index.html +22 -15
  56. package/docs/modules.html +3 -3
  57. package/lib/css/renderer.css +4 -2
  58. package/lib/css/renderer.css.map +1 -1
  59. package/lib/esm/ConfigObject.d.ts +3 -3
  60. package/lib/esm/UiConfigRendererBlueprint.d.ts +1 -1
  61. package/lib/esm/UiConfigRendererBlueprint.js +25 -23
  62. package/lib/esm/UiConfigRendererBlueprint.js.map +1 -1
  63. package/lib/esm/bpComponents/BPButtonComponent.d.ts +3 -3
  64. package/lib/esm/bpComponents/BPColorInputComponent.d.ts +4 -3
  65. package/lib/esm/bpComponents/BPColorInputComponent.js +1 -1
  66. package/lib/esm/bpComponents/BPColorInputComponent.js.map +1 -1
  67. package/lib/esm/bpComponents/BPComponent.d.ts +2 -1
  68. package/lib/esm/bpComponents/BPComponent.js +15 -4
  69. package/lib/esm/bpComponents/BPComponent.js.map +1 -1
  70. package/lib/esm/bpComponents/BPContainerComponent.d.ts +4 -4
  71. package/lib/esm/bpComponents/BPDropdownInputComponent.d.ts +5 -4
  72. package/lib/esm/bpComponents/BPFileComponent.d.ts +6 -5
  73. package/lib/esm/bpComponents/BPFileComponent.js +1 -1
  74. package/lib/esm/bpComponents/BPFileComponent.js.map +1 -1
  75. package/lib/esm/bpComponents/BPFolderComponent.d.ts +3 -3
  76. package/lib/esm/bpComponents/BPFolderComponent.js +1 -2
  77. package/lib/esm/bpComponents/BPFolderComponent.js.map +1 -1
  78. package/lib/esm/bpComponents/BPInputComponent.d.ts +3 -3
  79. package/lib/esm/bpComponents/BPLabelledComponent.d.ts +1 -1
  80. package/lib/esm/bpComponents/BPNumberInputComponent.d.ts +5 -4
  81. package/lib/esm/bpComponents/BPNumberInputComponent.js +1 -1
  82. package/lib/esm/bpComponents/BPNumberInputComponent.js.map +1 -1
  83. package/lib/esm/bpComponents/BPPanelComponent.d.ts +5 -4
  84. package/lib/esm/bpComponents/BPSliderInputComponent.d.ts +5 -4
  85. package/lib/esm/bpComponents/BPTextInputComponent.d.ts +7 -4
  86. package/lib/esm/bpComponents/BPTextInputComponent.js +11 -2
  87. package/lib/esm/bpComponents/BPTextInputComponent.js.map +1 -1
  88. package/lib/esm/bpComponents/BPToggleInputComponent.d.ts +5 -4
  89. package/lib/esm/bpComponents/BPValueComponent.d.ts +2 -2
  90. package/lib/esm/bpComponents/BPValueComponent.js +4 -4
  91. package/lib/esm/bpComponents/BPValueComponent.js.map +1 -1
  92. package/lib/esm/bpComponents/BPVectorInputComponent.d.ts +5 -4
  93. package/lib/esm/bpComponents/BPVectorInputComponent.js +1 -1
  94. package/lib/esm/bpComponents/BPVectorInputComponent.js.map +1 -1
  95. package/lib/esm/components/AppToaster.d.ts +2 -1
  96. package/lib/esm/components/ConfigurationPanelComponent.d.ts +2 -1
  97. package/lib/esm/components/ConfigurationPanelComponent.js +1 -2
  98. package/lib/esm/components/ConfigurationPanelComponent.js.map +1 -1
  99. package/lib/esm/components/DialogContext.d.ts +3 -3
  100. package/lib/esm/components/DialogContext.js +1 -2
  101. package/lib/esm/components/DialogContext.js.map +1 -1
  102. package/lib/esm/components/DraggableIcon.d.ts +1 -1
  103. package/lib/esm/components/ExtendedNumericInput.d.ts +1 -1
  104. package/lib/esm/components/FileComponent.d.ts +2 -2
  105. package/lib/esm/components/FormGroupComponent.d.ts +1 -1
  106. package/lib/esm/components/InspectorStackComponent.d.ts +3 -2
  107. package/lib/esm/components/NumericInput.d.ts +2 -1
  108. package/lib/esm/components/VisualStyleContext.d.ts +2 -2
  109. package/lib/esm/components/VisualStyleContext.js +1 -2
  110. package/lib/esm/components/VisualStyleContext.js.map +1 -1
  111. package/lib/esm/components/axesIcons.d.ts +8 -7
  112. package/lib/esm/components/bpIconWrapper.d.ts +1 -1
  113. package/lib/esm/components/iconMapping.d.ts +146 -146
  114. package/lib/esm/components/shapesIcons.d.ts +99 -99
  115. package/lib/esm/components/variableIcons.d.ts +41 -40
  116. package/lib/esm/index.d.ts +1 -1
  117. package/lib/esm/lib.d.ts +35 -35
  118. package/lib/esm/renderer.css.js +1 -1
  119. package/package.json +30 -26
  120. package/src/UiConfigRendererBlueprint.tsx +26 -23
  121. package/src/bpComponents/BPComponent.tsx +20 -7
  122. package/src/bpComponents/BPFolderComponent.tsx +2 -2
  123. package/src/bpComponents/BPTextInputComponent.tsx +15 -2
  124. package/src/components/ConfigurationPanelComponent.tsx +1 -2
  125. package/src/components/DialogContext.tsx +1 -2
  126. package/src/components/VisualStyleContext.tsx +1 -2
  127. package/dist/allPaths-vhUhWron.js +0 -23
  128. package/dist/allPaths-vhUhWron.js.map +0 -1
  129. package/dist/allPathsLoader-BeDEFia4.js +0 -27
  130. package/dist/allPathsLoader-BeDEFia4.js.map +0 -1
  131. package/dist/index-BaIbKicL.js +0 -695
  132. package/dist/index-BaIbKicL.js.map +0 -1
  133. package/dist/index-Bh4sHBxX.js +0 -695
  134. package/dist/index-Bh4sHBxX.js.map +0 -1
  135. package/dist/index-C8ABKThN.js +0 -13501
  136. package/dist/index-C8ABKThN.js.map +0 -1
  137. package/dist/splitPathsBySizeLoader-CYAuGCeX.js +0 -36
  138. package/dist/splitPathsBySizeLoader-CYAuGCeX.js.map +0 -1
  139. package/lib/esm/bpComponents/BPTreeComponent.d.ts +0 -46
  140. package/lib/esm/bpComponents/BPTreeComponent.js +0 -221
  141. package/lib/esm/bpComponents/BPTreeComponent.js.map +0 -1
  142. package/lib/esm/bpComponents/BPTreeFolderComponent.d.ts +0 -10
  143. package/lib/esm/bpComponents/BPTreeFolderComponent.js +0 -37
  144. package/lib/esm/bpComponents/BPTreeFolderComponent.js.map +0 -1
  145. package/lib/esm/components/Tree2.d.ts +0 -52
  146. package/lib/esm/components/Tree2.js +0 -177
  147. package/lib/esm/components/Tree2.js.map +0 -1
  148. package/lib/esm/components/TreeNode2.d.ts +0 -43
  149. package/lib/esm/components/TreeNode2.js +0 -113
  150. package/lib/esm/components/TreeNode2.js.map +0 -1
  151. package/lib/esm/components/treeTypes.d.ts +0 -19
  152. package/lib/esm/components/treeTypes.js +0 -2
  153. package/lib/esm/components/treeTypes.js.map +0 -1
package/NOTICE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Palash Bansal <palash@shaders.app>
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ https://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # UiConfig Blueprint.js
2
2
 
3
3
  [![NPM Package](https://img.shields.io/npm/v/uiconfig-blueprint.svg)](https://www.npmjs.com/package/uiconfig-blueprint)
4
- [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/license/apache-2-0/)
4
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-green.svg)](./LICENSE)
5
5
 
6
6
  Blueprint.js theme/wrapper library for [uiconfig.js](https://github.com/repalash/uiconfig.js): A UI renderer framework to dynamically generate website/configuration UIs from a JSON-like configurations and/or typescript decorators.
7
7
 
@@ -11,7 +11,9 @@ The UI components are bound to javascript/typescript objects and properties t
11
11
 
12
12
  ### Examples
13
13
 
14
- Basic Examples: https://repalash.com/uiconfig-blueprint/examples/index.html
14
+ Examples: https://repalash.com/uiconfig.js/examples/ (pick Blueprint on an example page)
15
+
16
+ API docs: https://repalash.com/uiconfig.js/docs/modules/uiconfig-blueprint.html
15
17
 
16
18
  Threepipe Basic UI: https://threepipe.org/examples/#blueprintjs-ui-plugin/
17
19
 
@@ -29,8 +31,7 @@ npm install uiconfig-blueprint
29
31
  Use in any javascript/typescript file.
30
32
  ```typescript
31
33
  import { UI } from 'uiconfig-blueprint';
32
- // or for the browser
33
- // import { UI } from 'https://unpkg.com/uiconfig-blueprint/dist/index.mjs';
34
+ // in a browser without a bundler, use the CDN link below
34
35
 
35
36
  const config = {
36
37
  type: "slider",
@@ -72,6 +73,15 @@ The module can be accessed with the short-form `bpui`
72
73
  </script>
73
74
  ```
74
75
 
76
+ ### Builds
77
+
78
+ - `dist/index.mjs` (`import`, `module`): ES module. It imports its dependencies `uiconfig.js`, `ts-browser-helpers`, `react`, `react-dom`, `@blueprintjs/core`, `@blueprintjs/icons`, `@blueprintjs/select`, `react-colorful` and `classnames` instead of bundling them, so the bundler of the app keeps one copy of each. The styles and a few internal modules of `@blueprintjs/core` stay in the bundle. `react`, `react-dom` and `@blueprintjs/core` are peer dependencies: npm 7 and later install them, other package managers can need them in the app's `package.json`.
79
+ - `lib/esm`: the TypeScript output, one file per source module.
80
+ - `dist/index.js` (`browser`, the CDN link): UMD bundle with all dependencies included, for a `<script>` tag.
81
+ - `dist/index.cjs` (`main`, `require`): the same bundle as CommonJS, for `require()`.
82
+
83
+ The UMD and CommonJS builds are legacy and will be removed in the next major version.
84
+
75
85
  ## Configuration
76
86
 
77
87
  Check the documentation at [uiconfig.js](https://github.com/repalash/uiconfig.js) on how to create a configuration for the UI.
@@ -105,30 +115,31 @@ ui.THREE = {Color, Vector4, Vector3, Vector2}
105
115
 
106
116
  ## Development
107
117
 
108
- Clone the project and install dependencies.
118
+ This package lives in the [uiconfig monorepo](https://github.com/repalash/uiconfig.js). Clone it and install the dependencies at the root.
109
119
  ```bash
110
- git clone git://github.com/repalash/uiconfig-blueprint.git
120
+ git clone https://github.com/repalash/uiconfig.js.git
121
+ cd uiconfig.js
111
122
  npm install
123
+ npm run build -w uiconfig.js
112
124
  ```
113
125
 
114
- Run the development server.
126
+ The examples are pages of the website ([website/README.md](https://github.com/repalash/uiconfig.js/blob/master/website/README.md)), which uses the built `dist` of this
127
+ package: build it, then run the website's dev server and open its examples.
115
128
  ```bash
116
- npm run dev
129
+ npm run build -w uiconfig-blueprint
130
+ npm run dev -w uiconfig-website
117
131
  ```
118
- Navigate to the given URL to view the examples. Make changes in the `src` folder and the page will automatically reload.
132
+ After a change in `src`, build the package again.
119
133
 
120
134
  Build the project.
121
135
  ```bash
122
- npm run build
136
+ npm run build -w uiconfig-blueprint
123
137
  ```
124
138
 
125
- Publish the project to npm.
126
- ```bash
127
- npm publish
128
- ```
139
+ Releases are published to npm from GitHub Actions: see the root README.
129
140
 
130
141
  ## License
131
- All code is licensed under [Apache 2.0](LICENSE).
142
+ Apache 2.0, see [LICENSE](LICENSE) and [NOTICE](NOTICE). 0.1.0-dev.16 was published with an MIT license field; it contains the same Apache 2.0 code.
132
143
 
133
144
  ## Library usage in react
134
145
 
@@ -1,9 +1,9 @@
1
- import React from "react";
2
- import { Class, PartialRecord } from "ts-browser-helpers";
3
- import { BPComponentProps, BPComponentState, UiConfigRendererContext } from "./bpComponents/BPComponent";
4
- import { PanelActions } from "@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes";
1
+ import { default as React } from 'react';
2
+ import { Class, PartialRecord } from 'ts-browser-helpers';
3
+ import { BPComponentProps, BPComponentState, UiConfigRendererContext } from './bpComponents/BPComponent.js';
4
+ import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
5
5
  import { UiObjectConfig } from 'uiconfig.js';
6
- import { IconName, MaybeElement } from "@blueprintjs/core";
6
+ import { IconName, MaybeElement } from '@blueprintjs/core';
7
7
  export type UiConfigTypes = 'input' | 'button' | 'folder' | 'checkbox' | 'toggle' | 'dropdown' | 'slider' | 'color' | 'image' | 'number' | 'panel' | 'tree' | 'hierarchy' | 'materials' | 'textures' | 'vec' | 'vec2' | 'vec3' | 'vec4' | 'monitor' | 'vector' | 'select' | 'textarea' | 'tabs';
8
8
  export interface ConfigProps extends PanelActions {
9
9
  config: UiObjectConfig;
@@ -14,8 +14,8 @@ export interface ConfigProps extends PanelActions {
14
14
  }
15
15
  export declare const ConfigObjectGenerators: PartialRecord<UiConfigTypes, Class<React.Component<BPComponentProps<any>, BPComponentState>>>;
16
16
  export declare class ConfigObject extends React.Component<ConfigProps, {}> {
17
- static contextType: React.Context<import("./bpComponents/BPComponent").UiConfigRendererBaseBp>;
17
+ static contextType: React.Context<import('./bpComponents/BPComponent.js').UiConfigRendererBaseBp>;
18
18
  context: React.ContextType<typeof UiConfigRendererContext>;
19
19
  state: {};
20
- render(): import("react/jsx-runtime").JSX.Element;
20
+ render(): React.JSX.Element;
21
21
  }
@@ -1,7 +1,7 @@
1
- import { JSUndoManager } from "ts-browser-helpers";
2
- import { UiConfigRenderer, UiObjectConfig } from "uiconfig.js";
1
+ import { JSUndoManager } from 'ts-browser-helpers';
2
+ import { UiConfigRenderer, UiObjectConfig } from 'uiconfig.js';
3
3
  import { Root } from 'react-dom/client';
4
- import { THREE } from "./threejs";
4
+ import { THREE } from './threejs.js';
5
5
  export declare class UiConfigRendererBlueprint extends UiConfigRenderer {
6
6
  constructor(container?: HTMLElement, { autoPostFrame }?: {
7
7
  autoPostFrame?: boolean | undefined;
@@ -1,9 +1,9 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import React from "react";
3
- import { BPLabelledComponent, BPLabelledComponentState } from "./BPLabelledComponent";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { default as React } from 'react';
3
+ import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent.js';
4
4
  export declare class BPButtonComponent extends BPLabelledComponent<() => void, BPLabelledComponentState> {
5
5
  constructor(props: BPComponentProps<() => void>, context: UiConfigRendererContextType);
6
6
  onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
7
7
  protected flexBasis: string;
8
- render(): import("react/jsx-runtime").JSX.Element | null;
8
+ render(): React.JSX.Element | null;
9
9
  }
@@ -1,6 +1,6 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPValueComponent, BPValueComponentState } from "./BPValueComponent";
3
- import type { ColorRepresentation } from "three";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { BPValueComponent, BPValueComponentState } from './BPValueComponent.js';
3
+ import { ColorRepresentation } from 'three';
4
4
  export type BPColorComponentState = BPValueComponentState<string> & {
5
5
  mode: 'number' | 'string' | 'Color';
6
6
  lastValue?: ColorRepresentation;
@@ -22,5 +22,5 @@ export declare class BPColorInputComponent extends BPValueComponent<ColorReprese
22
22
  private _mouseUp;
23
23
  refreshConfigState(state?: BPColorComponentState): Promise<void>;
24
24
  protected flexBasis: string;
25
- render(): import("react/jsx-runtime").JSX.Element | null;
25
+ render(): import("react").JSX.Element | null;
26
26
  }
@@ -1,8 +1,7 @@
1
- import React from "react";
2
- import type { UiConfigRendererBase } from 'uiconfig.js';
3
- import { UiObjectConfig } from 'uiconfig.js';
1
+ import { default as React } from 'react';
2
+ import { UiConfigRendererBase, UiObjectConfig } from 'uiconfig.js';
4
3
  import { ValOrFunc } from 'ts-browser-helpers';
5
- import { THREE } from "../threejs";
4
+ import { THREE } from '../threejs.js';
6
5
  export type BPComponentProps<T> = {
7
6
  config: UiObjectConfig<T>;
8
7
  level?: number;
@@ -27,6 +26,7 @@ export declare abstract class BPComponent<TValue, TState extends BPComponentStat
27
26
  keyVersion: number;
28
27
  getUpdatedState(state: TState): TState;
29
28
  private _refreshing;
29
+ private _refreshAgain;
30
30
  refreshConfigState(state?: TState): Promise<void>;
31
31
  componentDidMount(): void;
32
32
  componentWillUnmount(): void;
@@ -1,8 +1,8 @@
1
- import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent';
2
- import { BPComponentProps, UiConfigRendererContextType } from './BPComponent';
1
+ import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent.js';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
3
  import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
4
4
  import { UiObjectConfig } from 'uiconfig.js';
5
- declare module '../ConfigObject' {
5
+ declare module '../ConfigObject.js' {
6
6
  interface ConfigProps {
7
7
  filter?: (child: UiObjectConfig) => boolean;
8
8
  }
@@ -19,7 +19,7 @@ export declare class BPContainerComponent<TState extends BPContainerComponentSta
19
19
  protected _registerChild(child: UiObjectConfig): void;
20
20
  protected _unregisterChild(child: UiObjectConfig): void;
21
21
  constructor(props: BPComponentProps<void> & PanelActions & TProps, context: UiConfigRendererContextType, state: TState);
22
- getUpdatedState(state: TState): TState & import("./BPComponent").BPComponentState & {
22
+ getUpdatedState(state: TState): TState & import('./BPComponent.js').BPComponentState & {
23
23
  children: any[];
24
24
  expanded: boolean;
25
25
  label: string;
@@ -1,6 +1,6 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPInputComponent } from "./BPInputComponent";
3
- import { BPValueComponentState } from "./BPValueComponent";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { BPInputComponent } from './BPInputComponent.js';
3
+ import { BPValueComponentState } from './BPValueComponent.js';
4
4
  export interface DropdownItem {
5
5
  label: string;
6
6
  value: string | number;
@@ -12,5 +12,5 @@ export type BPDropdownComponentState = BPValueComponentState<string | number> &
12
12
  export declare class BPDropdownInputComponent extends BPInputComponent<string | number, BPDropdownComponentState> {
13
13
  constructor(props: BPComponentProps<string | number>, context: UiConfigRendererContextType);
14
14
  getUpdatedState(state: BPDropdownComponentState): BPDropdownComponentState;
15
- renderInput(): import("react/jsx-runtime").JSX.Element;
15
+ renderInput(): import("react").JSX.Element;
16
16
  }
@@ -1,6 +1,6 @@
1
- import { FileComponentProps } from "../components/FileComponent";
2
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
3
- import { BPValueComponent, BPValueComponentState } from "./BPValueComponent";
1
+ import { FileComponentProps } from '../components/FileComponent.js';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
+ import { BPValueComponent, BPValueComponentState } from './BPValueComponent.js';
4
4
  type StateValue = string | File | null;
5
5
  type FileImportType = any;
6
6
  export type BPFileComponentState<TSV = never> = BPValueComponentState<TSV | StateValue> & {
@@ -23,8 +23,8 @@ export declare class BPFileComponent<T extends FileImportType = FileImportType,
23
23
  constructor(props: BPComponentProps<T | null> & BPFileComponentProps<TSV> & TP, context: BPFileComponentContextType<TSV>);
24
24
  convertValueToState(_val: T | null, _state: BPFileComponentState<TSV>): BPFileComponentState<TSV>;
25
25
  convertStateToValue(state: BPFileComponentState<TSV>): Promise<T | null>;
26
- renderPreviewSlot(): import("react/jsx-runtime").JSX.Element;
26
+ renderPreviewSlot(): import("react").JSX.Element;
27
27
  protected flexBasis: string;
28
- render(): import("react/jsx-runtime").JSX.Element | null;
28
+ render(): import("react").JSX.Element | null;
29
29
  }
30
30
  export {};
@@ -1,15 +1,15 @@
1
- import React, { ChangeEventHandler, DOMAttributes } from "react";
2
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
3
- import { Collapse, IconName, MaybeElement } from "@blueprintjs/core";
4
- import { PanelActions } from "@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes";
5
- import { BPContainerComponent, BPContainerComponentState, BPContainerComponentProps } from './BPContainerComponent';
1
+ import { default as React, ChangeEventHandler, DOMAttributes } from 'react';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
+ import { Collapse, IconName, MaybeElement } from '@blueprintjs/core';
4
+ import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
5
+ import { BPContainerComponent, BPContainerComponentState, BPContainerComponentProps } from './BPContainerComponent.js';
6
6
  export type BPFolderComponentState = BPContainerComponentState & {};
7
7
  export type BPFolderComponentProps = BPContainerComponentProps & {
8
8
  icon?: IconName | MaybeElement;
9
9
  };
10
10
  export declare class BPFolderComponent extends BPContainerComponent<BPFolderComponentState, BPFolderComponentProps> {
11
11
  constructor(props: BPComponentProps<void> & PanelActions & BPFolderComponentProps, context: UiConfigRendererContextType);
12
- render(): import("react/jsx-runtime").JSX.Element | null;
12
+ render(): React.JSX.Element | null;
13
13
  }
14
14
  export declare const FolderHeadCard: React.FC<React.PropsWithChildren<{
15
15
  open: boolean;
@@ -1,12 +1,12 @@
1
- import { BPValueComponent, BPValueComponentState } from "./BPValueComponent";
2
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
3
- import { ReactNode } from "react";
4
- import { PrimitiveVal } from "uiconfig.js";
1
+ import { BPValueComponent, BPValueComponentState } from './BPValueComponent.js';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
+ import { ReactNode } from 'react';
4
+ import { PrimitiveVal } from 'uiconfig.js';
5
5
  export declare abstract class BPInputComponent<TStateValue extends PrimitiveVal, TState extends BPValueComponentState<TStateValue> = BPValueComponentState<TStateValue>> extends BPValueComponent<TStateValue, TState, TStateValue> {
6
6
  protected constructor(props: BPComponentProps<TStateValue>, context: UiConfigRendererContextType, state: TState);
7
7
  convertValueToState(value: TStateValue, state: TState): TState;
8
8
  convertStateToValue(state: TState): Promise<TStateValue>;
9
9
  abstract renderInput(): ReactNode;
10
10
  protected flexBasis: string;
11
- render(): import("react/jsx-runtime").JSX.Element | null;
11
+ render(): import("react").JSX.Element | null;
12
12
  }
@@ -1,4 +1,4 @@
1
- import { BPComponent, BPComponentProps, BPComponentState, UiConfigRendererContextType } from "./BPComponent";
1
+ import { BPComponent, BPComponentProps, BPComponentState, UiConfigRendererContextType } from './BPComponent.js';
2
2
  export type BPLabelledComponentState = BPComponentState & {
3
3
  label: string;
4
4
  };
@@ -1,6 +1,7 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPInputComponent } from "./BPInputComponent";
3
- import { BPValueComponentState } from "./BPValueComponent";
1
+ import { default as React } from 'react';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
+ import { BPInputComponent } from './BPInputComponent.js';
4
+ import { BPValueComponentState } from './BPValueComponent.js';
4
5
  export declare class BPNumberInputComponent extends BPInputComponent<number, BPValueComponentState<number> & {
5
6
  unit?: string;
6
7
  }> {
@@ -8,5 +9,5 @@ export declare class BPNumberInputComponent extends BPInputComponent<number, BPV
8
9
  private _inputs;
9
10
  refreshConfigState(state?: BPValueComponentState<number>): Promise<void>;
10
11
  private _onChange;
11
- renderInput(): import("react/jsx-runtime").JSX.Element;
12
+ renderInput(): React.JSX.Element;
12
13
  }
@@ -1,8 +1,8 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPLabelledComponentState } from "./BPLabelledComponent";
3
- import { PanelActions } from "@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { BPLabelledComponentState } from './BPLabelledComponent.js';
3
+ import { PanelActions } from '@blueprintjs/core/lib/esm/components/panel-stack2/panelTypes';
4
4
  import { UiObjectConfig } from 'uiconfig.js';
5
- import { BPContainerComponent, BPContainerComponentProps } from './BPContainerComponent';
5
+ import { BPContainerComponent, BPContainerComponentProps } from './BPContainerComponent.js';
6
6
  export type BPPanelComponentState = BPLabelledComponentState & {
7
7
  children: UiObjectConfig[];
8
8
  expanded: boolean;
@@ -12,5 +12,5 @@ export declare class BPPanelComponent extends BPContainerComponent<BPPanelCompon
12
12
  setExpanded: (e: boolean) => void;
13
13
  componentDidMount(): void;
14
14
  componentWillUnmount(): void;
15
- render(): import("react/jsx-runtime").JSX.Element | null;
15
+ render(): import("react").JSX.Element | null;
16
16
  }
@@ -1,6 +1,6 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPInputComponent } from "./BPInputComponent";
3
- import { BPValueComponentState } from "./BPValueComponent";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { BPInputComponent } from './BPInputComponent.js';
3
+ import { BPValueComponentState } from './BPValueComponent.js';
4
4
  export type BPSliderComponentState = BPValueComponentState<number> & {
5
5
  min: number;
6
6
  max: number;
@@ -11,5 +11,5 @@ export declare class BPSliderInputComponent extends BPInputComponent<number, BPS
11
11
  constructor(props: BPComponentProps<number>, context: UiConfigRendererContextType);
12
12
  getUpdatedState(state: BPSliderComponentState): BPSliderComponentState;
13
13
  flexBasis: string;
14
- renderInput(): import("react/jsx-runtime").JSX.Element[];
14
+ renderInput(): import("react").JSX.Element[];
15
15
  }
@@ -1,11 +1,14 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPInputComponent } from "./BPInputComponent";
3
- import { BPValueComponentState } from "./BPValueComponent";
1
+ import { default as React } from 'react';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
+ import { BPInputComponent } from './BPInputComponent.js';
4
+ import { BPValueComponentState } from './BPValueComponent.js';
4
5
  export declare class BPTextInputComponent extends BPInputComponent<string> {
5
6
  constructor(props: BPComponentProps<string>, context: UiConfigRendererContextType);
6
7
  private _inputRef;
7
8
  private _iv;
8
9
  refreshConfigState(state?: BPValueComponentState<string>): Promise<void>;
10
+ private _edited;
9
11
  private _onChange;
10
- renderInput(): import("react/jsx-runtime").JSX.Element;
12
+ private _onBlur;
13
+ renderInput(): React.JSX.Element;
11
14
  }
@@ -1,8 +1,8 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPInputComponent } from "./BPInputComponent";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { BPInputComponent } from './BPInputComponent.js';
3
3
  export declare class BPToggleInputComponent extends BPInputComponent<boolean> {
4
4
  constructor(props: BPComponentProps<boolean>, context: UiConfigRendererContextType);
5
5
  private _onChange;
6
- renderInput(): import("react/jsx-runtime").JSX.Element;
7
- render(): import("react/jsx-runtime").JSX.Element | null;
6
+ renderInput(): import("react").JSX.Element;
7
+ render(): import("react").JSX.Element | null;
8
8
  }
@@ -1,6 +1,6 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPLabelledComponent, BPLabelledComponentState } from "./BPLabelledComponent";
3
- import { PrimitiveVal } from "uiconfig.js";
1
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
2
+ import { BPLabelledComponent, BPLabelledComponentState } from './BPLabelledComponent.js';
3
+ import { PrimitiveVal } from 'uiconfig.js';
4
4
  export type BPValueComponentState<TStateValue> = BPLabelledComponentState & {
5
5
  value: TStateValue;
6
6
  };
@@ -1,7 +1,8 @@
1
- import { BPComponentProps, UiConfigRendererContextType } from "./BPComponent";
2
- import { BPInputComponent } from "./BPInputComponent";
3
- import { BPValueComponentState } from "./BPValueComponent";
4
- import type { Vector2, Vector3, Euler, Vector4 } from "three";
1
+ import { default as React } from 'react';
2
+ import { BPComponentProps, UiConfigRendererContextType } from './BPComponent.js';
3
+ import { BPInputComponent } from './BPInputComponent.js';
4
+ import { BPValueComponentState } from './BPValueComponent.js';
5
+ import { Vector2, Vector3, Euler, Vector4 } from 'three';
5
6
  export type BPVectorComponentState = BPValueComponentState<Vector2 | Vector3 | Euler | Vector4> & {
6
7
  min: number;
7
8
  max: number;
@@ -22,5 +23,5 @@ export declare class BPVectorInputComponent extends BPInputComponent<Vector2 | V
22
23
  private _resizeObserver;
23
24
  componentDidMount(): void;
24
25
  componentWillUnmount(): void;
25
- renderInput(): import("react/jsx-runtime").JSX.Element;
26
+ renderInput(): React.JSX.Element;
26
27
  }
@@ -1,5 +1,5 @@
1
- import { AbstractPureComponent, InputGroupProps } from "@blueprintjs/core";
2
- import { InputGroupState } from "@blueprintjs/core/lib/esnext/components/forms/inputGroup";
1
+ import { AbstractPureComponent, InputGroupProps } from '@blueprintjs/core';
2
+ import { InputGroupState } from '@blueprintjs/core/lib/esnext/components/forms/inputGroup';
3
3
  import * as React from "react";
4
4
  export interface InputGroup2Props extends InputGroupProps {
5
5
  leftElementWidth?: number | string;
@@ -1,6 +1,6 @@
1
- import { Toaster } from "@blueprintjs/core";
1
+ import { Toaster } from '@blueprintjs/core';
2
2
  export declare const AppToasterRef: {
3
3
  ref: Toaster | null;
4
4
  };
5
5
  export declare const AppToaster: () => Toaster;
6
- export declare function AppToasterOverlay(): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AppToasterOverlay(): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
+ import { default as React } from 'react';
1
2
  import { UiObjectConfig } from 'uiconfig.js';
2
3
  export declare function ConfigurationPanelComponent({ config }: {
3
4
  config: UiObjectConfig<any, 'panel'>;
4
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, ReactNode, SetStateAction } from 'react';
2
- import { Intent } from '@blueprintjs/core/src/common/intent';
2
+ import { Intent } from '@blueprintjs/core';
3
3
  export type DialogStateType = {
4
4
  isOpen: boolean;
5
5
  title: string;
@@ -24,7 +24,7 @@ export declare function setupDialog(): {
24
24
  state: any;
25
25
  setState: (state: any) => void;
26
26
  };
27
- export declare const DialogContext: import("react").Context<{
27
+ export declare const DialogContext: import('react').Context<{
28
28
  dialog: DialogStateType;
29
29
  open: (d: Partial<DialogStateType>) => void;
30
30
  close: () => void;
@@ -42,8 +42,8 @@ export declare const useDialog: () => {
42
42
  };
43
43
  export declare function DialogProvider({ children }: {
44
44
  children: ReactNode;
45
- }): import("react/jsx-runtime").JSX.Element;
46
- export declare function DialogComponent(): import("react/jsx-runtime").JSX.Element;
45
+ }): import("react").JSX.Element;
46
+ export declare function DialogComponent(): import("react").JSX.Element;
47
47
  interface DialogPromptState {
48
48
  value: string;
49
49
  intent: Intent;
@@ -1,5 +1,5 @@
1
+ import { IconName, MaybeElement } from '@blueprintjs/core';
1
2
  import * as React from "react";
2
- import { IconName, MaybeElement } from "@blueprintjs/core";
3
3
  export declare class DraggableIcon extends React.Component<{
4
4
  icon: IconName | MaybeElement;
5
5
  size?: number;
@@ -17,5 +17,5 @@ export declare class DraggableIcon extends React.Component<{
17
17
  private removeEvents;
18
18
  private handlePointerMove;
19
19
  private accumulatedOffset;
20
- render(): import("react/jsx-runtime").JSX.Element;
20
+ render(): React.JSX.Element;
21
21
  }
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import type { HTMLInputProps, NumericInputProps } from "@blueprintjs/core";
1
+ import { default as React } from 'react';
2
+ import { HTMLInputProps, NumericInputProps } from '@blueprintjs/core';
3
3
  export interface IExtendedNumericInputState {
4
4
  value?: string;
5
5
  }
@@ -17,7 +17,7 @@ export declare class ExtendedNumericInput extends React.PureComponent<Props, IEx
17
17
  state: IExtendedNumericInputState;
18
18
  setValue(val?: number): Promise<void>;
19
19
  componentDidUpdate(prevProps: Props): void;
20
- render(): import("react/jsx-runtime").JSX.Element;
20
+ render(): React.JSX.Element;
21
21
  private handleBlur;
22
22
  private _lastChangedValue;
23
23
  private handleKeyDown;
@@ -1,5 +1,5 @@
1
- import React, { JSX, ReactNode } from "react";
2
- import { BPFileComponentState } from "../bpComponents/BPFileComponent";
1
+ import { default as React, JSX, ReactNode } from 'react';
2
+ import { BPFileComponentState } from '../bpComponents/BPFileComponent.js';
3
3
  export interface FileComponentProps<TSV = never> {
4
4
  state: BPFileComponentState<TSV>;
5
5
  onChange: (state: Partial<BPFileComponentState<TSV>>) => Promise<void>;
@@ -13,4 +13,4 @@ export interface FileComponentProps<TSV = never> {
13
13
  }) => JSX.Element;
14
14
  disableFileInput?: boolean;
15
15
  }
16
- export declare const FileComponent: <TSV>({ state, onChange, previewSlot, AssetPicker }: FileComponentProps<TSV>) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const FileComponent: <TSV>({ state, onChange, previewSlot, AssetPicker }: FileComponentProps<TSV>) => JSX.Element;
@@ -1,7 +1,7 @@
1
- import { CSSProperties, PropsWithChildren, ReactNode } from "react";
1
+ import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
2
2
  export declare function FormGroupComponent(props: PropsWithChildren<{
3
3
  label: string | ReactNode;
4
4
  flexBasis?: string;
5
5
  disabled?: boolean;
6
6
  style?: CSSProperties;
7
- }>): import("react/jsx-runtime").JSX.Element;
7
+ }>): import("react").JSX.Element;
@@ -1,7 +1,8 @@
1
- import { Panel } from "@blueprintjs/core";
1
+ import { default as React } from 'react';
2
+ import { Panel } from '@blueprintjs/core';
2
3
  import { UiObjectConfig } from 'uiconfig.js';
3
- import { UiConfigRendererBaseBp } from '../bpComponents/BPComponent';
4
- import { ValOrFunc } from "ts-browser-helpers";
4
+ import { UiConfigRendererBaseBp } from '../bpComponents/BPComponent.js';
5
+ import { ValOrFunc } from 'ts-browser-helpers';
5
6
  export declare function useConfigToStackItem(config: UiObjectConfig<any, 'panel'>, renderer?: UiConfigRendererBaseBp): () => Panel<{
6
7
  config: UiObjectConfig;
7
8
  }>;
@@ -11,4 +12,4 @@ export type InspectorStackItem = ValOrFunc<Panel<{
11
12
  export declare function InspectorStackComponent({ stackItem, className }: {
12
13
  stackItem: InspectorStackItem;
13
14
  className?: string;
14
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): React.JSX.Element;
@@ -1,5 +1,6 @@
1
- import { AbstractPureComponent, type HTMLInputProps, Position } from "@blueprintjs/core";
2
- import type { InputSharedProps } from "@blueprintjs/core/src/components/forms/inputSharedProps";
1
+ import { AbstractPureComponent, HTMLInputProps, Position } from '@blueprintjs/core';
2
+ import { InputSharedProps } from '@blueprintjs/core/src/components/forms/inputSharedProps';
3
+ import * as React from "react";
3
4
  export interface NumericInputProps extends InputSharedProps {
4
5
  allowNumericCharactersOnly?: boolean;
5
6
  asyncControl?: boolean;
@@ -50,7 +51,7 @@ export declare class NumericInput extends AbstractPureComponent<HTMLInputProps &
50
51
  private incrementButtonHandlers;
51
52
  private decrementButtonHandlers;
52
53
  private getCurrentValueAsNumber;
53
- render(): import("react/jsx-runtime").JSX.Element;
54
+ render(): React.JSX.Element;
54
55
  componentDidUpdate(prevProps: NumericInputProps, prevState: NumericInputState): void;
55
56
  protected validateProps(nextProps: HTMLInputProps & NumericInputProps): void;
56
57
  private renderButtons;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export declare const defaultVisualStyle: {
3
3
  darkMode: boolean;
4
4
  setDarkMode: (_: boolean) => void;
@@ -115,5 +115,5 @@ export declare function setupVisualStyle(): {
115
115
  };
116
116
  export declare function VisualStyleProvider({ children }: {
117
117
  children: React.ReactNode;
118
- }): import("react/jsx-runtime").JSX.Element;
119
- export declare function ThemeSettingsMenuComponent(): import("react/jsx-runtime").JSX.Element;
118
+ }): React.JSX.Element;
119
+ export declare function ThemeSettingsMenuComponent(): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- export declare const axesXYZIcon: import("react/jsx-runtime").JSX.Element;
2
- export declare const axesCubeIcon: import("react/jsx-runtime").JSX.Element;
3
- export declare const axesTetrahedronIcon: import("react/jsx-runtime").JSX.Element;
4
- export declare const axesSphereIcon: import("react/jsx-runtime").JSX.Element;
5
- export declare const axesCubeFilledIcon: import("react/jsx-runtime").JSX.Element;
6
- export declare const axesTetrahedronFilledIcon: import("react/jsx-runtime").JSX.Element;
7
- export declare const axesSphereFilledIcon: import("react/jsx-runtime").JSX.Element;
1
+ export declare const axesXYZIcon: import("react").JSX.Element;
2
+ export declare const axesCubeIcon: import("react").JSX.Element;
3
+ export declare const axesTetrahedronIcon: import("react").JSX.Element;
4
+ export declare const axesSphereIcon: import("react").JSX.Element;
5
+ export declare const axesCubeFilledIcon: import("react").JSX.Element;
6
+ export declare const axesTetrahedronFilledIcon: import("react").JSX.Element;
7
+ export declare const axesSphereFilledIcon: import("react").JSX.Element;