Skip to content

Commit 2b76ac3

Browse files
committed
misc fixes
1 parent e7bf177 commit 2b76ac3

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php: [ '8.2', '8.3' ]
25+
php: [ '8.3' ]
2626
steps:
2727
- name: PHP Static code analysis
2828
uses: infinum/eightshift-deploy-actions-public/.github/actions/lint-php-static@main
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
php: [ '8.2', '8.3' ]
39+
php: [ '8.3' ]
4040
steps:
4141
- name: PHP check coding standards
4242
uses: infinum/eightshift-deploy-actions-public/.github/actions/lint-php@main

CHANGELOG.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
21
# Change Log for the Eightshift Forms Utils library
2+
33
All notable changes to this project will be documented in this file.
44

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

7+
## [3.0.5]
8+
9+
### Added
10+
11+
- `postExternallyData` responseOutputKeys enums.
12+
- New icon for `Corvus` and `Paycek` integrations.
13+
714
## [3.0.4]
815

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

2734
### Removed
35+
2836
- `FD_EMAIL_RESPONSE_TAGS`, `FD_ADDON`, `FD_SUCCESS_REDIRECT`, `FD_ENTRY_ID` constants.
2937
- `getApiPublicAdditionalDataOutput` method.
3038
- `resultOutputItems`, `resultOutputParts` responseOutputKeys enums.
3139
- `downloads` successRedirectUrlKeys enum.
3240

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

4453
### Added
54+
4555
- `resultOutputItemValueEnd` and `resultOutputItemOperator` attrs enums.
4656

4757
## [2.0.1]
4858

4959
### Updated
60+
5061
- `@infinum/eightshift-libs` to version `8.0.7`.
5162

5263
## [2.0.0]
5364

5465
### Updated
66+
5567
- `eightshift-forms-utils` to version `2.0.0`.
5668
- `@infinum/eightshift-libs` to version `8.0.0`.
5769

5870
### Removed
71+
5972
- `MAIN_PLUGIN_MANIFEST_ITEM_HOOK_NAME` constant.
6073
- `getDataManifest`, `getDataManifestRaw`, `getProjectVersion`, `getCountrySelectList` functions.
6174
- `src/Manifest/UtilsManifest.php` class.
6275

6376
### Changed
77+
6478
- `getDataManifestPath` helper now supports only `$path` param.
6579
- `camelToSnakeCase`, `kebabToSnakeCase`, `recursiveFind`, `getCurrentUrl`, `cleanPageUrl` are now used from the `@infinum/eightshift-libs` package.
6680
- Minimum PHP version is now `8.2`.
6781

6882
## [1.3.6]
6983

7084
### Fixed
85+
7186
- Encrypted data now supports filters to provide custom keys.
7287

7388
## [1.3.5]
7489

7590
### Fixed
91+
7692
- `getDataManifestPath` helper now returns the correct path.
7793

7894
## [1.3.4]
7995

8096
### Changed
97+
8198
- location of the data manifest path.
8299

83100
## [1.3.3]
84101

85102
### Changed
103+
86104
- improvements on the `sanitize_text_field` function on the usage with the forms params data.
87105

88106
## [1.3.2]
89107

90108
### Added
109+
91110
- fix for multi-select props parsing.
92111

93112
## [1.3.1]
94113

95114
### Added
115+
96116
- new JS selectors.
97117

98118
## [1.3.0]
99119

100120
### Added
121+
101122
- new constants for CPT result.
102123

103124
### Changed
125+
104126
- `getListingPageUrl` function is now more dynamic.
105127

106128
### Removed
129+
107130
- `getFormsLocationsPageUrl` function.
108131
- `getFormsEntriesPageUrl` function.
109132
- `getFormsTrashPageUrl` function.
@@ -117,91 +140,109 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
117140
## [1.2.4]
118141

119142
### Removed
143+
120144
- `FD_PARAMS_SKIPPED` due to not being used.
121145

122146
## [1.2.3]
123147

124148
### Added
149+
125150
- new `FD_PARAMS_SKIPPED` constant for skipped params.
126151

127152
## [1.2.2]
128153

129154
### Added
155+
130156
- `skippedParams` enum param for setting skipped params on multistep forms.
131157

132158
## [1.2.1]
133159

134160
### Added
161+
135162
- `getFormsLocationsPageUrl` function.
136163

137164
## [1.2.0]
138165

139166
### Removed
167+
140168
- `unserializeAttributes` function as it's not used anymore.
141169

142170
## [1.1.10]
143171

144172
### Added
173+
145174
- new `FD_ENTRY_ID` constant for entry id.
146175

147176
### Removed
177+
148178
- `processCommonSubmitActionFormData` function.
149179
- `getIntegrationApiPublicOutput` function.
150180

151181
## [1.1.9]
152182

153183
### Changed
184+
154185
- `getIntegrationApiPublicOutput` now supports callback param instead of calling entries action.
155186

156187
## [1.1.8]
157188

158189
### Added
190+
159191
- One new admin selectors.
160192

161193
## [1.1.7]
162194

163195
### Added
196+
164197
- Three new admin selectors.
165198

166199
## [1.1.6]
167200

168201
### Changed
202+
169203
- Typo
170204

171205
## [1.1.5]
172206

173207
### Added
208+
174209
- New function `getFieldDetailsByName` that will extract field details from the form data params.
175210

176211
## [1.1.4]
177212

178213
### Changed
214+
179215
- Location of the data manifest path.
180216

181217
## [1.1.3]
182218

183219
### Added
220+
184221
- `getPartialFormFieldNames` function can now accept a custom wrapper for output.
185222

186223
## [1.1.2]
187224

188225
### Added
226+
189227
- New selector variable for step debug preview.
190228

191229
## [1.1.1]
192230

193231
### Added
232+
194233
- New selector variable for debug preview.
195234

196235
## [1.1.0]
197236

198237
### Changed
238+
199239
- The way we generate and load forms public filters from filter call to global variable.
200240

201241
## [1.0.0]
202242

203243
- Initial production release.
204244

245+
[3.0.5]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.4...3.0.5
205246
[3.0.4]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.3...3.0.4
206247
[3.0.3]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.2...3.0.3
207248
[3.0.2]: https://github.com/infinum/eightshift-forms-utils/compare/3.0.0...3.0.2

src/manifest.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@
110110
"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>",
111111
"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>",
112112
"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>",
113-
"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>"
113+
"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>",
114+
"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>",
115+
"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>"
114116
},
115117
"enums": {
116118
"selectorsAdmin": {
@@ -278,6 +280,7 @@
278280
"responseOutputKeys": {
279281
"validation": "validation",
280282
"processExternally": "processExternally",
283+
"postExternallyData": "postExternallyData",
281284
"addon": "addonData",
282285
"successRedirectUrl": "successRedirectUrl",
283286
"successRedirectBaseUrl": "successRedirectBaseUrl",

0 commit comments

Comments
 (0)