@edifice.io/react 2.4.0-develop-pedago.20251009110326 → 2.4.0-develop-pedago.20251010134807
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.
|
@@ -16,7 +16,11 @@ export interface OptionsType {
|
|
|
16
16
|
}
|
|
17
17
|
export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<DropdownTriggerProps, 'badgeContent'> {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Controlled value
|
|
20
|
+
*/
|
|
21
|
+
selectedValue?: OptionsType | string;
|
|
22
|
+
/**
|
|
23
|
+
* Default select label if no selected value (uncontrolled)
|
|
20
24
|
*/
|
|
21
25
|
placeholderOption: string;
|
|
22
26
|
/**
|
|
@@ -33,7 +37,7 @@ export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<Dropd
|
|
|
33
37
|
* Select component is based on Dropdown Component. It extends `Dropdown` and `Dropdown.Trigger` props `block`, `overflow`, `icon`, `variant`, `size`, `disabled`
|
|
34
38
|
*/
|
|
35
39
|
declare const Select: {
|
|
36
|
-
({ icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
({ selectedValue, icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
37
41
|
displayName: string;
|
|
38
42
|
};
|
|
39
43
|
export default Select;
|
|
@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
|
|
|
4
4
|
import SelectTrigger from "./SelectTrigger.js";
|
|
5
5
|
import Dropdown from "../Dropdown/Dropdown.js";
|
|
6
6
|
const Select = ({
|
|
7
|
+
selectedValue,
|
|
7
8
|
icon,
|
|
8
9
|
options,
|
|
9
10
|
overflow,
|
|
@@ -18,6 +19,8 @@ const Select = ({
|
|
|
18
19
|
t
|
|
19
20
|
} = useTranslation();
|
|
20
21
|
useEffect(() => {
|
|
22
|
+
selectedValue !== void 0 && setLocalValue(selectedValue);
|
|
23
|
+
}, [selectedValue]), useEffect(() => {
|
|
21
24
|
if (localValue) {
|
|
22
25
|
const value = typeof localValue == "object" ? localValue.value : localValue;
|
|
23
26
|
onValueChange == null || onValueChange(value);
|
|
@@ -66,7 +66,7 @@ const MediaRenderer = (props) => {
|
|
|
66
66
|
case "iframe":
|
|
67
67
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
68
68
|
/* @__PURE__ */ jsx("div", { className: "iframe-node-view" }),
|
|
69
|
-
/* @__PURE__ */ jsx("iframe", { ref: resizableMedia, src: node.attrs.src, width, height, allowFullScreen: node.attrs.allowfullscreen ?? !0 })
|
|
69
|
+
/* @__PURE__ */ jsx("iframe", { ref: resizableMedia, src: node.attrs.src, width, height, allowFullScreen: node.attrs.allowfullscreen ?? !0, style: node.attrs.style })
|
|
70
70
|
] });
|
|
71
71
|
default:
|
|
72
72
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.4.0-develop-pedago.
|
|
3
|
+
"version": "2.4.0-develop-pedago.20251010134807",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
"react-slugify": "^3.0.3",
|
|
132
132
|
"swiper": "^10.1.0",
|
|
133
133
|
"ua-parser-js": "^1.0.36",
|
|
134
|
-
"@edifice.io/bootstrap": "2.4.0-develop-pedago.
|
|
135
|
-
"@edifice.io/tiptap-extensions": "2.4.0-develop-pedago.
|
|
136
|
-
"@edifice.io/utilities": "2.4.0-develop-pedago.
|
|
134
|
+
"@edifice.io/bootstrap": "2.4.0-develop-pedago.20251010134807",
|
|
135
|
+
"@edifice.io/tiptap-extensions": "2.4.0-develop-pedago.20251010134807",
|
|
136
|
+
"@edifice.io/utilities": "2.4.0-develop-pedago.20251010134807"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
139
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"vite": "^5.4.11",
|
|
165
165
|
"vite-plugin-dts": "^4.1.0",
|
|
166
166
|
"vite-tsconfig-paths": "^5.0.1",
|
|
167
|
-
"@edifice.io/
|
|
168
|
-
"@edifice.io/
|
|
167
|
+
"@edifice.io/config": "2.4.0-develop-pedago.20251010134807",
|
|
168
|
+
"@edifice.io/client": "2.4.0-develop-pedago.20251010134807"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@react-spring/web": "^9.7.5",
|