@drawbridge/components 0.1.10 → 0.1.12
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.
|
@@ -1079,8 +1079,8 @@ const FormOrganizationWorkflowEdit = ({
|
|
|
1079
1079
|
// missing here with no reason reads as our bug rather than their
|
|
1080
1080
|
// setting — and the reason names the fix.
|
|
1081
1081
|
render: (item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
1082
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (item == null ? void 0 : item.blocked) ? "text-gray" : void 0, children: item == null ? void 0 : item.title }),
|
|
1083
|
-
((item == null ? void 0 : item.blocked) || (item == null ? void 0 : item.warning)) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "block text-sm text-gray", children: item.blocked || item.warning })
|
|
1082
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (item == null ? void 0 : item.blocked) ? "text-gray-dark" : void 0, children: item == null ? void 0 : item.title }),
|
|
1083
|
+
((item == null ? void 0 : item.blocked) || (item == null ? void 0 : item.warning)) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "block text-sm text-gray-dark", children: item.blocked || item.warning })
|
|
1084
1084
|
] }),
|
|
1085
1085
|
renderButton: ({ button, item }) => (
|
|
1086
1086
|
// The list's small inline Add, unless the list says otherwise.
|
|
@@ -1039,8 +1039,8 @@ const FormOrganizationWorkflowEdit = ({
|
|
|
1039
1039
|
// missing here with no reason reads as our bug rather than their
|
|
1040
1040
|
// setting — and the reason names the fix.
|
|
1041
1041
|
render: (item) => /* @__PURE__ */ jsxs("div", { children: [
|
|
1042
|
-
/* @__PURE__ */ jsx("span", { className: (item == null ? void 0 : item.blocked) ? "text-gray" : void 0, children: item == null ? void 0 : item.title }),
|
|
1043
|
-
((item == null ? void 0 : item.blocked) || (item == null ? void 0 : item.warning)) && /* @__PURE__ */ jsx("span", { className: "block text-sm text-gray", children: item.blocked || item.warning })
|
|
1042
|
+
/* @__PURE__ */ jsx("span", { className: (item == null ? void 0 : item.blocked) ? "text-gray-dark" : void 0, children: item == null ? void 0 : item.title }),
|
|
1043
|
+
((item == null ? void 0 : item.blocked) || (item == null ? void 0 : item.warning)) && /* @__PURE__ */ jsx("span", { className: "block text-sm text-gray-dark", children: item.blocked || item.warning })
|
|
1044
1044
|
] }),
|
|
1045
1045
|
renderButton: ({ button, item }) => (
|
|
1046
1046
|
// The list's small inline Add, unless the list says otherwise.
|
|
@@ -245,6 +245,27 @@ const TemplateSocketOrganization = ({
|
|
|
245
245
|
enabled: Boolean(params == null ? void 0 : params.organization),
|
|
246
246
|
room: "organization",
|
|
247
247
|
listeners: {
|
|
248
|
+
// @story affiliates/delete
|
|
249
|
+
// Sync emits this when an affiliate is created, edited or deleted,
|
|
250
|
+
// and on a delete only after its analytics are gone. The Affiliate
|
|
251
|
+
// filter on Analytics / Revenue / Redemptions reads the picker list,
|
|
252
|
+
// and Analytics counts the deleted affiliate's events until it
|
|
253
|
+
// refetches. The analytics key holds the organization inside its
|
|
254
|
+
// filter state, so it is cleared by prefix; only an open page refetches.
|
|
255
|
+
"organization.affiliates": () => {
|
|
256
|
+
queryClient.invalidateQueries({
|
|
257
|
+
queryKey: ["list-resource", "affiliate"]
|
|
258
|
+
});
|
|
259
|
+
queryClient.invalidateQueries({
|
|
260
|
+
queryKey: ["organization-affiliates", params.organization]
|
|
261
|
+
});
|
|
262
|
+
queryClient.invalidateQueries({
|
|
263
|
+
queryKey: ["organization-affiliate"]
|
|
264
|
+
});
|
|
265
|
+
queryClient.invalidateQueries({
|
|
266
|
+
queryKey: ["organization-analytics"]
|
|
267
|
+
});
|
|
268
|
+
},
|
|
248
269
|
// Async AI generation flips a record's processing.ai.status
|
|
249
270
|
// ( pending → ready | failed ) in a sync worker. The worker
|
|
250
271
|
// emits to the org room so the listing refetches and the
|
|
@@ -511,6 +532,9 @@ const TemplateSocketOrganization = ({
|
|
|
511
532
|
["organization-members", params == null ? void 0 : params.organization],
|
|
512
533
|
["organization-usage-chart", params == null ? void 0 : params.organization],
|
|
513
534
|
["organization-segments", params == null ? void 0 : params.organization],
|
|
535
|
+
["organization-affiliates", params == null ? void 0 : params.organization],
|
|
536
|
+
["organization-analytics"],
|
|
537
|
+
["list-resource", "affiliate"],
|
|
514
538
|
["menu", "organization", params == null ? void 0 : params.organization],
|
|
515
539
|
["menu", "campaign", params == null ? void 0 : params.organization]
|
|
516
540
|
]
|
|
@@ -210,6 +210,27 @@ const TemplateSocketOrganization = ({
|
|
|
210
210
|
enabled: Boolean(params == null ? void 0 : params.organization),
|
|
211
211
|
room: "organization",
|
|
212
212
|
listeners: {
|
|
213
|
+
// @story affiliates/delete
|
|
214
|
+
// Sync emits this when an affiliate is created, edited or deleted,
|
|
215
|
+
// and on a delete only after its analytics are gone. The Affiliate
|
|
216
|
+
// filter on Analytics / Revenue / Redemptions reads the picker list,
|
|
217
|
+
// and Analytics counts the deleted affiliate's events until it
|
|
218
|
+
// refetches. The analytics key holds the organization inside its
|
|
219
|
+
// filter state, so it is cleared by prefix; only an open page refetches.
|
|
220
|
+
"organization.affiliates": () => {
|
|
221
|
+
queryClient.invalidateQueries({
|
|
222
|
+
queryKey: ["list-resource", "affiliate"]
|
|
223
|
+
});
|
|
224
|
+
queryClient.invalidateQueries({
|
|
225
|
+
queryKey: ["organization-affiliates", params.organization]
|
|
226
|
+
});
|
|
227
|
+
queryClient.invalidateQueries({
|
|
228
|
+
queryKey: ["organization-affiliate"]
|
|
229
|
+
});
|
|
230
|
+
queryClient.invalidateQueries({
|
|
231
|
+
queryKey: ["organization-analytics"]
|
|
232
|
+
});
|
|
233
|
+
},
|
|
213
234
|
// Async AI generation flips a record's processing.ai.status
|
|
214
235
|
// ( pending → ready | failed ) in a sync worker. The worker
|
|
215
236
|
// emits to the org room so the listing refetches and the
|
|
@@ -476,6 +497,9 @@ const TemplateSocketOrganization = ({
|
|
|
476
497
|
["organization-members", params == null ? void 0 : params.organization],
|
|
477
498
|
["organization-usage-chart", params == null ? void 0 : params.organization],
|
|
478
499
|
["organization-segments", params == null ? void 0 : params.organization],
|
|
500
|
+
["organization-affiliates", params == null ? void 0 : params.organization],
|
|
501
|
+
["organization-analytics"],
|
|
502
|
+
["list-resource", "affiliate"],
|
|
479
503
|
["menu", "organization", params == null ? void 0 : params.organization],
|
|
480
504
|
["menu", "campaign", params == null ? void 0 : params.organization]
|
|
481
505
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawbridge/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./advertisement": {
|
|
6
6
|
"types": "./types/advertisement.d.ts",
|
|
@@ -1646,7 +1646,7 @@
|
|
|
1646
1646
|
},
|
|
1647
1647
|
"devDependencies": {
|
|
1648
1648
|
"@analytics/google-tag-manager": "0.5.5",
|
|
1649
|
-
"@drawbridge/drawbridge-agents": "0.1.
|
|
1649
|
+
"@drawbridge/drawbridge-agents": "0.1.98",
|
|
1650
1650
|
"@drawbridge/drawbridge-telemetry": "0.0.19",
|
|
1651
1651
|
"@drawbridge/drawbridge-utils": "0.0.222",
|
|
1652
1652
|
"@headlessui/react": "2.2.9",
|