@evoke-platform/ui-components 1.8.0-testing.7 → 1.8.0-testing.8

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.
@@ -97,7 +97,7 @@ function FormRendererContainer(props) {
97
97
  return;
98
98
  if (formId || action?.defaultFormId) {
99
99
  apiServices
100
- .get(getPrefixedUrl(`data/forms/${formId || action?.defaultFormId}`))
100
+ .get(getPrefixedUrl(`/forms/${formId || action?.defaultFormId}`))
101
101
  .then((evokeForm) => {
102
102
  if (evokeForm?.actionId === actionId) {
103
103
  const form = onClose ? { ...evokeForm, name: '' } : evokeForm;
@@ -113,7 +113,7 @@ function FormRendererContainer(props) {
113
113
  }
114
114
  else if (action) {
115
115
  apiServices
116
- .get(getPrefixedUrl('data/forms'), {
116
+ .get(getPrefixedUrl('/forms'), {
117
117
  params: {
118
118
  filter: {
119
119
  where: {
@@ -146,7 +146,7 @@ function FormRendererContainer(props) {
146
146
  },
147
147
  });
148
148
  }
149
- else if (instance) {
149
+ else if (instance || action.type === 'create') {
150
150
  setError(true);
151
151
  }
152
152
  })
@@ -66,7 +66,7 @@ const RepeatableField = (props) => {
66
66
  function getForm(setForm, action, formId) {
67
67
  if (formId || action?.defaultFormId) {
68
68
  apiServices
69
- .get(getPrefixedUrl(`data/forms/${formId || action?.defaultFormId}`))
69
+ .get(getPrefixedUrl(`/forms/${formId || action?.defaultFormId}`))
70
70
  .then((evokeForm) => {
71
71
  setForm(evokeForm);
72
72
  })
@@ -76,7 +76,7 @@ const RepeatableField = (props) => {
76
76
  }
77
77
  else if (action) {
78
78
  apiServices
79
- .get(getPrefixedUrl('data/forms'), {
79
+ .get(getPrefixedUrl('/forms'), {
80
80
  params: {
81
81
  filter: {
82
82
  where: {
@@ -147,7 +147,7 @@ const ObjectPropertyInput = (props) => {
147
147
  useEffect(() => {
148
148
  if (formId || action?.defaultFormId) {
149
149
  apiServices
150
- .get(getPrefixedUrl(`data/forms/${formId || action?.defaultFormId}`))
150
+ .get(getPrefixedUrl(`/forms/${formId || action?.defaultFormId}`))
151
151
  .then((evokeForm) => {
152
152
  setForm(evokeForm);
153
153
  })
@@ -157,7 +157,7 @@ const ObjectPropertyInput = (props) => {
157
157
  }
158
158
  else if (action) {
159
159
  apiServices
160
- .get(getPrefixedUrl('data/forms'), {
160
+ .get(getPrefixedUrl('/forms'), {
161
161
  params: {
162
162
  filter: {
163
163
  where: {
@@ -116,7 +116,7 @@ export const getEntryId = (entry) => {
116
116
  };
117
117
  export function getPrefixedUrl(url) {
118
118
  const wcsMatchers = ['/apps', '/pages', '/widgets'];
119
- const dataMatchers = ['/objects', '/correspondenceTemplates', '/documents', '/payments', '/locations'];
119
+ const dataMatchers = ['/objects', '/correspondenceTemplates', '/documents', '/payments', '/forms', '/locations'];
120
120
  const signalrMatchers = ['/hubs'];
121
121
  const accessManagementMatchers = ['/users'];
122
122
  const workflowMatchers = ['/workflows'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.8.0-testing.7",
3
+ "version": "1.8.0-testing.8",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",