@dxs-ts/eveli-ide 0.0.12 → 0.0.13

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.
Files changed (3) hide show
  1. package/build/index.d.ts +130 -176
  2. package/build/index.js +25216 -25219
  3. package/package.json +1 -1
package/build/index.d.ts CHANGED
@@ -1,18 +1,6 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { Theme } from '@mui/material/styles';
3
3
 
4
- declare class DefaultStore implements HdesApi.Store {
5
- private _config;
6
- private _updateStarted;
7
- private _iapSessionRefreshWindow;
8
- private _defRef;
9
- constructor(config: HdesApi.StoreConfig);
10
- iapRefresh(): Promise<void>;
11
- iapLogin(): boolean;
12
- handle401(): Promise<void>;
13
- fetch<T>(path: string, req?: RequestInit): Promise<T>;
14
- }
15
-
16
4
  declare namespace HdesApi {
17
5
  type TagId = string;
18
6
  type EntityId = string;
@@ -650,20 +638,28 @@ export declare const stencilIntl: {
650
638
  [key: string]: any;
651
639
  };
652
640
 
653
- declare class StoreErrorImpl extends Error {
654
- private _props;
655
- constructor(props: HdesApi.ServiceErrorProps);
656
- get name(): string;
657
- get status(): number;
658
- get errors(): HdesApi.ServiceErrorMsg[];
659
- }
660
-
661
641
  export declare namespace WrenchClient {
662
642
  }
663
643
 
664
644
  export declare namespace WrenchClient {
665
- const StoreErrorImpl: typeof StoreErrorImpl;
666
- const StoreImpl: typeof DefaultStore;
645
+ export class StoreErrorImpl extends Error {
646
+ private _props;
647
+ constructor(props: HdesApi.ServiceErrorProps);
648
+ get name(): string;
649
+ get status(): number;
650
+ get errors(): HdesApi.ServiceErrorMsg[];
651
+ }
652
+ export class DefaultStore implements HdesApi.Store {
653
+ private _config;
654
+ private _updateStarted;
655
+ private _iapSessionRefreshWindow;
656
+ private _defRef;
657
+ constructor(config: HdesApi.StoreConfig);
658
+ iapRefresh(): Promise<void>;
659
+ iapLogin(): boolean;
660
+ handle401(): Promise<void>;
661
+ fetch<T>(path: string, req?: RequestInit): Promise<T>;
662
+ }
667
663
  export class ServiceImpl implements HdesApi.Service {
668
664
  private _store;
669
665
  private _branch;
@@ -699,64 +695,6 @@ export declare const wrenchIntl: {
699
695
  export { }
700
696
 
701
697
 
702
- declare namespace Burger {
703
- const Provider: import("react").FC<import("./context/AppContext").AppProviderProps>;
704
- const useApps: () => import("./BurgerApi").BurgerApi.AppContextType;
705
- const useDrawer: () => import("./BurgerApi").BurgerApi.DrawerContextType;
706
- const useTabs: () => import("./BurgerApi").BurgerApi.TabsContextType;
707
- const useSecondary: () => import("./BurgerApi").BurgerApi.SecondaryContextType;
708
- const Dialog: import("react").FC<import("./styles/StyledDialog").StyledDialogProps>;
709
- const Select: import("react").FC<import("./styles/StyledSelect").StyledSelectProps<string>>;
710
- const SelectMultiple: import("react").FC<{
711
- multiline?: boolean;
712
- open?: boolean;
713
- helpers?: {
714
- id: string;
715
- value: string | React.ReactChild;
716
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
717
- }[];
718
- renderValue?: (values: string[]) => React.ReactNode;
719
- } & import("./styles/StyledSelect").StyledSelectProps<string[]>>;
720
- const TextField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
721
- const NumberField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<number>>;
722
- const FileField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
723
- const DateField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
724
- const DateTimeField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
725
- const TreeItem: import("react").FC<import("./styles/StyledTreeItem").StyledTreeItemProps>;
726
- const TreeItemRoot: import("@emotion/styled").StyledComponent<import("@mui/lab/TreeItem").TreeItemProps & import("react").RefAttributes<HTMLLIElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
727
- const TreeItemOption: import("react").FC<{
728
- labelText: React.ReactNode;
729
- nodeId: string;
730
- color: string;
731
- icon?: React.ElementType<import("@mui/material").SvgIconProps>;
732
- onClick: () => void;
733
- }>;
734
- const SearchField: import("react").FC<import("./styles/StyledInputField").StyledInputFieldProps<string>>;
735
- const TransferList: import("react").FC<import("./styles/StyledTransferList").StyledTransferListProps>;
736
- const PrimaryButton: import("react").FC<{
737
- label: string;
738
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
739
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
740
- disabled?: boolean;
741
- }>;
742
- const SecondaryButton: import("react").FC<{
743
- label?: string;
744
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
745
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
746
- disabled?: boolean;
747
- }>;
748
- const Checkbox: import("react").FC<{
749
- checked: boolean;
750
- onChange?: (newValue: boolean) => void;
751
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
752
- }>;
753
- const Switch: import("react").FC<import("./styles/StyledSwitch").StyledSwitchProps>;
754
- const RadioButton: import("@emotion/styled").StyledComponent<import("@mui/material").RadioProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
755
- const DateTimeFormatter: import("react").FC<import("./utils/DateTimeFormatter").DateTimeFormatProps>;
756
- const ReleaseTable: import("react").FC<import("./releases/ReleaseTable").ReleaseTableProps>;
757
- }
758
-
759
-
760
698
  declare module 'react' {
761
699
  interface CSSProperties {
762
700
  '--tree-view-text-color'?: string;
@@ -814,8 +752,24 @@ declare namespace HdesClient {
814
752
 
815
753
 
816
754
  declare namespace HdesClient {
817
- const StoreErrorImpl: typeof StoreErrorImplAs;
818
- const StoreImpl: typeof DefaultStore;
755
+ class StoreErrorImpl extends Error {
756
+ private _props;
757
+ constructor(props: HdesApi.ServiceErrorProps);
758
+ get name(): string;
759
+ get status(): number;
760
+ get errors(): HdesApi.ServiceErrorMsg[];
761
+ }
762
+ class DefaultStore implements HdesApi.Store {
763
+ private _config;
764
+ private _updateStarted;
765
+ private _iapSessionRefreshWindow;
766
+ private _defRef;
767
+ constructor(config: HdesApi.StoreConfig);
768
+ iapRefresh(): Promise<void>;
769
+ iapLogin(): boolean;
770
+ handle401(): Promise<void>;
771
+ fetch<T>(path: string, req?: RequestInit): Promise<T>;
772
+ }
819
773
  class ServiceImpl implements HdesApi.Service {
820
774
  private _store;
821
775
  private _branch;
@@ -838,6 +792,100 @@ declare namespace HdesClient {
838
792
  }
839
793
 
840
794
 
795
+ declare namespace Composer {
796
+ interface Nav {
797
+ value?: string | null;
798
+ }
799
+ interface TabData {
800
+ nav?: Nav;
801
+ withNav(nav: Nav): TabData;
802
+ }
803
+ interface Tab extends BurgerApi.TabSession<TabData> {
804
+ }
805
+ interface DebugSession {
806
+ error?: HdesApi.StoreError;
807
+ debug?: HdesApi.DebugResponse;
808
+ csv?: string;
809
+ json?: string;
810
+ selected: HdesApi.EntityId;
811
+ inputType: DebugInputType;
812
+ }
813
+ type DebugInputType = "CSV" | "JSON";
814
+ interface DebugSessions {
815
+ selected?: HdesApi.EntityId;
816
+ values: Record<HdesApi.EntityId, DebugSession>;
817
+ }
818
+ interface PageUpdate {
819
+ saved: boolean;
820
+ origin: HdesApi.Entity<any>;
821
+ value: HdesApi.AstCommand[];
822
+ withValue(value: HdesApi.AstCommand[]): PageUpdate;
823
+ }
824
+ interface Session {
825
+ site: HdesApi.Site;
826
+ pages: Record<HdesApi.EntityId, PageUpdate>;
827
+ debug: DebugSessions;
828
+ branchName?: string;
829
+ getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
830
+ getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
831
+ getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
832
+ getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
833
+ withDebug(page: DebugSession): Session;
834
+ withPage(page: HdesApi.EntityId): Session;
835
+ withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
836
+ withoutPages(pages: HdesApi.EntityId[]): Session;
837
+ withBranch(branchName?: string): Session;
838
+ withSite(site: HdesApi.Site): Session;
839
+ }
840
+ interface Actions {
841
+ handleLoad(): Promise<void>;
842
+ handleLoadSite(site?: HdesApi.Site): Promise<void>;
843
+ handleDebugUpdate(debug: DebugSession): void;
844
+ handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
845
+ handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
846
+ handleBranchUpdate(branchName?: string): void;
847
+ }
848
+ interface ContextType {
849
+ session: Session;
850
+ actions: Actions;
851
+ service: HdesApi.Service;
852
+ }
853
+ }
854
+
855
+
856
+ declare namespace Composer {
857
+ const createTab: (props: {
858
+ nav: Composer.Nav;
859
+ page?: HdesApi.Entity<any>;
860
+ }) => ImmutableTabData;
861
+ const ComposerContext: React.Context<ContextType>;
862
+ const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
863
+ const useComposer: () => {
864
+ session: Session;
865
+ service: HdesApi.Service;
866
+ actions: Actions;
867
+ site: HdesApi.Site;
868
+ isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
869
+ };
870
+ const useSite: () => HdesApi.Site;
871
+ const useBranchName: () => string | undefined;
872
+ const useSession: () => Session;
873
+ const useNav: () => {
874
+ handleInTab: (props: {
875
+ article: HdesApi.Entity<any>;
876
+ }) => void;
877
+ findTab: (article: HdesApi.Entity<any>) => Composer.Tab | undefined;
878
+ };
879
+ const useDebug: () => {
880
+ handleDebugInit: (selected: HdesApi.EntityId) => void;
881
+ };
882
+ const Provider: React.FC<{
883
+ children: React.ReactNode;
884
+ service: HdesApi.Service;
885
+ }>;
886
+ }
887
+
888
+
841
889
  declare namespace Composer {
842
890
  interface SearchData {
843
891
  values: readonly SearchDataEntry[];
@@ -1267,100 +1315,6 @@ declare namespace StencilClient {
1267
1315
  }) => Service;
1268
1316
  }
1269
1317
 
1270
-
1271
- declare namespace Composer {
1272
- interface Nav {
1273
- value?: string | null;
1274
- }
1275
- interface TabData {
1276
- nav?: Nav;
1277
- withNav(nav: Nav): TabData;
1278
- }
1279
- interface Tab extends BurgerApi.TabSession<TabData> {
1280
- }
1281
- interface DebugSession {
1282
- error?: HdesApi.StoreError;
1283
- debug?: HdesApi.DebugResponse;
1284
- csv?: string;
1285
- json?: string;
1286
- selected: HdesApi.EntityId;
1287
- inputType: DebugInputType;
1288
- }
1289
- type DebugInputType = "CSV" | "JSON";
1290
- interface DebugSessions {
1291
- selected?: HdesApi.EntityId;
1292
- values: Record<HdesApi.EntityId, DebugSession>;
1293
- }
1294
- interface PageUpdate {
1295
- saved: boolean;
1296
- origin: HdesApi.Entity<any>;
1297
- value: HdesApi.AstCommand[];
1298
- withValue(value: HdesApi.AstCommand[]): PageUpdate;
1299
- }
1300
- interface Session {
1301
- site: HdesApi.Site;
1302
- pages: Record<HdesApi.EntityId, PageUpdate>;
1303
- debug: DebugSessions;
1304
- branchName?: string;
1305
- getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
1306
- getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
1307
- getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
1308
- getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
1309
- withDebug(page: DebugSession): Session;
1310
- withPage(page: HdesApi.EntityId): Session;
1311
- withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
1312
- withoutPages(pages: HdesApi.EntityId[]): Session;
1313
- withBranch(branchName?: string): Session;
1314
- withSite(site: HdesApi.Site): Session;
1315
- }
1316
- interface Actions {
1317
- handleLoad(): Promise<void>;
1318
- handleLoadSite(site?: HdesApi.Site): Promise<void>;
1319
- handleDebugUpdate(debug: DebugSession): void;
1320
- handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
1321
- handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
1322
- handleBranchUpdate(branchName?: string): void;
1323
- }
1324
- interface ContextType {
1325
- session: Session;
1326
- actions: Actions;
1327
- service: HdesApi.Service;
1328
- }
1329
- }
1330
-
1331
-
1332
- declare namespace Composer {
1333
- const createTab: (props: {
1334
- nav: Composer.Nav;
1335
- page?: HdesApi.Entity<any>;
1336
- }) => ImmutableTabData;
1337
- const ComposerContext: React.Context<ContextType>;
1338
- const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
1339
- const useComposer: () => {
1340
- session: Session;
1341
- service: HdesApi.Service;
1342
- actions: Actions;
1343
- site: HdesApi.Site;
1344
- isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
1345
- };
1346
- const useSite: () => HdesApi.Site;
1347
- const useBranchName: () => string | undefined;
1348
- const useSession: () => Session;
1349
- const useNav: () => {
1350
- handleInTab: (props: {
1351
- article: HdesApi.Entity<any>;
1352
- }) => void;
1353
- findTab: (article: HdesApi.Entity<any>) => Composer.Tab | undefined;
1354
- };
1355
- const useDebug: () => {
1356
- handleDebugInit: (selected: HdesApi.EntityId) => void;
1357
- };
1358
- const Provider: React.FC<{
1359
- children: React.ReactNode;
1360
- service: HdesApi.Service;
1361
- }>;
1362
- }
1363
-
1364
1318
  declare namespace Decision {
1365
1319
  const Table: import("react").FC<{
1366
1320
  ast: import("../../client").HdesApi.AstDecision;