@openzeppelin/ui-renderer 1.0.1 → 1.0.3

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
@@ -35,6 +35,42 @@ let react_jsx_runtime = require("react/jsx-runtime");
35
35
  let _openzeppelin_ui_react = require("@openzeppelin/ui-react");
36
36
  let _openzeppelin_ui_components_code_editor = require("@openzeppelin/ui-components/code-editor");
37
37
 
38
+ //#region src/config.ts
39
+ /**
40
+ * Configuration for the renderer package
41
+ * Used by the export system to determine dependencies for exported forms
42
+ */
43
+ const rendererConfig = {
44
+ coreDependencies: {
45
+ react: "^19.0.0",
46
+ "react-dom": "^19.0.0",
47
+ "react-hook-form": "^7.45.4",
48
+ "@radix-ui/react-label": "^2.0.2",
49
+ "@radix-ui/react-slot": "^1.0.2",
50
+ "class-variance-authority": "^0.7.0",
51
+ clsx: "^2.0.0",
52
+ "tailwind-merge": "^1.14.0",
53
+ "@openzeppelin/ui-renderer": "^0.1.0",
54
+ "@openzeppelin/ui-types": "^0.1.0",
55
+ "@openzeppelin/ui-utils": "^0.1.0"
56
+ },
57
+ fieldDependencies: {
58
+ text: { runtimeDependencies: {} },
59
+ number: { runtimeDependencies: {} },
60
+ address: { runtimeDependencies: {} },
61
+ checkbox: { runtimeDependencies: { "@radix-ui/react-checkbox": "^1.0.4" } },
62
+ select: { runtimeDependencies: { "@radix-ui/react-select": "^1.2.2" } },
63
+ radio: { runtimeDependencies: { "@radix-ui/react-radio-group": "^1.1.3" } },
64
+ date: {
65
+ runtimeDependencies: { "react-datepicker": "^4.16.0" },
66
+ devDependencies: { "@types/react-datepicker": "^4.11.2" }
67
+ },
68
+ amount: { runtimeDependencies: {} },
69
+ progress: { runtimeDependencies: { "@radix-ui/react-progress": "^1.0.3" } }
70
+ }
71
+ };
72
+
73
+ //#endregion
38
74
  //#region src/components/ExecutionConfigDisplay/components/EoaConfigDetails.tsx
39
75
  const EoaConfigDetails = ({ config }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
40
76
  className: "space-y-4",
@@ -951,6 +987,10 @@ function getFieldSpecificProps(field, renderFunctions, contractSchema) {
951
987
  defaultCollapsed: false
952
988
  };
953
989
  case "blockchain-address": return {};
990
+ case "bytes": return {
991
+ exactBytes: field.metadata?.exactBytes,
992
+ maxBytes: field.metadata?.maxBytes
993
+ };
954
994
  case "checkbox": return {};
955
995
  case "code-editor": return {
956
996
  language: field.codeEditorProps?.language || "json",
@@ -2098,5 +2138,6 @@ exports.createTextTransform = createTextTransform;
2098
2138
  exports.createTransformForFieldType = createTransformForFieldType;
2099
2139
  exports.generateDefaultValue = generateDefaultValue;
2100
2140
  exports.getDefaultValueByFieldType = getDefaultValueByFieldType;
2141
+ exports.rendererConfig = rendererConfig;
2101
2142
  exports.validateField = validateField;
2102
2143
  //# sourceMappingURL=index.cjs.map