jamespot-front-business 1.1.82 → 1.1.83
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/dist/cjs.js +157 -82
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +157 -82
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +225 -9
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -3481,7 +3481,9 @@ type CommentRootState = {
|
|
|
3481
3481
|
};
|
|
3482
3482
|
type CommentsList = {
|
|
3483
3483
|
idArticle: number;
|
|
3484
|
-
list: jCommentList
|
|
3484
|
+
list: Array<jCommentList & {
|
|
3485
|
+
pending?: boolean;
|
|
3486
|
+
}>;
|
|
3485
3487
|
};
|
|
3486
3488
|
type CommentListState = Loading & {
|
|
3487
3489
|
comments: Array<CommentsList>;
|
|
@@ -3811,9 +3813,202 @@ declare const Comment: {
|
|
|
3811
3813
|
fulfilledMeta?: unknown;
|
|
3812
3814
|
rejectedMeta?: unknown;
|
|
3813
3815
|
}>;
|
|
3816
|
+
deleteComment: _reduxjs_toolkit.AsyncThunk<boolean, {
|
|
3817
|
+
idComment: number;
|
|
3818
|
+
idArticle: number;
|
|
3819
|
+
}, {
|
|
3820
|
+
dispatch: any;
|
|
3821
|
+
state: Partial<AdminLogsRootState & AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
|
|
3822
|
+
widgets: {
|
|
3823
|
+
layers: Record<string, {
|
|
3824
|
+
title: string;
|
|
3825
|
+
visible: boolean;
|
|
3826
|
+
widgets: jamespot_user_api.WidgetWrapperGeneric<({
|
|
3827
|
+
layers?: string[] | undefined;
|
|
3828
|
+
} & jamespot_user_api.WidgetArticleAttachmentType) | ({
|
|
3829
|
+
layers?: string[] | undefined;
|
|
3830
|
+
} & jamespot_user_api.WidgetArticleButtonType) | ({
|
|
3831
|
+
layers?: string[] | undefined;
|
|
3832
|
+
} & jamespot_user_api.WidgetArticleGalleryType) | ({
|
|
3833
|
+
layers?: string[] | undefined;
|
|
3834
|
+
} & jamespot_user_api.WidgetArticleImageType) | ({
|
|
3835
|
+
layers?: string[] | undefined;
|
|
3836
|
+
} & jamespot_user_api.WidgetArticleTitleType) | ({
|
|
3837
|
+
layers?: string[] | undefined;
|
|
3838
|
+
} & jamespot_user_api.WidgetArticleTextType) | ({
|
|
3839
|
+
layers?: string[] | undefined;
|
|
3840
|
+
} & jamespot_user_api.WidgetArticleSliderType) | ({
|
|
3841
|
+
layers?: string[] | undefined;
|
|
3842
|
+
} & jamespot_user_api.WidgetType<{
|
|
3843
|
+
widgets?: jamespot_user_api.WidgetBaseType[] | undefined;
|
|
3844
|
+
arr?: jamespot_user_api.WidgetCheckListContentArr[] | undefined;
|
|
3845
|
+
css?: Record<string, string> | undefined;
|
|
3846
|
+
edit?: boolean | undefined;
|
|
3847
|
+
}>) | ({
|
|
3848
|
+
layers?: string[] | undefined;
|
|
3849
|
+
} & jamespot_user_api.WidgetDatasourceTableType) | ({
|
|
3850
|
+
layers?: string[] | undefined;
|
|
3851
|
+
} & {
|
|
3852
|
+
name: jamespot_user_api.WidgetsName.ExcelDatasourceTable;
|
|
3853
|
+
uniqid: string;
|
|
3854
|
+
content: {
|
|
3855
|
+
uri?: string | undefined;
|
|
3856
|
+
limit?: number | boolean | undefined;
|
|
3857
|
+
tableColumnsData?: {
|
|
3858
|
+
name?: string | undefined;
|
|
3859
|
+
label?: string | undefined;
|
|
3860
|
+
isVisible?: boolean | undefined;
|
|
3861
|
+
textEllipsis?: boolean | undefined;
|
|
3862
|
+
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
3863
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
3864
|
+
}[] | undefined;
|
|
3865
|
+
tableHeadColor?: string | undefined;
|
|
3866
|
+
tableHeadTextColor?: string | undefined;
|
|
3867
|
+
tableHeadIconColor?: string | undefined;
|
|
3868
|
+
tableRowColor?: string | undefined;
|
|
3869
|
+
tableRowTextColor?: string | undefined;
|
|
3870
|
+
tableBorderRadius?: number | undefined;
|
|
3871
|
+
tableSizedColumns?: boolean | undefined;
|
|
3872
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
3873
|
+
};
|
|
3874
|
+
}) | ({
|
|
3875
|
+
layers?: string[] | undefined;
|
|
3876
|
+
} & jamespot_user_api.WidgetPresenceType) | ({
|
|
3877
|
+
layers?: string[] | undefined;
|
|
3878
|
+
} & jamespot_user_api.WidgetQuickSurveyType)>[];
|
|
3879
|
+
uniqid: string;
|
|
3880
|
+
locked: boolean;
|
|
3881
|
+
position?: {
|
|
3882
|
+
x: number;
|
|
3883
|
+
y: number;
|
|
3884
|
+
} | undefined;
|
|
3885
|
+
}>;
|
|
3886
|
+
ids: Record<string, jamespot_user_api.WidgetWrapperGeneric<({
|
|
3887
|
+
layers?: string[] | undefined;
|
|
3888
|
+
} & jamespot_user_api.WidgetArticleAttachmentType) | ({
|
|
3889
|
+
layers?: string[] | undefined;
|
|
3890
|
+
} & jamespot_user_api.WidgetArticleButtonType) | ({
|
|
3891
|
+
layers?: string[] | undefined;
|
|
3892
|
+
} & jamespot_user_api.WidgetArticleGalleryType) | ({
|
|
3893
|
+
layers?: string[] | undefined;
|
|
3894
|
+
} & jamespot_user_api.WidgetArticleImageType) | ({
|
|
3895
|
+
layers?: string[] | undefined;
|
|
3896
|
+
} & jamespot_user_api.WidgetArticleTitleType) | ({
|
|
3897
|
+
layers?: string[] | undefined;
|
|
3898
|
+
} & jamespot_user_api.WidgetArticleTextType) | ({
|
|
3899
|
+
layers?: string[] | undefined;
|
|
3900
|
+
} & jamespot_user_api.WidgetArticleSliderType) | ({
|
|
3901
|
+
layers?: string[] | undefined;
|
|
3902
|
+
} & jamespot_user_api.WidgetType<{
|
|
3903
|
+
widgets?: jamespot_user_api.WidgetBaseType[] | undefined;
|
|
3904
|
+
arr?: jamespot_user_api.WidgetCheckListContentArr[] | undefined;
|
|
3905
|
+
css?: Record<string, string> | undefined;
|
|
3906
|
+
edit?: boolean | undefined;
|
|
3907
|
+
}>) | ({
|
|
3908
|
+
layers?: string[] | undefined;
|
|
3909
|
+
} & jamespot_user_api.WidgetDatasourceTableType) | ({
|
|
3910
|
+
layers?: string[] | undefined;
|
|
3911
|
+
} & {
|
|
3912
|
+
name: jamespot_user_api.WidgetsName.ExcelDatasourceTable;
|
|
3913
|
+
uniqid: string;
|
|
3914
|
+
content: {
|
|
3915
|
+
uri?: string | undefined;
|
|
3916
|
+
limit?: number | boolean | undefined;
|
|
3917
|
+
tableColumnsData?: {
|
|
3918
|
+
name?: string | undefined;
|
|
3919
|
+
label?: string | undefined;
|
|
3920
|
+
isVisible?: boolean | undefined;
|
|
3921
|
+
textEllipsis?: boolean | undefined;
|
|
3922
|
+
dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
3923
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
3924
|
+
}[] | undefined;
|
|
3925
|
+
tableHeadColor?: string | undefined;
|
|
3926
|
+
tableHeadTextColor?: string | undefined;
|
|
3927
|
+
tableHeadIconColor?: string | undefined;
|
|
3928
|
+
tableRowColor?: string | undefined;
|
|
3929
|
+
tableRowTextColor?: string | undefined;
|
|
3930
|
+
tableBorderRadius?: number | undefined;
|
|
3931
|
+
tableSizedColumns?: boolean | undefined;
|
|
3932
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
3933
|
+
};
|
|
3934
|
+
}) | ({
|
|
3935
|
+
layers?: string[] | undefined;
|
|
3936
|
+
} & jamespot_user_api.WidgetPresenceType) | ({
|
|
3937
|
+
layers?: string[] | undefined;
|
|
3938
|
+
} & jamespot_user_api.WidgetQuickSurveyType)>>;
|
|
3939
|
+
states: Record<string, {
|
|
3940
|
+
busy?: boolean | undefined;
|
|
3941
|
+
loading?: boolean | undefined;
|
|
3942
|
+
initialized?: boolean | undefined;
|
|
3943
|
+
mounted?: boolean | undefined;
|
|
3944
|
+
hover?: boolean | undefined;
|
|
3945
|
+
empty?: boolean | undefined;
|
|
3946
|
+
locked?: boolean | undefined;
|
|
3947
|
+
}>;
|
|
3948
|
+
editableMap: Record<string, {
|
|
3949
|
+
uniqid: string;
|
|
3950
|
+
index: number;
|
|
3951
|
+
}>;
|
|
3952
|
+
currentEditableIndex: number;
|
|
3953
|
+
widgetObject: Record<string, {
|
|
3954
|
+
type?: string | undefined;
|
|
3955
|
+
id?: number | undefined;
|
|
3956
|
+
mainType?: string | undefined;
|
|
3957
|
+
uri?: string | undefined;
|
|
3958
|
+
dateCreation?: string | undefined;
|
|
3959
|
+
dateModified?: string | null | undefined;
|
|
3960
|
+
title?: string | undefined;
|
|
3961
|
+
_url?: string | undefined;
|
|
3962
|
+
}>;
|
|
3963
|
+
widgetObjectRights: Record<string, jamespot_user_api.Rights>;
|
|
3964
|
+
widgetAuthor: Record<string, zod.objectOutputType<{
|
|
3965
|
+
id: zod.ZodOptional<zod.ZodType<number, zod.ZodTypeDef, number>>;
|
|
3966
|
+
mainType: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
|
|
3967
|
+
type: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
|
|
3968
|
+
uri: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
|
|
3969
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
3970
|
+
_url: zod.ZodOptional<zod.ZodString>;
|
|
3971
|
+
level: zod.ZodOptional<zod.ZodNativeEnum<{
|
|
3972
|
+
readonly ADMIN: 9;
|
|
3973
|
+
readonly USER: 5;
|
|
3974
|
+
readonly EXTERNAL: 3;
|
|
3975
|
+
readonly GUEST: 0;
|
|
3976
|
+
}>>;
|
|
3977
|
+
dateCreation: zod.ZodOptional<zod.ZodString>;
|
|
3978
|
+
dateModified: zod.ZodOptional<zod.ZodString>;
|
|
3979
|
+
}, zod.ZodUnion<[zod.ZodNumber, zod.ZodNullable<zod.ZodString>, zod.ZodNullable<zod.ZodString>, zod.ZodNullable<zod.ZodString>, zod.ZodString, zod.ZodNumber, zod.ZodNullable<zod.ZodString>, zod.ZodString, zod.ZodString]>, "strip">>;
|
|
3980
|
+
flushedWidgets: string[];
|
|
3981
|
+
rtObjectStack: {
|
|
3982
|
+
object: jamespot_user_api.jObjectBase & {
|
|
3983
|
+
title: string;
|
|
3984
|
+
_url: string;
|
|
3985
|
+
};
|
|
3986
|
+
uniqid: string;
|
|
3987
|
+
fn: "widget-presence-response" | "check-list-response" | "widget-update" | "widget-quick-survey-response";
|
|
3988
|
+
}[];
|
|
3989
|
+
token?: string | undefined;
|
|
3990
|
+
modal?: {
|
|
3991
|
+
title?: string | undefined;
|
|
3992
|
+
view?: any;
|
|
3993
|
+
} | undefined;
|
|
3994
|
+
currentEditableWidgetId?: string | undefined;
|
|
3995
|
+
};
|
|
3996
|
+
} & WedocAppRootState & UserCurrentRootState> & CommentRootState;
|
|
3997
|
+
extra: {
|
|
3998
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
3999
|
+
};
|
|
4000
|
+
rejectValue: {
|
|
4001
|
+
error: number;
|
|
4002
|
+
errorMsg: string;
|
|
4003
|
+
};
|
|
4004
|
+
serializedErrorType?: unknown;
|
|
4005
|
+
pendingMeta?: unknown;
|
|
4006
|
+
fulfilledMeta?: unknown;
|
|
4007
|
+
rejectedMeta?: unknown;
|
|
4008
|
+
}>;
|
|
3814
4009
|
};
|
|
3815
4010
|
selectors: {
|
|
3816
|
-
commentList: (state: CommentRootState, idArticle: number, limit?: number) => {
|
|
4011
|
+
commentList: (state: CommentRootState, idArticle: number, limit?: number) => ({
|
|
3817
4012
|
type: string;
|
|
3818
4013
|
id: number;
|
|
3819
4014
|
mainType: string;
|
|
@@ -3915,7 +4110,9 @@ declare const Comment: {
|
|
|
3915
4110
|
} & jamespot_user_api.WidgetPresenceType) | ({
|
|
3916
4111
|
layers?: string[] | undefined;
|
|
3917
4112
|
} & jamespot_user_api.WidgetQuickSurveyType)>[] | undefined;
|
|
3918
|
-
}
|
|
4113
|
+
} & {
|
|
4114
|
+
pending?: boolean;
|
|
4115
|
+
})[];
|
|
3919
4116
|
};
|
|
3920
4117
|
getCommentRTHandlers: (dispatch: RTDispatch, idArticle: number) => jamespot_user_api.RTMessageHandler<"JAMESPOT", "comment-create" | "comment-delete" | "comment-update" | "article-create" | "article-delete" | "article-update">[];
|
|
3921
4118
|
getCommentsLikeRTHandlers: (dispatch: RTDispatch, idComments: number[] | undefined, idArticle: number) => jamespot_user_api.RTMessageHandler<"CUSTOM-ACTION", "update" | "add" | "remove">[];
|
|
@@ -14727,12 +14924,31 @@ type AppFieldFormProperty = {
|
|
|
14727
14924
|
declare const AppFormUniqueList: ("IMAGE" | "DESCRIPTION")[];
|
|
14728
14925
|
declare const AppFormUniqueListCheck: string[];
|
|
14729
14926
|
declare const AppFormBannedFromViews: Map<AppFormItemTypesValues, ViewName[]>;
|
|
14730
|
-
type MappedExtraFieldsWithView = {
|
|
14731
|
-
fixed: ExtraAppFieldsItemViewsValues[];
|
|
14732
|
-
optional: ExtraAppFieldsItemViewsValues[];
|
|
14733
|
-
};
|
|
14734
14927
|
declare const MapExtraFieldsWithView: {
|
|
14735
|
-
|
|
14928
|
+
readonly create: {
|
|
14929
|
+
readonly fixed: readonly ["TITLE"];
|
|
14930
|
+
readonly optional: readonly ["PUBLISHTO", "SENDALERTTOSUBSCRIBERS", "RECEIVEACOPY"];
|
|
14931
|
+
};
|
|
14932
|
+
readonly popup: {
|
|
14933
|
+
readonly fixed: readonly ["TITLE"];
|
|
14934
|
+
readonly optional: readonly ["PUBLISHTO"];
|
|
14935
|
+
};
|
|
14936
|
+
readonly edit: {
|
|
14937
|
+
readonly fixed: readonly ["TITLE"];
|
|
14938
|
+
readonly optional: readonly ["PUBLISHTO"];
|
|
14939
|
+
};
|
|
14940
|
+
readonly list: {
|
|
14941
|
+
readonly fixed: readonly ["TITLE", "USER"];
|
|
14942
|
+
readonly optional: readonly ["CREATIONDATE"];
|
|
14943
|
+
};
|
|
14944
|
+
readonly filter: {
|
|
14945
|
+
readonly fixed: readonly ["TITLE", "USER"];
|
|
14946
|
+
readonly optional: readonly ["CREATIONDATE"];
|
|
14947
|
+
};
|
|
14948
|
+
readonly view: {
|
|
14949
|
+
readonly fixed: readonly ["TITLE"];
|
|
14950
|
+
readonly optional: readonly [];
|
|
14951
|
+
};
|
|
14736
14952
|
};
|
|
14737
14953
|
type AppFieldView = {
|
|
14738
14954
|
fieldIdRef: string;
|
|
@@ -14869,7 +15085,7 @@ interface InstalledApp {
|
|
|
14869
15085
|
color: string;
|
|
14870
15086
|
url: string;
|
|
14871
15087
|
type: string;
|
|
14872
|
-
urlTarget:
|
|
15088
|
+
urlTarget: '_blank';
|
|
14873
15089
|
description: string;
|
|
14874
15090
|
order: number;
|
|
14875
15091
|
studioVersion: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.83",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@reduxjs/toolkit": "1.9.0",
|
|
45
45
|
"@types/uuid": "^10.0.0",
|
|
46
|
-
"jamespot-user-api": "^1.0.
|
|
46
|
+
"jamespot-user-api": "^1.0.209",
|
|
47
47
|
"react-redux": "7.2.9",
|
|
48
48
|
"redux": "4.2.0",
|
|
49
49
|
"uuid": "^10.0.0"
|