> ## Documentation Index
> Fetch the complete documentation index at: https://platform.docs.zenoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Changelog

> Hub client changelog

## Changelog

### v1.26.0

**July 17, 2023**

### New features

* Support for static pages: if there is page in `index.yml` starting with `$` character, it becomes accessible outside of any HUB workflow by adding `?s=page-name` to URL query (without \$). This can be useful for landing pages, handling APIs and other static content

```yaml theme={null}
# index.yml
...
pages:
  $static: !include ./pages/static.yml # Accessible with `?s=static`
```

* Sharable headless and publish it inside yaml flow functions context: currently there is `sharableStart` which consumes token and expect to get route (to continue some subflow) now there is also new call of same API named `sharableHeadless` which doesn't expect to get any route, this is valid behaviour of some specific usage of sharable API of HUB. Both of these functions are accessible in flow functions context, to be callable from yaml pages (most probably static pages)

### v1.25.2

**July 13, 2023**

### Bug fixes

* Fix `<Datepicker>` component date format without `useIsoDate` property

### v1.25.1

**July 12, 2023**

### Bug fixes

* Use forked version of `console-feed` module to prevent [404 from npm](https://github.com/samdenty/console-feed/issues/124)

### v1.25.0

**July 3, 2023**

### New features

* Introduce `flowReference` property in target configuration, which can be used to automatically reload workflow after this property change

### v1.24.7

**June 26, 2023**

### Bug fixes

* Prevent to load `favicon.ico` for targets in subfolders

### v1.24.6

**June 22, 2023**

### Bug fixes

* Properly handle loading state in `<ResendCode>` component

### v1.24.4

**June 7, 2023**

### Bug fixes

* `<Datepicker>` fix correct ISO date format on input change

### v1.24.3

**June 5, 2023**

### Refactor

* Opmitimization of dynamic sidebar progress steps

### v1.24.1

**May 19, 2023**

### Bug fixes

* Make translations to work in `index.yml` file with `!t` and `!te` YAML tags

### v1.24.0

**May 18, 2023**

### New features

* `<Datepicker>` component now has `useIsoDate` property, which will force ISO date format

### v1.23.0

**May 15, 2023**

### New features

* Add `flowSharableRequired` to `index.yml` configuration, which will display error page in case sharable token is missing

### v1.22.0

**May 5, 2023**

### New features

* Add empty translations fallback to `configureTranslations` method exported from `hub-client-translations` package. This change will not affect targets and used only in Studio

### v1.21.9

**April 27, 2023**

### Bug fixes

* `<Iovation>` component: remove script from `<head>` after component onmount

### v1.21.6

**April 26, 2023**

### Bug fixes

* Fix inconsistent form value set with `multiple` property in `<FileUpload>` component on image rotation

### v1.21.5

**April 24, 2023**

### Bug fixes

* Add global analytics params (`analyticsParams` in `index.yml`) to change page action

### v1.21.4

**April 21, 2023**

### New features

* Add shortcut for `sharable` token in query, now `t` or `sharable` can be used, e.g. `https://{TARGET_URL}/?t={SHARABLE_TOKEN}`

### v1.21.2

**April 6, 2023**

### Bug fixes

* Fix `<Select>` component behaviour: close select list on "not found text" click (`notFoundText` prop)

### v1.21.0

**March 9, 2023**

### Breaking changes

* All file upload components (`<FileUpload>`, `<AcuantFileUpload>`, `<AcuantFileUploadButton>`, `<Signature>`) are now by default sending single file descriptor to HUB (`File`) instead of an array with single item (`[File]` before). In case `multiple` property is set to true — file descriptors are being sent as an array as before.

  To support this changes you need

  1. If you use single file upload, modify validation JSON schema of appropriate page on FE

  ```yaml theme={null}
  # Before
  schema:
    required:
      - document
    properties:
      document:
        type: array
        minItems: 1
        items:
          properties:
            size:
              maximum: 10485760
              errorMessage:
                _: !t "errors.invalidFileSize"
            # other properties validations...

  # After
  schema:
    required:
      - document
    properties:
      document:
        properties:
          size:
            maximum: 10485760
            errorMessage:
                _: !t "errors.invalidFileSize"
          # other properties validations...
  ```

  2. In case you still need payload to be sent as an array of file descriptors use `multiple` property. Note, that this property also affects UI, e.g. `<FileUpload>` component will display `Add another file`.

  ```yaml theme={null}
  - !component as: FileUpload
    name: document
    multiple: true
    label: "Document"
  ```

  3. Make appropriate changes in DSL

### v1.20.3

**January 5, 2023**

### Bug fixes

* `<Image>`: fix PDF document preview for multiple files

### v1.20.2

**January 5, 2023**

### Bug fixes

* `<SidebarProgress>`: add `--CM-sidebarProgress-border-dashed-color` CSS variable to adjust border dashes color

### v1.20.1

**December 21, 2022**

### Bug fixes

* `<Slider>`: fix disabled styles in Safari

### v1.20.0

**December 13, 2022**

#### New features

* New `formOutputModifier` page configuration key allows to override form data before submit. Can contain `!function` or `!expression` YAML tags for dynamic calculation based on expression context values

### v1.19.0

**November 28, 2022**

#### New features

* `<Slider>`: allow to provide custom slider steps with new `steps?: number[]` property

### v1.18.1

**October 18, 2022**

### Bug fixes

* `<Slider>`: force numeric keyboard, fix style issues in Firefox

### v1.18.0

**October 14, 2022**

#### New features

* Introduce `roundToStep` property for `<Slider>` component, which is updating slider value to nearest step in case of manual value editing

### v1.17.2

**October 13, 2022**

### Bug fixes

* Handle value limits in `onBlur` event in `<Slider>` component

### v1.17.1

**September 15, 2022**

### Bug fixes

* Do not allow to access process and global in EJS
* Fix default autocomplete value for `<Input>` component

### v1.17.0

**September 15, 2022**

#### New features

* Add `<SVGImage>` component

### v1.16.0

**September 15, 2022**

#### New features

* Add `<Portal>` component as an impementation of [React portal](https://reactjs.org/docs/portals.html)
* Add `onClick` handler to `<RadioButton>` component

### v1.15.2

**September 12, 2022**

### Bug fixes

* `<MaskedInput>`: consider 0 value as filled input

### v1.15.1

**September 9, 2022**

#### New features

* Add possibility to define custom `src`, `subkey` and `version` to `<Iovation>` component

### v1.15.0

**August 31, 2022**

### Breaking changes

* Change handoff credentials storage from `LocalStorage` to cookies with possibility to set expiration with `handoffTimeout` parameter in `index.yml`

### Bug fixes

* Switching HUB-client packages versions to exact match

### v1.14.16

**August 3, 2022**

#### New features

* Added support for `-r` (`--useRelativePaths`) target builder CLI parameter for resolving all references to files (inside /public/) folder relative to index.html

***

### v1.14.15

**August 2, 2022**

#### Refactor

* Extend link components (`<a>`, `<LinkButton>`, any kind of button inside `<Checkbox>` label) CSS variables

  ```css theme={null}
    --base-link-color: var(--base-brand-color);
    --base-link-disabled-color: var(--base-disabled-color);
    --base-link-font-weight: 400;
    --base-link-text-transform: initial;
    --base-link-text-decoration: underline;
    --base-link-hover-color: var(--base-brand-color);
    --base-link-hover-text-decoration: underline;
  ```

***

### v1.14.14

**August 1, 2022**

#### Breaking changes

* Set actual HUB backend version as default, setting `apiVersion: 'v1'` in `index.yml` is not mandatory anymore

> If you need to run application with legacy version of HUB backend, you need to set `apiVersion` field in `index.yml` to `v0`

#### Refactor

* Expose `changeLocale` action to `CoreContext`

#### Bug fixes

* Set correct value to `app.locale` in YAML expression context on application initialization
