@widergy/energy-ui 3.157.1 → 3.158.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/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
- ## [3.157.1](https://github.com/widergy/energy-ui/compare/v3.157.0...v3.157.1) (2026-05-18)
1
+ # [3.158.0](https://github.com/widergy/energy-ui/compare/v3.157.1...v3.158.0) (2026-05-19)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
+
6
+ * [BRILLA-294] keep attachmentlist clean on load ([#799](https://github.com/widergy/energy-ui/issues/799)) ([02e7554](https://github.com/widergy/energy-ui/commit/02e75545252df8f5ca2e501c5f7ae0afb0fd5f6f))
7
+
8
+ ## [3.157.1](https://github.com/widergy/energy-ui/compare/v3.157.0...v3.157.1) (2026-05-18)
9
+
10
+ ### Correcciones
5
11
 
6
- * [BRILLA] tokens fix ([#800](https://github.com/widergy/energy-ui/issues/800)) ([7a1b464](https://github.com/widergy/energy-ui/commit/7a1b464cd5a2ae6b52bd3a27aeb0263d6b13d91a))
12
+ * Mejoras internas de la plataforma. [#800](https://github.com/widergy/Energy-UI/pull/800) [`df70bc4`](https://github.com/widergy/Energy-UI/commit/df70bc4)
7
13
 
8
14
  # [3.157.0](https://github.com/widergy/energy-ui/compare/v3.156.0...v3.157.0) (2026-05-15)
9
15
 
@@ -233,7 +233,7 @@ var _default = exports.default = {
233
233
  }
234
234
  },
235
235
  onLoaded: {
236
- description: 'Callback que se ejecuta cuando los archivos se han cargado.',
236
+ description: 'Callback que se ejecuta cuando los archivos se han cargado. Recibe como primer argumento el array de File objects resultante.',
237
237
  table: {
238
238
  defaultValue: {
239
239
  summary: 'undefined'
@@ -243,6 +243,18 @@ var _default = exports.default = {
243
243
  }
244
244
  }
245
245
  },
246
+ notifyOnInitialLoad: {
247
+ control: 'boolean',
248
+ description: 'Cuando es false, suprime el input.onChange que ocurre al terminar de cargar URLs como initialValues, evitando que el formulario se marque como dirty. onLoaded(files) sigue disponible para que el consumidor actualice el form state si lo necesita. Default: true (comportamiento existente).',
249
+ table: {
250
+ defaultValue: {
251
+ summary: 'true'
252
+ },
253
+ type: {
254
+ summary: 'boolean'
255
+ }
256
+ }
257
+ },
246
258
  previewDataTestId: {
247
259
  description: 'ID de prueba para el contenedor de vista previa.',
248
260
  table: {
@@ -40,6 +40,7 @@ const AttachmentListContainer = _ref => {
40
40
  loadingTextClassname,
41
41
  maxFileSize: defaultMaxFileSize = 99999999,
42
42
  onLoaded,
43
+ notifyOnInitialLoad = true,
43
44
  previewDataTestId,
44
45
  readOnly = false,
45
46
  resizeConfig,
@@ -180,7 +181,7 @@ const AttachmentListContainer = _ref => {
180
181
  const length = Array.isArray(input.value) ? input.value.length : 1;
181
182
  if (index === length) {
182
183
  if (onLoaded) onLoaded();
183
- if (input.onChange) input.onChange({
184
+ if (notifyOnInitialLoad && input.onChange) input.onChange({
184
185
  files: accumulatedFiles
185
186
  });
186
187
  setUpdatedFiles(accumulatedFiles);
@@ -287,6 +288,7 @@ AttachmentListContainer.propTypes = {
287
288
  loadingTextClassname: _propTypes.string,
288
289
  maxFileSize: _propTypes.number,
289
290
  onLoaded: _propTypes.func,
291
+ notifyOnInitialLoad: _propTypes.bool,
290
292
  previewDataTestId: _propTypes.string,
291
293
  readOnly: _propTypes.bool,
292
294
  resizeConfig: (0, _propTypes.shape)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.157.1",
3
+ "version": "3.158.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",