@dxs-ts/eveli-ide 0.0.7 → 0.0.8
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 +150 -150
- package/build/index.js +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -514,156 +514,6 @@ declare namespace HdesClient {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
-
|
|
518
|
-
declare namespace Composer {
|
|
519
|
-
interface SearchData {
|
|
520
|
-
values: readonly SearchDataEntry[];
|
|
521
|
-
filterLinks(keyword: string): readonly SearchResult[];
|
|
522
|
-
filterWorkflows(keyword: string): readonly SearchResult[];
|
|
523
|
-
filterArticles(keyword: string): readonly SearchResult[];
|
|
524
|
-
}
|
|
525
|
-
interface SearchDataEntry {
|
|
526
|
-
id: string;
|
|
527
|
-
type: "ARTICLE" | "LINK" | "WORKFLOW";
|
|
528
|
-
values: readonly SearchableValue[];
|
|
529
|
-
}
|
|
530
|
-
interface SearchResult {
|
|
531
|
-
source: SearchDataEntry;
|
|
532
|
-
matches: SearchableValue[];
|
|
533
|
-
}
|
|
534
|
-
interface SearchableValue {
|
|
535
|
-
id: string;
|
|
536
|
-
value: string;
|
|
537
|
-
type: "ARTICLE_NAME" | "ARTICLE_PAGE" | "WORKFLOW_NAME" | "WORKFLOW_LABEL" | "LINK_VALUE" | "LINK_LABEL";
|
|
538
|
-
}
|
|
539
|
-
type NavType = "ARTICLE_LINKS" | "ARTICLE_WORKFLOWS" | "ARTICLE_PAGES";
|
|
540
|
-
interface Nav {
|
|
541
|
-
type: NavType;
|
|
542
|
-
value?: string | null;
|
|
543
|
-
value2?: string | null;
|
|
544
|
-
}
|
|
545
|
-
interface TabData {
|
|
546
|
-
nav?: Nav;
|
|
547
|
-
withNav(nav: Nav): TabData;
|
|
548
|
-
}
|
|
549
|
-
interface Tab extends Burger.TabSession<TabData> {
|
|
550
|
-
}
|
|
551
|
-
interface PageUpdate {
|
|
552
|
-
saved: boolean;
|
|
553
|
-
origin: StencilClient.Page;
|
|
554
|
-
value: StencilClient.LocalisedContent;
|
|
555
|
-
withValue(value: StencilClient.LocalisedContent): PageUpdate;
|
|
556
|
-
}
|
|
557
|
-
interface SessionFilter {
|
|
558
|
-
locale?: StencilClient.LocaleId;
|
|
559
|
-
withLocale(locale?: StencilClient.LocaleId): SessionFilter;
|
|
560
|
-
}
|
|
561
|
-
interface Session {
|
|
562
|
-
site: StencilClient.Site;
|
|
563
|
-
pages: Record<StencilClient.PageId, PageUpdate>;
|
|
564
|
-
articles: ArticleView[];
|
|
565
|
-
workflows: WorkflowView[];
|
|
566
|
-
links: LinkView[];
|
|
567
|
-
search: SearchData;
|
|
568
|
-
filter: SessionFilter;
|
|
569
|
-
getArticleName(articleId: StencilClient.ArticleId): {
|
|
570
|
-
missing: boolean;
|
|
571
|
-
name: string;
|
|
572
|
-
};
|
|
573
|
-
getArticleView(articleId: StencilClient.ArticleId): ArticleView;
|
|
574
|
-
getLinkView(linkId: StencilClient.LinkId): LinkView;
|
|
575
|
-
getLinkName(linkId: StencilClient.LinkId): {
|
|
576
|
-
missing: boolean;
|
|
577
|
-
name: string;
|
|
578
|
-
};
|
|
579
|
-
getWorkflowView(workflowId: StencilClient.WorkflowId): WorkflowView;
|
|
580
|
-
getWorkflowName(workflowId: StencilClient.WorkflowId): {
|
|
581
|
-
missing: boolean;
|
|
582
|
-
name: string;
|
|
583
|
-
};
|
|
584
|
-
getArticlesForLocale(locale: StencilClient.LocaleId): StencilClient.Article[];
|
|
585
|
-
getArticlesForLocales(locales: StencilClient.LocaleId[]): StencilClient.Article[];
|
|
586
|
-
withPage(page: StencilClient.PageId): Session;
|
|
587
|
-
withPageValue(page: StencilClient.PageId, value: StencilClient.LocalisedContent): Session;
|
|
588
|
-
withoutPages(pages: StencilClient.PageId[]): Session;
|
|
589
|
-
withLocaleFilter(locale?: StencilClient.LocaleId): Session;
|
|
590
|
-
withSite(site: StencilClient.Site): Session;
|
|
591
|
-
}
|
|
592
|
-
interface Actions {
|
|
593
|
-
handleLoad(): Promise<void>;
|
|
594
|
-
handleLoadSite(): Promise<void>;
|
|
595
|
-
handlePageUpdate(page: StencilClient.PageId, value: StencilClient.LocalisedContent): void;
|
|
596
|
-
handlePageUpdateRemove(pages: StencilClient.PageId[]): void;
|
|
597
|
-
handleLocaleFilter(locale?: StencilClient.LocaleId): void;
|
|
598
|
-
}
|
|
599
|
-
interface ContextType {
|
|
600
|
-
session: Session;
|
|
601
|
-
actions: Actions;
|
|
602
|
-
service: StencilClient.Service;
|
|
603
|
-
}
|
|
604
|
-
interface ArticleView {
|
|
605
|
-
article: StencilClient.Article;
|
|
606
|
-
pages: PageView[];
|
|
607
|
-
canCreate: StencilClient.SiteLocale[];
|
|
608
|
-
links: LinkView[];
|
|
609
|
-
workflows: WorkflowView[];
|
|
610
|
-
children: Composer.ArticleView[];
|
|
611
|
-
displayOrder: number;
|
|
612
|
-
getPageById(pageId: StencilClient.PageId): PageView;
|
|
613
|
-
getPageByLocaleId(localeId: StencilClient.LocaleId): PageView;
|
|
614
|
-
findPageByLocaleId(localeId: StencilClient.LocaleId): PageView | undefined;
|
|
615
|
-
}
|
|
616
|
-
interface PageView {
|
|
617
|
-
title: string;
|
|
618
|
-
page: StencilClient.Page;
|
|
619
|
-
locale: StencilClient.SiteLocale;
|
|
620
|
-
}
|
|
621
|
-
interface LinkView {
|
|
622
|
-
link: StencilClient.Link;
|
|
623
|
-
labels: LabelView[];
|
|
624
|
-
}
|
|
625
|
-
interface WorkflowView {
|
|
626
|
-
workflow: StencilClient.Workflow;
|
|
627
|
-
labels: LabelView[];
|
|
628
|
-
}
|
|
629
|
-
interface LabelView {
|
|
630
|
-
label: StencilClient.LocaleLabel;
|
|
631
|
-
locale: StencilClient.SiteLocale;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
declare namespace Composer {
|
|
637
|
-
const createTab: (props: {
|
|
638
|
-
nav: Composer.Nav;
|
|
639
|
-
page?: StencilClient.Page;
|
|
640
|
-
}) => ImmutableTabData;
|
|
641
|
-
const ComposerContext: React.Context<ContextType>;
|
|
642
|
-
const useUnsaved: (article: StencilClient.Article) => boolean;
|
|
643
|
-
const useComposer: () => {
|
|
644
|
-
session: Session;
|
|
645
|
-
service: StencilClient.Service;
|
|
646
|
-
actions: Actions;
|
|
647
|
-
site: StencilClient.Site;
|
|
648
|
-
isArticleSaved: (article: StencilClient.Article) => boolean;
|
|
649
|
-
};
|
|
650
|
-
const useSite: () => StencilClient.Site;
|
|
651
|
-
const useSession: () => Session;
|
|
652
|
-
const useNav: () => {
|
|
653
|
-
handleInTab: (props: {
|
|
654
|
-
article: StencilClient.Article;
|
|
655
|
-
type: Composer.NavType;
|
|
656
|
-
locale?: string | null;
|
|
657
|
-
secondary?: boolean;
|
|
658
|
-
}) => void;
|
|
659
|
-
findTab: (article: StencilClient.Article) => Composer.Tab | undefined;
|
|
660
|
-
};
|
|
661
|
-
const Provider: React.FC<{
|
|
662
|
-
children: React.ReactNode;
|
|
663
|
-
service: StencilClient.Service;
|
|
664
|
-
}>;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
517
|
declare namespace StencilClient {
|
|
668
518
|
type PageId = string;
|
|
669
519
|
type LinkId = string;
|
|
@@ -945,6 +795,156 @@ declare namespace StencilClient {
|
|
|
945
795
|
}
|
|
946
796
|
|
|
947
797
|
|
|
798
|
+
declare namespace Composer {
|
|
799
|
+
interface SearchData {
|
|
800
|
+
values: readonly SearchDataEntry[];
|
|
801
|
+
filterLinks(keyword: string): readonly SearchResult[];
|
|
802
|
+
filterWorkflows(keyword: string): readonly SearchResult[];
|
|
803
|
+
filterArticles(keyword: string): readonly SearchResult[];
|
|
804
|
+
}
|
|
805
|
+
interface SearchDataEntry {
|
|
806
|
+
id: string;
|
|
807
|
+
type: "ARTICLE" | "LINK" | "WORKFLOW";
|
|
808
|
+
values: readonly SearchableValue[];
|
|
809
|
+
}
|
|
810
|
+
interface SearchResult {
|
|
811
|
+
source: SearchDataEntry;
|
|
812
|
+
matches: SearchableValue[];
|
|
813
|
+
}
|
|
814
|
+
interface SearchableValue {
|
|
815
|
+
id: string;
|
|
816
|
+
value: string;
|
|
817
|
+
type: "ARTICLE_NAME" | "ARTICLE_PAGE" | "WORKFLOW_NAME" | "WORKFLOW_LABEL" | "LINK_VALUE" | "LINK_LABEL";
|
|
818
|
+
}
|
|
819
|
+
type NavType = "ARTICLE_LINKS" | "ARTICLE_WORKFLOWS" | "ARTICLE_PAGES";
|
|
820
|
+
interface Nav {
|
|
821
|
+
type: NavType;
|
|
822
|
+
value?: string | null;
|
|
823
|
+
value2?: string | null;
|
|
824
|
+
}
|
|
825
|
+
interface TabData {
|
|
826
|
+
nav?: Nav;
|
|
827
|
+
withNav(nav: Nav): TabData;
|
|
828
|
+
}
|
|
829
|
+
interface Tab extends Burger.TabSession<TabData> {
|
|
830
|
+
}
|
|
831
|
+
interface PageUpdate {
|
|
832
|
+
saved: boolean;
|
|
833
|
+
origin: StencilClient.Page;
|
|
834
|
+
value: StencilClient.LocalisedContent;
|
|
835
|
+
withValue(value: StencilClient.LocalisedContent): PageUpdate;
|
|
836
|
+
}
|
|
837
|
+
interface SessionFilter {
|
|
838
|
+
locale?: StencilClient.LocaleId;
|
|
839
|
+
withLocale(locale?: StencilClient.LocaleId): SessionFilter;
|
|
840
|
+
}
|
|
841
|
+
interface Session {
|
|
842
|
+
site: StencilClient.Site;
|
|
843
|
+
pages: Record<StencilClient.PageId, PageUpdate>;
|
|
844
|
+
articles: ArticleView[];
|
|
845
|
+
workflows: WorkflowView[];
|
|
846
|
+
links: LinkView[];
|
|
847
|
+
search: SearchData;
|
|
848
|
+
filter: SessionFilter;
|
|
849
|
+
getArticleName(articleId: StencilClient.ArticleId): {
|
|
850
|
+
missing: boolean;
|
|
851
|
+
name: string;
|
|
852
|
+
};
|
|
853
|
+
getArticleView(articleId: StencilClient.ArticleId): ArticleView;
|
|
854
|
+
getLinkView(linkId: StencilClient.LinkId): LinkView;
|
|
855
|
+
getLinkName(linkId: StencilClient.LinkId): {
|
|
856
|
+
missing: boolean;
|
|
857
|
+
name: string;
|
|
858
|
+
};
|
|
859
|
+
getWorkflowView(workflowId: StencilClient.WorkflowId): WorkflowView;
|
|
860
|
+
getWorkflowName(workflowId: StencilClient.WorkflowId): {
|
|
861
|
+
missing: boolean;
|
|
862
|
+
name: string;
|
|
863
|
+
};
|
|
864
|
+
getArticlesForLocale(locale: StencilClient.LocaleId): StencilClient.Article[];
|
|
865
|
+
getArticlesForLocales(locales: StencilClient.LocaleId[]): StencilClient.Article[];
|
|
866
|
+
withPage(page: StencilClient.PageId): Session;
|
|
867
|
+
withPageValue(page: StencilClient.PageId, value: StencilClient.LocalisedContent): Session;
|
|
868
|
+
withoutPages(pages: StencilClient.PageId[]): Session;
|
|
869
|
+
withLocaleFilter(locale?: StencilClient.LocaleId): Session;
|
|
870
|
+
withSite(site: StencilClient.Site): Session;
|
|
871
|
+
}
|
|
872
|
+
interface Actions {
|
|
873
|
+
handleLoad(): Promise<void>;
|
|
874
|
+
handleLoadSite(): Promise<void>;
|
|
875
|
+
handlePageUpdate(page: StencilClient.PageId, value: StencilClient.LocalisedContent): void;
|
|
876
|
+
handlePageUpdateRemove(pages: StencilClient.PageId[]): void;
|
|
877
|
+
handleLocaleFilter(locale?: StencilClient.LocaleId): void;
|
|
878
|
+
}
|
|
879
|
+
interface ContextType {
|
|
880
|
+
session: Session;
|
|
881
|
+
actions: Actions;
|
|
882
|
+
service: StencilClient.Service;
|
|
883
|
+
}
|
|
884
|
+
interface ArticleView {
|
|
885
|
+
article: StencilClient.Article;
|
|
886
|
+
pages: PageView[];
|
|
887
|
+
canCreate: StencilClient.SiteLocale[];
|
|
888
|
+
links: LinkView[];
|
|
889
|
+
workflows: WorkflowView[];
|
|
890
|
+
children: Composer.ArticleView[];
|
|
891
|
+
displayOrder: number;
|
|
892
|
+
getPageById(pageId: StencilClient.PageId): PageView;
|
|
893
|
+
getPageByLocaleId(localeId: StencilClient.LocaleId): PageView;
|
|
894
|
+
findPageByLocaleId(localeId: StencilClient.LocaleId): PageView | undefined;
|
|
895
|
+
}
|
|
896
|
+
interface PageView {
|
|
897
|
+
title: string;
|
|
898
|
+
page: StencilClient.Page;
|
|
899
|
+
locale: StencilClient.SiteLocale;
|
|
900
|
+
}
|
|
901
|
+
interface LinkView {
|
|
902
|
+
link: StencilClient.Link;
|
|
903
|
+
labels: LabelView[];
|
|
904
|
+
}
|
|
905
|
+
interface WorkflowView {
|
|
906
|
+
workflow: StencilClient.Workflow;
|
|
907
|
+
labels: LabelView[];
|
|
908
|
+
}
|
|
909
|
+
interface LabelView {
|
|
910
|
+
label: StencilClient.LocaleLabel;
|
|
911
|
+
locale: StencilClient.SiteLocale;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
declare namespace Composer {
|
|
917
|
+
const createTab: (props: {
|
|
918
|
+
nav: Composer.Nav;
|
|
919
|
+
page?: StencilClient.Page;
|
|
920
|
+
}) => ImmutableTabData;
|
|
921
|
+
const ComposerContext: React.Context<ContextType>;
|
|
922
|
+
const useUnsaved: (article: StencilClient.Article) => boolean;
|
|
923
|
+
const useComposer: () => {
|
|
924
|
+
session: Session;
|
|
925
|
+
service: StencilClient.Service;
|
|
926
|
+
actions: Actions;
|
|
927
|
+
site: StencilClient.Site;
|
|
928
|
+
isArticleSaved: (article: StencilClient.Article) => boolean;
|
|
929
|
+
};
|
|
930
|
+
const useSite: () => StencilClient.Site;
|
|
931
|
+
const useSession: () => Session;
|
|
932
|
+
const useNav: () => {
|
|
933
|
+
handleInTab: (props: {
|
|
934
|
+
article: StencilClient.Article;
|
|
935
|
+
type: Composer.NavType;
|
|
936
|
+
locale?: string | null;
|
|
937
|
+
secondary?: boolean;
|
|
938
|
+
}) => void;
|
|
939
|
+
findTab: (article: StencilClient.Article) => Composer.Tab | undefined;
|
|
940
|
+
};
|
|
941
|
+
const Provider: React.FC<{
|
|
942
|
+
children: React.ReactNode;
|
|
943
|
+
service: StencilClient.Service;
|
|
944
|
+
}>;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
|
|
948
948
|
declare namespace Composer {
|
|
949
949
|
interface Nav {
|
|
950
950
|
value?: string | null;
|
package/build/index.js
CHANGED
|
@@ -92946,7 +92946,7 @@ const L7e = ({ site: e }) => {
|
|
|
92946
92946
|
] })
|
|
92947
92947
|
}
|
|
92948
92948
|
);
|
|
92949
|
-
}, i0 = { tag: "eveli-ide-0.0.
|
|
92949
|
+
}, i0 = { tag: "eveli-ide-0.0.8", built: "11/10/2024" }, B7e = (e, t, n) => {
|
|
92950
92950
|
var r, i, s, o, a, l, u, d;
|
|
92951
92951
|
return [
|
|
92952
92952
|
{
|