@agentscope-ai/design 2.0.0-beta.1770624252540 → 2.0.0-beta.1770624964133

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,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["icon", "type", "okButtonProps", "getPopupContainer"];
2
+ var _excluded = ["icon", "type", "okButtonProps", "children"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -8,7 +8,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
8
8
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
10
  import { getCommonConfig } from "../../..";
11
- import { findClosestBySelector } from "../../../libs/dom";
12
11
  import { CheckCircleOutlined, CloseCircleOutlined, ExclamationCircleOutlined, InfoCircleOutlined } from '@agentscope-ai/icons-override-antd';
13
12
  import { Popconfirm } from 'antd';
14
13
  import React from 'react';
@@ -18,7 +17,7 @@ var SparkPopconfirm = /*#__PURE__*/React.forwardRef(function (props, ref) {
18
17
  _props$type = props.type,
19
18
  type = _props$type === void 0 ? 'confirm' : _props$type,
20
19
  okButtonProps = props.okButtonProps,
21
- getPopupContainer = props.getPopupContainer,
20
+ children = props.children,
22
21
  rest = _objectWithoutProperties(props, _excluded);
23
22
  var _getCommonConfig = getCommonConfig(),
24
23
  antPrefix = _getCommonConfig.antPrefix;
@@ -68,9 +67,9 @@ var SparkPopconfirm = /*#__PURE__*/React.forwardRef(function (props, ref) {
68
67
  // @ts-ignore
69
68
  ,
70
69
  okButtonProps: getMergedOkButtonProps(),
71
- getPopupContainer: getPopupContainer || function (triggerNode) {
72
- return findClosestBySelector(triggerNode, ".".concat(antPrefix, "-app")); // 默认放到App组件下,获取自定义css变量
73
- }
70
+ children: /*#__PURE__*/_jsx("span", {
71
+ children: children
72
+ })
74
73
  }));
75
74
  });
76
75
  export default SparkPopconfirm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/design",
3
- "version": "2.0.0-beta.1770624252540",
3
+ "version": "2.0.0-beta.1770624964133",
4
4
  "description": "AgentScope Spark Design - UI Library for AgentScope AI",
5
5
  "repository": {
6
6
  "type": "git",