@cakemail-org/ui-components-v2 2.1.3 → 2.1.5
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/cjs/index.js +18 -23
- package/dist/cjs/models/form/index.d.ts +1 -1
- package/dist/esm/index.js +18 -23
- package/dist/esm/models/form/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1533,7 +1533,7 @@ var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfiel
|
|
|
1533
1533
|
styleInject(css_248z$v);
|
|
1534
1534
|
|
|
1535
1535
|
var TextField = React.forwardRef(function (_a, ref) {
|
|
1536
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName"]);
|
|
1536
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, onKeyDown = _a.onKeyDown, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName", "onKeyDown"]);
|
|
1537
1537
|
var cLabel = label;
|
|
1538
1538
|
var timeoutRef = React.useRef(undefined);
|
|
1539
1539
|
function onChangeHandler(e) {
|
|
@@ -1562,6 +1562,7 @@ var TextField = React.forwardRef(function (_a, ref) {
|
|
|
1562
1562
|
currentTarget: { value: "", name: props.name }
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
|
+
onKeyDown && onKeyDown(event);
|
|
1565
1566
|
}
|
|
1566
1567
|
inputProps = __assign({ maxLength: 256 }, inputProps);
|
|
1567
1568
|
return React.createElement(Box, { className: "textfield-component-v2 ".concat(className, " ").concat(disabled ? "disabled" : "", " ") },
|
|
@@ -17144,28 +17145,22 @@ var SummaryEnhancedFormModel = /** @class */ (function (_super) {
|
|
|
17144
17145
|
__extends(SummaryEnhancedFormModel, _super);
|
|
17145
17146
|
function SummaryEnhancedFormModel(_a) {
|
|
17146
17147
|
var id = _a.id, list_id = _a.list_id, enabled = _a.enabled, name = _a.name, description = _a.description, tags = _a.tags, post_redirect_url = _a.post_redirect_url, double_opt_in = _a.double_opt_in, double_opt_in_redirect_url = _a.double_opt_in_redirect_url, submission_url = _a.submission_url, async_processing = _a.async_processing, branding = _a.branding, created_on = _a.created_on, updated_on = _a.updated_on, published_on = _a.published_on, edited_by = _a.edited_by, thumbnail_url = _a.thumbnail_url, recaptcha = _a.recaptcha, published_url = _a.published_url;
|
|
17147
|
-
var _this = _super.call(this, { id: id
|
|
17148
|
-
_this.enabled = enabled
|
|
17149
|
-
_this.description = description
|
|
17150
|
-
_this.tags = tags
|
|
17151
|
-
_this.post_redirect_url = post_redirect_url
|
|
17152
|
-
_this.double_opt_in_redirect_url = double_opt_in_redirect_url
|
|
17153
|
-
_this.submission_url = submission_url
|
|
17154
|
-
_this.async_processing = async_processing
|
|
17155
|
-
_this.branding = branding
|
|
17156
|
-
_this.created_on = created_on
|
|
17157
|
-
_this.updated_on = updated_on
|
|
17158
|
-
_this.published_on = published_on
|
|
17159
|
-
_this.edited_by = edited_by
|
|
17160
|
-
|
|
17161
|
-
|
|
17162
|
-
|
|
17163
|
-
_this.thumbnail_url = thumbnail_url || "";
|
|
17164
|
-
_this.recaptcha = recaptcha || {
|
|
17165
|
-
secret: "",
|
|
17166
|
-
domain: ""
|
|
17167
|
-
};
|
|
17168
|
-
_this.published_url = published_url || "";
|
|
17148
|
+
var _this = _super.call(this, { id: id, name: name, list_id: list_id, double_opt_in: double_opt_in }) || this;
|
|
17149
|
+
_this.enabled = enabled;
|
|
17150
|
+
_this.description = description;
|
|
17151
|
+
_this.tags = tags;
|
|
17152
|
+
_this.post_redirect_url = post_redirect_url;
|
|
17153
|
+
_this.double_opt_in_redirect_url = double_opt_in_redirect_url;
|
|
17154
|
+
_this.submission_url = submission_url;
|
|
17155
|
+
_this.async_processing = async_processing;
|
|
17156
|
+
_this.branding = branding;
|
|
17157
|
+
_this.created_on = created_on;
|
|
17158
|
+
_this.updated_on = updated_on;
|
|
17159
|
+
_this.published_on = published_on;
|
|
17160
|
+
_this.edited_by = edited_by;
|
|
17161
|
+
_this.thumbnail_url = thumbnail_url;
|
|
17162
|
+
_this.recaptcha = recaptcha;
|
|
17163
|
+
_this.published_url = published_url;
|
|
17169
17164
|
return _this;
|
|
17170
17165
|
}
|
|
17171
17166
|
SummaryEnhancedFormModel.prototype.enable = function () {
|
|
@@ -54,7 +54,7 @@ export declare class SummaryEnhancedFormModel extends CommonFormModel {
|
|
|
54
54
|
readonly edited_by: TEnhancedFormEditedBy;
|
|
55
55
|
readonly thumbnail_url: string;
|
|
56
56
|
readonly published_url: string;
|
|
57
|
-
constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }:
|
|
57
|
+
constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }: TSummaryEnhancedFormModel);
|
|
58
58
|
enable(): Promise<EnhancedFormModel>;
|
|
59
59
|
disable(): Promise<EnhancedFormModel>;
|
|
60
60
|
publish(): Promise<EnhancedFormModel>;
|
package/dist/esm/index.js
CHANGED
|
@@ -1513,7 +1513,7 @@ var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfiel
|
|
|
1513
1513
|
styleInject(css_248z$v);
|
|
1514
1514
|
|
|
1515
1515
|
var TextField = forwardRef(function (_a, ref) {
|
|
1516
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName"]);
|
|
1516
|
+
var _b = _a.className, className = _b === void 0 ? "" : _b, label = _a.label, timeout = _a.timeout, labelTooltipText = _a.labelTooltipText, disabled = _a.disabled; _a.useBareBoneInput; var onChange = _a.onChange, multiline = _a.multiline, inputProps = _a.inputProps, iconName = _a.iconName, onKeyDown = _a.onKeyDown, props = __rest(_a, ["className", "label", "timeout", "labelTooltipText", "disabled", "useBareBoneInput", "onChange", "multiline", "inputProps", "iconName", "onKeyDown"]);
|
|
1517
1517
|
var cLabel = label;
|
|
1518
1518
|
var timeoutRef = useRef(undefined);
|
|
1519
1519
|
function onChangeHandler(e) {
|
|
@@ -1542,6 +1542,7 @@ var TextField = forwardRef(function (_a, ref) {
|
|
|
1542
1542
|
currentTarget: { value: "", name: props.name }
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
|
+
onKeyDown && onKeyDown(event);
|
|
1545
1546
|
}
|
|
1546
1547
|
inputProps = __assign({ maxLength: 256 }, inputProps);
|
|
1547
1548
|
return React__default.createElement(Box$1, { className: "textfield-component-v2 ".concat(className, " ").concat(disabled ? "disabled" : "", " ") },
|
|
@@ -17124,28 +17125,22 @@ var SummaryEnhancedFormModel = /** @class */ (function (_super) {
|
|
|
17124
17125
|
__extends(SummaryEnhancedFormModel, _super);
|
|
17125
17126
|
function SummaryEnhancedFormModel(_a) {
|
|
17126
17127
|
var id = _a.id, list_id = _a.list_id, enabled = _a.enabled, name = _a.name, description = _a.description, tags = _a.tags, post_redirect_url = _a.post_redirect_url, double_opt_in = _a.double_opt_in, double_opt_in_redirect_url = _a.double_opt_in_redirect_url, submission_url = _a.submission_url, async_processing = _a.async_processing, branding = _a.branding, created_on = _a.created_on, updated_on = _a.updated_on, published_on = _a.published_on, edited_by = _a.edited_by, thumbnail_url = _a.thumbnail_url, recaptcha = _a.recaptcha, published_url = _a.published_url;
|
|
17127
|
-
var _this = _super.call(this, { id: id
|
|
17128
|
-
_this.enabled = enabled
|
|
17129
|
-
_this.description = description
|
|
17130
|
-
_this.tags = tags
|
|
17131
|
-
_this.post_redirect_url = post_redirect_url
|
|
17132
|
-
_this.double_opt_in_redirect_url = double_opt_in_redirect_url
|
|
17133
|
-
_this.submission_url = submission_url
|
|
17134
|
-
_this.async_processing = async_processing
|
|
17135
|
-
_this.branding = branding
|
|
17136
|
-
_this.created_on = created_on
|
|
17137
|
-
_this.updated_on = updated_on
|
|
17138
|
-
_this.published_on = published_on
|
|
17139
|
-
_this.edited_by = edited_by
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
_this.thumbnail_url = thumbnail_url || "";
|
|
17144
|
-
_this.recaptcha = recaptcha || {
|
|
17145
|
-
secret: "",
|
|
17146
|
-
domain: ""
|
|
17147
|
-
};
|
|
17148
|
-
_this.published_url = published_url || "";
|
|
17128
|
+
var _this = _super.call(this, { id: id, name: name, list_id: list_id, double_opt_in: double_opt_in }) || this;
|
|
17129
|
+
_this.enabled = enabled;
|
|
17130
|
+
_this.description = description;
|
|
17131
|
+
_this.tags = tags;
|
|
17132
|
+
_this.post_redirect_url = post_redirect_url;
|
|
17133
|
+
_this.double_opt_in_redirect_url = double_opt_in_redirect_url;
|
|
17134
|
+
_this.submission_url = submission_url;
|
|
17135
|
+
_this.async_processing = async_processing;
|
|
17136
|
+
_this.branding = branding;
|
|
17137
|
+
_this.created_on = created_on;
|
|
17138
|
+
_this.updated_on = updated_on;
|
|
17139
|
+
_this.published_on = published_on;
|
|
17140
|
+
_this.edited_by = edited_by;
|
|
17141
|
+
_this.thumbnail_url = thumbnail_url;
|
|
17142
|
+
_this.recaptcha = recaptcha;
|
|
17143
|
+
_this.published_url = published_url;
|
|
17149
17144
|
return _this;
|
|
17150
17145
|
}
|
|
17151
17146
|
SummaryEnhancedFormModel.prototype.enable = function () {
|
|
@@ -54,7 +54,7 @@ export declare class SummaryEnhancedFormModel extends CommonFormModel {
|
|
|
54
54
|
readonly edited_by: TEnhancedFormEditedBy;
|
|
55
55
|
readonly thumbnail_url: string;
|
|
56
56
|
readonly published_url: string;
|
|
57
|
-
constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }:
|
|
57
|
+
constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }: TSummaryEnhancedFormModel);
|
|
58
58
|
enable(): Promise<EnhancedFormModel>;
|
|
59
59
|
disable(): Promise<EnhancedFormModel>;
|
|
60
60
|
publish(): Promise<EnhancedFormModel>;
|