diff --git a/.github/workflows/back-kit-engine.yml b/.github/workflows/back-kit-engine.yml index 088db45..891da35 100644 --- a/.github/workflows/back-kit-engine.yml +++ b/.github/workflows/back-kit-engine.yml @@ -19,8 +19,7 @@ jobs: strategy: matrix: node-version: - - 16.x - - 17.x + - 18.x steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -53,7 +52,7 @@ jobs: path-to-lcov: '${{ env.context }}coverage/lcov.info' base-path: '${{ env.context }}' - name: Compile file and build - if: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.base_ref == 'main') && matrix.node-version == '16.x' }} + if: ${{ (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.base_ref == 'main') && matrix.node-version == '18.x' }} run: yarn build - name: Cache dist directory uses: actions/cache@v3 @@ -70,10 +69,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 16.x + - name: Use Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 16.x + node-version: 18.x always-auth: true registry-url: 'https://registry.npmjs.org' scope: '@micro-lc' diff --git a/.nvmrc b/.nvmrc index 112a2ea..c32828c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/gallium \ No newline at end of file +lts/hydrogen \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f913bb3..00c91a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- `dataschema`: format `html-editor` is now available + ## [1.0.16] - 2024-01-28 - `customLocale` property is available in `bk-base` component @@ -60,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.0.4] - 2023-01-31 - `dataschema` `description` field is now of type `LocalizedText` + ## [1.0.3] - 2023-01-30 - `http-client` `get` and `post` methods reject the promise on `downloadAsFile` when response is not ok diff --git a/src/schemas/data-schema.ts b/src/schemas/data-schema.ts index 8b41071..f10d55e 100644 --- a/src/schemas/data-schema.ts +++ b/src/schemas/data-schema.ts @@ -35,7 +35,9 @@ export type DateFormat = 'date-time' | 'time' | 'date' export type TextFormat = 'email' | 'uri' | 'regex' | 'password' | 'text' -export type StringFormat = DateFormat | TextFormat | 'text-area' | 'lookup' +export type EditorFormat = 'editor' | 'html-editor' + +export type StringFormat = DateFormat | TextFormat | EditorFormat | 'text-area' | 'lookup' export type ObjectFormat = 'file' | 'localized-text'