Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Nov 13, 2024
1 parent e7bf177 commit 2b76ac3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.2', '8.3' ]
php: [ '8.3' ]
steps:
- name: PHP Static code analysis
uses: infinum/eightshift-deploy-actions-public/.github/actions/lint-php-static@main
Expand All @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.2', '8.3' ]
php: [ '8.3' ]
steps:
- name: PHP check coding standards
uses: infinum/eightshift-deploy-actions-public/.github/actions/lint-php@main
Expand Down
43 changes: 42 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@

# Change Log for the Eightshift Forms Utils library

All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [3.0.5]

### Added

- `postExternallyData` responseOutputKeys enums.
- New icon for `Corvus` and `Paycek` integrations.

## [3.0.4]

### Updated
Expand All @@ -25,12 +32,14 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
## [3.0.0]

### Removed

- `FD_EMAIL_RESPONSE_TAGS`, `FD_ADDON`, `FD_SUCCESS_REDIRECT`, `FD_ENTRY_ID` constants.
- `getApiPublicAdditionalDataOutput` method.
- `resultOutputItems`, `resultOutputParts` responseOutputKeys enums.
- `downloads` successRedirectUrlKeys enum.

### Added

- `FD_PARAMS_ORIGINAL_DEBUG`, `FD_SECURE_DATA` constants.
- `getStateSuccessRedirectUrlKeys` and `getStateSuccessRedirectUrlKey` methods.
- Additional level of security check for the form data.
Expand All @@ -42,68 +51,82 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
## [2.0.2]

### Added

- `resultOutputItemValueEnd` and `resultOutputItemOperator` attrs enums.

## [2.0.1]

### Updated

- `@infinum/eightshift-libs` to version `8.0.7`.

## [2.0.0]

### Updated

- `eightshift-forms-utils` to version `2.0.0`.
- `@infinum/eightshift-libs` to version `8.0.0`.

### Removed

- `MAIN_PLUGIN_MANIFEST_ITEM_HOOK_NAME` constant.
- `getDataManifest`, `getDataManifestRaw`, `getProjectVersion`, `getCountrySelectList` functions.
- `src/Manifest/UtilsManifest.php` class.

### Changed

- `getDataManifestPath` helper now supports only `$path` param.
- `camelToSnakeCase`, `kebabToSnakeCase`, `recursiveFind`, `getCurrentUrl`, `cleanPageUrl` are now used from the `@infinum/eightshift-libs` package.
- Minimum PHP version is now `8.2`.

## [1.3.6]

### Fixed

- Encrypted data now supports filters to provide custom keys.

## [1.3.5]

### Fixed

- `getDataManifestPath` helper now returns the correct path.

## [1.3.4]

### Changed

- location of the data manifest path.

## [1.3.3]

### Changed

- improvements on the `sanitize_text_field` function on the usage with the forms params data.

## [1.3.2]

### Added

- fix for multi-select props parsing.

## [1.3.1]

### Added

- new JS selectors.

## [1.3.0]

### Added

- new constants for CPT result.

### Changed

- `getListingPageUrl` function is now more dynamic.

### Removed

- `getFormsLocationsPageUrl` function.
- `getFormsEntriesPageUrl` function.
- `getFormsTrashPageUrl` function.
Expand All @@ -117,91 +140,109 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
## [1.2.4]

### Removed

- `FD_PARAMS_SKIPPED` due to not being used.

## [1.2.3]

### Added

- new `FD_PARAMS_SKIPPED` constant for skipped params.

## [1.2.2]

### Added

- `skippedParams` enum param for setting skipped params on multistep forms.

## [1.2.1]

### Added

- `getFormsLocationsPageUrl` function.

## [1.2.0]

### Removed

- `unserializeAttributes` function as it's not used anymore.

## [1.1.10]

### Added

- new `FD_ENTRY_ID` constant for entry id.

### Removed

- `processCommonSubmitActionFormData` function.
- `getIntegrationApiPublicOutput` function.

## [1.1.9]

### Changed

- `getIntegrationApiPublicOutput` now supports callback param instead of calling entries action.

## [1.1.8]

### Added

- One new admin selectors.

## [1.1.7]

### Added

- Three new admin selectors.

## [1.1.6]

### Changed

- Typo

## [1.1.5]

### Added

- New function `getFieldDetailsByName` that will extract field details from the form data params.

## [1.1.4]

### Changed

- Location of the data manifest path.

## [1.1.3]

### Added

- `getPartialFormFieldNames` function can now accept a custom wrapper for output.

## [1.1.2]

### Added

- New selector variable for step debug preview.

## [1.1.1]

### Added

- New selector variable for debug preview.

## [1.1.0]

### Changed

- The way we generate and load forms public filters from filter call to global variable.

## [1.0.0]

- Initial production release.

[3.0.5]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.4...3.0.5
[3.0.4]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.3...3.0.4
[3.0.3]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.2...3.0.3
[3.0.2]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.0...3.0.2
Expand Down
5 changes: 4 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@
"starRating": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M9.522 6.866a.5.5 0 0 1 .957 0l.682 2.253a.5.5 0 0 0 .49.355l2.37-.056c.498-.012.705.633.293.913l-1.937 1.319a.5.5 0 0 0-.19.581l.785 2.198a.5.5 0 0 1-.772.568l-1.899-1.43a.5.5 0 0 0-.601 0l-1.9 1.43a.5.5 0 0 1-.77-.568l.783-2.198a.5.5 0 0 0-.19-.581l-1.935-1.32c-.412-.28-.205-.925.293-.913l2.369.056a.5.5 0 0 0 .49-.355l.683-2.253Z' fill='currentColor' fill-opacity='0.3' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/><path d='m5.927 12.449-2.135 1.524a.5.5 0 0 1-.759-.583l.938-2.492a.5.5 0 0 0-.197-.596L1.487 8.825c-.424-.274-.222-.931.282-.92l2.854.064a.5.5 0 0 0 .488-.348l.84-2.63a.5.5 0 0 1 .952 0L7.704 7.5m6.369 4.949 2.135 1.524a.5.5 0 0 0 .759-.583l-.938-2.492a.5.5 0 0 1 .197-.596l2.287-1.477c.424-.274.222-.931-.282-.92l-2.854.064a.5.5 0 0 1-.488-.348l-.84-2.63a.5.5 0 0 0-.952 0L12.296 7.5' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>",
"calculate": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M1 2.5A1.5 1.5 0 0 1 2.5 1H9v8H1V2.5ZM1 11h8v8H2.5A1.5 1.5 0 0 1 1 17.5V11ZM11 1h6.5A1.5 1.5 0 0 1 19 2.5V9h-8V1Z' stroke='currentColor' fill='none'/><path d='M11 11h8v6.5a1.5 1.5 0 0 1-1.5 1.5H11v-8Z' fill='currentColor' fill-opacity='0.12' stroke='currentColor'/><path d='M5 3v4m2-2H3m14 0h-4m4 9h-4m4 2h-4m-9.414-2.414 2.829 2.828m0-2.828-2.829 2.828' stroke='currentColor' stroke-linecap='round' fill='none'/></svg>",
"compute": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M4 5.5A1.5 1.5 0 0 1 5.5 4h9A1.5 1.5 0 0 1 16 5.5v9a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5v-9Z' stroke='currentColor' fill='none'/><path d='M7 7.75A.75.75 0 0 1 7.75 7h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-4.5Z' fill='currentColor' fill-opacity='0.3' stroke='currentColor' stroke-linejoin='round'/><path d='M7 4V1.5M10 4V1.5M13 4V1.5m-6 17V16m3 2.5V16m3 2.5V16M1.5 7H4m-2.5 3H4m-2.5 3H4m12-6h2.5M16 10h2.5M16 13h2.5' stroke='currentColor' stroke-linecap='round' fill='none'/></svg>",
"dynamic": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M14.5 10 10 12.5V19l4.5-2.5V10Z' fill='currentColor' fill-opacity='0.3'/><path d='M5.209 2.886 8.674 6.99a.5.5 0 0 1 .118.323v2.813a.5.5 0 0 0 .754.43l1.212-.715a.5.5 0 0 0 .246-.43V7.323a.5.5 0 0 1 .13-.337l3.762-4.11' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/><path d='M15.111 2.444c0 .798-2.263 1.445-5.055 1.445C7.263 3.889 5 3.242 5 2.444 5 1.647 7.263 1 10.056 1c2.792 0 5.055.647 5.055 1.444Z' stroke='currentColor' fill='none'/><path d='m9.941 19-4.563-2.608a.75.75 0 0 1-.378-.65V9.823l4.941 2.823V19Z' fill='currentColor' fill-opacity='0.12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/><path d='m9.94 19 4.564-2.608a.75.75 0 0 0 .378-.65V9.823L9.94 12.647V19Z' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/><path d='M8.664 7.73 5 9.824l4.941 2.823 4.941-2.823L11 7.605' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>"
"dynamic": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M14.5 10 10 12.5V19l4.5-2.5V10Z' fill='currentColor' fill-opacity='0.3'/><path d='M5.209 2.886 8.674 6.99a.5.5 0 0 1 .118.323v2.813a.5.5 0 0 0 .754.43l1.212-.715a.5.5 0 0 0 .246-.43V7.323a.5.5 0 0 1 .13-.337l3.762-4.11' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/><path d='M15.111 2.444c0 .798-2.263 1.445-5.055 1.445C7.263 3.889 5 3.242 5 2.444 5 1.647 7.263 1 10.056 1c2.792 0 5.055.647 5.055 1.444Z' stroke='currentColor' fill='none'/><path d='m9.941 19-4.563-2.608a.75.75 0 0 1-.378-.65V9.823l4.941 2.823V19Z' fill='currentColor' fill-opacity='0.12' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'/><path d='m9.94 19 4.564-2.608a.75.75 0 0 0 .378-.65V9.823L9.94 12.647V19Z' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/><path d='M8.664 7.73 5 9.824l4.941 2.823 4.941-2.823L11 7.605' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>",
"corvus": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M4.884 10.004c-.372-4.092-2.17-3.72-3.255-3.255 1.085-1.24 3.255-3.72 5.58-1.396 2.326-4.65 8.61-3.459 11.162-2.325v3.256c-1.86-1.86-6.494-1.418-7.906.465-1.395 1.86-1.395 6.975 1.86 7.905 2.28.652 5.115-.155 6.046-.93v2.79c-2.233 2.233-6.511 1.706-8.371.93-1.55-.774-4.744-3.348-5.116-7.44Z' stroke='currentColor' stroke-linejoin='round' fill='none'/><path d='M8.605 14.19C6.67 11.356 6.589 7.368 7.209 5.352l.466-.93 1.86-1.395 1.86-.93h2.325l2.79.465c-3.166.327-5.688 2.825-6.393 4.08l-.582 3.36.93 3.721 1.86.93h3.72l2.322-.928c.002-.413.003-.6.003-.002 0 .505-.006.863-.012 1.15a7.042 7.042 0 0 1-.008.37c.089.452-1.756 1.111-3.805 1.281-2.352.097-4.319.039-5.94-2.336Z' fill='currentColor' fill-opacity='0.3'/></svg>",
"paycek": "<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M2.733 10.688 1.5 18.5h1.54a3 3 0 0 0 2.942-2.412L6.5 13.5h5.143A6.857 6.857 0 0 0 18.5 6.643 5.143 5.143 0 0 0 13.357 1.5h-2.474a4 4 0 0 0-3.795 2.735L6.5 6H13a1.5 1.5 0 0 1 0 3H4.709a2 2 0 0 0-1.976 1.688Z' stroke='currentColor' fill='none'/><path d='M12.495 13.5c3.6-1.2 3.107-4.926 2.44-6.426l-.94 1.426-1 .5h-3c-2.8 0-3.698 2.817-3.981 4.39l6.481.11Z' fill='currentColor' fill-opacity='0.3'/></svg>"
},
"enums": {
"selectorsAdmin": {
Expand Down Expand Up @@ -278,6 +280,7 @@
"responseOutputKeys": {
"validation": "validation",
"processExternally": "processExternally",
"postExternallyData": "postExternallyData",
"addon": "addonData",
"successRedirectUrl": "successRedirectUrl",
"successRedirectBaseUrl": "successRedirectBaseUrl",
Expand Down

0 comments on commit 2b76ac3

Please sign in to comment.