@weaverse/react 0.7.15 → 0.7.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.
- package/dist/index.d.ts +8 -3
- package/dist/index.js +91 -579
- package/dist/index.mjs +90 -578
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactElement, ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { WeaverseElement, WeaverseType, Weaverse, ElementCSS, WeaverseItemStore } from '@weaverse/core';
|
|
4
4
|
export * from '@weaverse/core';
|
|
5
5
|
|
|
6
6
|
declare const SharedComponents: {
|
|
7
7
|
Placeholder: react.ForwardRefExoticComponent<PlaceholderProps & react.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
};
|
|
9
|
-
declare const Elements:
|
|
9
|
+
declare const Elements: Record<string, WeaverseElement>;
|
|
10
10
|
|
|
11
11
|
declare let createRootContext: (configs: WeaverseType) => Weaverse;
|
|
12
12
|
declare let WeaverseContext: react.Context<Weaverse>;
|
|
@@ -55,7 +55,12 @@ interface GridContentElementProps extends WeaverseElementProps {
|
|
|
55
55
|
gap: number;
|
|
56
56
|
rowSize: number;
|
|
57
57
|
}
|
|
58
|
-
interface
|
|
58
|
+
interface BackgroundDataProps {
|
|
59
|
+
backgroundColor?: string;
|
|
60
|
+
backgroundImage?: string;
|
|
61
|
+
objectFit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
62
|
+
}
|
|
63
|
+
interface LayoutElementProps extends BackgroundDataProps, GridContentElementProps {
|
|
59
64
|
gridSize: number;
|
|
60
65
|
}
|
|
61
66
|
interface MapElementProps extends WeaverseElementProps {
|