@planningcenter/topbar 8.2.2-rc.0 → 8.3.1

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 (43) hide show
  1. package/CHANGELOG.md +210 -0
  2. package/dist/modules/api_request.d.ts +0 -5
  3. package/dist/modules/components/NotificationsMenuBlankState.d.ts +12 -0
  4. package/dist/modules/components/apps_menu.d.ts +2 -6
  5. package/dist/modules/components/conditional_wrap.d.ts +1 -1
  6. package/dist/modules/components/notifications_inbox.d.ts +18 -0
  7. package/dist/modules/components/notifications_menu.d.ts +1 -3
  8. package/dist/modules/components/{notifications_menu_wrapper.d.ts → notifications_menu_Wrapper.d.ts} +0 -0
  9. package/dist/modules/components/notifications_menu_blank_state.d.ts +1 -1
  10. package/dist/modules/dummy_data.d.ts +3 -0
  11. package/dist/modules/formatters.d.ts +1 -13
  12. package/dist/modules/hooks/use_local_storage.d.ts +10 -0
  13. package/dist/modules/hooks/use_notifications.d.ts +2 -1
  14. package/dist/modules/hooks/use_topbar_api.d.ts +8 -0
  15. package/dist/modules/medium_topbar.d.ts +38 -34
  16. package/dist/modules/not_small_topbar.d.ts +82 -39
  17. package/dist/modules/small_topbar.d.ts +42 -39
  18. package/dist/modules/symbols.d.ts +8 -34
  19. package/dist/modules/topbar_context.d.ts +5 -0
  20. package/dist/topbar +2 -0
  21. package/dist/topbar.js +1 -1
  22. package/dist/topbar.js.map +1 -1
  23. package/dist/topbar.map +1 -0
  24. package/dist/topbar.modern.js +1 -1
  25. package/dist/topbar.modern.js.map +1 -1
  26. package/dist/topbar.module.js +1 -1
  27. package/dist/topbar.module.js.map +1 -1
  28. package/dist/topbar.umd.js +1 -1
  29. package/dist/topbar.umd.js.map +1 -1
  30. package/dist/types/modules/components/apps_menu.d.ts.map +1 -1
  31. package/dist/types/modules/components/notification_bell.d.ts.map +1 -1
  32. package/dist/types/modules/get_login_profile_path.d.ts +9 -0
  33. package/dist/types/modules/get_login_profile_path.d.ts.map +1 -0
  34. package/dist/types/modules/interfaces.d.ts +55 -0
  35. package/dist/types/modules/interfaces.d.ts.map +1 -0
  36. package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
  37. package/dist/types/modules/small_topbar.d.ts.map +1 -1
  38. package/dist/types/modules/styled_root.d.ts.map +1 -1
  39. package/package.json +20 -20
  40. package/dist/types/modules/dummy_data.d.ts +0 -4
  41. package/dist/types/modules/dummy_data.d.ts.map +0 -1
  42. package/dist/types/modules/hooks/use_local_notifications.d.ts +0 -9
  43. package/dist/types/modules/hooks/use_local_notifications.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"apps_menu.d.ts","sourceRoot":"","sources":["../../../../modules/components/apps_menu.tsx"],"names":[],"mappings":";AAAA,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAKtD,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AASnC,QAAA,MAAM,QAAQ;aAOH,MAAM;UACT,GAAG,EAAE;SACN,QAAQ,WAAW;YAChB,GAAG;aACF,OAAO;iBA+HjB,CAAA;AAED,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"apps_menu.d.ts","sourceRoot":"","sources":["../../../../modules/components/apps_menu.tsx"],"names":[],"mappings":";AAAA,OAAe,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAKtD,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AASnC,QAAA,MAAM,QAAQ;aAOH,MAAM;UACT,GAAG,EAAE;SACN,QAAQ,WAAW;YAChB,GAAG;aACF,OAAO;iBAqIjB,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"notification_bell.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_bell.tsx"],"names":[],"mappings":";AAIA,QAAA,MAAM,gBAAgB;YAQZ,GAAG;uBACQ,OAAO;cAChB,OAAO;aACR,OAAO;YACR,MAAM;iBAgBf,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"notification_bell.d.ts","sourceRoot":"","sources":["../../../../modules/components/notification_bell.tsx"],"names":[],"mappings":";AAIA,QAAA,MAAM,gBAAgB;YAQZ,GAAG;uBACQ,OAAO;cAChB,OAAO;aACR,OAAO;YACR,MAAM;iBAoBf,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Environment } from "@planningcenter/url";
2
+ declare type props = {
3
+ env: Environment;
4
+ appName: string;
5
+ userId: string;
6
+ };
7
+ export default function getLoginProfilePath({ env, appName, userId }: props): string;
8
+ export {};
9
+ //# sourceMappingURL=get_login_profile_path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_login_profile_path.d.ts","sourceRoot":"","sources":["../../../modules/get_login_profile_path.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEzD,aAAK,KAAK,GAAG;IACX,GAAG,EAAE,WAAW,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,GAAG,MAAM,CAUnF"}
@@ -0,0 +1,55 @@
1
+ export interface App {
2
+ name: string
3
+ url: string
4
+ }
5
+ export interface ConnectedPerson {
6
+ id: number
7
+ attributes: {
8
+ name: string
9
+ organization_name: string
10
+ }
11
+ }
12
+ export interface Notification {
13
+ appName: string
14
+ createdAt: Date
15
+ id: string
16
+ isRead: boolean
17
+ link?: string
18
+ title: string
19
+ }
20
+ export declare type JoltMessage = {
21
+ event: string
22
+ channel: string
23
+ data: string
24
+ }
25
+ export declare type JoltMessageNotificationDataPayload = {
26
+ data: {
27
+ type: "Notification"
28
+ id: string
29
+ attributes: {
30
+ auto_read_at: null | string
31
+ created_at: string
32
+ key: string
33
+ kind: string
34
+ read_at: null | string
35
+ rollup_key: string
36
+ updated_at: string
37
+ }
38
+ relationships?: object
39
+ links: {
40
+ payloads: string
41
+ self: string
42
+ web_payloads: string
43
+ }
44
+ included?: object
45
+ meta: object
46
+ }
47
+ }
48
+ export interface TopbarAPIResponse {
49
+ data: {
50
+ attributes: {
51
+ apps: App[]
52
+ }
53
+ }
54
+ }
55
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../modules/interfaces.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,kCAAkC,GAAG;IAC/C,IAAI,EAAE;QACJ,IAAI,EAAE,cAAc,CAAC;QACrB,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE;YACV,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;YAC5B,UAAU,EAAE,MAAM,CAAC;YACnB,GAAG,EAAE,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;YACvB,UAAU,EAAE,MAAM,CAAC;YACnB,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;QACF,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE;YACL,QAAQ,EAAE,MAAM,CAAC;YACjB,IAAI,EAAE,MAAM,CAAC;YACb,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,IAAI,EAAE,GAAG,EAAE,CAAC;SACb,CAAC;KACH,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"not_small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/not_small_topbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAQhD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,CAAA;IAChC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,MAAM;YAAW,mBAAmB,GAAG,iBAAiB;;;;;;;;CAmd7D,CAAA;AAUD,QAAA,MAAM,KAAK;YAMD,OAAO;cACL,MAAM,SAAS;YACjB,GAAG;WACJ,MAAM;YACL,MAAM;iBA0Cf,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"not_small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/not_small_topbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAShD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,CAAA;IAChC,MAAM,CAAC,EAAE,GAAG,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,MAAM;YAAW,mBAAmB,GAAG,iBAAiB;;;;;;;;CAod7D,CAAA;AAUD,QAAA,MAAM,KAAK;YAMD,OAAO;cACL,MAAM,SAAS;YACjB,GAAG;WACJ,MAAM;YACL,MAAM;iBA0Cf,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/small_topbar.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAqChD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAED,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;;CAqnB1D,CAAA;AAOD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"small_topbar.d.ts","sourceRoot":"","sources":["../../../modules/small_topbar.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAqChD,UAAU,gBAAgB;IACxB,qBAAqB,CAAC,EAAE,GAAG,CAAA;CAC5B;AAED,QAAA,MAAM,MAAM;YAAW,iBAAiB,GAAG,gBAAgB;;;;;CA0nB1D,CAAA;AAOD,QAAA,MAAM,KAAK;;;iBAmBV,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"styled_root.d.ts","sourceRoot":"","sources":["../../../modules/styled_root.tsx"],"names":[],"mappings":";AAEA,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE;;;;CAAA,GAAG,GAAG,CAAC,OAAO,CA0B3E"}
1
+ {"version":3,"file":"styled_root.d.ts","sourceRoot":"","sources":["../../../modules/styled_root.tsx"],"names":[],"mappings":";AAEA,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE;;;;CAAA,GAAG,GAAG,CAAC,OAAO,CA2B3E"}
package/package.json CHANGED
@@ -1,26 +1,14 @@
1
1
  {
2
- "name": "@planningcenter/topbar",
3
- "version": "8.2.2-rc.0",
4
- "license": "UNLICENSED",
5
- "description": "Planning Center application Topbar",
6
- "main": "./dist/topbar.js",
7
- "unpkg": "./dist/topbar.umd.js",
8
- "exports": "./dist/topbar.modern.js",
9
- "module": "./dist/topbar.module.js",
10
- "source": "index.ts",
11
2
  "amdName": "PLANNINGCENTER.Topbar",
12
- "scripts": {
13
- "build": "microbundle --jsx React.createElement",
14
- "dev": "webpack-cli serve --mode development",
15
- "prepare": "$npm_execpath run build",
16
- "test": "jest"
17
- },
3
+ "description": "Planning Center application Topbar",
18
4
  "author": "Front End Systems Engineering <frontend@planningcenter.com>",
5
+ "exports": "./dist/topbar.modern.js",
19
6
  "files": [
20
7
  "dist"
21
8
  ],
22
- "repository": "https://github.com/ministrycentered/topbar.git",
23
- "private": false,
9
+ "license": "UNLICENSED",
10
+ "main": "./dist/topbar.js",
11
+ "module": "./dist/topbar.module.js",
24
12
  "dependencies": {
25
13
  "@churchcenter/datetime-fmt": "^1.3.2",
26
14
  "@planningcenter/jolt-client": "^1.3.1",
@@ -28,9 +16,7 @@
28
16
  "react-cool-dimensions": "^2.0.7",
29
17
  "react-transition-group": "^4.4.2"
30
18
  },
31
- "peerDependencies": {
32
- "react": "^16.8.6"
33
- },
19
+ "name": "@planningcenter/topbar",
34
20
  "devDependencies": {
35
21
  "@types/jest": "^27.4.1",
36
22
  "@types/react": "^17.0.0",
@@ -63,5 +49,19 @@
63
49
  "webpack-cli": "^4.9.1",
64
50
  "webpack-dev-server": "^4.4.0"
65
51
  },
52
+ "version": "8.3.1",
53
+ "peerDependencies": {
54
+ "react": "^16.8.6"
55
+ },
56
+ "private": false,
57
+ "repository": "https://github.com/ministrycentered/topbar.git",
58
+ "unpkg": "./dist/topbar.umd.js",
59
+ "scripts": {
60
+ "build": "microbundle --jsx React.createElement",
61
+ "dev": "webpack-cli serve --mode development",
62
+ "prepare": "$npm_execpath run build",
63
+ "test": "jest"
64
+ },
65
+ "source": "index.ts",
66
66
  "types": "dist/types/index.d.ts"
67
67
  }
@@ -1,4 +0,0 @@
1
- import { Notification } from "./interfaces";
2
- export declare const DUMMY_DATA_UNREAD: Notification[];
3
- export declare const DUMMY_DATA_READ: Notification[];
4
- //# sourceMappingURL=dummy_data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dummy_data.d.ts","sourceRoot":"","sources":["../../../modules/dummy_data.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,eAAO,MAAM,iBAAiB,EAAE,YAAY,EAsB3C,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,EAezC,CAAA"}
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Notification } from "../interfaces";
3
- declare function useLocalNotifications(read: Notification[], unread: Notification[]): {
4
- localRead: Notification[];
5
- localUnread: Notification[];
6
- setEnabledLocalUiUpdates: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
- };
8
- export default useLocalNotifications;
9
- //# sourceMappingURL=use_local_notifications.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use_local_notifications.d.ts","sourceRoot":"","sources":["../../../../modules/hooks/use_local_notifications.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,iBAAS,qBAAqB,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;;;;EAc1E;AAED,eAAe,qBAAqB,CAAA"}