@uniformdev/canvas-react 20.75.1-alpha.16 → 20.76.1-alpha.3
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/{PureUniformText-CzdaUBnC.d.mts → PureUniformText-BFhXK0lt.d.mts} +4 -4
- package/dist/{PureUniformText-CzdaUBnC.d.ts → PureUniformText-BFhXK0lt.d.ts} +4 -4
- package/dist/core.d.mts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +6 -6
|
@@ -5,7 +5,7 @@ type ParameterTextValue = string | undefined;
|
|
|
5
5
|
type PureUniformTextProps = {
|
|
6
6
|
/**
|
|
7
7
|
* The name of the HTML tag to render.
|
|
8
|
-
* @
|
|
8
|
+
* @defaultValue "span"
|
|
9
9
|
*/
|
|
10
10
|
as?: React.ElementType;
|
|
11
11
|
/** The ID of the parameter. */
|
|
@@ -16,20 +16,20 @@ type PureUniformTextProps = {
|
|
|
16
16
|
isContextualEditing: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* When set to true, it adds `whiteSpace: 'pre-wrap'` to the styles of the root element to allow the rendering of line breaks.
|
|
19
|
-
* @
|
|
19
|
+
* @defaultValue false
|
|
20
20
|
*/
|
|
21
21
|
isMultiline?: boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Sets the value to show in Canvas editor when the parameter value is empty.
|
|
24
24
|
* Can be a static string, or a function to generate the placeholder out of parameter info.
|
|
25
|
-
* @
|
|
25
|
+
* @defaultValue undefined
|
|
26
26
|
*/
|
|
27
27
|
placeholder?: string | ((parameter: {
|
|
28
28
|
id: string;
|
|
29
29
|
}) => string | undefined);
|
|
30
30
|
/**
|
|
31
31
|
* A function to customize the rendering of the parameter value. Useful to format the value before rendering it.
|
|
32
|
-
* @
|
|
32
|
+
* @defaultValue "(value) => value"
|
|
33
33
|
*/
|
|
34
34
|
render?: (value: ParameterTextValue) => React.ReactNode;
|
|
35
35
|
} & Omit<React.HTMLAttributes<HTMLSpanElement>, 'children' | 'placeholder'>;
|
|
@@ -5,7 +5,7 @@ type ParameterTextValue = string | undefined;
|
|
|
5
5
|
type PureUniformTextProps = {
|
|
6
6
|
/**
|
|
7
7
|
* The name of the HTML tag to render.
|
|
8
|
-
* @
|
|
8
|
+
* @defaultValue "span"
|
|
9
9
|
*/
|
|
10
10
|
as?: React.ElementType;
|
|
11
11
|
/** The ID of the parameter. */
|
|
@@ -16,20 +16,20 @@ type PureUniformTextProps = {
|
|
|
16
16
|
isContextualEditing: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* When set to true, it adds `whiteSpace: 'pre-wrap'` to the styles of the root element to allow the rendering of line breaks.
|
|
19
|
-
* @
|
|
19
|
+
* @defaultValue false
|
|
20
20
|
*/
|
|
21
21
|
isMultiline?: boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Sets the value to show in Canvas editor when the parameter value is empty.
|
|
24
24
|
* Can be a static string, or a function to generate the placeholder out of parameter info.
|
|
25
|
-
* @
|
|
25
|
+
* @defaultValue undefined
|
|
26
26
|
*/
|
|
27
27
|
placeholder?: string | ((parameter: {
|
|
28
28
|
id: string;
|
|
29
29
|
}) => string | undefined);
|
|
30
30
|
/**
|
|
31
31
|
* A function to customize the rendering of the parameter value. Useful to format the value before rendering it.
|
|
32
|
-
* @
|
|
32
|
+
* @defaultValue "(value) => value"
|
|
33
33
|
*/
|
|
34
34
|
render?: (value: ParameterTextValue) => React.ReactNode;
|
|
35
35
|
} & Omit<React.HTMLAttributes<HTMLSpanElement>, 'children' | 'placeholder'>;
|
package/dist/core.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInstance, RootComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
|
-
export { P as PureUniformText, a as PureUniformTextProps } from './PureUniformText-
|
|
3
|
+
export { P as PureUniformText, a as PureUniformTextProps } from './PureUniformText-BFhXK0lt.mjs';
|
|
4
4
|
|
|
5
5
|
type PureContextualEditingComponentWrapperProps = {
|
|
6
6
|
isPlaceholder: boolean | undefined;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInstance, RootComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
|
-
export { P as PureUniformText, a as PureUniformTextProps } from './PureUniformText-
|
|
3
|
+
export { P as PureUniformText, a as PureUniformTextProps } from './PureUniformText-BFhXK0lt.js';
|
|
4
4
|
|
|
5
5
|
type PureContextualEditingComponentWrapperProps = {
|
|
6
6
|
isPlaceholder: boolean | undefined;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { Key, ReactNode, PropsWithChildren } from 'react';
|
|
2
2
|
import { ComponentInstance, RootComponentInstance, UpdateCompositionMessage, getParameterAttributes as getParameterAttributes$1, UpdateContextualEditingStateInternalMessage } from '@uniformdev/canvas';
|
|
3
3
|
export { GetParameterAttributesProps, createUniformApiEnhancer } from '@uniformdev/canvas';
|
|
4
|
-
import { a as PureUniformTextProps } from './PureUniformText-
|
|
4
|
+
import { a as PureUniformTextProps } from './PureUniformText-BFhXK0lt.mjs';
|
|
5
5
|
import { CompositionMetadata } from '@uniformdev/context';
|
|
6
6
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
7
7
|
export { linkParamValueToAnchorProps } from '@uniformdev/richtext';
|
|
@@ -792,7 +792,7 @@ type RenderRichTextComponentResolver = (node: RichTextNode) => RichTextRendererC
|
|
|
792
792
|
type UniformRichTextProps = {
|
|
793
793
|
/**
|
|
794
794
|
* The name of the HTML tag to render.
|
|
795
|
-
* @
|
|
795
|
+
* @defaultValue "div"
|
|
796
796
|
*/
|
|
797
797
|
as?: React$1.ElementType | null;
|
|
798
798
|
/** The ID of the parameter. */
|
|
@@ -805,7 +805,7 @@ type UniformRichTextProps = {
|
|
|
805
805
|
/**
|
|
806
806
|
* Sets the value to show in Canvas editor when the parameter value is empty.
|
|
807
807
|
* Can be a static string, or a function to generate the placeholder out of parameter info.
|
|
808
|
-
* @
|
|
808
|
+
* @defaultValue undefined
|
|
809
809
|
*/
|
|
810
810
|
placeholder?: string | ((parameter: {
|
|
811
811
|
id: string;
|
|
@@ -817,7 +817,7 @@ type UniformRichTextProps = {
|
|
|
817
817
|
declare const UniformRichText: React$1.ForwardRefExoticComponent<{
|
|
818
818
|
/**
|
|
819
819
|
* The name of the HTML tag to render.
|
|
820
|
-
* @
|
|
820
|
+
* @defaultValue "div"
|
|
821
821
|
*/
|
|
822
822
|
as?: React$1.ElementType | null;
|
|
823
823
|
/** The ID of the parameter. */
|
|
@@ -830,7 +830,7 @@ declare const UniformRichText: React$1.ForwardRefExoticComponent<{
|
|
|
830
830
|
/**
|
|
831
831
|
* Sets the value to show in Canvas editor when the parameter value is empty.
|
|
832
832
|
* Can be a static string, or a function to generate the placeholder out of parameter info.
|
|
833
|
-
* @
|
|
833
|
+
* @defaultValue undefined
|
|
834
834
|
*/
|
|
835
835
|
placeholder?: string | ((parameter: {
|
|
836
836
|
id: string;
|
|
@@ -896,7 +896,7 @@ type UseUniformContextualEditingStateProps = {
|
|
|
896
896
|
/**
|
|
897
897
|
* When set to true, the hook will return the global contextual state no matter where its used.
|
|
898
898
|
* When set to false, it will return only the state relevant to the current component (determined using `useUniformCurrentComponent`).
|
|
899
|
-
* @
|
|
899
|
+
* @defaultValue false
|
|
900
900
|
**/
|
|
901
901
|
global?: boolean;
|
|
902
902
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { Key, ReactNode, PropsWithChildren } from 'react';
|
|
2
2
|
import { ComponentInstance, RootComponentInstance, UpdateCompositionMessage, getParameterAttributes as getParameterAttributes$1, UpdateContextualEditingStateInternalMessage } from '@uniformdev/canvas';
|
|
3
3
|
export { GetParameterAttributesProps, createUniformApiEnhancer } from '@uniformdev/canvas';
|
|
4
|
-
import { a as PureUniformTextProps } from './PureUniformText-
|
|
4
|
+
import { a as PureUniformTextProps } from './PureUniformText-BFhXK0lt.js';
|
|
5
5
|
import { CompositionMetadata } from '@uniformdev/context';
|
|
6
6
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
7
7
|
export { linkParamValueToAnchorProps } from '@uniformdev/richtext';
|
|
@@ -792,7 +792,7 @@ type RenderRichTextComponentResolver = (node: RichTextNode) => RichTextRendererC
|
|
|
792
792
|
type UniformRichTextProps = {
|
|
793
793
|
/**
|
|
794
794
|
* The name of the HTML tag to render.
|
|
795
|
-
* @
|
|
795
|
+
* @defaultValue "div"
|
|
796
796
|
*/
|
|
797
797
|
as?: React$1.ElementType | null;
|
|
798
798
|
/** The ID of the parameter. */
|
|
@@ -805,7 +805,7 @@ type UniformRichTextProps = {
|
|
|
805
805
|
/**
|
|
806
806
|
* Sets the value to show in Canvas editor when the parameter value is empty.
|
|
807
807
|
* Can be a static string, or a function to generate the placeholder out of parameter info.
|
|
808
|
-
* @
|
|
808
|
+
* @defaultValue undefined
|
|
809
809
|
*/
|
|
810
810
|
placeholder?: string | ((parameter: {
|
|
811
811
|
id: string;
|
|
@@ -817,7 +817,7 @@ type UniformRichTextProps = {
|
|
|
817
817
|
declare const UniformRichText: React$1.ForwardRefExoticComponent<{
|
|
818
818
|
/**
|
|
819
819
|
* The name of the HTML tag to render.
|
|
820
|
-
* @
|
|
820
|
+
* @defaultValue "div"
|
|
821
821
|
*/
|
|
822
822
|
as?: React$1.ElementType | null;
|
|
823
823
|
/** The ID of the parameter. */
|
|
@@ -830,7 +830,7 @@ declare const UniformRichText: React$1.ForwardRefExoticComponent<{
|
|
|
830
830
|
/**
|
|
831
831
|
* Sets the value to show in Canvas editor when the parameter value is empty.
|
|
832
832
|
* Can be a static string, or a function to generate the placeholder out of parameter info.
|
|
833
|
-
* @
|
|
833
|
+
* @defaultValue undefined
|
|
834
834
|
*/
|
|
835
835
|
placeholder?: string | ((parameter: {
|
|
836
836
|
id: string;
|
|
@@ -896,7 +896,7 @@ type UseUniformContextualEditingStateProps = {
|
|
|
896
896
|
/**
|
|
897
897
|
* When set to true, the hook will return the global contextual state no matter where its used.
|
|
898
898
|
* When set to false, it will return only the state relevant to the current component (determined using `useUniformCurrentComponent`).
|
|
899
|
-
* @
|
|
899
|
+
* @defaultValue false
|
|
900
900
|
**/
|
|
901
901
|
global?: boolean;
|
|
902
902
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.76.1-alpha.3+61820b0b3e",
|
|
4
4
|
"description": "React SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"apidocs-extract": "api-extractor run --local"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@uniformdev/canvas": "20.
|
|
48
|
-
"@uniformdev/context": "20.
|
|
49
|
-
"@uniformdev/context-react": "20.
|
|
50
|
-
"@uniformdev/richtext": "20.
|
|
47
|
+
"@uniformdev/canvas": "20.76.1-alpha.3+61820b0b3e",
|
|
48
|
+
"@uniformdev/context": "20.76.1-alpha.3+61820b0b3e",
|
|
49
|
+
"@uniformdev/context-react": "20.76.1-alpha.3+61820b0b3e",
|
|
50
|
+
"@uniformdev/richtext": "20.76.1-alpha.3+61820b0b3e"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"immer": ">= 10",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "61820b0b3e1be2512bcfad6bd0a30092ffa7f9a3"
|
|
70
70
|
}
|