@capillarytech/creatives-library 7.17.194-alpha.0 → 7.17.194-alpha.1
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/config/app.js
CHANGED
|
@@ -6,7 +6,7 @@ const config = {
|
|
|
6
6
|
api_endpoint: '/arya/api/v1/creatives',
|
|
7
7
|
campaigns_api_endpoint: '/iris/v2/campaigns',
|
|
8
8
|
campaigns_api_org_endpoint: '/iris/v2/org/campaign',
|
|
9
|
-
liquid_endpoint:'/iris/v2/
|
|
9
|
+
liquid_endpoint:'/iris/v2/template',
|
|
10
10
|
auth_endpoint: '/arya/api/v1/auth',
|
|
11
11
|
arya_endpoint: '/arya/api/v1',
|
|
12
12
|
login_url: '/auth/login',
|
package/package.json
CHANGED
|
@@ -3749,7 +3749,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3749
3749
|
|
|
3750
3750
|
|
|
3751
3751
|
return (
|
|
3752
|
-
<CapSpin spinning={this.liquidFlow && this.props.liquidExtractionInProgress}>
|
|
3752
|
+
<CapSpin spinning={this.liquidFlow && this.props.liquidExtractionInProgress} tip={this.props.intl.formatMessage(messages.liquidSpinText)} >
|
|
3753
3753
|
<CapRow>
|
|
3754
3754
|
{this.props.schema ? this.renderForm() : ""}
|
|
3755
3755
|
<SlideBox
|
|
@@ -94,4 +94,8 @@ export default defineMessages({
|
|
|
94
94
|
id: 'creatives.componentsV2.FormBuilder.somethingWentWrong',
|
|
95
95
|
defaultMessage: 'Something went wrong while validating content , pls try again later',
|
|
96
96
|
},
|
|
97
|
+
liquidSpinText:{
|
|
98
|
+
id: 'creatives.componentsV2.FormBuilder.liquidSpinText',
|
|
99
|
+
defaultMessage: 'Validating the template, it might take a few seconds',
|
|
100
|
+
},
|
|
97
101
|
});
|
|
@@ -64,7 +64,7 @@ describe('should handle GET_SUPPORT_VIDEOS_CONFIG', () => {
|
|
|
64
64
|
const action = {
|
|
65
65
|
type: GET_LIQUID_TAGS_REQUEST,
|
|
66
66
|
};
|
|
67
|
-
const expectedState = {"fetchingLiquidTags": true, "fetchingSchema": true, "fetchingSchemaError":
|
|
67
|
+
const expectedState = {"fetchingLiquidTags": true, "fetchingSchema": true, "fetchingSchemaError": "", "liquidTags": [], "messages": [], "metaEntities": {"layouts": [], "tagMap": {}, "tags": []}, "orgID": "", "token": ""};
|
|
68
68
|
expect(reducer(mockedInitialState, action).toJS()).toEqual(expectedState);
|
|
69
69
|
});
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@ describe('should handle GET_SUPPORT_VIDEOS_CONFIG', () => {
|
|
|
72
72
|
const action = {
|
|
73
73
|
type: GET_LIQUID_TAGS_FAILURE,
|
|
74
74
|
};
|
|
75
|
-
const expectedState ={"fetchingLiquidTags": false, "fetchingSchema": true, "fetchingSchemaError":
|
|
75
|
+
const expectedState ={"fetchingLiquidTags": false, "fetchingSchema": true, "fetchingSchemaError": "", "liquidTags": [], "messages": [], "metaEntities": {"layouts": [], "tagMap": {}, "tags": []}, "orgID": "", "token": ""}
|
|
76
76
|
expect(reducer(mockedInitialState, action).toJS()).toEqual(expectedState);
|
|
77
77
|
});
|
|
78
78
|
|
|
@@ -80,11 +80,7 @@ describe('should handle GET_SUPPORT_VIDEOS_CONFIG', () => {
|
|
|
80
80
|
const action = {
|
|
81
81
|
type: GET_LIQUID_TAGS_SUCCESS,
|
|
82
82
|
};
|
|
83
|
-
const
|
|
84
|
-
fetchingLiquidTags: true,
|
|
85
|
-
fetchingSchemaError: false,
|
|
86
|
-
});
|
|
87
|
-
const expectedState ={"fetchingLiquidTags": false, "fetchingSchema": true, "fetchingSchemaError": false, "liquidTags": [], "messages": [], "metaEntities": {"layouts": [], "tagMap": {}, "tags": []}, "orgID": "", "token": ""}
|
|
83
|
+
const expectedState ={"fetchingLiquidTags": false, "fetchingSchema": true, "fetchingSchemaError": "", "liquidTags": [], "messages": [], "metaEntities": {"layouts": [], "tagMap": {}, "tags": []}, "orgID": "", "token": ""}
|
|
88
84
|
expect(reducer(mockedInitialState, action).toJS()).toEqual(expectedState);
|
|
89
85
|
});
|
|
90
86
|
|