@metadev/daga-react 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.
@@ -0,0 +1,9 @@
1
+ import { Option } from '../../../../../daga/src/index.ts';
2
+ interface DagaAutocompleteComponentProps {
3
+ disabled: boolean;
4
+ options: Option<unknown>[];
5
+ value: unknown;
6
+ onChange: (value: unknown) => void;
7
+ }
8
+ declare const DagaAutocompleteComponent: React.FC<DagaAutocompleteComponentProps>;
9
+ export { DagaAutocompleteComponent };
@@ -2,6 +2,7 @@ import { Property, ValueSet } from '../../../../../daga/src/index.ts';
2
2
  interface DagaObjectEditorComponentProps {
3
3
  valueSet: ValueSet;
4
4
  onValueChange: (property: Property, value: unknown) => void;
5
+ depth: number;
5
6
  }
6
7
  declare const DagaObjectEditorComponent: React.FC<DagaObjectEditorComponentProps>;
7
8
  export { DagaObjectEditorComponent };
@@ -0,0 +1,10 @@
1
+ import { Option } from '../../../../../daga/src/index.ts';
2
+ interface DagaOptionListComponentProps {
3
+ disabled: boolean;
4
+ allowRepeats: boolean;
5
+ options: Option<unknown>[];
6
+ value: unknown[];
7
+ onChange: (value: unknown[]) => void;
8
+ }
9
+ declare const DagaOptionListComponent: React.FC<DagaOptionListComponentProps>;
10
+ export { DagaOptionListComponent };
@@ -4,4 +4,5 @@ interface DagaPropertySettingsComponentProps {
4
4
  depth: number;
5
5
  }
6
6
  declare const DagaPropertySettingsComponent: React.FC<DagaPropertySettingsComponentProps>;
7
- export { DagaPropertySettingsComponent };
7
+ declare const asString: (value: unknown) => string;
8
+ export { DagaPropertySettingsComponent, asString };
@@ -0,0 +1,8 @@
1
+ interface DagaTextListComponentProps {
2
+ disabled: boolean;
3
+ allowRepeats: boolean;
4
+ value: unknown[];
5
+ onChange: (value: unknown[]) => void;
6
+ }
7
+ declare const DagaTextListComponent: React.FC<DagaTextListComponentProps>;
8
+ export { DagaTextListComponent };
@@ -0,0 +1,11 @@
1
+ interface DagaTextMapComponentProps {
2
+ disabled: boolean;
3
+ value: {
4
+ [name: string]: string;
5
+ };
6
+ onChange: (value: {
7
+ [name: string]: string;
8
+ }) => void;
9
+ }
10
+ declare const DagaTextMapComponent: React.FC<DagaTextMapComponentProps>;
11
+ export { DagaTextMapComponent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metadev/daga-react",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "style": "./style.css",