@planningcenter/topbar 12.5.0 → 12.6.0-qa-1010.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.
@@ -274,7 +274,18 @@ type ToolbarProps = {
274
274
  */
275
275
  isPhoenix?: boolean;
276
276
  linkToProfile?: boolean;
277
- onReceiveTasksWorker?: (worker: Worker) => void;
277
+ /**
278
+ * False loads Helpdesk from helpdesk's own page in an iframe instead of its
279
+ * add-on. Defaults to true while the iframe rolls out.
280
+ */
281
+ mountLegacyHelpdesk?: boolean;
282
+ /**
283
+ * False loads Tasks from Home's page in an iframe instead of its add-on.
284
+ * `onReceiveTasksWorker` then gets a `MessagePort` to the page instead of
285
+ * the add-on's `Worker`. Defaults to true while the iframe rolls out.
286
+ */
287
+ mountLegacyTasks?: boolean;
288
+ onReceiveTasksWorker?: (worker: Worker | MessagePort) => void;
278
289
  requestClearAppsCache?: any;
279
290
  userAvatarPath: string;
280
291
  userName: string;
@@ -286,7 +297,7 @@ type ToolbarStoreData = {
286
297
  joltPromise: () => Promise<Jolt | void>;
287
298
  userId: string;
288
299
  };
289
- declare function Toolbar({ appName, autoMountTool, env, helpdeskConfig, linkToProfile, onReceiveTasksWorker, requestClearAppsCache, userAvatarPath, userName, _storeDataOverride, }: ToolbarProps): JSX.Element;
300
+ declare function Toolbar({ appName, autoMountTool, env, helpdeskConfig, linkToProfile, mountLegacyHelpdesk, mountLegacyTasks, onReceiveTasksWorker, requestClearAppsCache, userAvatarPath, userName, _storeDataOverride, }: ToolbarProps): JSX.Element;
290
301
 
291
302
  interface SwitchViewProps {
292
303
  activeIndex: number;
package/package.json CHANGED
@@ -20,15 +20,11 @@
20
20
  "@planningcenter/icons": "^15.25.2",
21
21
  "@planningcenter/jolt-client": "~1 || ^2.4 || ^3.0.0",
22
22
  "@planningcenter/pca-bridge": "~0.0.8",
23
- "@planningcenter/tapestry": "^4.7.0",
24
23
  "@planningcenter/url": "^3.3.0",
25
24
  "algoliasearch": "^4.20.0",
26
25
  "dayjs": "^1.11.18",
27
- "instantsearch.js": "^4.87.1",
28
- "nanoid": "^5.0.9",
29
26
  "pluralize": "^8.0.0",
30
27
  "react-calendly": "^4.2.0",
31
- "react-cool-dimensions": "^2.0.7",
32
28
  "react-instantsearch-core": "^7.23.1",
33
29
  "react-transition-group": "^4.4.2",
34
30
  "use-sync-external-store": "^1.2.0"
@@ -42,6 +38,7 @@
42
38
  "@planningcenter/browserslist-config": "^1.1.0",
43
39
  "@planningcenter/eslint-plugin-tapestry": "^1.1.0",
44
40
  "@planningcenter/stylelint-config-pco": "^0.0.8",
41
+ "@planningcenter/tapestry": "^4.13.0",
45
42
  "@planningcenter/tapestry-react": "^4.7.1",
46
43
  "@rollup/plugin-babel": "^6.0.4",
47
44
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -57,8 +54,6 @@
57
54
  "@typescript-eslint/eslint-plugin": "^5.10.1",
58
55
  "@typescript-eslint/parser": "^5.10.1",
59
56
  "@vitejs/plugin-react": "^4.3.0",
60
- "autoprefixer": "^10.4.21",
61
- "baseline-browser-mapping": "^2.9.14",
62
57
  "browserslist": "^4.28.0",
63
58
  "classnames": "^2.5.1",
64
59
  "eslint": "^8.7.0",
@@ -71,9 +66,8 @@
71
66
  "eslint-plugin-typescript-sort-keys": "^2.1.0",
72
67
  "jest": "^29.7.0",
73
68
  "jest-environment-jsdom": "^29",
74
- "media-typer": "^1.1.0",
75
69
  "postcss": "^8.4.39",
76
- "postcss-styled-syntax": "^0.7.1",
70
+ "postcss-nesting": "^14.0.3",
77
71
  "prettier": "^2.5.1",
78
72
  "react": "^17.0.1",
79
73
  "react-dom": "^17.0.1",
@@ -82,26 +76,22 @@
82
76
  "rollup-plugin-node-externals": "^8.1.2",
83
77
  "rollup-plugin-peer-deps-external": "^2.2.4",
84
78
  "rollup-plugin-postcss": "^4.0.2",
85
- "sass": "^1.64.2",
86
79
  "stylelint": "^16.26.1",
87
- "stylelint-config-standard": "^39.0.1",
88
- "stylelint-config-standard-scss": "^16.0.0",
89
- "stylelint-scss": "^6.14.0",
90
80
  "ts-jest": "^29.2.5",
91
81
  "ts-node": "^10.7.0",
92
- "tslint-config-prettier": "^1.18.0",
93
82
  "typescript": "~5.0.0",
94
- "vite": "^6.0.0",
95
- "vite-plugin-dts": "^4.0.0"
83
+ "vite": "^6.0.0"
96
84
  },
97
85
  "browserslist": [
98
86
  "extends @planningcenter/browserslist-config"
99
87
  ],
100
- "version": "12.5.0",
88
+ "version": "12.6.0-qa-1010.0",
101
89
  "peerDependencies": {
102
90
  "@planningcenter/add-ons": "^7",
91
+ "@planningcenter/tapestry": "^4.12.0",
103
92
  "@planningcenter/tapestry-react": "^4",
104
- "react": ">=16.8.0 <19"
93
+ "react": ">=16.8.0 <19",
94
+ "react-dom": ">=16.8.0 <19"
105
95
  },
106
96
  "repository": "https://github.com/planningcenter/topbar.git",
107
97
  "unpkg": "./dist/topbar.umd.js",
@@ -112,8 +102,8 @@
112
102
  "dev": "vite",
113
103
  "check-types": "tsc --noEmit --skipLibCheck",
114
104
  "test": "jest",
115
- "stylelint": "npx stylelint \"**/*.{css,scss,ts,tsx}\"",
116
- "stylelint:fix": "npx stylelint \"**/*.{css,scss,ts,tsx}\" --fix",
105
+ "stylelint": "npx stylelint \"**/*.{css,ts,tsx}\"",
106
+ "stylelint:fix": "npx stylelint \"**/*.{css,ts,tsx}\" --fix",
117
107
  "lint": "npx eslint modules; yarn stylelint",
118
108
  "lint:fix": "npx eslint modules --fix; yarn stylelint:fix",
119
109
  "prettier": "npx prettier modules --check",
@@ -126,10 +116,10 @@
126
116
  "resolutions": {
127
117
  "flatted": "^3.4.2",
128
118
  "rollup": "^4.60.1",
129
- "@microsoft/api-extractor": "^7.58.2",
130
119
  "svgo": "^2.8.1",
131
120
  "micromatch/picomatch": "^2.3.2",
132
121
  "@types/node": "^22.0.0",
133
122
  "yaml": "^1.10.3"
134
- }
123
+ },
124
+ "stableVersion": "12.6.0"
135
125
  }