jamespot-react-components 1.0.208 → 1.0.210

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.
@@ -25,6 +25,7 @@ type JRCApp365Props = {
25
25
  handleLogin?: boolean;
26
26
  onLogin?: (account: DriveAccount) => void;
27
27
  onLogout?: () => void;
28
+ currentAccount?: DriveAccount;
28
29
  };
29
- export declare const JRCApp365: ({ initialParams, initialFolder, initialFolderColor, useDocumentFilters, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError, driveRequests, handleLogin, onLogin, }: JRCApp365Props) => React.JSX.Element;
30
+ export declare const JRCApp365: ({ initialParams, initialFolder, initialFolderColor, useDocumentFilters, useFilter, useNavigation, onSelect, onSelectDocument, onSelectMultiDocument, onError, driveRequests, handleLogin, onLogin, currentAccount, }: JRCApp365Props) => React.JSX.Element;
30
31
  export {};
@@ -22,7 +22,12 @@ export declare const Primary: Story<{
22
22
  layers?: string[] | undefined;
23
23
  } & import("jamespot-user-api").WidgetArticleSliderType) | ({
24
24
  layers?: string[] | undefined;
25
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent>) | ({
25
+ } & import("jamespot-user-api").WidgetType<{
26
+ widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
27
+ arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
28
+ css?: Record<string, string> | undefined;
29
+ edit?: boolean | undefined;
30
+ }>) | ({
26
31
  layers?: string[] | undefined;
27
32
  } & import("jamespot-user-api").WidgetDatasourceTableType) | ({
28
33
  layers?: string[] | undefined;
@@ -52,7 +57,7 @@ export declare const Primary: Story<{
52
57
  }) | ({
53
58
  layers?: string[] | undefined;
54
59
  } & import("jamespot-user-api").WidgetPresenceType)>[] | undefined;
55
- } & (import("jamespot-user-api").WidgetCheckListContent | import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | import("jamespot-user-api").WidgetArticleSliderContent | {
60
+ } & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | import("jamespot-user-api").WidgetArticleSliderContent | {
56
61
  url?: string | undefined;
57
62
  target?: string | undefined;
58
63
  text?: string | undefined;
@@ -74,6 +79,11 @@ export declare const Primary: Story<{
74
79
  title: string;
75
80
  widgets: import("jamespot-user-api").WidgetBaseType[];
76
81
  } | undefined;
82
+ } | {
83
+ widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
84
+ arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
85
+ css?: Record<string, string> | undefined;
86
+ edit?: boolean | undefined;
77
87
  } | {
78
88
  uri?: string | undefined;
79
89
  limit?: number | boolean | undefined;
@@ -11,6 +11,7 @@ type JRCWidgetCheckListEditorProps = {
11
11
  token?: string;
12
12
  uniqid: string;
13
13
  content: WidgetCheckListContent;
14
+ canEditCollaboration: boolean;
14
15
  onChangeContent: (uniqid: string, content: {
15
16
  arr: WidgetCheckListContentArr[];
16
17
  }) => void;
@@ -20,7 +21,7 @@ type JRCWidgetCheckListEditorProps = {
20
21
  }) => void;
21
22
  onRemoveWidget?: (uniqid: string) => void;
22
23
  onSave?: (uniqid: string, content: Partial<CombinedWidgetContent>) => void;
23
- openEditorPanel?: (token: string) => void;
24
+ openEditorPanel?: (token: string, newComment?: boolean) => void;
24
25
  };
25
- export declare const JRCWidgetCheckListEditor: ({ token, uniqid, content, onChangeContent, onChangeWrapper, onRemoveWidget, onSave, openEditorPanel, }: JRCWidgetCheckListEditorProps) => React.JSX.Element;
26
+ export declare const JRCWidgetCheckListEditor: ({ token, uniqid, content, canEditCollaboration, onChangeContent, onChangeWrapper, onRemoveWidget, onSave, openEditorPanel, }: JRCWidgetCheckListEditorProps) => React.JSX.Element;
26
27
  export {};
@@ -16,7 +16,12 @@ export declare const useEditorContext: <T = EditorBaseContext<{
16
16
  layers?: string[] | undefined;
17
17
  } & import("jamespot-user-api").WidgetArticleSliderType) | ({
18
18
  layers?: string[] | undefined;
19
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent>) | ({
19
+ } & import("jamespot-user-api").WidgetType<{
20
+ widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
21
+ arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
22
+ css?: Record<string, string> | undefined;
23
+ edit?: boolean | undefined;
24
+ }>) | ({
20
25
  layers?: string[] | undefined;
21
26
  } & import("jamespot-user-api").WidgetDatasourceTableType) | ({
22
27
  layers?: string[] | undefined;
@@ -46,7 +51,7 @@ export declare const useEditorContext: <T = EditorBaseContext<{
46
51
  }) | ({
47
52
  layers?: string[] | undefined;
48
53
  } & import("jamespot-user-api").WidgetPresenceType)>[] | undefined;
49
- } & (import("jamespot-user-api").WidgetCheckListContent | import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | {
54
+ } & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | {
50
55
  url?: string | undefined;
51
56
  target?: string | undefined;
52
57
  text?: string | undefined;
@@ -69,6 +74,11 @@ export declare const useEditorContext: <T = EditorBaseContext<{
69
74
  widgets: import("jamespot-user-api").WidgetBaseType[];
70
75
  } | undefined;
71
76
  } | import("jamespot-user-api").WidgetArticleSliderContent | {
77
+ widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
78
+ arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
79
+ css?: Record<string, string> | undefined;
80
+ edit?: boolean | undefined;
81
+ } | {
72
82
  uri?: string | undefined;
73
83
  limit?: number | boolean | undefined;
74
84
  tableColumnsData?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.208",
3
+ "version": "1.0.210",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -80,7 +80,7 @@
80
80
  "chroma-js": "^2.1.1",
81
81
  "classnames": "^2.3.1",
82
82
  "dompurify": "^3.0.5",
83
- "jamespot-user-api": "^1.0.186",
83
+ "jamespot-user-api": "^1.0.187",
84
84
  "moment": "2.29.4",
85
85
  "react": "^17.x",
86
86
  "react-beautiful-dnd": "^13.1.1",