@overmap-ai/core 1.0.38-component-fields.15 → 1.0.38-component-fields.16

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.
@@ -3316,6 +3316,14 @@ const selectNumberOfUserForms = createSelector([selectUserFormMapping], (userFor
3316
3316
  const selectNumberOfGeneralUserForms = createSelector([selectUserFormMapping], (userForms) => {
3317
3317
  return Object.values(userForms).filter((form) => !form.component_type && !form.component_stage).length;
3318
3318
  });
3319
+ const selectNumberOfComponentStageFormsForStage = restructureCreateSelectorWithArgs(
3320
+ createSelector(
3321
+ [selectUserFormMapping, (_state, stageId) => stageId],
3322
+ (userForms, stageId) => {
3323
+ return Object.values(userForms).filter((form) => form.component_stage === stageId).length;
3324
+ }
3325
+ )
3326
+ );
3319
3327
  const userFormReducer = userFormSlice.reducer;
3320
3328
  const initialState$1 = {
3321
3329
  emailDomains: {}
@@ -11110,7 +11118,7 @@ const FieldBuilder = memo((props) => {
11110
11118
  Input,
11111
11119
  {
11112
11120
  className: styles.grow,
11113
- placeholder: `Enter a ${type === "section" ? "section" : "field"} label`,
11121
+ placeholder: type === "section" ? "Enter a section label (optional)" : "Enter your question",
11114
11122
  value,
11115
11123
  onChange: (event) => {
11116
11124
  setValue(event.target.value);
@@ -11133,7 +11141,7 @@ const FieldBuilder = memo((props) => {
11133
11141
  TextArea,
11134
11142
  {
11135
11143
  className: styles.grow,
11136
- placeholder: `Enter a ${type === "section" ? "section" : "field"} description`,
11144
+ placeholder: `Enter a ${type === "section" ? "section" : "field"} description (optional)`,
11137
11145
  value,
11138
11146
  onChange: (event) => {
11139
11147
  setValue(event.target.value);
@@ -12124,6 +12132,7 @@ export {
12124
12132
  selectLatestRevisionsFromComponentTypeIds,
12125
12133
  selectMainWorkspace,
12126
12134
  selectMapStyle,
12135
+ selectNumberOfComponentStageFormsForStage,
12127
12136
  selectNumberOfComponentTypesMatchingCaseInsensitiveName,
12128
12137
  selectNumberOfComponentsOfComponentType,
12129
12138
  selectNumberOfGeneralUserForms,