@openzeppelin/adapter-stellar 1.0.0 → 1.0.1-rc.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 CHANGED
@@ -43,7 +43,8 @@ let lossless_json = require("lossless-json");
43
43
  let _openzeppelin_ui_components = require("@openzeppelin/ui-components");
44
44
  let lucide_react = require("lucide-react");
45
45
  let react_hook_form = require("react-hook-form");
46
- let lodash = require("lodash");
46
+ let lodash_es_startCase_js = require("lodash-es/startCase.js");
47
+ lodash_es_startCase_js = __toESM(lodash_es_startCase_js);
47
48
 
48
49
  //#region src/utils/type-detection.ts
49
50
  /**
@@ -6408,7 +6409,7 @@ function generateStellarDefaultField(parameter, contractSchema) {
6408
6409
  const baseField = {
6409
6410
  id: `field-${Math.random().toString(36).substring(2, 9)}`,
6410
6411
  name: parameter.name || parameter.type,
6411
- label: (0, lodash.startCase)(parameter.displayName || parameter.name || parameter.type),
6412
+ label: (0, lodash_es_startCase_js.default)(parameter.displayName || parameter.name || parameter.type),
6412
6413
  type: finalFieldType,
6413
6414
  placeholder: enumMetadata ? `Select ${parameter.displayName || parameter.name || parameter.type}` : `Enter ${parameter.displayName || parameter.name || parameter.type}`,
6414
6415
  helperText: parameter.description || "",
@@ -7035,10 +7036,16 @@ const CustomAccountDisplay = ({ className, size, variant, fullWidth }) => {
7035
7036
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7036
7037
  className: (0, _openzeppelin_ui_utils.cn)("flex items-center gap-2", fullWidth && "w-full", className),
7037
7038
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7038
- className: (0, _openzeppelin_ui_utils.cn)("flex flex-col", fullWidth && "flex-1"),
7039
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7040
- className: (0, _openzeppelin_ui_utils.cn)(sizeProps.textSize, "font-medium"),
7041
- children: (0, _openzeppelin_ui_utils.truncateMiddle)(address, 4, 4)
7039
+ className: (0, _openzeppelin_ui_utils.cn)("group flex flex-col", fullWidth && "flex-1"),
7040
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_openzeppelin_ui_components.AddressDisplay, {
7041
+ address,
7042
+ variant: "inline",
7043
+ startChars: 4,
7044
+ endChars: 4,
7045
+ showTooltip: true,
7046
+ showCopyButton: true,
7047
+ showCopyButtonOnHover: true,
7048
+ className: (0, _openzeppelin_ui_utils.cn)(sizeProps.textSize, "font-medium")
7042
7049
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7043
7050
  className: (0, _openzeppelin_ui_utils.cn)(sizeProps.subTextSize, "text-muted-foreground -mt-0.5"),
7044
7051
  children: "Stellar Account"