@the-portland-company/shell 0.81.2 → 0.82.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/CHANGELOG.md +9 -0
- package/dist/app-chrome.cjs +9 -3
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.d.cts +17 -2
- package/dist/app-chrome.d.ts +17 -2
- package/dist/app-chrome.js +11 -6
- package/dist/app-chrome.js.map +1 -1
- package/dist/{chunk-MYY6N6D4.js → chunk-VWY6IIAR.js} +2 -2
- package/dist/{chunk-MYY6N6D4.js.map → chunk-VWY6IIAR.js.map} +1 -1
- package/dist/{index-_Y7jOKPN.d.cts → index-C3PFq1hl.d.cts} +2 -0
- package/dist/{index-bYu6DxNt.d.ts → index-CwTnsR9R.d.ts} +2 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +1 -1
- package/dist/native.d.ts +1 -1
- package/dist/native.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.82.0
|
|
2
|
+
|
|
3
|
+
The universal-search placeholder names what the current Mode searches. Spec cited: Reference/UI-Platform v56 "Top bar — required elements" (decided by Ben, 2026-10-12).
|
|
4
|
+
|
|
5
|
+
- Relationship: "Search contacts, Tribes, forms" · Campaign: "Search voters, walk lists, polls" · Petition: "Search petitions, sheets, circulators". The Glossary term is Tribe, so the design frame's "segments" is not used.
|
|
6
|
+
- A mode-scoped app takes its registry mode; an unscoped app (Contacts, Forms, Surveys, CTAs, Settings) follows the mode the pill shows. `data.searchPlaceholder` still overrides. The old per-app table (Contacts only) is gone.
|
|
7
|
+
- `NavMode` gains `id`; new export `MODE_SEARCH_PLACEHOLDER`.
|
|
8
|
+
- Tests: `__tests__/searchPlaceholder.test.tsx`.
|
|
9
|
+
|
|
1
10
|
## 0.81.2
|
|
2
11
|
|
|
3
12
|
The rail header matches the Left Navigation design's vertical rhythm. Spec cited: Specs/Left-Navigation §3-§7 (values the page states are unchanged; the design decides the gaps it does not state).
|
package/dist/app-chrome.cjs
CHANGED
|
@@ -4614,8 +4614,10 @@ var POLITOGY_APPS = {
|
|
|
4614
4614
|
canvass: { title: "Field Canvassing", origin: "https://canvass.politogyvrm.com", storagePrefix: "canvass", mode: "campaign", grants: ["title"] },
|
|
4615
4615
|
signs: { title: "Sign Mapping", origin: "https://signs.politogyvrm.com", storagePrefix: "signs", mode: "campaign", grants: ["title"] }
|
|
4616
4616
|
};
|
|
4617
|
-
var
|
|
4618
|
-
|
|
4617
|
+
var MODE_SEARCH_PLACEHOLDER = {
|
|
4618
|
+
relationship: "Search contacts, Tribes, forms",
|
|
4619
|
+
campaign: "Search voters, walk lists, polls",
|
|
4620
|
+
petition: "Search petitions, sheets, circulators"
|
|
4619
4621
|
};
|
|
4620
4622
|
function PolitogyAppFrame({
|
|
4621
4623
|
app,
|
|
@@ -4893,7 +4895,9 @@ function FrameBody({
|
|
|
4893
4895
|
// search is the only thing on the left end of the bar. No app wires
|
|
4894
4896
|
// search yet, so this stays decorative (`NavTopBarProps.search` — "an
|
|
4895
4897
|
// app that has not wired search yet still gets the correct chrome").
|
|
4896
|
-
search: {
|
|
4898
|
+
search: {
|
|
4899
|
+
placeholder: data?.searchPlaceholder ?? MODE_SEARCH_PLACEHOLDER[appMode ?? mode.id ?? "relationship"] ?? "Search"
|
|
4900
|
+
},
|
|
4897
4901
|
// No Build notes control (Reference/UI-Platform, decided 2026-10-03).
|
|
4898
4902
|
// The action cluster is IDENTICAL everywhere — core included. Page
|
|
4899
4903
|
// actions sit BEFORE it, never inside it, so the Alerts bell keeps its
|
|
@@ -5539,6 +5543,7 @@ function useChromeMode(arg = {}) {
|
|
|
5539
5543
|
const selected = selectedModeId ? options.find((m) => m.id === selectedModeId) ?? null : null;
|
|
5540
5544
|
const current = pinned ?? selected ?? options[0] ?? MODE_DEFS.find((m) => m.id === fallbackModeId) ?? MODE_DEFS[0];
|
|
5541
5545
|
return {
|
|
5546
|
+
id: current.id,
|
|
5542
5547
|
label: current.label,
|
|
5543
5548
|
icon: current.icon,
|
|
5544
5549
|
// Left-Navigation §7 / Reference/UI-Platform: always the row of three icon
|
|
@@ -5571,6 +5576,7 @@ function useChromeMode(arg = {}) {
|
|
|
5571
5576
|
|
|
5572
5577
|
exports.ChromeTopBarActions = ChromeTopBarActions;
|
|
5573
5578
|
exports.LoadingScreen = LoadingScreen;
|
|
5579
|
+
exports.MODE_SEARCH_PLACEHOLDER = MODE_SEARCH_PLACEHOLDER;
|
|
5574
5580
|
exports.POLITOGY_APPS = POLITOGY_APPS;
|
|
5575
5581
|
exports.PolitogyAppChrome = PolitogyAppChrome;
|
|
5576
5582
|
exports.PolitogyAppFrame = PolitogyAppFrame;
|