@momo-webplatform/mobase 0.2.111 → 0.2.112
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.cjs +20 -20
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +5 -5
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/index.js +20 -20
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -148,16 +148,16 @@ interface ActionButtonProps extends ButtonProps {
|
|
|
148
148
|
* - Mobile (non-app): hasQrLink → navigate to qrLink (unless isQrForAll → DialogQr) | no qrLink → action
|
|
149
149
|
*
|
|
150
150
|
* Supports `asChild` to delegate all action behavior onto a custom child element.
|
|
151
|
-
* When `asChild` is true, Radix Slot is used
|
|
152
|
-
* only
|
|
151
|
+
* When `asChild` is true, bare Radix Slot is used — Button styles are stripped,
|
|
152
|
+
* only onClick and data-umami-event/data-umami-event-text are merged onto the child.
|
|
153
153
|
*
|
|
154
154
|
* @example
|
|
155
155
|
* // Default usage
|
|
156
156
|
* <ActionButton action="https://...">Click me</ActionButton>
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
|
-
* // asChild —
|
|
160
|
-
* <ActionButton asChild action="https://...">
|
|
159
|
+
* // asChild — child receives onClick + data-umami-event, no Button styles
|
|
160
|
+
* <ActionButton asChild action="https://..." dataUmamiEvent="banner-click">
|
|
161
161
|
* <img src="banner.jpg" alt="Banner" />
|
|
162
162
|
* </ActionButton>
|
|
163
163
|
*
|
|
@@ -167,7 +167,7 @@ interface ActionButtonProps extends ButtonProps {
|
|
|
167
167
|
* <img src="banner.jpg" alt="Banner" />
|
|
168
168
|
* </ActionButton>
|
|
169
169
|
*/
|
|
170
|
-
declare const ActionButton: ({ action, newTab, offset, dialogQrProps, className, children, onPushTrackingEvent, asChild, ...props }: ActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
170
|
+
declare const ActionButton: ({ action, newTab, offset, dialogQrProps, className, children, onPushTrackingEvent, asChild, dataUmamiEvent, dataUmamiEventText, ...props }: ActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
171
171
|
|
|
172
172
|
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
173
173
|
separator?: React$1.ReactNode;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -148,16 +148,16 @@ interface ActionButtonProps extends ButtonProps {
|
|
|
148
148
|
* - Mobile (non-app): hasQrLink → navigate to qrLink (unless isQrForAll → DialogQr) | no qrLink → action
|
|
149
149
|
*
|
|
150
150
|
* Supports `asChild` to delegate all action behavior onto a custom child element.
|
|
151
|
-
* When `asChild` is true, Radix Slot is used
|
|
152
|
-
* only
|
|
151
|
+
* When `asChild` is true, bare Radix Slot is used — Button styles are stripped,
|
|
152
|
+
* only onClick and data-umami-event/data-umami-event-text are merged onto the child.
|
|
153
153
|
*
|
|
154
154
|
* @example
|
|
155
155
|
* // Default usage
|
|
156
156
|
* <ActionButton action="https://...">Click me</ActionButton>
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
|
-
* // asChild —
|
|
160
|
-
* <ActionButton asChild action="https://...">
|
|
159
|
+
* // asChild — child receives onClick + data-umami-event, no Button styles
|
|
160
|
+
* <ActionButton asChild action="https://..." dataUmamiEvent="banner-click">
|
|
161
161
|
* <img src="banner.jpg" alt="Banner" />
|
|
162
162
|
* </ActionButton>
|
|
163
163
|
*
|
|
@@ -167,7 +167,7 @@ interface ActionButtonProps extends ButtonProps {
|
|
|
167
167
|
* <img src="banner.jpg" alt="Banner" />
|
|
168
168
|
* </ActionButton>
|
|
169
169
|
*/
|
|
170
|
-
declare const ActionButton: ({ action, newTab, offset, dialogQrProps, className, children, onPushTrackingEvent, asChild, ...props }: ActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
170
|
+
declare const ActionButton: ({ action, newTab, offset, dialogQrProps, className, children, onPushTrackingEvent, asChild, dataUmamiEvent, dataUmamiEventText, ...props }: ActionButtonProps) => react_jsx_runtime.JSX.Element;
|
|
171
171
|
|
|
172
172
|
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
173
173
|
separator?: React$1.ReactNode;
|