@scalemule/news-publication 0.0.51 → 0.0.53
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/README.md +2 -0
- package/dist/chunk-KNO2LIDQ.js +892 -0
- package/dist/pets-forms.cjs +74 -14
- package/dist/pets-forms.js +5 -2
- package/dist/pets-interactions.cjs +25 -19
- package/dist/pets-interactions.js +25 -19
- package/dist/pets-plugin.cjs +105 -24
- package/dist/pets-plugin.js +36 -12
- package/dist/pets-publication.cjs +490 -213
- package/dist/pets-publication.js +5 -4
- package/dist/pets-view.cjs +488 -210
- package/dist/pets-view.d.cts +5 -2
- package/dist/pets-view.d.ts +5 -2
- package/dist/pets-view.js +1 -1
- package/fonts/bricolage-OFL.txt +93 -0
- package/fonts/dmsans-OFL.txt +93 -0
- package/fonts/paw-bricolage.woff2 +0 -0
- package/fonts/paw-dmsans.woff2 +0 -0
- package/package.json +3 -2
- package/pets.css +885 -448
- package/dist/chunk-QW3OZB22.js +0 -616
package/dist/pets-forms.cjs
CHANGED
|
@@ -26,30 +26,87 @@ var PET_CELEBRATIONS = [
|
|
|
26
26
|
];
|
|
27
27
|
var PET_SAFETY = {
|
|
28
28
|
recovery: "Bay Area Paw does not independently verify pet ownership. A report is a contributor\u2019s account. Never send money or verification codes to someone claiming to have found a pet. Keep microchip numbers and ownership evidence private."};
|
|
29
|
-
function PawMark({ size =
|
|
29
|
+
function PawMark({ size = 40 }) {
|
|
30
30
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31
31
|
"svg",
|
|
32
32
|
{
|
|
33
|
+
className: "paw-mark",
|
|
33
34
|
width: size,
|
|
34
35
|
height: size,
|
|
35
|
-
viewBox: "0 0
|
|
36
|
-
fill: "currentColor",
|
|
36
|
+
viewBox: "0 0 573.94 529",
|
|
37
37
|
"aria-hidden": "true",
|
|
38
|
+
focusable: "false",
|
|
38
39
|
children: [
|
|
39
40
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
"
|
|
41
|
+
"path",
|
|
41
42
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
rx: "5.1",
|
|
45
|
-
ry: "6.5",
|
|
46
|
-
transform: "rotate(-25 10 19)"
|
|
43
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
44
|
+
d: "M438.14,116.61c-13.43,29.67-37.83,43.23-70.22,41.59-26.22-1.33-47.57-18.07-53.85-44.04-8.61-35.6,4.38-73.47,32.54-97.01,23.86-19.95,59.01-24.71,80.86-2.33,25.28,25.88,24.83,70.53,10.67,101.8Z"
|
|
47
45
|
}
|
|
48
46
|
),
|
|
49
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
51
|
+
d: "M261.38,102.84c-3.42,34.87-26.95,55.34-62.34,55.6-47.55.35-70.66-41.61-72.41-84-.76-18.36,2.81-36.21,13.1-51.28C150.96,6.71,169.05-1.66,189.1.47c15.88,1.68,30.04,9.02,41.83,20.13,22.37,21.08,33.45,51.63,30.44,82.24Z"
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
55
|
+
"path",
|
|
56
|
+
{
|
|
57
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
58
|
+
d: "M74.37,233.2c-19.12,5.92-38.02,1.03-52.01-12.56C5.9,204.65-2.02,181.66.44,158.79s20.8-41.47,44.56-43.32c26.77-2.08,52.81,11.67,64.67,35.72,6.55,13.29,8.8,27.71,4.77,41.93-5.48,19.31-20.59,34.04-40.07,40.07Z"
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
+
"path",
|
|
63
|
+
{
|
|
64
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
65
|
+
d: "M554.12,217.92c-16.28,18.05-40.96,22.44-62.24,12.42-28.24-13.29-41.83-43.6-30.18-73.55,11.84-30.44,45.43-47.9,77.46-39.5,16.05,4.2,27.59,16.88,32.19,32.77,6.91,23.87-.39,49.18-17.23,67.85Z"
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
72
|
+
d: "M254.75,276.06c-11.16,1.17-18.16-5.23-31.29,5.65-2.03,1.68-3.74,3.55-6.45,4.65.19-7.18,3.13-13.83,8.89-18.06,9.64-7.09,24.35-3.41,28.86,7.76Z"
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
+
"path",
|
|
77
|
+
{
|
|
78
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
79
|
+
d: "M393.76,388.44c14.25.78,43.73,21.57,44.48,36.86-13.73-13.65-28.07-25.42-44.48-36.86Z"
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
83
|
+
"path",
|
|
84
|
+
{
|
|
85
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
86
|
+
d: "M389.2,362.82c-13.07-10.75-14.56-12.34-32.27-9.64,2.18-7.74,11.87-11.56,19.39-9.51,7.9,2.16,14.35,10.44,12.88,19.15Z"
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
"path",
|
|
91
|
+
{
|
|
92
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
93
|
+
d: "M395.67,379.62c12.45-2.44,45.72,6.18,48.71,20.68-15.95-9.19-31.31-15.01-48.71-20.68Z"
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
"path",
|
|
98
|
+
{
|
|
99
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
100
|
+
d: "M225.21,368.12c8.14-14.26,21.23-23.67,36.61-26.8l24.13-4.91c24.77-5.03,49.74-30.01,43.64-57.5-1.23-5.52-5.96-8.44-11.59-8.97-10.59-1.01-21.06-1.48-31.46-3.17-10.47-1.7-17.76-7.16-22.72-16.52-13.11-24.7-34.21-38.21-62.98-35.89-32.35,2.61-60.19,20.02-78.69,46.19-8.86,12.53-17.29,24.45-24.06,38.06-9.19,18.49,6.19,33.68,20.29,44.38,11.81,8.96,15.39,17.42,23.42,14.26,17.13-6.74,23.74-36.34,24.85-52.55l1.91-27.97c.45-6.63,1.48-12.94,5.66-18.84,10.07,43.41,17.92,81.63-15.36,116.38-18.45,19.26-30.63,43.84-21.53,70.61,1.81,5.31,4.18,9.89,5.44,15.71-49.05-41.25-82.59-100.28-68.34-165.81,2.75-12.63,7.16-23.65,13.2-34.96,14.89-27.92,36.14-51.76,63.26-68.22,29.85-18.12,65.65-21.17,97.88-7.93,14.6,6,26.59,15.11,38.32,26.09,7.66-6.63,14.7-12.8,23.27-18.11,27.44-17,60.05-20.76,90.86-10.43,18.28,6.12,34.08,16.52,48,29.84,32.73,31.32,55.61,73.73,53.14,120.37-1.9,35.78-15.78,69.68-39.3,97.5,2.83-33.15-1.57-57.13-20.69-83.05-1.39-19.67-2.57-38.89-16.51-55.64-10.36,9-17.24,20.04-25.23,30.79-17.93-6.9-37.08-3.27-49.82,11.18-15.8,17.9-32.66-7.14-33.3,15.72-4.67,5.19-8.68,9.51-9.33,16.8-1.08,12.18,3.59,23.69,13.76,30.79l12.21,8.52c12.5,8.72,16.99,23.63,13.91,38.67-2.35,11.43-8.1,21.24-15.29,30.53-8.3,10.65-17.82,19.82-28.28,28.44-10.27,8.46-18.67,17.43-28.71,27.3,6.77-55.37-37.54-71.57-53.11-115.32-5.31-14.91-5.64-31.2,2.56-45.56ZM310.95,414.5c.66-6.02-.23-11.99-4.42-16.09-3.63-3.56-9.46-5.66-15.26-4.62-7.74,1.39-13.23,6.73-18.29,13.26-7.08-12.24-20.28-17.67-30.59-9.89-4.5,3.4-6.97,9.12-6.98,15.36-.05,19.1,21.83,36.81,35.58,48.75,14.15-12.18,36.74-27.53,39.96-46.76Z"
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
+
"path",
|
|
105
|
+
{
|
|
106
|
+
fill: "var(--paw-logo-heart, #ef7152)",
|
|
107
|
+
d: "M310.95,414.5c-3.22,19.23-25.81,34.58-39.96,46.76-13.75-11.93-35.63-29.65-35.58-48.75.02-6.24,2.48-11.96,6.98-15.36,10.31-7.78,23.51-2.35,30.59,9.89,5.06-6.53,10.54-11.86,18.29-13.26,5.8-1.04,11.63,1.06,15.26,4.62,4.19,4.1,5.08,10.07,4.42,16.09Z"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
53
110
|
]
|
|
54
111
|
}
|
|
55
112
|
);
|
|
@@ -247,7 +304,10 @@ function PetSubmissionForm({
|
|
|
247
304
|
} else void save();
|
|
248
305
|
},
|
|
249
306
|
children: [
|
|
250
|
-
/* @__PURE__ */ jsxRuntime.
|
|
307
|
+
/* @__PURE__ */ jsxRuntime.jsxs("ol", { className: "paw-form-steps", "aria-label": "Submission progress", children: [
|
|
308
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { "aria-current": step === 0 ? "step" : void 0, children: "1. Their story" }),
|
|
309
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { "aria-current": step === 1 ? "step" : void 0, children: "2. Preview & permission" })
|
|
310
|
+
] }),
|
|
251
311
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { children: kind === "celebration" && content.category === "memorial" ? "Remember a beloved companion." : "Someone worth meeting." }),
|
|
252
312
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-safety", children: "Choose a community, never a home address. Keep phone numbers, email addresses and microchip details out of your story." }),
|
|
253
313
|
step === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
package/dist/pets-forms.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { PawMark } from './chunk-
|
|
2
|
+
import { PawMark } from './chunk-KNO2LIDQ.js';
|
|
3
3
|
import './chunk-4JRWZXAP.js';
|
|
4
4
|
import './chunk-66GI2IX6.js';
|
|
5
5
|
import { PET_PHOTO_CATEGORIES, PET_CELEBRATIONS, PET_SAFETY } from './chunk-AFJ6S5WJ.js';
|
|
@@ -199,7 +199,10 @@ function PetSubmissionForm({
|
|
|
199
199
|
} else void save();
|
|
200
200
|
},
|
|
201
201
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ jsxs("ol", { className: "paw-form-steps", "aria-label": "Submission progress", children: [
|
|
203
|
+
/* @__PURE__ */ jsx("li", { "aria-current": step === 0 ? "step" : void 0, children: "1. Their story" }),
|
|
204
|
+
/* @__PURE__ */ jsx("li", { "aria-current": step === 1 ? "step" : void 0, children: "2. Preview & permission" })
|
|
205
|
+
] }),
|
|
203
206
|
/* @__PURE__ */ jsx("h1", { children: kind === "celebration" && content.category === "memorial" ? "Remember a beloved companion." : "Someone worth meeting." }),
|
|
204
207
|
/* @__PURE__ */ jsx("p", { className: "paw-safety", children: "Choose a community, never a home address. Keep phone numbers, email addresses and microchip details out of your story." }),
|
|
205
208
|
step === 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -122,26 +122,32 @@ function PetPreferencesForm({
|
|
|
122
122
|
}
|
|
123
123
|
)
|
|
124
124
|
] }),
|
|
125
|
-
/* @__PURE__ */ jsxRuntime.jsxs("
|
|
126
|
-
/* @__PURE__ */ jsxRuntime.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
125
|
+
/* @__PURE__ */ jsxRuntime.jsxs("details", { className: "paw-preference-details", children: [
|
|
126
|
+
/* @__PURE__ */ jsxRuntime.jsxs("summary", { children: [
|
|
127
|
+
"Communities you follow",
|
|
128
|
+
" ",
|
|
129
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: value.followed_area_ids.length ? `${value.followed_area_ids.length} selected` : "Choose communities" })
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "paw-community-choices", children: [
|
|
132
|
+
/* @__PURE__ */ jsxRuntime.jsx("legend", { className: "paw-sr-only", children: "Communities you follow" }),
|
|
133
|
+
communities.map((c) => /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "paw-consent", children: [
|
|
134
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
+
"input",
|
|
136
|
+
{
|
|
137
|
+
type: "checkbox",
|
|
138
|
+
checked: value.followed_area_ids.includes(c.id),
|
|
139
|
+
onChange: (e) => setValue({
|
|
140
|
+
...value,
|
|
141
|
+
followed_area_ids: e.target.checked ? [...value.followed_area_ids, c.id] : value.followed_area_ids.filter((id) => id !== c.id)
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
c.name
|
|
146
|
+
] }, c.id))
|
|
147
|
+
] })
|
|
141
148
|
] }),
|
|
142
|
-
/* @__PURE__ */ jsxRuntime.jsxs("fieldset", {
|
|
149
|
+
notificationsReady ? /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { children: [
|
|
143
150
|
/* @__PURE__ */ jsxRuntime.jsx("legend", { children: "Optional community updates" }),
|
|
144
|
-
!notificationsReady && /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Community alerts are not active yet. No emails or alerts will be sent from these settings." }),
|
|
145
151
|
PET_NOTIFICATION_CATEGORIES.map(([key, label]) => /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "paw-consent", children: [
|
|
146
152
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
147
153
|
"input",
|
|
@@ -185,7 +191,7 @@ function PetPreferencesForm({
|
|
|
185
191
|
}
|
|
186
192
|
)
|
|
187
193
|
] })
|
|
188
|
-
] }),
|
|
194
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-safety", children: "Community alerts are not active yet. No community emails or alerts will be sent from these settings." }),
|
|
189
195
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-safety", children: "Account and submission messages are separate from optional community updates. Sponsors never receive your profile or preferences." }),
|
|
190
196
|
/* @__PURE__ */ jsxRuntime.jsx("button", { disabled: busy, children: "Save preferences" }),
|
|
191
197
|
message && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "status", children: message })
|
|
@@ -112,26 +112,32 @@ function PetPreferencesForm({
|
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
] }),
|
|
115
|
-
/* @__PURE__ */ jsxs("
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
/* @__PURE__ */ jsxs("details", { className: "paw-preference-details", children: [
|
|
116
|
+
/* @__PURE__ */ jsxs("summary", { children: [
|
|
117
|
+
"Communities you follow",
|
|
118
|
+
" ",
|
|
119
|
+
/* @__PURE__ */ jsx("span", { children: value.followed_area_ids.length ? `${value.followed_area_ids.length} selected` : "Choose communities" })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ jsxs("fieldset", { className: "paw-community-choices", children: [
|
|
122
|
+
/* @__PURE__ */ jsx("legend", { className: "paw-sr-only", children: "Communities you follow" }),
|
|
123
|
+
communities.map((c) => /* @__PURE__ */ jsxs("label", { className: "paw-consent", children: [
|
|
124
|
+
/* @__PURE__ */ jsx(
|
|
125
|
+
"input",
|
|
126
|
+
{
|
|
127
|
+
type: "checkbox",
|
|
128
|
+
checked: value.followed_area_ids.includes(c.id),
|
|
129
|
+
onChange: (e) => setValue({
|
|
130
|
+
...value,
|
|
131
|
+
followed_area_ids: e.target.checked ? [...value.followed_area_ids, c.id] : value.followed_area_ids.filter((id) => id !== c.id)
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
c.name
|
|
136
|
+
] }, c.id))
|
|
137
|
+
] })
|
|
131
138
|
] }),
|
|
132
|
-
/* @__PURE__ */ jsxs("fieldset", {
|
|
139
|
+
notificationsReady ? /* @__PURE__ */ jsxs("fieldset", { children: [
|
|
133
140
|
/* @__PURE__ */ jsx("legend", { children: "Optional community updates" }),
|
|
134
|
-
!notificationsReady && /* @__PURE__ */ jsx("p", { children: "Community alerts are not active yet. No emails or alerts will be sent from these settings." }),
|
|
135
141
|
PET_NOTIFICATION_CATEGORIES.map(([key, label]) => /* @__PURE__ */ jsxs("label", { className: "paw-consent", children: [
|
|
136
142
|
/* @__PURE__ */ jsx(
|
|
137
143
|
"input",
|
|
@@ -175,7 +181,7 @@ function PetPreferencesForm({
|
|
|
175
181
|
}
|
|
176
182
|
)
|
|
177
183
|
] })
|
|
178
|
-
] }),
|
|
184
|
+
] }) : /* @__PURE__ */ jsx("p", { className: "paw-safety", children: "Community alerts are not active yet. No community emails or alerts will be sent from these settings." }),
|
|
179
185
|
/* @__PURE__ */ jsx("p", { className: "paw-safety", children: "Account and submission messages are separate from optional community updates. Sponsors never receive your profile or preferences." }),
|
|
180
186
|
/* @__PURE__ */ jsx("button", { disabled: busy, children: "Save preferences" }),
|
|
181
187
|
message && /* @__PURE__ */ jsx("p", { role: "status", children: message })
|
package/dist/pets-plugin.cjs
CHANGED
|
@@ -76,30 +76,87 @@ async function petRequest(scope, path, init = {}, fetcher = fetch) {
|
|
|
76
76
|
const json = await response.json();
|
|
77
77
|
return json?.data ?? json;
|
|
78
78
|
}
|
|
79
|
-
function PawMark({ size =
|
|
79
|
+
function PawMark({ size = 40 }) {
|
|
80
80
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
81
81
|
"svg",
|
|
82
82
|
{
|
|
83
|
+
className: "paw-mark",
|
|
83
84
|
width: size,
|
|
84
85
|
height: size,
|
|
85
|
-
viewBox: "0 0
|
|
86
|
-
fill: "currentColor",
|
|
86
|
+
viewBox: "0 0 573.94 529",
|
|
87
87
|
"aria-hidden": "true",
|
|
88
|
+
focusable: "false",
|
|
88
89
|
children: [
|
|
89
90
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
"
|
|
91
|
+
"path",
|
|
91
92
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
rx: "5.1",
|
|
95
|
-
ry: "6.5",
|
|
96
|
-
transform: "rotate(-25 10 19)"
|
|
93
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
94
|
+
d: "M438.14,116.61c-13.43,29.67-37.83,43.23-70.22,41.59-26.22-1.33-47.57-18.07-53.85-44.04-8.61-35.6,4.38-73.47,32.54-97.01,23.86-19.95,59.01-24.71,80.86-2.33,25.28,25.88,24.83,70.53,10.67,101.8Z"
|
|
97
95
|
}
|
|
98
96
|
),
|
|
99
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
98
|
+
"path",
|
|
99
|
+
{
|
|
100
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
101
|
+
d: "M261.38,102.84c-3.42,34.87-26.95,55.34-62.34,55.6-47.55.35-70.66-41.61-72.41-84-.76-18.36,2.81-36.21,13.1-51.28C150.96,6.71,169.05-1.66,189.1.47c15.88,1.68,30.04,9.02,41.83,20.13,22.37,21.08,33.45,51.63,30.44,82.24Z"
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
+
"path",
|
|
106
|
+
{
|
|
107
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
108
|
+
d: "M74.37,233.2c-19.12,5.92-38.02,1.03-52.01-12.56C5.9,204.65-2.02,181.66.44,158.79s20.8-41.47,44.56-43.32c26.77-2.08,52.81,11.67,64.67,35.72,6.55,13.29,8.8,27.71,4.77,41.93-5.48,19.31-20.59,34.04-40.07,40.07Z"
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
+
"path",
|
|
113
|
+
{
|
|
114
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
115
|
+
d: "M554.12,217.92c-16.28,18.05-40.96,22.44-62.24,12.42-28.24-13.29-41.83-43.6-30.18-73.55,11.84-30.44,45.43-47.9,77.46-39.5,16.05,4.2,27.59,16.88,32.19,32.77,6.91,23.87-.39,49.18-17.23,67.85Z"
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
+
"path",
|
|
120
|
+
{
|
|
121
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
122
|
+
d: "M254.75,276.06c-11.16,1.17-18.16-5.23-31.29,5.65-2.03,1.68-3.74,3.55-6.45,4.65.19-7.18,3.13-13.83,8.89-18.06,9.64-7.09,24.35-3.41,28.86,7.76Z"
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
126
|
+
"path",
|
|
127
|
+
{
|
|
128
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
129
|
+
d: "M393.76,388.44c14.25.78,43.73,21.57,44.48,36.86-13.73-13.65-28.07-25.42-44.48-36.86Z"
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
133
|
+
"path",
|
|
134
|
+
{
|
|
135
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
136
|
+
d: "M389.2,362.82c-13.07-10.75-14.56-12.34-32.27-9.64,2.18-7.74,11.87-11.56,19.39-9.51,7.9,2.16,14.35,10.44,12.88,19.15Z"
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
140
|
+
"path",
|
|
141
|
+
{
|
|
142
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
143
|
+
d: "M395.67,379.62c12.45-2.44,45.72,6.18,48.71,20.68-15.95-9.19-31.31-15.01-48.71-20.68Z"
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
147
|
+
"path",
|
|
148
|
+
{
|
|
149
|
+
fill: "var(--paw-logo-ink, #12314e)",
|
|
150
|
+
d: "M225.21,368.12c8.14-14.26,21.23-23.67,36.61-26.8l24.13-4.91c24.77-5.03,49.74-30.01,43.64-57.5-1.23-5.52-5.96-8.44-11.59-8.97-10.59-1.01-21.06-1.48-31.46-3.17-10.47-1.7-17.76-7.16-22.72-16.52-13.11-24.7-34.21-38.21-62.98-35.89-32.35,2.61-60.19,20.02-78.69,46.19-8.86,12.53-17.29,24.45-24.06,38.06-9.19,18.49,6.19,33.68,20.29,44.38,11.81,8.96,15.39,17.42,23.42,14.26,17.13-6.74,23.74-36.34,24.85-52.55l1.91-27.97c.45-6.63,1.48-12.94,5.66-18.84,10.07,43.41,17.92,81.63-15.36,116.38-18.45,19.26-30.63,43.84-21.53,70.61,1.81,5.31,4.18,9.89,5.44,15.71-49.05-41.25-82.59-100.28-68.34-165.81,2.75-12.63,7.16-23.65,13.2-34.96,14.89-27.92,36.14-51.76,63.26-68.22,29.85-18.12,65.65-21.17,97.88-7.93,14.6,6,26.59,15.11,38.32,26.09,7.66-6.63,14.7-12.8,23.27-18.11,27.44-17,60.05-20.76,90.86-10.43,18.28,6.12,34.08,16.52,48,29.84,32.73,31.32,55.61,73.73,53.14,120.37-1.9,35.78-15.78,69.68-39.3,97.5,2.83-33.15-1.57-57.13-20.69-83.05-1.39-19.67-2.57-38.89-16.51-55.64-10.36,9-17.24,20.04-25.23,30.79-17.93-6.9-37.08-3.27-49.82,11.18-15.8,17.9-32.66-7.14-33.3,15.72-4.67,5.19-8.68,9.51-9.33,16.8-1.08,12.18,3.59,23.69,13.76,30.79l12.21,8.52c12.5,8.72,16.99,23.63,13.91,38.67-2.35,11.43-8.1,21.24-15.29,30.53-8.3,10.65-17.82,19.82-28.28,28.44-10.27,8.46-18.67,17.43-28.71,27.3,6.77-55.37-37.54-71.57-53.11-115.32-5.31-14.91-5.64-31.2,2.56-45.56ZM310.95,414.5c.66-6.02-.23-11.99-4.42-16.09-3.63-3.56-9.46-5.66-15.26-4.62-7.74,1.39-13.23,6.73-18.29,13.26-7.08-12.24-20.28-17.67-30.59-9.89-4.5,3.4-6.97,9.12-6.98,15.36-.05,19.1,21.83,36.81,35.58,48.75,14.15-12.18,36.74-27.53,39.96-46.76Z"
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
"path",
|
|
155
|
+
{
|
|
156
|
+
fill: "var(--paw-logo-heart, #ef7152)",
|
|
157
|
+
d: "M310.95,414.5c-3.22,19.23-25.81,34.58-39.96,46.76-13.75-11.93-35.63-29.65-35.58-48.75.02-6.24,2.48-11.96,6.98-15.36,10.31-7.78,23.51-2.35,30.59,9.89,5.06-6.53,10.54-11.86,18.29-13.26,5.8-1.04,11.63,1.06,15.26,4.62,4.19,4.1,5.08,10.07,4.42,16.09Z"
|
|
158
|
+
}
|
|
159
|
+
)
|
|
103
160
|
]
|
|
104
161
|
}
|
|
105
162
|
);
|
|
@@ -284,6 +341,27 @@ function Shell({
|
|
|
284
341
|
children
|
|
285
342
|
] });
|
|
286
343
|
}
|
|
344
|
+
function LoadError({
|
|
345
|
+
error,
|
|
346
|
+
retry,
|
|
347
|
+
account
|
|
348
|
+
}) {
|
|
349
|
+
const status = error && typeof error === "object" && "status" in error ? error.status : void 0;
|
|
350
|
+
if (status === 401 || status === 403)
|
|
351
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-load-error", role: "status", children: [
|
|
352
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { children: "Reconnect your community account." }),
|
|
353
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Your network sign-in gives you access to your pets across participating publications." }),
|
|
354
|
+
/* @__PURE__ */ jsxRuntime.jsx(petsForms.PetSignIn, { returnTo: retry })
|
|
355
|
+
] });
|
|
356
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-load-error", role: "status", children: [
|
|
357
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { children: "We couldn\u2019t open your pet community." }),
|
|
358
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: status === 429 ? "There have been several requests in a short time. Wait a moment, then try again." : "The connection is temporarily unavailable. Try loading this page again to continue." }),
|
|
359
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "paw-form-actions", children: [
|
|
360
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-button", href: retry, children: "Try again" }),
|
|
361
|
+
retry !== account && /* @__PURE__ */ jsxRuntime.jsx("a", { className: "paw-text-link", href: account, children: "Back to My pets" })
|
|
362
|
+
] })
|
|
363
|
+
] });
|
|
364
|
+
}
|
|
287
365
|
async function PetAccountPage({
|
|
288
366
|
scope,
|
|
289
367
|
signedIn,
|
|
@@ -327,18 +405,18 @@ async function PetAccountPage({
|
|
|
327
405
|
)
|
|
328
406
|
] });
|
|
329
407
|
} catch (error) {
|
|
330
|
-
body =
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
408
|
+
body = /* @__PURE__ */ jsxRuntime.jsx(
|
|
409
|
+
LoadError,
|
|
410
|
+
{
|
|
411
|
+
error,
|
|
412
|
+
retry: paths.account,
|
|
413
|
+
account: paths.account
|
|
414
|
+
}
|
|
415
|
+
);
|
|
334
416
|
}
|
|
335
417
|
return /* @__PURE__ */ jsxRuntime.jsx(Shell, { paths, signedIn, children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "paw-story", children: [
|
|
336
418
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "paw-eyebrow", children: "Your community account" }),
|
|
337
|
-
/* @__PURE__ */ jsxRuntime.
|
|
338
|
-
"Your pets.",
|
|
339
|
-
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
340
|
-
"Your little corner."
|
|
341
|
-
] }),
|
|
419
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { children: "A home for your pets." }),
|
|
342
420
|
body
|
|
343
421
|
] }) });
|
|
344
422
|
}
|
|
@@ -392,8 +470,11 @@ async function PetSubmitPage({
|
|
|
392
470
|
accountUrl: paths.account
|
|
393
471
|
}
|
|
394
472
|
);
|
|
395
|
-
} catch {
|
|
396
|
-
form = /* @__PURE__ */ jsxRuntime.
|
|
473
|
+
} catch (error) {
|
|
474
|
+
form = /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "paw-form", children: [
|
|
475
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { children: "Let\u2019s meet your pet." }),
|
|
476
|
+
/* @__PURE__ */ jsxRuntime.jsx(LoadError, { error, retry: next, account: paths.account })
|
|
477
|
+
] });
|
|
397
478
|
}
|
|
398
479
|
return /* @__PURE__ */ jsxRuntime.jsx(Shell, { paths, children: form });
|
|
399
480
|
}
|
package/dist/pets-plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LostPetNotice, PetCelebrationCard, AdoptionListingCard, PetEventCard, PetProfileCard, PawMark } from './chunk-
|
|
1
|
+
import { LostPetNotice, PetCelebrationCard, AdoptionListingCard, PetEventCard, PetProfileCard, PawMark } from './chunk-KNO2LIDQ.js';
|
|
2
2
|
import './chunk-4JRWZXAP.js';
|
|
3
3
|
import './chunk-66GI2IX6.js';
|
|
4
4
|
import { petRequest } from './chunk-ABPJMDUG.js';
|
|
@@ -58,6 +58,27 @@ function Shell({
|
|
|
58
58
|
children
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
|
+
function LoadError({
|
|
62
|
+
error,
|
|
63
|
+
retry,
|
|
64
|
+
account
|
|
65
|
+
}) {
|
|
66
|
+
const status = error && typeof error === "object" && "status" in error ? error.status : void 0;
|
|
67
|
+
if (status === 401 || status === 403)
|
|
68
|
+
return /* @__PURE__ */ jsxs("div", { className: "paw-load-error", role: "status", children: [
|
|
69
|
+
/* @__PURE__ */ jsx("h2", { children: "Reconnect your community account." }),
|
|
70
|
+
/* @__PURE__ */ jsx("p", { children: "Your network sign-in gives you access to your pets across participating publications." }),
|
|
71
|
+
/* @__PURE__ */ jsx(PetSignIn, { returnTo: retry })
|
|
72
|
+
] });
|
|
73
|
+
return /* @__PURE__ */ jsxs("div", { className: "paw-load-error", role: "status", children: [
|
|
74
|
+
/* @__PURE__ */ jsx("h2", { children: "We couldn\u2019t open your pet community." }),
|
|
75
|
+
/* @__PURE__ */ jsx("p", { children: status === 429 ? "There have been several requests in a short time. Wait a moment, then try again." : "The connection is temporarily unavailable. Try loading this page again to continue." }),
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "paw-form-actions", children: [
|
|
77
|
+
/* @__PURE__ */ jsx("a", { className: "paw-button", href: retry, children: "Try again" }),
|
|
78
|
+
retry !== account && /* @__PURE__ */ jsx("a", { className: "paw-text-link", href: account, children: "Back to My pets" })
|
|
79
|
+
] })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
61
82
|
async function PetAccountPage({
|
|
62
83
|
scope,
|
|
63
84
|
signedIn,
|
|
@@ -101,18 +122,18 @@ async function PetAccountPage({
|
|
|
101
122
|
)
|
|
102
123
|
] });
|
|
103
124
|
} catch (error) {
|
|
104
|
-
body =
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
125
|
+
body = /* @__PURE__ */ jsx(
|
|
126
|
+
LoadError,
|
|
127
|
+
{
|
|
128
|
+
error,
|
|
129
|
+
retry: paths.account,
|
|
130
|
+
account: paths.account
|
|
131
|
+
}
|
|
132
|
+
);
|
|
108
133
|
}
|
|
109
134
|
return /* @__PURE__ */ jsx(Shell, { paths, signedIn, children: /* @__PURE__ */ jsxs("section", { className: "paw-story", children: [
|
|
110
135
|
/* @__PURE__ */ jsx("p", { className: "paw-eyebrow", children: "Your community account" }),
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
"Your pets.",
|
|
113
|
-
/* @__PURE__ */ jsx("br", {}),
|
|
114
|
-
"Your little corner."
|
|
115
|
-
] }),
|
|
136
|
+
/* @__PURE__ */ jsx("h1", { children: "A home for your pets." }),
|
|
116
137
|
body
|
|
117
138
|
] }) });
|
|
118
139
|
}
|
|
@@ -166,8 +187,11 @@ async function PetSubmitPage({
|
|
|
166
187
|
accountUrl: paths.account
|
|
167
188
|
}
|
|
168
189
|
);
|
|
169
|
-
} catch {
|
|
170
|
-
form = /* @__PURE__ */
|
|
190
|
+
} catch (error) {
|
|
191
|
+
form = /* @__PURE__ */ jsxs("section", { className: "paw-form", children: [
|
|
192
|
+
/* @__PURE__ */ jsx("h1", { children: "Let\u2019s meet your pet." }),
|
|
193
|
+
/* @__PURE__ */ jsx(LoadError, { error, retry: next, account: paths.account })
|
|
194
|
+
] });
|
|
171
195
|
}
|
|
172
196
|
return /* @__PURE__ */ jsx(Shell, { paths, children: form });
|
|
173
197
|
}
|