@dxs-ts/eveli-ide 0.0.13 → 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/build/index.d.ts +246 -246
- package/build/index.js +3 -3
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -791,250 +791,6 @@ declare namespace HdesClient {
|
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
|
|
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
|
-
|
|
889
|
-
declare namespace Composer {
|
|
890
|
-
interface SearchData {
|
|
891
|
-
values: readonly SearchDataEntry[];
|
|
892
|
-
filterLinks(keyword: string): readonly SearchResult[];
|
|
893
|
-
filterWorkflows(keyword: string): readonly SearchResult[];
|
|
894
|
-
filterArticles(keyword: string): readonly SearchResult[];
|
|
895
|
-
}
|
|
896
|
-
interface SearchDataEntry {
|
|
897
|
-
id: string;
|
|
898
|
-
type: "ARTICLE" | "LINK" | "WORKFLOW";
|
|
899
|
-
values: readonly SearchableValue[];
|
|
900
|
-
}
|
|
901
|
-
interface SearchResult {
|
|
902
|
-
source: SearchDataEntry;
|
|
903
|
-
matches: SearchableValue[];
|
|
904
|
-
}
|
|
905
|
-
interface SearchableValue {
|
|
906
|
-
id: string;
|
|
907
|
-
value: string;
|
|
908
|
-
type: "ARTICLE_NAME" | "ARTICLE_PAGE" | "WORKFLOW_NAME" | "WORKFLOW_LABEL" | "LINK_VALUE" | "LINK_LABEL";
|
|
909
|
-
}
|
|
910
|
-
type NavType = "ARTICLE_LINKS" | "ARTICLE_WORKFLOWS" | "ARTICLE_PAGES";
|
|
911
|
-
interface Nav {
|
|
912
|
-
type: NavType;
|
|
913
|
-
value?: string | null;
|
|
914
|
-
value2?: string | null;
|
|
915
|
-
}
|
|
916
|
-
interface TabData {
|
|
917
|
-
nav?: Nav;
|
|
918
|
-
withNav(nav: Nav): TabData;
|
|
919
|
-
}
|
|
920
|
-
interface Tab extends BurgerApi.TabSession<TabData> {
|
|
921
|
-
}
|
|
922
|
-
interface PageUpdate {
|
|
923
|
-
saved: boolean;
|
|
924
|
-
origin: StencilClient.Page;
|
|
925
|
-
value: StencilClient.LocalisedContent;
|
|
926
|
-
withValue(value: StencilClient.LocalisedContent): PageUpdate;
|
|
927
|
-
}
|
|
928
|
-
interface SessionFilter {
|
|
929
|
-
locale?: StencilClient.LocaleId;
|
|
930
|
-
withLocale(locale?: StencilClient.LocaleId): SessionFilter;
|
|
931
|
-
}
|
|
932
|
-
interface Session {
|
|
933
|
-
site: StencilClient.Site;
|
|
934
|
-
pages: Record<StencilClient.PageId, PageUpdate>;
|
|
935
|
-
articles: ArticleView[];
|
|
936
|
-
workflows: WorkflowView[];
|
|
937
|
-
links: LinkView[];
|
|
938
|
-
search: SearchData;
|
|
939
|
-
filter: SessionFilter;
|
|
940
|
-
getArticleName(articleId: StencilClient.ArticleId): {
|
|
941
|
-
missing: boolean;
|
|
942
|
-
name: string;
|
|
943
|
-
};
|
|
944
|
-
getArticleView(articleId: StencilClient.ArticleId): ArticleView;
|
|
945
|
-
getLinkView(linkId: StencilClient.LinkId): LinkView;
|
|
946
|
-
getLinkName(linkId: StencilClient.LinkId): {
|
|
947
|
-
missing: boolean;
|
|
948
|
-
name: string;
|
|
949
|
-
};
|
|
950
|
-
getWorkflowView(workflowId: StencilClient.WorkflowId): WorkflowView;
|
|
951
|
-
getWorkflowName(workflowId: StencilClient.WorkflowId): {
|
|
952
|
-
missing: boolean;
|
|
953
|
-
name: string;
|
|
954
|
-
};
|
|
955
|
-
getArticlesForLocale(locale: StencilClient.LocaleId): StencilClient.Article[];
|
|
956
|
-
getArticlesForLocales(locales: StencilClient.LocaleId[]): StencilClient.Article[];
|
|
957
|
-
withPage(page: StencilClient.PageId): Session;
|
|
958
|
-
withPageValue(page: StencilClient.PageId, value: StencilClient.LocalisedContent): Session;
|
|
959
|
-
withoutPages(pages: StencilClient.PageId[]): Session;
|
|
960
|
-
withLocaleFilter(locale?: StencilClient.LocaleId): Session;
|
|
961
|
-
withSite(site: StencilClient.Site): Session;
|
|
962
|
-
}
|
|
963
|
-
interface Actions {
|
|
964
|
-
handleLoad(): Promise<void>;
|
|
965
|
-
handleLoadSite(): Promise<void>;
|
|
966
|
-
handlePageUpdate(page: StencilClient.PageId, value: StencilClient.LocalisedContent): void;
|
|
967
|
-
handlePageUpdateRemove(pages: StencilClient.PageId[]): void;
|
|
968
|
-
handleLocaleFilter(locale?: StencilClient.LocaleId): void;
|
|
969
|
-
}
|
|
970
|
-
interface ContextType {
|
|
971
|
-
session: Session;
|
|
972
|
-
actions: Actions;
|
|
973
|
-
service: StencilClient.Service;
|
|
974
|
-
}
|
|
975
|
-
interface ArticleView {
|
|
976
|
-
article: StencilClient.Article;
|
|
977
|
-
pages: PageView[];
|
|
978
|
-
canCreate: StencilClient.SiteLocale[];
|
|
979
|
-
links: LinkView[];
|
|
980
|
-
workflows: WorkflowView[];
|
|
981
|
-
children: Composer.ArticleView[];
|
|
982
|
-
displayOrder: number;
|
|
983
|
-
getPageById(pageId: StencilClient.PageId): PageView;
|
|
984
|
-
getPageByLocaleId(localeId: StencilClient.LocaleId): PageView;
|
|
985
|
-
findPageByLocaleId(localeId: StencilClient.LocaleId): PageView | undefined;
|
|
986
|
-
}
|
|
987
|
-
interface PageView {
|
|
988
|
-
title: string;
|
|
989
|
-
page: StencilClient.Page;
|
|
990
|
-
locale: StencilClient.SiteLocale;
|
|
991
|
-
}
|
|
992
|
-
interface LinkView {
|
|
993
|
-
link: StencilClient.Link;
|
|
994
|
-
labels: LabelView[];
|
|
995
|
-
}
|
|
996
|
-
interface WorkflowView {
|
|
997
|
-
workflow: StencilClient.Workflow;
|
|
998
|
-
labels: LabelView[];
|
|
999
|
-
}
|
|
1000
|
-
interface LabelView {
|
|
1001
|
-
label: StencilClient.LocaleLabel;
|
|
1002
|
-
locale: StencilClient.SiteLocale;
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
declare namespace Composer {
|
|
1008
|
-
const createTab: (props: {
|
|
1009
|
-
nav: Composer.Nav;
|
|
1010
|
-
page?: StencilClient.Page;
|
|
1011
|
-
}) => ImmutableTabData;
|
|
1012
|
-
const ComposerContext: React.Context<ContextType>;
|
|
1013
|
-
const useUnsaved: (article: StencilClient.Article) => boolean;
|
|
1014
|
-
const useComposer: () => {
|
|
1015
|
-
session: Session;
|
|
1016
|
-
service: StencilClient.Service;
|
|
1017
|
-
actions: Actions;
|
|
1018
|
-
site: StencilClient.Site;
|
|
1019
|
-
isArticleSaved: (article: StencilClient.Article) => boolean;
|
|
1020
|
-
};
|
|
1021
|
-
const useSite: () => StencilClient.Site;
|
|
1022
|
-
const useSession: () => Session;
|
|
1023
|
-
const useNav: () => {
|
|
1024
|
-
handleInTab: (props: {
|
|
1025
|
-
article: StencilClient.Article;
|
|
1026
|
-
type: Composer.NavType;
|
|
1027
|
-
locale?: string | null;
|
|
1028
|
-
secondary?: boolean;
|
|
1029
|
-
}) => void;
|
|
1030
|
-
findTab: (article: StencilClient.Article) => Composer.Tab | undefined;
|
|
1031
|
-
};
|
|
1032
|
-
const Provider: React.FC<{
|
|
1033
|
-
children: React.ReactNode;
|
|
1034
|
-
service: StencilClient.Service;
|
|
1035
|
-
}>;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
794
|
declare namespace StencilClient {
|
|
1039
795
|
type PageId = string;
|
|
1040
796
|
type LinkId = string;
|
|
@@ -1315,6 +1071,250 @@ declare namespace StencilClient {
|
|
|
1315
1071
|
}) => Service;
|
|
1316
1072
|
}
|
|
1317
1073
|
|
|
1074
|
+
|
|
1075
|
+
declare namespace StencilComposerApi {
|
|
1076
|
+
interface SearchData {
|
|
1077
|
+
values: readonly SearchDataEntry[];
|
|
1078
|
+
filterLinks(keyword: string): readonly SearchResult[];
|
|
1079
|
+
filterWorkflows(keyword: string): readonly SearchResult[];
|
|
1080
|
+
filterArticles(keyword: string): readonly SearchResult[];
|
|
1081
|
+
}
|
|
1082
|
+
interface SearchDataEntry {
|
|
1083
|
+
id: string;
|
|
1084
|
+
type: "ARTICLE" | "LINK" | "WORKFLOW";
|
|
1085
|
+
values: readonly SearchableValue[];
|
|
1086
|
+
}
|
|
1087
|
+
interface SearchResult {
|
|
1088
|
+
source: SearchDataEntry;
|
|
1089
|
+
matches: SearchableValue[];
|
|
1090
|
+
}
|
|
1091
|
+
interface SearchableValue {
|
|
1092
|
+
id: string;
|
|
1093
|
+
value: string;
|
|
1094
|
+
type: "ARTICLE_NAME" | "ARTICLE_PAGE" | "WORKFLOW_NAME" | "WORKFLOW_LABEL" | "LINK_VALUE" | "LINK_LABEL";
|
|
1095
|
+
}
|
|
1096
|
+
type NavType = "ARTICLE_LINKS" | "ARTICLE_WORKFLOWS" | "ARTICLE_PAGES";
|
|
1097
|
+
interface Nav {
|
|
1098
|
+
type: NavType;
|
|
1099
|
+
value?: string | null;
|
|
1100
|
+
value2?: string | null;
|
|
1101
|
+
}
|
|
1102
|
+
interface TabData {
|
|
1103
|
+
nav?: Nav;
|
|
1104
|
+
withNav(nav: Nav): TabData;
|
|
1105
|
+
}
|
|
1106
|
+
interface Tab extends BurgerApi.TabSession<TabData> {
|
|
1107
|
+
}
|
|
1108
|
+
interface PageUpdate {
|
|
1109
|
+
saved: boolean;
|
|
1110
|
+
origin: StencilClient.Page;
|
|
1111
|
+
value: StencilClient.LocalisedContent;
|
|
1112
|
+
withValue(value: StencilClient.LocalisedContent): PageUpdate;
|
|
1113
|
+
}
|
|
1114
|
+
interface SessionFilter {
|
|
1115
|
+
locale?: StencilClient.LocaleId;
|
|
1116
|
+
withLocale(locale?: StencilClient.LocaleId): SessionFilter;
|
|
1117
|
+
}
|
|
1118
|
+
interface Session {
|
|
1119
|
+
site: StencilClient.Site;
|
|
1120
|
+
pages: Record<StencilClient.PageId, PageUpdate>;
|
|
1121
|
+
articles: ArticleView[];
|
|
1122
|
+
workflows: WorkflowView[];
|
|
1123
|
+
links: LinkView[];
|
|
1124
|
+
search: SearchData;
|
|
1125
|
+
filter: SessionFilter;
|
|
1126
|
+
getArticleName(articleId: StencilClient.ArticleId): {
|
|
1127
|
+
missing: boolean;
|
|
1128
|
+
name: string;
|
|
1129
|
+
};
|
|
1130
|
+
getArticleView(articleId: StencilClient.ArticleId): ArticleView;
|
|
1131
|
+
getLinkView(linkId: StencilClient.LinkId): LinkView;
|
|
1132
|
+
getLinkName(linkId: StencilClient.LinkId): {
|
|
1133
|
+
missing: boolean;
|
|
1134
|
+
name: string;
|
|
1135
|
+
};
|
|
1136
|
+
getWorkflowView(workflowId: StencilClient.WorkflowId): WorkflowView;
|
|
1137
|
+
getWorkflowName(workflowId: StencilClient.WorkflowId): {
|
|
1138
|
+
missing: boolean;
|
|
1139
|
+
name: string;
|
|
1140
|
+
};
|
|
1141
|
+
getArticlesForLocale(locale: StencilClient.LocaleId): StencilClient.Article[];
|
|
1142
|
+
getArticlesForLocales(locales: StencilClient.LocaleId[]): StencilClient.Article[];
|
|
1143
|
+
withPage(page: StencilClient.PageId): Session;
|
|
1144
|
+
withPageValue(page: StencilClient.PageId, value: StencilClient.LocalisedContent): Session;
|
|
1145
|
+
withoutPages(pages: StencilClient.PageId[]): Session;
|
|
1146
|
+
withLocaleFilter(locale?: StencilClient.LocaleId): Session;
|
|
1147
|
+
withSite(site: StencilClient.Site): Session;
|
|
1148
|
+
}
|
|
1149
|
+
interface Actions {
|
|
1150
|
+
handleLoad(): Promise<void>;
|
|
1151
|
+
handleLoadSite(): Promise<void>;
|
|
1152
|
+
handlePageUpdate(page: StencilClient.PageId, value: StencilClient.LocalisedContent): void;
|
|
1153
|
+
handlePageUpdateRemove(pages: StencilClient.PageId[]): void;
|
|
1154
|
+
handleLocaleFilter(locale?: StencilClient.LocaleId): void;
|
|
1155
|
+
}
|
|
1156
|
+
interface ContextType {
|
|
1157
|
+
session: Session;
|
|
1158
|
+
actions: Actions;
|
|
1159
|
+
service: StencilClient.Service;
|
|
1160
|
+
}
|
|
1161
|
+
interface ArticleView {
|
|
1162
|
+
article: StencilClient.Article;
|
|
1163
|
+
pages: PageView[];
|
|
1164
|
+
canCreate: StencilClient.SiteLocale[];
|
|
1165
|
+
links: LinkView[];
|
|
1166
|
+
workflows: WorkflowView[];
|
|
1167
|
+
children: ArticleView[];
|
|
1168
|
+
displayOrder: number;
|
|
1169
|
+
getPageById(pageId: StencilClient.PageId): PageView;
|
|
1170
|
+
getPageByLocaleId(localeId: StencilClient.LocaleId): PageView;
|
|
1171
|
+
findPageByLocaleId(localeId: StencilClient.LocaleId): PageView | undefined;
|
|
1172
|
+
}
|
|
1173
|
+
interface PageView {
|
|
1174
|
+
title: string;
|
|
1175
|
+
page: StencilClient.Page;
|
|
1176
|
+
locale: StencilClient.SiteLocale;
|
|
1177
|
+
}
|
|
1178
|
+
interface LinkView {
|
|
1179
|
+
link: StencilClient.Link;
|
|
1180
|
+
labels: LabelView[];
|
|
1181
|
+
}
|
|
1182
|
+
interface WorkflowView {
|
|
1183
|
+
workflow: StencilClient.Workflow;
|
|
1184
|
+
labels: LabelView[];
|
|
1185
|
+
}
|
|
1186
|
+
interface LabelView {
|
|
1187
|
+
label: StencilClient.LocaleLabel;
|
|
1188
|
+
locale: StencilClient.SiteLocale;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
declare namespace StencilComposerApi {
|
|
1194
|
+
const createTab: (props: {
|
|
1195
|
+
nav: Nav;
|
|
1196
|
+
page?: StencilClient.Page;
|
|
1197
|
+
}) => ImmutableTabData;
|
|
1198
|
+
const ComposerContext: React.Context<ContextType>;
|
|
1199
|
+
const useUnsaved: (article: StencilClient.Article) => boolean;
|
|
1200
|
+
const useComposer: () => {
|
|
1201
|
+
session: Session;
|
|
1202
|
+
service: StencilClient.Service;
|
|
1203
|
+
actions: Actions;
|
|
1204
|
+
site: StencilClient.Site;
|
|
1205
|
+
isArticleSaved: (article: StencilClient.Article) => boolean;
|
|
1206
|
+
};
|
|
1207
|
+
const useSite: () => StencilClient.Site;
|
|
1208
|
+
const useSession: () => Session;
|
|
1209
|
+
const useNav: () => {
|
|
1210
|
+
handleInTab: (props: {
|
|
1211
|
+
article: StencilClient.Article;
|
|
1212
|
+
type: NavType;
|
|
1213
|
+
locale?: string | null;
|
|
1214
|
+
secondary?: boolean;
|
|
1215
|
+
}) => void;
|
|
1216
|
+
findTab: (article: StencilClient.Article) => Tab | undefined;
|
|
1217
|
+
};
|
|
1218
|
+
const Provider: React.FC<{
|
|
1219
|
+
children: React.ReactNode;
|
|
1220
|
+
service: StencilClient.Service;
|
|
1221
|
+
}>;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
declare namespace WrenchComposerApi {
|
|
1226
|
+
interface Nav {
|
|
1227
|
+
value?: string | null;
|
|
1228
|
+
}
|
|
1229
|
+
interface TabData {
|
|
1230
|
+
nav?: Nav;
|
|
1231
|
+
withNav(nav: Nav): TabData;
|
|
1232
|
+
}
|
|
1233
|
+
interface Tab extends BurgerApi.TabSession<TabData> {
|
|
1234
|
+
}
|
|
1235
|
+
interface DebugSession {
|
|
1236
|
+
error?: HdesApi.StoreError;
|
|
1237
|
+
debug?: HdesApi.DebugResponse;
|
|
1238
|
+
csv?: string;
|
|
1239
|
+
json?: string;
|
|
1240
|
+
selected: HdesApi.EntityId;
|
|
1241
|
+
inputType: DebugInputType;
|
|
1242
|
+
}
|
|
1243
|
+
type DebugInputType = "CSV" | "JSON";
|
|
1244
|
+
interface DebugSessions {
|
|
1245
|
+
selected?: HdesApi.EntityId;
|
|
1246
|
+
values: Record<HdesApi.EntityId, DebugSession>;
|
|
1247
|
+
}
|
|
1248
|
+
interface PageUpdate {
|
|
1249
|
+
saved: boolean;
|
|
1250
|
+
origin: HdesApi.Entity<any>;
|
|
1251
|
+
value: HdesApi.AstCommand[];
|
|
1252
|
+
withValue(value: HdesApi.AstCommand[]): PageUpdate;
|
|
1253
|
+
}
|
|
1254
|
+
interface Session {
|
|
1255
|
+
site: HdesApi.Site;
|
|
1256
|
+
pages: Record<HdesApi.EntityId, PageUpdate>;
|
|
1257
|
+
debug: DebugSessions;
|
|
1258
|
+
branchName?: string;
|
|
1259
|
+
getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
|
|
1260
|
+
getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
|
|
1261
|
+
getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
|
|
1262
|
+
getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
|
|
1263
|
+
withDebug(page: DebugSession): Session;
|
|
1264
|
+
withPage(page: HdesApi.EntityId): Session;
|
|
1265
|
+
withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
|
|
1266
|
+
withoutPages(pages: HdesApi.EntityId[]): Session;
|
|
1267
|
+
withBranch(branchName?: string): Session;
|
|
1268
|
+
withSite(site: HdesApi.Site): Session;
|
|
1269
|
+
}
|
|
1270
|
+
interface Actions {
|
|
1271
|
+
handleLoad(): Promise<void>;
|
|
1272
|
+
handleLoadSite(site?: HdesApi.Site): Promise<void>;
|
|
1273
|
+
handleDebugUpdate(debug: DebugSession): void;
|
|
1274
|
+
handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
|
|
1275
|
+
handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
|
|
1276
|
+
handleBranchUpdate(branchName?: string): void;
|
|
1277
|
+
}
|
|
1278
|
+
interface ContextType {
|
|
1279
|
+
session: Session;
|
|
1280
|
+
actions: Actions;
|
|
1281
|
+
service: HdesApi.Service;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
declare namespace WrenchComposerApi {
|
|
1287
|
+
const createTab: (props: {
|
|
1288
|
+
nav: Nav;
|
|
1289
|
+
page?: HdesApi.Entity<any>;
|
|
1290
|
+
}) => ImmutableTabData;
|
|
1291
|
+
const ComposerContext: React.Context<ContextType>;
|
|
1292
|
+
const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
|
|
1293
|
+
const useComposer: () => {
|
|
1294
|
+
session: Session;
|
|
1295
|
+
service: HdesApi.Service;
|
|
1296
|
+
actions: Actions;
|
|
1297
|
+
site: HdesApi.Site;
|
|
1298
|
+
isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
|
|
1299
|
+
};
|
|
1300
|
+
const useSite: () => HdesApi.Site;
|
|
1301
|
+
const useBranchName: () => string | undefined;
|
|
1302
|
+
const useSession: () => Session;
|
|
1303
|
+
const useNav: () => {
|
|
1304
|
+
handleInTab: (props: {
|
|
1305
|
+
article: HdesApi.Entity<any>;
|
|
1306
|
+
}) => void;
|
|
1307
|
+
findTab: (article: HdesApi.Entity<any>) => Tab | undefined;
|
|
1308
|
+
};
|
|
1309
|
+
const useDebug: () => {
|
|
1310
|
+
handleDebugInit: (selected: HdesApi.EntityId) => void;
|
|
1311
|
+
};
|
|
1312
|
+
const Provider: React.FC<{
|
|
1313
|
+
children: React.ReactNode;
|
|
1314
|
+
service: HdesApi.Service;
|
|
1315
|
+
}>;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
1318
|
declare namespace Decision {
|
|
1319
1319
|
const Table: import("react").FC<{
|
|
1320
1320
|
ast: import("../../client").HdesApi.AstDecision;
|
|
@@ -1390,8 +1390,8 @@ declare namespace Vis {
|
|
|
1390
1390
|
|
|
1391
1391
|
declare namespace GraphAPI {
|
|
1392
1392
|
const create: (props: {
|
|
1393
|
-
fl:
|
|
1394
|
-
models:
|
|
1393
|
+
fl: HdesApi.AstFlow;
|
|
1394
|
+
models: HdesApi.Site;
|
|
1395
1395
|
}) => Vis.Model;
|
|
1396
1396
|
}
|
|
1397
1397
|
|
package/build/index.js
CHANGED
|
@@ -84848,7 +84848,7 @@ var wk;
|
|
|
84848
84848
|
id: o.article.id,
|
|
84849
84849
|
label: o.article.body.name,
|
|
84850
84850
|
icon: l,
|
|
84851
|
-
data: e.createTab({ nav: a })
|
|
84851
|
+
data: (0, e.createTab)({ nav: a })
|
|
84852
84852
|
};
|
|
84853
84853
|
r.session.findTab(o.article.id) !== void 0 ? r.actions.handleTabData(o.article.id, (p) => p.withNav(a)) : r.actions.handleTabAdd(u);
|
|
84854
84854
|
}, findTab: (o) => {
|
|
@@ -92942,7 +92942,7 @@ const I7e = ({ site: e }) => {
|
|
|
92942
92942
|
] })
|
|
92943
92943
|
}
|
|
92944
92944
|
);
|
|
92945
|
-
}, h0 = { tag: "eveli-ide-0.0.
|
|
92945
|
+
}, h0 = { tag: "eveli-ide-0.0.15", built: "11/10/2024" }, P7e = (e, t, n) => {
|
|
92946
92946
|
var r, i, s, o, a, l, u, d;
|
|
92947
92947
|
return [
|
|
92948
92948
|
{
|
|
@@ -93323,7 +93323,7 @@ var Dk;
|
|
|
93323
93323
|
id: o.article.id,
|
|
93324
93324
|
label: o.article.ast ? (p = o.article.ast) == null ? void 0 : p.name : o.article.id,
|
|
93325
93325
|
icon: l,
|
|
93326
|
-
data: e.createTab({ nav: a })
|
|
93326
|
+
data: (0, e.createTab)({ nav: a })
|
|
93327
93327
|
};
|
|
93328
93328
|
r.session.findTab(o.article.id) !== void 0 ? r.actions.handleTabData(o.article.id, (g) => g.withNav(a)) : r.actions.handleTabAdd(u);
|
|
93329
93329
|
}, findTab: (o) => {
|