@matreshka/bff 0.23.0 → 0.23.1

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.
@@ -25,10 +25,10 @@ class Board extends component_1.Component {
25
25
  return this.dispatchComponentCommand(instances, (target, actionScope) => new board_set_zoom_message_1.BoardSetZoomMessage(target, { zoom, actionScope }));
26
26
  }
27
27
  zoomIn(instances) {
28
- return this.dispatchComponentCommand(instances, (target, actionScope) => new board_zoom_in_message_1.BoardZoomInMessage(target, actionScope));
28
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new board_zoom_in_message_1.BoardZoomInMessage(target, { actionScope }));
29
29
  }
30
30
  zoomOut(instances) {
31
- return this.dispatchComponentCommand(instances, (target, actionScope) => new board_zoom_out_message_1.BoardZoomOutMessage(target, actionScope));
31
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new board_zoom_out_message_1.BoardZoomOutMessage(target, { actionScope }));
32
32
  }
33
33
  constructor(config) {
34
34
  const itemsSlot = (0, item_list_1.createNestedItemsSlotState)(config.items);
@@ -355,7 +355,8 @@ class Component {
355
355
  .subscribe((0, incoming_message_observer_1.incomingMessageObserver)(client, (message) => {
356
356
  const instance = this.instances.find((x) => x.id === message.target);
357
357
  if (!instance) {
358
- client.error$.next("Component interaction call, component instance not found");
358
+ client.error$.next("Component interaction call, component instance not found. Component class: " +
359
+ this.class());
359
360
  return;
360
361
  }
361
362
  if (instance.client !== client) {
@@ -86,7 +86,7 @@ class Dialog extends entry_component_1.EntryComponent {
86
86
  * Закрывает диалог, инициируя событие взаимодействия "close".
87
87
  */
88
88
  close(instances) {
89
- return this.dispatchComponentCommand(instances, (target, actionScope) => new dialog_close_message_1.DialogCloseMessage(target, actionScope));
89
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new dialog_close_message_1.DialogCloseMessage(target, { actionScope }));
90
90
  }
91
91
  serializeRuleOverrides(overrides) {
92
92
  const out = super.serializeRuleOverrides(overrides);
@@ -78,73 +78,73 @@ class TextEditor extends input_component_1.InputComponent {
78
78
  * Переключает курсивное начертание текста.
79
79
  */
80
80
  toggleItalic(instances) {
81
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_toggle_italic_message_1.TextEditorToggleItalicMessage(target, actionScope));
81
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_toggle_italic_message_1.TextEditorToggleItalicMessage(target, { actionScope }));
82
82
  }
83
83
  /**
84
84
  * Переключает полужирное начертание текста.
85
85
  */
86
86
  toggleBold(instances) {
87
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_toggle_bold_message_1.TextEditorToggleBoldMessage(target, actionScope));
87
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_toggle_bold_message_1.TextEditorToggleBoldMessage(target, { actionScope }));
88
88
  }
89
89
  /**
90
90
  * Переключает подчеркивание текста.
91
91
  */
92
92
  toggleUnderline(instances) {
93
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_toggle_underline_message_1.TextEditorToggleUnderlineMessage(target, actionScope));
93
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_toggle_underline_message_1.TextEditorToggleUnderlineMessage(target, { actionScope }));
94
94
  }
95
95
  /**
96
96
  * Выполняет операцию отмены последнего действия.
97
97
  */
98
98
  undo(instances) {
99
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_undo_message_1.TextEditorUndoMessage(target, actionScope));
99
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_undo_message_1.TextEditorUndoMessage(target, { actionScope }));
100
100
  }
101
101
  /**
102
102
  * Выполняет операцию повтора последнего отмененного действия.
103
103
  */
104
104
  redo(instances) {
105
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_redo_message_1.TextEditorRedoMessage(target, actionScope));
105
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_redo_message_1.TextEditorRedoMessage(target, { actionScope }));
106
106
  }
107
107
  /**
108
108
  * Применяет формат верхнего индекса к выделенному тексту.
109
109
  */
110
110
  superscript(instances) {
111
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_superscript_message_1.TextEditorSuperscriptMessage(target, actionScope));
111
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_superscript_message_1.TextEditorSuperscriptMessage(target, { actionScope }));
112
112
  }
113
113
  /**
114
114
  * Вставляет нумерованный список.
115
115
  */
116
116
  insertOrderedList(instances) {
117
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_insert_ordered_list_message_1.TextEditorInsertOrderedListMessage(target, actionScope));
117
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_insert_ordered_list_message_1.TextEditorInsertOrderedListMessage(target, { actionScope }));
118
118
  }
119
119
  /**
120
120
  * Вставляет маркированный список.
121
121
  */
122
122
  insertUnorderedList(instances) {
123
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_insert_unordered_list_message_1.TextEditorInsertUnorderedListMessage(target, actionScope));
123
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_insert_unordered_list_message_1.TextEditorInsertUnorderedListMessage(target, { actionScope }));
124
124
  }
125
125
  /**
126
126
  * Выравнивает текст по левому краю.
127
127
  */
128
128
  justifyLeft(instances) {
129
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_left_message_1.TextEditorJustifyLeftMessage(target, actionScope));
129
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_left_message_1.TextEditorJustifyLeftMessage(target, { actionScope }));
130
130
  }
131
131
  /**
132
132
  * Выравнивает текст по центру.
133
133
  */
134
134
  justifyCenter(instances) {
135
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_center_message_1.TextEditorJustifyCenterMessage(target, actionScope));
135
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_center_message_1.TextEditorJustifyCenterMessage(target, { actionScope }));
136
136
  }
137
137
  /**
138
138
  * Выравнивает текст по правому краю.
139
139
  */
140
140
  justifyRight(instances) {
141
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_right_message_1.TextEditorJustifyRightMessage(target, actionScope));
141
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_right_message_1.TextEditorJustifyRightMessage(target, { actionScope }));
142
142
  }
143
143
  /**
144
144
  * Выравнивает текст по ширине.
145
145
  */
146
146
  justifyFull(instances) {
147
- return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_full_message_1.TextEditorJustifyFullMessage(target, actionScope));
147
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new text_editor_justify_full_message_1.TextEditorJustifyFullMessage(target, { actionScope }));
148
148
  }
149
149
  /**
150
150
  * Форматирует блок с указанным тегом.
@@ -21,10 +21,10 @@ class Map extends component_1.Component {
21
21
  return this.dispatchComponentCommand(instances, (target, actionScope) => new map_set_zoom_message_1.MapSetZoomMessage(target, { zoom, actionScope }));
22
22
  }
23
23
  zoomIn(instances) {
24
- return this.dispatchComponentCommand(instances, (target, actionScope) => new map_zoom_in_message_1.MapZoomInMessage(target, actionScope));
24
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new map_zoom_in_message_1.MapZoomInMessage(target, { actionScope }));
25
25
  }
26
26
  zoomOut(instances) {
27
- return this.dispatchComponentCommand(instances, (target, actionScope) => new map_zoom_out_message_1.MapZoomOutMessage(target, actionScope));
27
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new map_zoom_out_message_1.MapZoomOutMessage(target, { actionScope }));
28
28
  }
29
29
  constructor(config) {
30
30
  const markersSlot = (0, item_list_1.createNestedItemsSlotState)(config.markers);
@@ -48,7 +48,7 @@ class Popover extends entry_component_1.EntryComponent {
48
48
  * Закрывает всплывающее окно, инициируя действие "close".
49
49
  */
50
50
  close(instances) {
51
- return this.dispatchComponentCommand(instances, (target, actionScope) => new popover_close_message_1.PopoverCloseMessage(target, actionScope));
51
+ return this.dispatchComponentCommand(instances, (target, actionScope) => new popover_close_message_1.PopoverCloseMessage(target, { actionScope }));
52
52
  }
53
53
  /**
54
54
  * Инициализирует свойства компонента.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matreshka/bff",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "Matreshka BFF: server-driven UI runtime — routing, pages, context, component DSL, and platform APIs",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "vitest": "^4.1.0"
63
63
  },
64
64
  "dependencies": {
65
- "@matreshka/shared": "^0.22.0",
65
+ "@matreshka/shared": "^0.22.1",
66
66
  "@simplewebauthn/server": "^13.1.1",
67
67
  "@simplewebauthn/types": "^12.0.0",
68
68
  "fast-xml-parser": "^5.3.3",