@infomaximum/widget-sdk 5.31.0 → 5.32.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [5.32.0](https://github.com/Infomaximum/widget-sdk/compare/v5.31.0...v5.32.0) (2025-07-31)
6
+
7
+
8
+ ### Features
9
+
10
+ * добавлена возможность управления якорем для сохранения положения виджета ([3bd5610](https://github.com/Infomaximum/widget-sdk/commit/3bd561058e48055ec10f99c53f88f2fcddf18d94))
11
+
5
12
  ## [5.31.0](https://github.com/Infomaximum/widget-sdk/compare/v5.30.0...v5.31.0) (2025-07-17)
6
13
 
7
14
  ## [5.29.0-1](https://github.com/Infomaximum/widget-sdk/compare/v5.29.0...v5.29.0-1) (2025-07-14)
package/dist/index.d.ts CHANGED
@@ -2569,7 +2569,13 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
2569
2569
  /** Функция для подписки на расфокусировку виджета (например, при фокусировке на другом виджете) */
2570
2570
  subscribeOnFocusOut(subscriber: () => void): void;
2571
2571
  /** Функция для захвата фокуса виджетом: остальные виджеты будут оповещены о расфокусировке */
2572
- captureFocus(): void;
2572
+ captureFocus(options?: {
2573
+ /**
2574
+ * Якорный участок виджета, по которому сохраняется его положение
2575
+ * @default "bottom"
2576
+ */
2577
+ anchor?: "top" | "bottom";
2578
+ }): void;
2573
2579
  /** Глобальный контекст. Содержит информацию из отчета, пространства и платформы системы */
2574
2580
  globalContext: IGlobalContext;
2575
2581
  /** Контекст образа */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.31.0",
3
+ "version": "5.32.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -15,6 +15,7 @@
15
15
  "lint": "tsc --noEmit",
16
16
  "release": "standard-version",
17
17
  "release:rc": "standard-version -p",
18
+ "release:prev": "node ./scripts/re-release.mjs",
18
19
  "format": "prettier --find-config-path --write 'src/**/*'",
19
20
  "prepublishOnly": "npm run lint && npm run build",
20
21
  "test": "jest"