@serverkgg/bridge 0.0.14 → 0.0.15

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/src/wire/panel.ts CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  BridgeLayout,
13
13
  type BridgeManifest,
14
14
  type BridgePanel,
15
+ BridgePlace,
15
16
  type BridgeSection,
16
17
  type BridgeSetupManifest,
17
18
  type BridgeSetupStep,
@@ -118,6 +119,7 @@ export const bridgeSectionActionSchema = z.object({
118
119
  confirm: z.enum(BridgeConfirm).optional(),
119
120
  confirmText: panelTextSchema.optional(),
120
121
  download: z.boolean().optional(),
122
+ offline: z.boolean().optional(),
121
123
  fields: z.array(bridgeFieldSchema).max(ACTION_FIELDS_LIMIT).optional(),
122
124
  });
123
125
 
@@ -148,6 +150,7 @@ export const bridgeActionsSectionSchema = z.object({
148
150
  id: zBridgeId,
149
151
  title: panelTextSchema.optional(),
150
152
  help: panelTextSchema.optional(),
153
+ place: z.enum(BridgePlace).optional(),
151
154
  module: zBridgeModuleId,
152
155
  actions: z.array(bridgeSectionActionSchema).min(1).max(SECTION_ACTIONS_LIMIT),
153
156
  visibleWhen: bridgeVisibleWhenSchema.optional(),
@@ -158,6 +161,7 @@ export const bridgeFormSectionSchema = z.object({
158
161
  layout: z.literal(BridgeLayout.Form),
159
162
  id: zBridgeId,
160
163
  title: panelTextSchema.optional(),
164
+ help: panelTextSchema.optional(),
161
165
  target: z.enum(BridgeFormTarget),
162
166
  module: zBridgeModuleId.optional(),
163
167
  preview: bridgePreviewRefSchema.optional(),
@@ -175,6 +179,8 @@ export const bridgeDetailSectionSchema = z.object({
175
179
  layout: z.literal(BridgeLayout.Detail),
176
180
  id: zBridgeId,
177
181
  title: panelTextSchema.optional(),
182
+ help: panelTextSchema.optional(),
183
+ place: z.enum(BridgePlace).optional(),
178
184
  module: zBridgeModuleId,
179
185
  actions: z.array(bridgeSectionActionSchema).max(SECTION_ACTIONS_LIMIT).optional(),
180
186
  reinstall: z.boolean().optional(),
@@ -196,6 +202,8 @@ export const bridgeTableSectionSchema = z.object({
196
202
  layout: z.literal(BridgeLayout.Table),
197
203
  id: zBridgeId,
198
204
  title: panelTextSchema.optional(),
205
+ help: panelTextSchema.optional(),
206
+ place: z.enum(BridgePlace).optional(),
199
207
  module: zBridgeModuleId,
200
208
  restartHint: z.boolean().optional(),
201
209
  columns: z.array(bridgeColumnSchema).min(1).max(8),
@@ -211,6 +219,8 @@ export const bridgeCardsSectionSchema = z.object({
211
219
  layout: z.literal(BridgeLayout.Cards),
212
220
  id: zBridgeId,
213
221
  title: panelTextSchema.optional(),
222
+ help: panelTextSchema.optional(),
223
+ place: z.enum(BridgePlace).optional(),
214
224
  module: zBridgeModuleId,
215
225
  titleKey: zKey,
216
226
  subtitleKey: zKey.optional(),
@@ -224,6 +234,7 @@ export const bridgeCatalogSectionSchema = z.object({
224
234
  layout: z.literal(BridgeLayout.Catalog),
225
235
  id: zBridgeId,
226
236
  title: panelTextSchema.optional(),
237
+ help: panelTextSchema.optional(),
227
238
  module: zBridgeModuleId,
228
239
  restartHint: z.boolean().optional(),
229
240
  reinstall: z.boolean().optional(),