@sesionario/blocks 1.4.1 → 1.5.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/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -260,6 +260,10 @@ interface AvatarEditorDialogProps {
|
|
|
260
260
|
acceptText?: string;
|
|
261
261
|
/** Cancel button text */
|
|
262
262
|
cancelText?: string;
|
|
263
|
+
/** Saving button text while upload is in progress */
|
|
264
|
+
savingText?: string;
|
|
265
|
+
/** Saved button text after a successful save */
|
|
266
|
+
savedText?: string;
|
|
263
267
|
/** Success message */
|
|
264
268
|
successMessage?: string;
|
|
265
269
|
/** Error message */
|
|
@@ -267,7 +271,7 @@ interface AvatarEditorDialogProps {
|
|
|
267
271
|
/** Additional class names */
|
|
268
272
|
className?: string;
|
|
269
273
|
}
|
|
270
|
-
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, successMessage, errorMessage, className, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
274
|
+
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
271
275
|
|
|
272
276
|
/** Category keys, in display order. */
|
|
273
277
|
type EmojiCategoryKey = "smileys" | "people" | "nature" | "food" | "travel" | "activities" | "objects" | "symbols" | "flags";
|
package/dist/index.d.ts
CHANGED
|
@@ -260,6 +260,10 @@ interface AvatarEditorDialogProps {
|
|
|
260
260
|
acceptText?: string;
|
|
261
261
|
/** Cancel button text */
|
|
262
262
|
cancelText?: string;
|
|
263
|
+
/** Saving button text while upload is in progress */
|
|
264
|
+
savingText?: string;
|
|
265
|
+
/** Saved button text after a successful save */
|
|
266
|
+
savedText?: string;
|
|
263
267
|
/** Success message */
|
|
264
268
|
successMessage?: string;
|
|
265
269
|
/** Error message */
|
|
@@ -267,7 +271,7 @@ interface AvatarEditorDialogProps {
|
|
|
267
271
|
/** Additional class names */
|
|
268
272
|
className?: string;
|
|
269
273
|
}
|
|
270
|
-
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, successMessage, errorMessage, className, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
274
|
+
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
271
275
|
|
|
272
276
|
/** Category keys, in display order. */
|
|
273
277
|
type EmojiCategoryKey = "smileys" | "people" | "nature" | "food" | "travel" | "activities" | "objects" | "symbols" | "flags";
|
package/dist/index.js
CHANGED
|
@@ -1956,6 +1956,8 @@ function AvatarEditorDialog({
|
|
|
1956
1956
|
dialogTitle = "Edit Avatar",
|
|
1957
1957
|
acceptText = "Accept",
|
|
1958
1958
|
cancelText = "Cancel",
|
|
1959
|
+
savingText = "Saving...",
|
|
1960
|
+
savedText = "Saved!",
|
|
1959
1961
|
successMessage = "Avatar saved successfully!",
|
|
1960
1962
|
errorMessage = "Failed to save avatar. Please try again.",
|
|
1961
1963
|
className
|
|
@@ -2117,10 +2119,10 @@ function AvatarEditorDialog({
|
|
|
2117
2119
|
)
|
|
2118
2120
|
}
|
|
2119
2121
|
),
|
|
2120
|
-
|
|
2122
|
+
savingText
|
|
2121
2123
|
] }) : feedback?.type === "success" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2122
2124
|
/* @__PURE__ */ jsx(Check, { className: cn("mr-2", isMobile ? "w-5 h-5" : "w-4 h-4") }),
|
|
2123
|
-
|
|
2125
|
+
savedText
|
|
2124
2126
|
] }) : acceptText
|
|
2125
2127
|
}
|
|
2126
2128
|
)
|