@pisell/private-materials 6.11.684 → 6.11.685

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.
@@ -1,10 +1,10 @@
1
1
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import dayjs from "dayjs";
3
- import timezone from "dayjs/plugin/timezone";
4
- import utc from "dayjs/plugin/utc";
3
+ import timezonePlugin from "dayjs/plugin/timezone";
4
+ import utcPlugin from "dayjs/plugin/utc";
5
5
  //#region src/plus/saasDevice/devicePasscodes/model.ts
6
- dayjs.extend(utc);
7
- dayjs.extend(timezone);
6
+ dayjs.extend(utcPlugin);
7
+ dayjs.extend(timezonePlugin);
8
8
  const INITIAL_DEVICE_PASSCODE_STATE = {
9
9
  deviceIds: [],
10
10
  devicesById: {}
@@ -650,14 +650,6 @@ const PaymentMethodAction = memo(function PaymentMethodAction({ actionConfig })
650
650
  });
651
651
  const PrintActionSlot = memo(function PrintActionSlot({ actionConfig }) {
652
652
  const runtime = useDetailActionRuntime();
653
- /**
654
- * Dropdown 监听的是外层 trigger;即使内部 Button 已 disabled,菜单仍可能展开。
655
- * 禁用打印时直接不挂载 Dropdown,避免继续进入任一打印选项。
656
- */
657
- if (buttonProps.disabled) return /* @__PURE__ */ React.createElement(Button$1, _objectSpread2(_objectSpread2({}, dropdownButtonProps), {}, {
658
- disabled: true,
659
- onClick: void 0
660
- }), children);
661
653
  return /* @__PURE__ */ React.createElement(PrintAction, {
662
654
  actionConfig,
663
655
  ActionButtonComponent: ActionButton,
@@ -6,12 +6,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
6
6
  import { locales } from "@pisell/utils";
7
7
  import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
8
8
  import { useRequest } from "ahooks";
9
- import timezone from "dayjs/plugin/timezone";
10
- import utc from "dayjs/plugin/utc";
9
+ import timezonePlugin from "dayjs/plugin/timezone";
10
+ import utcPlugin from "dayjs/plugin/utc";
11
11
  import "./index.less";
12
12
  //#region src/plus/walletPassGallery/components/timelineSection/index.tsx
13
- dayjs.extend(timezone);
14
- dayjs.extend(utc);
13
+ dayjs.extend(timezonePlugin);
14
+ dayjs.extend(utcPlugin);
15
15
  const stateTimeUnix = 1723255863;
16
16
  const POLL_INTERVAL = 2e3;
17
17
  const POLL_MAX_TIMES = 5;
@@ -653,14 +653,6 @@ const PaymentMethodAction = (0, react.memo)(function PaymentMethodAction({ actio
653
653
  });
654
654
  const PrintActionSlot = (0, react.memo)(function PrintActionSlot({ actionConfig }) {
655
655
  const runtime = useDetailActionRuntime();
656
- /**
657
- * Dropdown 监听的是外层 trigger;即使内部 Button 已 disabled,菜单仍可能展开。
658
- * 禁用打印时直接不挂载 Dropdown,避免继续进入任一打印选项。
659
- */
660
- if (buttonProps.disabled) return /* @__PURE__ */ react.default.createElement(_pisell_materials.Button, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, dropdownButtonProps), {}, {
661
- disabled: true,
662
- onClick: void 0
663
- }), children);
664
656
  return /* @__PURE__ */ react.default.createElement(require_PrintAction.default, {
665
657
  actionConfig,
666
658
  ActionButtonComponent: ActionButton,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.11.684",
3
+ "version": "6.11.685",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -73,9 +73,9 @@
73
73
  "use-sync-external-store": "^1.6.0",
74
74
  "@pisell/pi-payment-sdk": "0.0.3",
75
75
  "@pisell/utils": "3.0.7",
76
+ "@pisell/date-picker": "3.0.12",
76
77
  "@pisell/icon": "0.0.11",
77
- "@pisell/materials": "6.11.266",
78
- "@pisell/date-picker": "3.0.12"
78
+ "@pisell/materials": "6.11.266"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": "^18.0.0",