xmlui 0.11.21 → 0.11.22

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.
@@ -1,6 +1,6 @@
1
1
  import { delay as delay$1, HttpResponse, matchRequestUrl } from "msw";
2
2
  import { isArray, isObject, mapValues } from "lodash-es";
3
- import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-CkNqkb53.js";
3
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-BvICspZ1.js";
4
4
  import Dexie from "dexie";
5
5
  var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
6
6
  HttpStatusCode2[HttpStatusCode2["Continue"] = 100] = "Continue";
@@ -1,4 +1,4 @@
1
- import { r as requireMain, s as start } from "./server-common-Ce61T1XU.js";
1
+ import { r as requireMain, s as start } from "./server-common-BwQMbLFd.js";
2
2
  var browser;
3
3
  var hasRequiredBrowser;
4
4
  function requireBrowser() {
@@ -1,4 +1,4 @@
1
- import { r as requireMain, s as start$1 } from "./server-common-Ce61T1XU.js";
1
+ import { r as requireMain, s as start$1 } from "./server-common-BwQMbLFd.js";
2
2
  var node;
3
3
  var hasRequiredNode;
4
4
  function requireNode() {
@@ -490,13 +490,13 @@ export {
490
490
  getDefaultExportFromCjs as b,
491
491
  alignmentOptionValues as c,
492
492
  alignmentOptionMd as d,
493
- layoutOptionKeys as e,
494
- iconPositionMd as f,
493
+ iconPositionMd as e,
494
+ buttonTypesMd as f,
495
495
  getAugmentedNamespace as g,
496
- buttonTypesMd as h,
496
+ buttonThemeMd as h,
497
497
  isSizeType as i,
498
- buttonThemeMd as j,
499
- buttonVariantMd as k,
498
+ buttonVariantMd as j,
499
+ layoutOptionKeys as k,
500
500
  labelPositionMd as l,
501
501
  variantOptionsMd as m,
502
502
  scrollAnchoringValues as n,
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-BXGJbvlh.js";
1
+ import { g as getAugmentedNamespace, a as addOnPrefix, M as MetadataProvider } from "./metadata-utils-DFy9QKH6.js";
2
2
  import { CompletionItemKind as CompletionItemKind$1, MarkupKind as MarkupKind$1, TextDocuments, TextDocumentSyncKind, DidChangeConfigurationNotification } from "vscode-languageserver";
3
3
  import { TextDocument as TextDocument$1 } from "vscode-languageserver-textdocument";
4
4
  import { S as SyntaxKind, B as findTokenAtPos, h as createXmlUiParser } from "./transform-CQ_6R-43.js";
@@ -145,6 +145,7 @@ declare type AppContextObject = {
145
145
  };
146
146
  distinct: (arr: any[]) => any[];
147
147
  forceRefreshAnchorScroll: () => void;
148
+ AppState: AppState;
148
149
  };
149
150
 
150
151
  declare const appLayoutNames: readonly ["vertical", "vertical-sticky", "vertical-full-header", "condensed", "condensed-sticky", "horizontal", "horizontal-sticky", "desktop"];
@@ -162,6 +163,26 @@ export declare function AppRoot({ apiInterceptor, contributes, node, decorateCom
162
163
  isNested?: boolean;
163
164
  }): JSX_2.Element;
164
165
 
166
+ /**
167
+ * AppState type definition for global state management
168
+ */
169
+ declare type AppState = {
170
+ define(bucket: string, initialState: any): any;
171
+ get(bucket: string, path?: string): any;
172
+ set(bucket: string, pathOrValue: string | any, value?: any): any;
173
+ update(bucket: string, pathOrUpdater: string | Function | any, updater?: Function | ((prev: any) => any | Promise<any>)): Promise<any>;
174
+ updateWith(bucket: string, updater: (prev: any) => any | Promise<any>): Promise<any>;
175
+ remove(bucket: string, value: any): void;
176
+ removeBy(bucket: string, predicate: (item: any) => boolean | Promise<boolean>): Promise<void>;
177
+ removeAt(bucket: string, index: number): any;
178
+ append(bucket: string, value: any): any;
179
+ push(bucket: string, value: any): any;
180
+ pop(bucket: string): any;
181
+ shift(bucket: string): any;
182
+ unshift(bucket: string, value: any): any;
183
+ insertAt(bucket: string, index: number, value: any): any;
184
+ };
185
+
165
186
  declare type AppThemes = {
166
187
  setActiveThemeId: (newThemeId: string) => void;
167
188
  setActiveThemeTone: (newTone: ThemeTone) => void;
package/dist/lib/xmlui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aa, Z, al, a1, ax, av, _, $, ai, ak, ay, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-CkNqkb53.js";
1
+ import { aa, Z, al, a1, ax, av, _, $, ai, ak, ay, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-BvICspZ1.js";
2
2
  import { f as f2, x as x2 } from "./xmlui-parser-9Yk-asFP.js";
3
3
  import { X as X2 } from "./xmlui-serializer-CeCcgdVR.js";
4
4
  export {