@planningcenter/topbar 8.3.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.
- package/CHANGELOG.md +210 -0
- package/dist/modules/api_request.d.ts +0 -5
- package/dist/modules/components/NotificationsMenuBlankState.d.ts +12 -0
- package/dist/modules/components/apps_menu.d.ts +2 -6
- package/dist/modules/components/conditional_wrap.d.ts +1 -1
- package/dist/modules/components/notifications_inbox.d.ts +18 -0
- package/dist/modules/components/notifications_menu.d.ts +1 -3
- package/dist/modules/components/{notifications_menu_wrapper.d.ts → notifications_menu_Wrapper.d.ts} +0 -0
- package/dist/modules/components/notifications_menu_blank_state.d.ts +1 -1
- package/dist/modules/dummy_data.d.ts +3 -0
- package/dist/modules/formatters.d.ts +1 -13
- package/dist/modules/hooks/use_local_storage.d.ts +10 -0
- package/dist/modules/hooks/use_notifications.d.ts +2 -1
- package/dist/modules/hooks/use_topbar_api.d.ts +8 -0
- package/dist/modules/medium_topbar.d.ts +38 -34
- package/dist/modules/not_small_topbar.d.ts +82 -39
- package/dist/modules/small_topbar.d.ts +42 -39
- package/dist/modules/symbols.d.ts +8 -34
- package/dist/modules/topbar_context.d.ts +5 -0
- package/dist/topbar +2 -0
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.map +1 -0
- 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/interfaces.d.ts +55 -0
- package/dist/types/modules/interfaces.d.ts.map +1 -0
- package/dist/types/modules/small_topbar.d.ts.map +1 -1
- package/package.json +20 -20
- package/dist/types/modules/dummy_data.d.ts +0 -4
- package/dist/types/modules/dummy_data.d.ts.map +0 -1
- package/dist/types/modules/hooks/use_local_notifications.d.ts +0 -9
- package/dist/types/modules/hooks/use_local_notifications.d.ts.map +0 -1
|
@@ -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,GAA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,IAAI,EAAE,GAAG,EAAE,CAAC;SACb,CAAC;KACH,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
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;;;;;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@planningcenter/topbar",
|
|
3
|
-
"version": "8.3.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
|
-
"
|
|
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
|
-
"
|
|
23
|
-
"
|
|
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
|
-
"
|
|
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 +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"}
|