@evergis/react 4.0.88 → 4.0.90

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.
@@ -478,6 +478,33 @@ export interface FeatureCardSlideshowHeaderConfig extends Omit<ConfigContainerHe
478
478
  * приемлемы для любой ветви — это переходная мягкая совместимость с legacy-конфигами.
479
479
  */
480
480
  export type DashboardChild = ElementButtonConfig | ElementCameraConfig | ElementChartConfig | ElementChipsConfig | ElementControlConfig | ElementIconConfig | ElementImageConfig | ElementLegendConfig | ElementLinkConfig | ElementMarkdownConfig | ElementModalConfig | ElementSlideshowConfig | ElementSvgConfig | ElementTooltipConfig | ElementUploaderConfig | AddFeatureContainerConfig | AttachmentContainerConfig | CameraContainerConfig | ChartContainerConfig | ContainersGroupContainerConfig | DataSourceContainerConfig | DataSourceProgressContainerConfig | DefaultAttributesContainerConfig | DividerContainerElementConfig | EditContainerConfig | EditGroupContainerConfig | EditBooleanContainerConfig | EditStringContainerConfig | EditNumberContainerConfig | EditDropdownContainerConfig | EditChipsContainerConfig | EditCheckboxContainerConfig | EditDateContainerConfig | EditAttachmentContainerConfig | ExportPdfContainerConfig | FiltersContainerConfig | IconContainerConfig | ImageContainerConfig | LayersContainerConfig | OneColumnContainerConfig | ProgressContainerConfig | RoundedBackgroundContainerConfig | SlideshowContainerConfig | TabsContainerConfig | TaskContainerConfig | TitleContainerConfig | TwoColumnContainerConfig | UploadContainerConfig;
481
+ /**
482
+ * Строгий authoring-тип узла конфига. В отличие от мягкого {@link ConfigContainerChild}
483
+ * (`id?` — опционален ради legacy-совместимости), здесь `id` **обязателен** и рекурсивно
484
+ * требуется у всех потомков в `children`. Предназначен для авторинга НОВЫХ конфигов и примеров
485
+ * в документации: `ts-check` ловит пропуск `id` на любой глубине. Базовый
486
+ * {@link ConfigContainerChild} остаётся мягким — на нём держится рантайм/legacy-парсер.
487
+ *
488
+ * @example
489
+ * const child: StrictConfigContainerChild = {
490
+ * id: "chart_floors", // ← без id — ошибка компиляции
491
+ * templateName: ContainerTemplate.Chart,
492
+ * children: [{ id: "chart", type: "chart" }],
493
+ * };
494
+ */
495
+ export type StrictConfigContainerChild = Omit<ConfigContainerChild, "id" | "children"> & {
496
+ id: string;
497
+ children?: StrictConfigContainerChild[];
498
+ };
499
+ /**
500
+ * Строгий вариант {@link DashboardChild}: сохраняет сужение дискриминированного union по
501
+ * `type`/`templateName` (проверка полей `options` per-branch) и дополнительно требует `id` на
502
+ * узле верхнего уровня. Используй для авторинга контейнера, когда важна проверка опций.
503
+ * Более глубокую (рекурсивную) проверку `id` даёт {@link StrictConfigContainerChild}.
504
+ */
505
+ export type StrictDashboardChild = DashboardChild & {
506
+ id: string;
507
+ };
481
508
  /**
482
509
  * Discriminated union для хедеров. `HeaderTemplate.Default` сразу матчится сразу с двумя ветками
483
510
  * (`DashboardDefaultHeaderConfig` и `FeatureCardDefaultHeaderConfig`) — это намеренно: ветки
package/dist/index.js CHANGED
@@ -8959,7 +8959,7 @@ const DashboardDefaultHeader = React.memo(() => {
8959
8959
  });
8960
8960
 
8961
8961
  const HeaderFrontView = styled(uilibGl.Flex) `
8962
- z-index: 10;
8962
+ z-index: 100;
8963
8963
  position: relative;
8964
8964
  justify-content: space-between;
8965
8965
  align-items: ${({ isDefault }) => (isDefault ? "center" : "flex-start")};
@@ -10180,7 +10180,7 @@ const BottomBlurHeaderMixin = styled.css `
10180
10180
  }
10181
10181
 
10182
10182
  ${HeaderFrontView} {
10183
- z-index: 12;
10183
+ z-index: 100;
10184
10184
  }
10185
10185
  `;
10186
10186
  const BackgroundHeaderWrapper = styled.div `
package/dist/react.esm.js CHANGED
@@ -8957,7 +8957,7 @@ const DashboardDefaultHeader = memo(() => {
8957
8957
  });
8958
8958
 
8959
8959
  const HeaderFrontView = styled(Flex) `
8960
- z-index: 10;
8960
+ z-index: 100;
8961
8961
  position: relative;
8962
8962
  justify-content: space-between;
8963
8963
  align-items: ${({ isDefault }) => (isDefault ? "center" : "flex-start")};
@@ -10178,7 +10178,7 @@ const BottomBlurHeaderMixin = css `
10178
10178
  }
10179
10179
 
10180
10180
  ${HeaderFrontView} {
10181
- z-index: 12;
10181
+ z-index: 100;
10182
10182
  }
10183
10183
  `;
10184
10184
  const BackgroundHeaderWrapper = styled.div `
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.88",
2
+ "version": "4.0.90",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -87,5 +87,5 @@
87
87
  "uuid": "^13.0.0",
88
88
  "wkt": "^0.1.1"
89
89
  },
90
- "gitHead": "79f58e4889c3b81dbf0564511c650692fea176ce"
90
+ "gitHead": "d2c7838817f124976dd903e0d6a113f8a64dec3f"
91
91
  }