@planningcenter/topbar 9.10.0 → 9.11.0-rc.0

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.
Files changed (27) hide show
  1. package/README.md +10 -3
  2. package/dist/topbar.css +1 -1
  3. package/dist/topbar.css.map +1 -1
  4. package/dist/topbar.js +1 -1
  5. package/dist/topbar.js.map +1 -1
  6. package/dist/topbar.modern.js +1 -1
  7. package/dist/topbar.modern.js.map +1 -1
  8. package/dist/topbar.module.js +1 -1
  9. package/dist/topbar.module.js.map +1 -1
  10. package/dist/topbar.umd.js +1 -1
  11. package/dist/topbar.umd.js.map +1 -1
  12. package/dist/types/modules/components/notification_item.d.ts +2 -1
  13. package/dist/types/modules/components/notification_item.d.ts.map +1 -1
  14. package/dist/types/modules/hooks/use_notifications.d.ts +1 -0
  15. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  16. package/dist/types/modules/toolbar/tools/chat/components/beta_badge.d.ts +2 -0
  17. package/dist/types/modules/toolbar/tools/chat/components/beta_badge.d.ts.map +1 -0
  18. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts.map +1 -1
  19. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/preview.d.ts.map +1 -1
  20. package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts +1 -0
  21. package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts.map +1 -1
  22. package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_mute.d.ts +2 -0
  23. package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_mute.d.ts.map +1 -0
  24. package/dist/types/modules/toolbar/tools/chat/index.d.ts +0 -1
  25. package/dist/types/modules/toolbar/tools/chat/index.d.ts.map +1 -1
  26. package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -1
  27. package/package.json +5 -2
@@ -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;aAQX,OAAO;aACP,OAAO;kBACF,YAAY;kCACI,YAAY,KAAK,QAAQ,GAAG,CAAC;kBAC7C,GAAG;uBACE,OAAO;iBA4I3B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
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;yBACF,MAAM,GAAG;qCACG,YAAY,KAAK,QAAQ,GAAG,CAAC;qCAC7B,YAAY,KAAK,QAAQ,GAAG,CAAC;cACpD,OAAO;eACN,OAAO;UACZ,YAAY,EAAE;YACZ,YAAY,EAAE;CAqOvB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
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,2 @@
1
+ export declare const BetaBadge: () => JSX.Element;
2
+ //# sourceMappingURL=beta_badge.d.ts.map
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_details_view/settings.tsx"],"names":[],"mappings":"AAsGA,eAAO,MAAM,QAAQ;;;iBAKpB,CAAA"}
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":"preview.d.ts","sourceRoot":"","sources":["../../../../../../../../modules/toolbar/tools/chat/components/channel_list_view/preview.tsx"],"names":[],"mappings":"AA0CA,eAAO,MAAM,OAAO;;;;;iBA4HnB,CAAA"}
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;;;;;iBAwInB,CAAA"}
@@ -1,3 +1,4 @@
1
+ export { useChannelMute } from "./use_channel_mute";
1
2
  export { useChannelsLoading } from "./use_channels_loading";
2
3
  export { useChat } from "./use_chat";
3
4
  export { useChatApi } from "./use_chat_api";
@@ -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,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,2 @@
1
+ export declare const useChannelMute: (channel: any) => any;
2
+ //# sourceMappingURL=use_channel_mute.d.ts.map
@@ -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":"AAIA,eAAO,MAAM,cAAc,uBAgB1B,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { ToolbarTool } from "../../types";
2
- export declare const BetaBadge: () => JSX.Element;
3
2
  declare const Chat: ToolbarTool;
4
3
  export { Chat };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAiG3D,eAAO,MAAM,SAAS,mBAIrB,CAAA;AA8BD,QAAA,MAAM,IAAI,EAAE,WAOX,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,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;AA2LxD,QAAA,MAAM,aAAa,EAAE,WAOpB,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,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.7.0",
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.10.0",
78
+ "version": "9.11.0-rc.0",
76
79
  "peerDependencies": {
77
80
  "@planningcenter/add-ons": "^5",
78
81
  "@planningcenter/tapestry-react": "^4",