@planningcenter/topbar 9.10.0 → 9.11.0-rc.2
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/README.md +10 -3
- package/dist/topbar.css +1 -1
- package/dist/topbar.css.map +1 -1
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +1 -1
- package/dist/topbar.umd.js.map +1 -1
- package/dist/types/modules/api_request.d.ts +2 -2
- package/dist/types/modules/api_request.d.ts.map +1 -1
- package/dist/types/modules/components/notification_item.d.ts +2 -1
- package/dist/types/modules/components/notification_item.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_notifications.d.ts +1 -0
- package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/beta_badge.d.ts +2 -0
- package/dist/types/modules/toolbar/tools/chat/components/beta_badge.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/preview.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts +2 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_mute.d.ts +2 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_mute.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_unread.d.ts +10 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_unread.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_conversation_filters.d.ts +17 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_conversation_filters.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_groups_migration.d.ts +12 -0
- package/dist/types/modules/toolbar/tools/chat/hooks/use_groups_migration.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/index.d.ts +0 -1
- package/dist/types/modules/toolbar/tools/chat/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -1
- package/package.json +5 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type Fetch = typeof fetch;
|
|
2
2
|
export declare const defaultFetch: Fetch;
|
|
3
3
|
export declare const railsCsrfFetch: Fetch;
|
|
4
|
-
export default function apiRequest(fetch: Fetch, url: string, { method, data }?: {
|
|
4
|
+
export default function apiRequest<T = any>(fetch: Fetch, url: string, { method, data }?: {
|
|
5
5
|
method?: string;
|
|
6
6
|
data?: any;
|
|
7
7
|
}): Promise<{
|
|
8
|
-
json:
|
|
8
|
+
json: T;
|
|
9
9
|
ok: boolean;
|
|
10
10
|
response: Response;
|
|
11
11
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_request.d.ts","sourceRoot":"","sources":["../../../modules/api_request.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAA;AAYD,MAAM,CAAC,OAAO,UAAU,UAAU,
|
|
1
|
+
{"version":3,"file":"api_request.d.ts","sourceRoot":"","sources":["../../../modules/api_request.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAA;AAYD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,GAAG,GAAG,EACxC,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,EAAE,MAAc,EAAE,IAAW,EAAE;;;CAAK,GACnC,OAAO,CAAC;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC,CA0BvD"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Notification } from "../interfaces";
|
|
2
|
-
declare const NotificationItem: ({ mobile, isLast, onMarkAsRead, onToggleRead, showBottomBorder, notification, }: {
|
|
2
|
+
declare const NotificationItem: ({ mobile, isLast, onCreateTask, onMarkAsRead, onToggleRead, showBottomBorder, notification, }: {
|
|
3
3
|
isLast?: boolean;
|
|
4
4
|
mobile?: boolean;
|
|
5
5
|
notification: Notification;
|
|
6
|
+
onCreateTask: (notification: Notification) => Promise<any>;
|
|
6
7
|
onMarkAsRead?: (notification: Notification) => Promise<any>;
|
|
7
8
|
onToggleRead: any;
|
|
8
9
|
showBottomBorder?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification_item.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_item.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA2C5C,QAAA,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"notification_item.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_item.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA2C5C,QAAA,MAAM,gBAAgB;aASX,OAAO;aACP,OAAO;kBACF,YAAY;iCACG,YAAY,KAAK,QAAQ,GAAG,CAAC;kCAC5B,YAAY,KAAK,QAAQ,GAAG,CAAC;kBAC7C,GAAG;uBACE,OAAO;iBAiK3B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -7,6 +7,7 @@ export type NotificationsHookProps = {
|
|
|
7
7
|
joltChannel: JoltSubscription;
|
|
8
8
|
};
|
|
9
9
|
declare const useNotifications: ({ enabled, env, joltChannel, }: NotificationsHookProps) => {
|
|
10
|
+
handleCreateTask: (notification: Notification) => Promise<any>;
|
|
10
11
|
handleMarkAllAsRead: () => any;
|
|
11
12
|
handleMarkAsRead: (notification: Notification) => Promise<any>;
|
|
12
13
|
handleToggleRead: (notification: Notification) => Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAA;AAC1F,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAGL,YAAY,EACb,MAAM,eAAe,CAAA;AA0DtB,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,EAAE,gBAAgB,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,gBAAgB,mCAInB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"use_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAA;AAC1F,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAItD,OAAO,EAGL,YAAY,EACb,MAAM,eAAe,CAAA;AA0DtB,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,EAAE,OAAO,CAAC,WAAW,CAAA;IACxB,WAAW,EAAE,gBAAgB,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,gBAAgB,mCAInB,sBAAsB;qCACU,YAAY,KAAK,QAAQ,GAAG,CAAC;yBACzC,MAAM,GAAG;qCACG,YAAY,KAAK,QAAQ,GAAG,CAAC;qCAC7B,YAAY,KAAK,QAAQ,GAAG,CAAC;cACpD,OAAO;eACN,OAAO;UACZ,YAAY,EAAE;YACZ,YAAY,EAAE;CAoQvB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta_badge.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/components/beta_badge.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,mBAIrB,CAAA"}
|
package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/settings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/settings.tsx"],"names":[],"mappings":"AAuFA,eAAO,MAAM,QAAQ;;;iBAKpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/index.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe;;;;;;iBAgE3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/preview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/preview.tsx"],"names":[],"mappings":"AA2CA,eAAO,MAAM,OAAO;;;;;iBAgJnB,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { useChannelMute } from "./use_channel_mute";
|
|
1
2
|
export { useChannelsLoading } from "./use_channels_loading";
|
|
3
|
+
export { useChannelUnread } from "./use_channel_unread";
|
|
2
4
|
export { useChat } from "./use_chat";
|
|
3
5
|
export { useChatApi } from "./use_chat_api";
|
|
4
6
|
export { useChatAppGrants } from "./use_chat_app_grants";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_channel_mute.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_channel_mute.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,uBAgB1B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ChannelUnread {
|
|
2
|
+
isUnread: boolean;
|
|
3
|
+
isUnreadable: boolean;
|
|
4
|
+
markRead: () => void;
|
|
5
|
+
markUnread: () => void;
|
|
6
|
+
unreadCount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const useChannelUnread: (channel: any, unread: any) => ChannelUnread;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=use_channel_unread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_channel_unread.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_channel_unread.ts"],"names":[],"mappings":"AAQA,UAAU,aAAa;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,gBAAgB,iCAAsB,aAyClD,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Environment } from "@planningcenter/url";
|
|
2
|
+
interface Props {
|
|
3
|
+
streamUserId: string;
|
|
4
|
+
env: Environment;
|
|
5
|
+
}
|
|
6
|
+
type FilterType = {
|
|
7
|
+
members: {
|
|
8
|
+
$in: string[];
|
|
9
|
+
};
|
|
10
|
+
type: "messaging";
|
|
11
|
+
pco_apps?: {
|
|
12
|
+
$contains: "services" | "groups";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const useConversationFilters: ({ streamUserId, env, }: Props) => FilterType;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=use_conversation_filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_conversation_filters.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_conversation_filters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,UAAU,KAAK;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,WAAW,CAAA;CACjB;AAED,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,CAAC,EAAE;QAAE,SAAS,EAAE,UAAU,GAAG,QAAQ,CAAA;KAAE,CAAA;CAChD,CAAA;AAED,eAAO,MAAM,sBAAsB,2BAGhC,KAAK,eA0BP,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Environment } from "@planningcenter/url";
|
|
2
|
+
type GroupsMigrationStatus = "pending" | "running" | "completed" | "failed";
|
|
3
|
+
export declare const useGroupsMigration: ({ env }: {
|
|
4
|
+
env: Environment;
|
|
5
|
+
}) => {
|
|
6
|
+
groupsMigrationStatus: GroupsMigrationStatus;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
error: boolean;
|
|
9
|
+
refresh: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=use_groups_migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_groups_migration.d.ts","sourceRoot":"","sources":["../../../../../../../modules/toolbar/tools/chat/hooks/use_groups_migration.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAMzD,KAAK,qBAAqB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;AAU3E,eAAO,MAAM,kBAAkB;SAAoB,WAAW;;;;;;CAsC7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/toolbar/tools/chat/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/toolbar/tools/chat/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAA;AA8H3D,QAAA,MAAM,IAAI,EAAE,WAOX,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/tools/notifications.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../../modules/toolbar/tools/notifications.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAoB,MAAM,UAAU,CAAA;AA8LxD,QAAA,MAAM,aAAa,EAAE,WAOpB,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@churchcenter/datetime-fmt": "^1.3.2",
|
|
18
18
|
"@emotion/cache": "^11.10.5",
|
|
19
19
|
"@emotion/react": "^11.10.5",
|
|
20
|
-
"@planningcenter/icons": "^15.
|
|
20
|
+
"@planningcenter/icons": "^15.12.0",
|
|
21
21
|
"@planningcenter/jolt-client": "^2.1.0",
|
|
22
22
|
"@planningcenter/url": "^2.7.0",
|
|
23
23
|
"algoliasearch": "^4.20.0",
|
|
@@ -55,14 +55,17 @@
|
|
|
55
55
|
"eslint-plugin-typescript-sort-keys": "^2.1.0",
|
|
56
56
|
"html-webpack-plugin": "^4.5.1",
|
|
57
57
|
"jest": "^27.5.1",
|
|
58
|
+
"media-typer": "^1.1.0",
|
|
58
59
|
"microbundle": "^0.15.1",
|
|
59
60
|
"moment": "^2.27.0",
|
|
60
61
|
"moment-timezone": "^0.5.34",
|
|
61
62
|
"prettier": "^2.5.1",
|
|
62
63
|
"react": "^17.0.1",
|
|
63
64
|
"react-dom": "^17.0.1",
|
|
65
|
+
"resolve-url-loader": "^5.0.0",
|
|
64
66
|
"rollup": "^3.28.0",
|
|
65
67
|
"sass": "^1.64.2",
|
|
68
|
+
"sass-loader": "^14.2.1",
|
|
66
69
|
"style-loader": "^3.3.1",
|
|
67
70
|
"ts-jest": "^27.1.4",
|
|
68
71
|
"ts-loader": "^8.0.14",
|
|
@@ -72,7 +75,7 @@
|
|
|
72
75
|
"webpack-cli": "^4.9.1",
|
|
73
76
|
"webpack-dev-server": "^4.4.0"
|
|
74
77
|
},
|
|
75
|
-
"version": "9.
|
|
78
|
+
"version": "9.11.0-rc.2",
|
|
76
79
|
"peerDependencies": {
|
|
77
80
|
"@planningcenter/add-ons": "^5",
|
|
78
81
|
"@planningcenter/tapestry-react": "^4",
|