@spiffcommerce/core 29.1.1 → 29.1.2-beta.2102523f-f498-5d84-b95b-77365fe8e2f4
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 +12 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +182 -179
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1356 -1333
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
## [29.2.0] - 25-08-2025
|
|
18
|
+
|
|
19
|
+
## Added
|
|
20
|
+
|
|
21
|
+
- Added the function `TextGlobalPropertyHandle.isTemplatingEnabled(): boolean`. Use this to determine whether you should display any templating tools.
|
|
22
|
+
|
|
23
|
+
## [29.1.2] - 25-08-2025
|
|
24
|
+
|
|
25
|
+
## Changed
|
|
26
|
+
|
|
27
|
+
- Text steps now render any templated values prior to calculating the character limit
|
|
28
|
+
|
|
17
29
|
## [29.1.1] - 20-08-2025
|
|
18
30
|
|
|
19
31
|
## Fixed
|
package/dist/index.d.ts
CHANGED
|
@@ -1454,6 +1454,11 @@ declare class FileUploadGlobalPropertyHandle extends GlobalPropertyHandle {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
declare class TextGlobalPropertyHandle extends GlobalPropertyHandle {
|
|
1456
1456
|
constructor(bundle: Bundle$1, property: GlobalPropertyConfigurationAspect);
|
|
1457
|
+
/**
|
|
1458
|
+
* If this returns false, you should not display any templating tools.
|
|
1459
|
+
* Note: Templates will currently still be rendered, regardless of what this function returns.
|
|
1460
|
+
*/
|
|
1461
|
+
isTemplatingEnabled(): boolean;
|
|
1457
1462
|
/**
|
|
1458
1463
|
* Gets the current text
|
|
1459
1464
|
*/
|
|
@@ -2897,13 +2902,17 @@ interface GlobalPropertyConfigurationAspect {
|
|
|
2897
2902
|
data?: GlobalPropertyConfigurationAspectData;
|
|
2898
2903
|
}
|
|
2899
2904
|
interface GlobalPropertyConfigurationAspectData {
|
|
2900
|
-
fileUpload
|
|
2905
|
+
fileUpload?: GlobalPropertyConfigurationAspectFileUploadData;
|
|
2906
|
+
text?: GlobalPropertyConfigurationAspectTextData;
|
|
2901
2907
|
}
|
|
2902
2908
|
interface GlobalPropertyConfigurationAspectFileUploadData {
|
|
2903
2909
|
colorPickerEnabled?: boolean;
|
|
2904
2910
|
pmsPickerEnabled?: boolean;
|
|
2905
2911
|
colorOptionId?: string;
|
|
2906
2912
|
}
|
|
2913
|
+
interface GlobalPropertyConfigurationAspectTextData {
|
|
2914
|
+
templatingEnabled?: boolean;
|
|
2915
|
+
}
|
|
2907
2916
|
interface GlobalPropertyConfigurationAspectCondition {
|
|
2908
2917
|
targetAspectName?: string;
|
|
2909
2918
|
action: AspectConditionAction;
|
|
@@ -4990,6 +4999,7 @@ declare class TextStepService implements StepService<TextStepData> {
|
|
|
4990
4999
|
/**
|
|
4991
5000
|
* Validates a string of text based on step configuration.
|
|
4992
5001
|
* @param text The text to validate
|
|
5002
|
+
* @param renderedText The text after being rendered via templating
|
|
4993
5003
|
* @param step The step providing configuration
|
|
4994
5004
|
* @param workflowManager Workflow manager for access to workflow state
|
|
4995
5005
|
* @returns A list of errors. Empty if the text passes validation.
|