@astral/ui 4.88.1 → 4.89.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.
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useLogic = void 0;
4
+ const personalDataSecurity_1 = require("../../personalDataSecurity");
5
+ const useLogic = ({ className, isHidePersonalData, tooltipProps, canCopy, copyParams, ...restProps }) => {
6
+ const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
7
+ isEnabled: isHidePersonalData,
8
+ });
9
+ const guidText = typeof restProps.children === 'string' ? restProps.children : undefined;
10
+ const resolvedCopyText = copyParams?.copyText ?? guidText;
11
+ return {
12
+ className,
13
+ isHidePersonalData,
14
+ tooltipProps,
15
+ canCopy,
16
+ copyParams,
17
+ restProps,
18
+ resolvedCopyText,
19
+ hidePersonalDataClassname,
20
+ };
21
+ };
22
+ exports.useLogic = useLogic;
@@ -1050,6 +1050,8 @@ export declare const GuidValue: import("@emotion/styled/dist/declarations/src/ty
1050
1050
  children?: import("react").ReactNode;
1051
1051
  } & {
1052
1052
  isHidePersonalData?: boolean | undefined;
1053
+ canCopy?: boolean | undefined;
1054
+ copyParams?: import("../../CopyTypography").CopyTypographyProps | undefined;
1053
1055
  } & {
1054
1056
  theme?: import("@emotion/react").Theme | undefined;
1055
1057
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.88.1",
3
+ "version": "4.89.0",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {