@metadev/daga-react 0.0.1 → 0.0.2

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,5 @@
1
- import { default as React, Ref } from 'react';
2
1
  import { Side } from '../../../../daga/src/index.ts';
3
-
2
+ import { default as React, Ref } from 'react';
4
3
  interface CollapseButtonComponentProps {
5
4
  collapsableSelector: string | Ref<HTMLElement>;
6
5
  collapsableAdditionalSelector: string;
@@ -1,4 +1,3 @@
1
1
  import { Canvas } from '../../../../daga/src/index.ts';
2
-
3
2
  declare const CanvasContext: import('react').Context<Canvas>;
4
3
  export { CanvasContext };
@@ -1,4 +1,3 @@
1
1
  import { DiagramConfig } from '../../../../daga/src/index.ts';
2
-
3
2
  declare const ConfigContext: import('react').Context<DiagramConfig>;
4
3
  export { ConfigContext };
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { DiagramConfig, DagaModel, DiagramEvent, Canvas } from '../../../../daga/src/index.ts';
3
-
2
+ import { default as React } from 'react';
4
3
  interface DagaDiagramProps {
5
4
  config: DiagramConfig;
6
5
  model?: DagaModel;
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { Corner, Side } from '../../../../daga/src/index.ts';
3
-
2
+ import { default as React } from 'react';
4
3
  interface DiagramButtonsComponentProps {
5
4
  location: Corner;
6
5
  direction: Side;
@@ -1,4 +1,3 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  declare const DagaErrorsComponent: React.FC;
4
3
  export default DagaErrorsComponent;
@@ -1,5 +1,4 @@
1
1
  import { PropertyEditor, ValueSet } from '../../../../daga/src/index.ts';
2
-
3
2
  export declare class ReactPropertyEditor implements PropertyEditor {
4
3
  private _title?;
5
4
  private _valueSet?;
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { Corner, PaletteSectionConfig, Side } from '../../../../daga/src/index.ts';
3
-
2
+ import { default as React } from 'react';
4
3
  interface PaletteComponentProps {
5
4
  palettes: PaletteSectionConfig[];
6
5
  currentPalette?: PaletteSectionConfig;
@@ -1,5 +1,4 @@
1
1
  import { Corner, Property, Side, ValueSet } from '../../../../daga/src/index.ts';
2
-
3
2
  interface DagaPropertyEditorComponentProps {
4
3
  location: Corner;
5
4
  direction: Side;
@@ -1,5 +1,4 @@
1
1
  import { Property, ValueSet } from '../../../../../daga/src/index.ts';
2
-
3
2
  interface DagaObjectEditorComponentProps {
4
3
  valueSet: ValueSet;
5
4
  onValueChange: (property: Property, value: unknown) => void;
@@ -1,5 +1,4 @@
1
1
  import { ValueSet } from '../../../../../daga/src/index.ts';
2
-
3
2
  interface DagaPropertySettingsComponentProps {
4
3
  valueSet?: ValueSet;
5
4
  depth: number;
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@metadev/daga-react",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
+ "style": "./style.css",
6
7
  "license": "SEE LICENSE IN LICENSE.md",
7
8
  "homepage": "https://metadev.pro/products/daga/",
8
9
  "keywords": [
@@ -16,12 +17,23 @@
16
17
  "daga",
17
18
  "react"
18
19
  ],
20
+ "peerDependencies": {
21
+ "react": "*",
22
+ "react-dom": "*",
23
+ "@metadev/daga": "^2.0.2",
24
+ "d3": "^7.9.0",
25
+ "rxjs": "~7.8.1"
26
+ },
19
27
  "types": "./index.d.ts",
20
28
  "author": "https://metadev.pro",
21
29
  "exports": {
22
30
  ".": {
23
31
  "import": "./index.mjs",
24
32
  "require": "./index.js"
33
+ },
34
+ "./style.css": {
35
+ "import": "./style.css",
36
+ "require": "./style.css"
25
37
  }
26
38
  },
27
39
  "files": [