@finos/legend-application-studio 28.19.25 → 28.19.27

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.
Files changed (27) hide show
  1. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.d.ts.map +1 -1
  2. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js +48 -5
  3. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js.map +1 -1
  4. package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
  5. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +74 -3
  6. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
  7. package/lib/index.css +2 -2
  8. package/lib/index.css.map +1 -1
  9. package/lib/package.json +1 -1
  10. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +1 -0
  11. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
  12. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +26 -0
  13. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
  14. package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts +5 -0
  15. package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
  16. package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js +20 -0
  17. package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
  18. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +2 -1
  19. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
  20. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +27 -4
  21. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
  22. package/package.json +9 -9
  23. package/src/components/editor/editor-group/dataProduct/DataPoductEditor.tsx +138 -30
  24. package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +202 -2
  25. package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +26 -0
  26. package/src/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.ts +25 -1
  27. package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +34 -10
@@ -122,33 +122,57 @@ export const dataProduct_setSupportInfoIfAbsent = action(
122
122
  },
123
123
  );
124
124
 
125
+ export const supportInfo_setLinkLabel = action(
126
+ (link: DataProductLink, label: string | undefined) => {
127
+ link.label = label;
128
+ },
129
+ );
130
+
125
131
  export const supportInfo_setDocumentationUrl = action(
126
132
  (supportInfo: SupportInfo, documentationUrl: string) => {
127
- supportInfo.documentation = observer_DataProductLink(
128
- new DataProductLink(documentationUrl),
129
- );
133
+ if (!supportInfo.documentation) {
134
+ supportInfo.documentation = observer_DataProductLink(
135
+ new DataProductLink(documentationUrl),
136
+ );
137
+ } else {
138
+ supportInfo.documentation.url = documentationUrl;
139
+ }
130
140
  },
131
141
  );
132
142
 
133
143
  export const supportInfo_setWebsite = action(
134
144
  (supportInfo: SupportInfo, website: string) => {
135
- supportInfo.website = observer_DataProductLink(
136
- new DataProductLink(website),
137
- );
145
+ if (!supportInfo.website) {
146
+ supportInfo.website = observer_DataProductLink(
147
+ new DataProductLink(website),
148
+ );
149
+ } else {
150
+ supportInfo.website.url = website;
151
+ }
138
152
  },
139
153
  );
140
154
 
141
155
  export const supportInfo_setFaqUrl = action(
142
156
  (supportInfo: SupportInfo, faqUrl: string) => {
143
- supportInfo.faqUrl = observer_DataProductLink(new DataProductLink(faqUrl));
157
+ if (!supportInfo.faqUrl) {
158
+ supportInfo.faqUrl = observer_DataProductLink(
159
+ new DataProductLink(faqUrl),
160
+ );
161
+ } else {
162
+ supportInfo.faqUrl.url = faqUrl;
163
+ }
144
164
  },
145
165
  );
146
166
 
147
167
  export const supportInfo_setSupportUrl = action(
148
168
  (supportInfo: SupportInfo, supportUrl: string) => {
149
- supportInfo.supportUrl = observer_DataProductLink(
150
- new DataProductLink(supportUrl),
151
- );
169
+ if (!supportInfo.supportUrl) {
170
+ supportInfo.supportUrl = observer_DataProductLink(
171
+ new DataProductLink(supportUrl),
172
+ );
173
+ } else {
174
+ supportInfo.supportUrl.url = supportUrl;
175
+ }
152
176
  },
153
177
  );
154
178