roosterjs 9.55.0 → 9.56.0
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/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +61 -5
- package/dist/rooster-amd.js +142 -13
- package/dist/rooster-amd.js.map +1 -1
- package/dist/rooster-min.js +1 -1
- package/dist/rooster-min.js.map +1 -1
- package/dist/rooster-react-amd-min.js +1 -1
- package/dist/rooster-react-amd-min.js.map +1 -1
- package/dist/rooster-react-amd.d.ts +1 -1
- package/dist/rooster-react-amd.js +60 -58
- package/dist/rooster-react-amd.js.map +1 -1
- package/dist/rooster-react-min.js +1 -1
- package/dist/rooster-react-min.js.map +1 -1
- package/dist/rooster-react.d.ts +1 -1
- package/dist/rooster-react.js +5 -3
- package/dist/rooster-react.js.map +1 -1
- package/dist/rooster.d.ts +61 -5
- package/dist/rooster.js +142 -13
- package/dist/rooster.js.map +1 -1
- package/package.json +7 -7
package/dist/rooster-react.d.ts
CHANGED
package/dist/rooster-react.js
CHANGED
|
@@ -4571,9 +4571,11 @@ var classNames = (0, Styling_1.mergeStyleSets)({
|
|
|
4571
4571
|
* @internal
|
|
4572
4572
|
*/
|
|
4573
4573
|
function InputDialogItem(props) {
|
|
4574
|
+
var _a;
|
|
4574
4575
|
var itemName = props.itemName, strings = props.strings, items = props.items, currentValues = props.currentValues, onChanged = props.onChanged, onEnterKey = props.onEnterKey, rows = props.rows;
|
|
4575
|
-
var
|
|
4576
|
+
var _b = items[itemName], labelKey = _b.labelKey, unlocalizedLabel = _b.unlocalizedLabel, autoFocus = _b.autoFocus;
|
|
4576
4577
|
var value = currentValues[itemName];
|
|
4578
|
+
var label = (_a = (labelKey ? (0, index_1.getLocalizedString)(strings, labelKey, unlocalizedLabel) : undefined)) !== null && _a !== void 0 ? _a : undefined;
|
|
4577
4579
|
var onValueChange = React.useCallback(function (_, newValue) {
|
|
4578
4580
|
onChanged(itemName, newValue);
|
|
4579
4581
|
}, [itemName, onChanged]);
|
|
@@ -4583,9 +4585,9 @@ function InputDialogItem(props) {
|
|
|
4583
4585
|
}
|
|
4584
4586
|
}, [onEnterKey]);
|
|
4585
4587
|
return (React.createElement("div", null,
|
|
4586
|
-
|
|
4588
|
+
label ? React.createElement("div", null, label) : null,
|
|
4587
4589
|
React.createElement("div", null,
|
|
4588
|
-
React.createElement(TextField_1.TextField, { role: "textbox", type: "text", className: classNames.inputBox, value: value, onChange: onValueChange, onKeyPress: onKeyPress, autoFocus: autoFocus, rows: rows, multiline: !!rows }))));
|
|
4590
|
+
React.createElement(TextField_1.TextField, { role: "textbox", type: "text", ariaLabel: label, className: classNames.inputBox, value: value, onChange: onValueChange, onKeyPress: onKeyPress, autoFocus: autoFocus, rows: rows, multiline: !!rows }))));
|
|
4589
4591
|
}
|
|
4590
4592
|
exports.InputDialogItem = InputDialogItem;
|
|
4591
4593
|
|