@planningcenter/topbar 12.5.0-qa-994.0 → 12.5.0-qa-992.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.
- package/dist/topbar.js +22 -45
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +22 -45
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +22 -45
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +22 -45
- package/dist/topbar.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/topbar.js
CHANGED
|
@@ -36606,9 +36606,10 @@ function HelpdeskComponent({
|
|
|
36606
36606
|
const Helpdesk = {
|
|
36607
36607
|
component: HelpdeskComponent,
|
|
36608
36608
|
icons: {
|
|
36609
|
-
|
|
36609
|
+
staticDotPath: "",
|
|
36610
|
+
staticPath: "M16 10C14.9391 10 13.9217 10.4214 13.1716 11.1716C12.4214 11.9217 12 12.9391 12 14H14C14 13.4696 14.2107 12.9609 14.5858 12.5858C14.9609 12.2107 15.4696 12 16 12C16.5304 12 17.0391 12.2107 17.4142 12.5858C17.7893 12.9609 18 13.4696 18 14C18 16 15 15.75 15 19H17C17 16.75 20 16.5 20 14C20 12.9391 19.5786 11.9217 18.8284 11.1716C18.0783 10.4214 17.0609 10 16 10ZM16 24C14.4178 24 12.871 23.5308 11.5554 22.6518C10.2399 21.7727 9.21447 20.5233 8.60897 19.0615C8.00347 17.5997 7.84504 15.9911 8.15372 14.4393C8.4624 12.8874 9.22433 11.462 10.3432 10.3431C11.462 9.22433 12.8874 8.4624 14.4393 8.15372C15.9911 7.84504 17.5997 8.00346 19.0615 8.60896C20.5233 9.21446 21.7727 10.2398 22.6518 11.5554C23.5308 12.871 24 14.4177 24 16C23.9974 18.1209 23.1537 20.1542 21.6539 21.6539C20.1542 23.1537 18.1209 23.9974 16 24ZM16 6C14.0222 6 12.0888 6.58649 10.4443 7.6853C8.79981 8.78412 7.51809 10.3459 6.76121 12.1732C6.00433 14.0004 5.8063 16.0111 6.19215 17.9509C6.578 19.8907 7.53041 21.6725 8.92894 23.0711C10.3275 24.4696 12.1093 25.422 14.0491 25.8079C15.9889 26.1937 17.9996 25.9957 19.8268 25.2388C21.6541 24.4819 23.2159 23.2002 24.3147 21.5557C25.4135 19.9112 26 17.9778 26 16C26 13.3478 24.9464 10.8043 23.0711 8.92893C21.1957 7.05357 18.6522 6 16 6V6ZM15 22H17V20H15V22Z"
|
|
36610
36611
|
},
|
|
36611
|
-
label: "Help and
|
|
36612
|
+
label: "Help and support",
|
|
36612
36613
|
name: "Helpdesk",
|
|
36613
36614
|
storageExemptPaths: ["email", "phone"]
|
|
36614
36615
|
};
|
|
@@ -37142,12 +37143,13 @@ function NotificationsComponent({
|
|
|
37142
37143
|
const Notifications = {
|
|
37143
37144
|
component: NotificationsComponent,
|
|
37144
37145
|
icons: {
|
|
37145
|
-
|
|
37146
|
+
staticDotPath: "M18.2189 6.38867C17.5266 6.13717 16.7795 6 16.0003 6C12.4123 6 9.50363 8.90867 9.50363 12.4967V16.5862L6.54505 19.7387C5.34671 21.0156 6.25205 23.1069 8.0032 23.1069H13.3351C13.7865 24.1303 14.8101 24.8438 16.0002 24.8438C17.1903 24.8438 18.2139 24.1303 18.6653 23.1069H23.9974C25.7485 23.1069 26.6539 21.0156 25.4555 19.7387L22.497 16.5863V13.8102C21.7673 13.622 21.0914 13.2999 20.497 12.8718V16.9821V17.3778L20.7679 17.6664L23.9844 21.0938H8.01618L11.2328 17.6663L11.5036 17.3777V16.982V12.4967C11.5036 10.0132 13.5169 8 16.0003 8C16.7262 8 17.4118 8.17197 18.0188 8.47738C18.0064 8.31988 18.0001 8.16068 18.0001 8C18.0001 7.44181 18.0763 6.90141 18.2189 6.38867ZM8.00384 21.1069L8.0048 21.1059V21.1069H8.00384ZM23.9967 21.1069H23.9952V21.1053L23.9967 21.1069Z",
|
|
37147
|
+
staticPath: "M16.0003 6C12.4122 6 9.50357 8.90867 9.50357 12.4967V16.5862L6.54499 19.7387C5.34665 21.0156 6.25199 23.1069 8.00314 23.1069H13.335C13.7864 24.1303 14.81 24.8438 16.0001 24.8438C17.1902 24.8438 18.2138 24.1303 18.6653 23.1069H23.9973C25.7484 23.1069 26.6538 21.0156 25.4554 19.7387L22.497 16.5863V12.4967C22.497 8.90867 19.5883 6 16.0003 6ZM11.5036 12.4967C11.5036 10.0132 13.5168 8 16.0003 8C18.4837 8 20.497 10.0132 20.497 12.4967V16.9821V17.3778L20.7678 17.6664L23.9843 21.0938H8.01612L11.2327 17.6663L11.5036 17.3777V16.982V12.4967ZM8.00474 21.1059L8.00378 21.1069H8.00474V21.1059ZM23.9952 21.1069H23.9966L23.9952 21.1053V21.1069Z"
|
|
37146
37148
|
},
|
|
37147
37149
|
name: "Notifications"
|
|
37148
37150
|
};
|
|
37149
37151
|
|
|
37150
|
-
const SPARKLE_PATH = "
|
|
37152
|
+
const SPARKLE_PATH = "M8.7824 18.8791C8.88371 18.5973 9.26996 18.5973 9.37127 18.8791L9.94256 20.465C10.0222 20.6863 10.1914 20.8616 10.4064 20.9435L11.6779 21.4269L11.9484 21.5304L11.9963 21.5539C12.2205 21.6839 12.2047 22.039 11.9484 22.1369L11.6779 22.2394L10.4064 22.7248C10.1915 22.8068 10.0222 22.9812 9.94256 23.2023L9.37127 24.7893L9.34881 24.8381C9.23098 25.054 8.92273 25.0539 8.80486 24.8381L8.7824 24.7893L8.2111 23.2023C8.14141 23.0088 8.0029 22.8513 7.82536 22.76L7.74723 22.7248L6.47573 22.2394L6.20522 22.1369C5.93172 22.0325 5.93164 21.6347 6.20522 21.5304L6.47476 21.4269L7.74723 20.9435C7.96226 20.8616 8.13147 20.6863 8.2111 20.465L8.7824 18.8791ZM17.5706 8.11138C17.8241 7.40747 18.7928 7.40734 19.0462 8.11138L20.472 12.0782C20.6711 12.6318 21.0952 13.0687 21.6331 13.2735L25.4867 14.7413C26.1711 15.002 26.1711 15.9983 25.4867 16.2589L21.6331 17.7267C21.0952 17.9316 20.6711 18.3684 20.472 18.922L19.2649 22.2785L19.0462 22.8889L18.9905 23.0119C18.6956 23.5517 17.9212 23.5515 17.6262 23.0119L17.5706 22.8889L17.3508 22.2795L16.1448 18.922C15.9457 18.3684 15.5206 17.9316 14.9827 17.7267L11.1291 16.2589C10.4449 15.9982 10.4449 15.0021 11.1291 14.7413L14.9827 13.2735C15.4533 13.0943 15.8379 12.7376 16.0598 12.2804L16.1448 12.0782L17.5706 8.11138ZM18.0266 12.755C17.6351 13.8438 16.7916 14.7249 15.6946 15.1427L14.7551 15.5001L15.6946 15.8575C16.7916 16.2753 17.6351 17.1564 18.0266 18.2453L18.3079 19.0275L18.5891 18.2453C18.9806 17.1564 19.8242 16.2753 20.9212 15.8575L21.8597 15.5001L20.9212 15.1427C19.8242 14.7249 18.9806 13.8439 18.5891 12.755L18.3079 11.9718L18.0266 12.755ZM8.7824 6.21097C8.88388 5.9297 9.26982 5.92966 9.37127 6.21097L9.94256 7.7979C10.0222 8.01911 10.1915 8.19346 10.4064 8.27544L11.6779 8.75982L11.8322 9.16607L11.9484 8.86334C12.2218 8.96779 12.2218 9.36542 11.9484 9.46979L11.6779 9.57233L10.4064 10.0567C10.1914 10.1387 10.0222 10.3139 9.94256 10.5352L9.37127 12.1212C9.26996 12.4029 8.88371 12.4029 8.7824 12.1212L8.2111 10.5352C8.14139 10.3415 8.00304 10.1832 7.82536 10.0919L7.74723 10.0567L6.47573 9.57233L6.20522 9.46979C5.9486 9.37195 5.93265 9.01568 6.15737 8.8858L6.20522 8.86334L7.74723 8.27544C7.96214 8.19346 8.13149 8.0191 8.2111 7.7979L8.69451 6.45413L8.7824 6.21097ZM11.9484 8.86334L11.8322 9.16607L11.6779 8.75982L11.9484 8.86334Z";
|
|
37151
37153
|
// Helpdesk reads this context off the email path to open its email form the
|
|
37152
37154
|
// same way a handoff inside its own drawer does.
|
|
37153
37155
|
function emailPathWithContext(context = {}) {
|
|
@@ -37289,7 +37291,8 @@ function LoadError({
|
|
|
37289
37291
|
const Picobot = {
|
|
37290
37292
|
component: PicobotComponent,
|
|
37291
37293
|
icons: {
|
|
37292
|
-
|
|
37294
|
+
staticDotPath: SPARKLE_PATH,
|
|
37295
|
+
staticPath: SPARKLE_PATH
|
|
37293
37296
|
},
|
|
37294
37297
|
label: "Ask AI",
|
|
37295
37298
|
name: "Picobot"
|
|
@@ -37496,7 +37499,8 @@ function JoltEffectV1({
|
|
|
37496
37499
|
const Tasks = {
|
|
37497
37500
|
component: TasksComponent,
|
|
37498
37501
|
icons: {
|
|
37499
|
-
|
|
37502
|
+
staticDotPath: "M18.3414 6H13.5C12.6716 6 12 6.67157 12 7.5V8H9C7.89543 8 7 8.89543 7 10V24C7 25.1046 7.89543 26 9 26H23C24.1046 26 25 25.1046 25 24V13.917C24.6748 13.9716 24.3407 14 24 14C23.6593 14 23.3252 13.9716 23 13.917V24H9L9 10H12V10.5C12 11.3284 12.6716 12 13.5 12H18.5C18.8029 12 19.0848 11.9102 19.3206 11.7558C18.4944 10.7277 18 9.4216 18 8C18 7.29873 18.1203 6.62556 18.3414 6ZM18 8H14V10H18V8ZM19.0556 14.1464C18.8603 13.9512 18.5437 13.9512 18.3485 14.1464L15.0724 17.4226L13.6642 16.0144C13.469 15.8192 13.1524 15.8192 12.9571 16.0144L11.9433 17.0282C11.7481 17.2235 11.7481 17.5401 11.9433 17.7353L14.7167 20.5088C14.8665 20.6585 15.0875 20.6934 15.2705 20.6135C15.3278 20.5892 15.3814 20.5536 15.4282 20.5069L20.0686 15.8665C20.2638 15.6713 20.2638 15.3547 20.0686 15.1594L19.0556 14.1464Z",
|
|
37503
|
+
staticPath: "M14 8V10H18V8H14ZM13.5 6C12.6716 6 12 6.67157 12 7.5V8H9C7.89543 8 7 8.89543 7 10V24C7 25.1046 7.89543 26 9 26H23C24.1046 26 25 25.1046 25 24V10C25 8.89543 24.1046 8 23 8H20V7.5C20 6.67157 19.3284 6 18.5 6H13.5ZM20 10.5V10H23V24H9L9 10H12V10.5C12 11.3284 12.6716 12 13.5 12H18.5C19.3284 12 20 11.3284 20 10.5ZM18.3485 14.1464C18.5437 13.9512 18.8603 13.9512 19.0556 14.1464L20.0686 15.1594C20.2638 15.3547 20.2638 15.6713 20.0686 15.8665L15.4282 20.5069C15.3814 20.5536 15.3278 20.5892 15.2705 20.6135C15.0875 20.6934 14.8665 20.6585 14.7167 20.5088L11.9433 17.7353C11.7481 17.5401 11.7481 17.2235 11.9433 17.0282L12.9571 16.0144C13.1524 15.8192 13.469 15.8192 13.6642 16.0144L15.0724 17.4226L18.3485 14.1464Z"
|
|
37500
37504
|
},
|
|
37501
37505
|
name: "Tasks"
|
|
37502
37506
|
};
|
|
@@ -37619,7 +37623,8 @@ function ChatTool({
|
|
|
37619
37623
|
const Chat = {
|
|
37620
37624
|
component: ChatTool,
|
|
37621
37625
|
icons: {
|
|
37622
|
-
|
|
37626
|
+
staticDotPath: "M26 13.6586V19C26 20.6569 24.6569 22 23 22H18.9997L17.4141 23.5856L15.9998 24.9998L14.5856 23.5856L13 22H9C7.34315 22 6 20.6569 6 19V10C6 8.34315 7.34315 7 9 7H18.083C18.0284 7.32521 18 7.65929 18 8C18 8.34071 18.0284 8.67479 18.083 9H9C8.44772 9 8 9.44772 8 10V19C8 19.5523 8.44772 20 9 20H13H13.8284L14.4142 20.5858L15.9998 22.1714L17.5855 20.5858L18.1713 20H18.9997H23C23.5523 20 24 19.5523 24 19V14C24.7013 14 25.3744 13.8797 26 13.6586Z",
|
|
37627
|
+
staticPath: "M13.8284 20L15.9998 22.1714L18.1713 20H23C23.5523 20 24 19.5523 24 19V10C24 9.44772 23.5523 9 23 9H9C8.44772 9 8 9.44772 8 10V19C8 19.5523 8.44772 20 9 20H13.8284ZM15.9998 24.9998L13 22H9C7.34315 22 6 20.6569 6 19V10C6 8.34315 7.34315 7 9 7H23C24.6569 7 26 8.34315 26 10V19C26 20.6569 24.6569 22 23 22H18.9997L15.9998 24.9998Z"
|
|
37623
37628
|
},
|
|
37624
37629
|
name: "Chat",
|
|
37625
37630
|
storageExemptPaths: ["blankstate"]
|
|
@@ -37726,7 +37731,8 @@ const usePicobotConfig = ({
|
|
|
37726
37731
|
const Profile = {
|
|
37727
37732
|
component: UserProfile,
|
|
37728
37733
|
icons: {
|
|
37729
|
-
|
|
37734
|
+
staticDotPath: "",
|
|
37735
|
+
staticPath: ""
|
|
37730
37736
|
},
|
|
37731
37737
|
name: "Profile"
|
|
37732
37738
|
};
|
|
@@ -37792,14 +37798,13 @@ function Toolbar({
|
|
|
37792
37798
|
} = state;
|
|
37793
37799
|
const mounted = !!currentContent;
|
|
37794
37800
|
const storeData = useStore();
|
|
37795
|
-
const devStoreDataOverride = env === "development" ? _storeDataOverride !== null && _storeDataOverride !== void 0 ? _storeDataOverride : {} : {};
|
|
37796
37801
|
const {
|
|
37797
37802
|
indicatorVisible,
|
|
37798
37803
|
joltPromise,
|
|
37799
37804
|
userId
|
|
37800
37805
|
} = {
|
|
37801
37806
|
...storeData,
|
|
37802
|
-
...
|
|
37807
|
+
...(env === "development" ? _storeDataOverride !== null && _storeDataOverride !== void 0 ? _storeDataOverride : {} : {})
|
|
37803
37808
|
};
|
|
37804
37809
|
const updateStore = useUpdateStore();
|
|
37805
37810
|
const {
|
|
@@ -38057,9 +38062,7 @@ function Toolbar({
|
|
|
38057
38062
|
};
|
|
38058
38063
|
const indicatorState = {
|
|
38059
38064
|
...indicatorVisible,
|
|
38060
|
-
Chat: unreadIndicator
|
|
38061
|
-
// Chat's dot comes from its own config, so a dev override has to land last.
|
|
38062
|
-
...devStoreDataOverride.indicatorVisible
|
|
38065
|
+
Chat: unreadIndicator
|
|
38063
38066
|
};
|
|
38064
38067
|
return /*#__PURE__*/React.createElement(tapestryReact.ThemeProvider, {
|
|
38065
38068
|
theme: topbarTheme
|
|
@@ -38147,57 +38150,31 @@ function ToolbarToolIcon({
|
|
|
38147
38150
|
return /*#__PURE__*/React.createElement(icons.component, null);
|
|
38148
38151
|
} else {
|
|
38149
38152
|
return /*#__PURE__*/React.createElement(ToolbarButtonIcon, {
|
|
38150
|
-
path: icons.
|
|
38153
|
+
path: dot ? icons.staticDotPath : icons.staticPath,
|
|
38151
38154
|
dot: dot
|
|
38152
38155
|
});
|
|
38153
38156
|
}
|
|
38154
38157
|
}
|
|
38155
|
-
// The dot sits on the icon's top-right corner. A mask knocks a transparent
|
|
38156
|
-
// ring out of the glyph around it, so the gap reads correctly on any button
|
|
38157
|
-
// background (hover, current, dark mode) without a second, pre-cut path.
|
|
38158
|
-
const DOT = {
|
|
38159
|
-
cx: 24,
|
|
38160
|
-
cy: 8,
|
|
38161
|
-
gap: 2,
|
|
38162
|
-
r: 4
|
|
38163
|
-
};
|
|
38164
|
-
// React 17 has no useId, and mask ids are document-global: count instead so
|
|
38165
|
-
// several toolbars (or icons) on one page never share a mask.
|
|
38166
|
-
let dotMaskCount = 0;
|
|
38167
38158
|
function ToolbarButtonIcon({
|
|
38168
38159
|
dot,
|
|
38169
38160
|
path
|
|
38170
38161
|
}) {
|
|
38171
|
-
const [maskId] = React.useState(() => `topbar-toolbar-dot-mask-${++dotMaskCount}`);
|
|
38172
38162
|
return /*#__PURE__*/React.createElement("svg", {
|
|
38173
38163
|
"aria-hidden": "true",
|
|
38174
38164
|
width: "32",
|
|
38175
38165
|
height: "32",
|
|
38176
38166
|
viewBox: "0 0 32 32",
|
|
38177
38167
|
xmlns: "http://www.w3.org/2000/svg"
|
|
38178
|
-
},
|
|
38179
|
-
id: maskId,
|
|
38180
|
-
maskUnits: "userSpaceOnUse"
|
|
38181
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
38182
|
-
width: "32",
|
|
38183
|
-
height: "32",
|
|
38184
|
-
fill: "white"
|
|
38185
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
38186
|
-
cx: DOT.cx,
|
|
38187
|
-
cy: DOT.cy,
|
|
38188
|
-
r: DOT.r + DOT.gap,
|
|
38189
|
-
fill: "black"
|
|
38190
|
-
}))), /*#__PURE__*/React.createElement("path", {
|
|
38168
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
38191
38169
|
fill: "currentColor",
|
|
38192
38170
|
fillRule: "evenodd",
|
|
38193
38171
|
clipRule: "evenodd",
|
|
38194
|
-
d: path
|
|
38195
|
-
mask: dot ? `url(#${maskId})` : undefined
|
|
38172
|
+
d: path
|
|
38196
38173
|
}), dot && (/*#__PURE__*/React.createElement("circle", {
|
|
38197
38174
|
fill: "var(--t-icon-color-status-error)",
|
|
38198
|
-
cx:
|
|
38199
|
-
cy:
|
|
38200
|
-
r:
|
|
38175
|
+
cx: "24",
|
|
38176
|
+
cy: "8",
|
|
38177
|
+
r: "4"
|
|
38201
38178
|
})));
|
|
38202
38179
|
}
|
|
38203
38180
|
function getDataPendoAttribute(toolName) {
|