@antelopejs/dms 0.20.8 → 0.20.9-next.961.g10b1a7b

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 CHANGED
@@ -89,7 +89,7 @@ export class SalesPage extends PageController("sales", {
89
89
  | `@antelopejs/interface-database-decorators` | `>=0.5.2 <0.6.0` | `0.5.2` |
90
90
  | `@antelopejs/interface-dms` | `workspace:^` | `0.14.3` |
91
91
  | `@antelopejs/interface-dms-automation` | `>=0.7.0 <0.8.0` | `0.7.0` |
92
- | `@antelopejs/interface-dms-builder` | `workspace:^` | `0.5.1` |
92
+ | `@antelopejs/interface-dms-builder` | `workspace:^` | `0.5.2` |
93
93
  | `@antelopejs/interface-email` | `>=0.2.1 <0.3.0` | `0.2.1` |
94
94
  | `@antelopejs/interface-file-storage` | `>=0.1.4 <0.2.0` | `0.1.4` |
95
95
  | `@antelopejs/interface-redis` | `>=0.0.9 <0.1.0` | `0.0.9` |
@@ -247,7 +247,7 @@ __decorate([
247
247
  __metadata("design:returntype", Promise)
248
248
  ], AuthController.prototype, "verifyEmail", null);
249
249
  __decorate([
250
- (0, interface_api_1.Get)("/request-email-verification"),
250
+ (0, interface_api_1.Post)("/request-email-verification"),
251
251
  __param(0, (0, auth_1.AuthRawUser)()),
252
252
  __metadata("design:type", Function),
253
253
  __metadata("design:paramtypes", [Function]),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAQmC;AACnC,uEAAkE;AAClE,6FAAkE;AAClE,yDAA6D;AAC7D,0DAI2C;AAC3C,sCAA0C;AAC1C,oCAAkE;AAClE,8CAA8D;AAC9D,yDAA2C;AAS3C,MAAa,cAAe,SAAQ,IAAA,0BAAU,EAAC,WAAW,CAAC;IAmBzD,IAAY,QAAQ;QAClB,OAAO,UAAU,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function requestEmailValidation() {
106
106
  try {
107
107
  isLoading.value = true;
108
- await $authFetch("/api/auth/request-email-verification");
108
+ await $authFetch("/api/auth/request-email-verification", {
109
+ method: "POST",
110
+ });
109
111
 
110
112
  startCooldown();
111
113
 
@@ -0,0 +1,132 @@
1
+ import type {
2
+ ConfirmDialog,
3
+ ConfirmDialogField,
4
+ ConfirmDialogSecondaryAction,
5
+ } from "#dms-core/app/types/confirm-dialog";
6
+
7
+ /** A component name as the registry compares it: case, a leading `lazy` and every non-alphanumeric character dropped. */
8
+ function registryKey(name: string): string {
9
+ return name
10
+ .toLowerCase()
11
+ .replace(/[^a-z0-9]/g, "")
12
+ .replace(/^lazy/, "");
13
+ }
14
+
15
+ const NUMBER_KEYS = [
16
+ "placeholder",
17
+ "min",
18
+ "max",
19
+ "step",
20
+ "clamp",
21
+ "currency",
22
+ "suffix",
23
+ "width",
24
+ ];
25
+ const DATE_KEYS = ["minDate", "maxDate", "multiple", "range"];
26
+ const BOOLEAN_KEYS = ["label", "description"];
27
+
28
+ /**
29
+ * The built-in inputs a fetched dialog's field may be drawn by, none of which
30
+ * sends a request, reads a URL or draws another component, each with the
31
+ * option keys its interface-dms `FormComponents` factory emits.
32
+ */
33
+ const REQUEST_FREE_INPUTS: ReadonlyMap<string, ReadonlySet<string>> = new Map(
34
+ Object.entries({
35
+ "dms-input-text": [
36
+ "placeholder",
37
+ "minLength",
38
+ "maxLength",
39
+ "showCount",
40
+ "width",
41
+ "preview",
42
+ ],
43
+ "dms-input-textarea": ["placeholder", "maxLength", "showCount", "rows"],
44
+ "dms-input-email": ["placeholder"],
45
+ "dms-input-number": NUMBER_KEYS,
46
+ "dms-input-percentage": NUMBER_KEYS,
47
+ "dms-input-phone": ["placeholder", "requiredPrefix"],
48
+ "dms-input-password": [
49
+ "placeholder",
50
+ "minLength",
51
+ "confirmPassword",
52
+ "confirmPlaceholder",
53
+ ],
54
+ "dms-input-color": ["placeholder"],
55
+ "dms-input-time": ["placeholder", "min", "max"],
56
+ "dms-input-select": ["items", "multiple", "placeholder", "deselectable"],
57
+ "dms-radio-group": ["items", "orientation"],
58
+ "dms-segmented-select": ["items"],
59
+ "dms-choice-cards": ["items", "multiple", "columns"],
60
+ "dms-input-checkbox": BOOLEAN_KEYS,
61
+ "dms-input-switch": BOOLEAN_KEYS,
62
+ "dms-boolean-card": [...BOOLEAN_KEYS, "icon"],
63
+ "dms-input-slider": ["min", "max", "step"],
64
+ "dms-input-tags": ["placeholder", "max", "itemType", "suggestions"],
65
+ "dms-input-calendar": DATE_KEYS,
66
+ "dms-date-picker": DATE_KEYS,
67
+ "dms-date-picker-range": ["minDate", "maxDate"],
68
+ }).map(([name, keys]) => [registryKey(name), new Set(keys)]),
69
+ );
70
+
71
+ /** A fetched field with only its input's own options, or `undefined` when no request-free input draws it. */
72
+ function drawableField(
73
+ field: ConfirmDialogField,
74
+ ): ConfirmDialogField | undefined {
75
+ const { componentName, options } = field.component;
76
+ const keys =
77
+ componentName === undefined
78
+ ? undefined
79
+ : REQUEST_FREE_INPUTS.get(registryKey(componentName));
80
+ if (!keys) return undefined;
81
+ const kept = Object.entries(options ?? {}).filter(([key]) => keys.has(key));
82
+ return {
83
+ ...field,
84
+ component: { ...field.component, options: Object.fromEntries(kept) },
85
+ };
86
+ }
87
+
88
+ const LINK_SCHEMES = new Set(["http", "https", "mailto", "tel"]);
89
+ const URL_SCHEME = /^([a-z][\d+.a-z-]*):/i;
90
+ const LAST_TRIMMED_CODE = 0x20;
91
+
92
+ /**
93
+ * Whether a link opens no script, read as the browser reads its scheme (tabs
94
+ * and newlines dropped, leading controls trimmed): an allowed scheme, or none
95
+ * and no `{{token}}` before its first `/`, `?` or `#` that could write one.
96
+ */
97
+ function isSafeLink(url: string): boolean {
98
+ const kept = url.replace(/[\t\n\r]/g, "");
99
+ let start = 0;
100
+ while (start < kept.length && kept.charCodeAt(start) <= LAST_TRIMMED_CODE) {
101
+ start += 1;
102
+ }
103
+ const read = kept.slice(start);
104
+ const scheme = URL_SCHEME.exec(read)?.[1];
105
+ if (scheme) return LINK_SCHEMES.has(scheme.toLowerCase());
106
+ return !(read.split(/[/?#]/, 1)[0] ?? "").includes("{{");
107
+ }
108
+
109
+ const isSafeSecondaryAction = (
110
+ action: ConfirmDialogSecondaryAction | undefined,
111
+ ): boolean =>
112
+ action?.target.type !== "external" || isSafeLink(action.target.url);
113
+
114
+ /**
115
+ * The dialog a `confirm: { from }` URL answered, as the dashboard draws it.
116
+ * The answer is data anyone who writes to that route controls, and the owner
117
+ * confirms it with their session: its `component` is left out and each field
118
+ * keeps only its input's own options. A field drawn by any input but a
119
+ * request-free built-in one, or a secondary link that could run a script,
120
+ * refuses the whole dialog (`undefined`), since leaving it out would change
121
+ * what the action sends or offers.
122
+ */
123
+ export function drawableFetchedDialog(
124
+ dialog: ConfirmDialog,
125
+ ): ConfirmDialog | undefined {
126
+ const { component: _component, fields, ...drawn } = dialog;
127
+ if (!isSafeSecondaryAction(drawn.secondaryAction)) return undefined;
128
+ if (!fields) return drawn;
129
+ const kept = fields.map(drawableField);
130
+ if (kept.some((field) => field === undefined)) return undefined;
131
+ return { ...drawn, fields: kept.filter((field) => field !== undefined) };
132
+ }
@@ -9,6 +9,7 @@ import type {
9
9
  ConfirmValues,
10
10
  } from "../../../composables/confirm/types";
11
11
  import { resolveConfirmDialog } from "./confirmDialogTexts";
12
+ import { drawableFetchedDialog } from "./fetchedConfirmDialog";
12
13
  import type { DownloadFetch } from "../../utils/fileDownload";
13
14
  import { secondaryTargetRunner } from "./secondaryTarget";
14
15
  import { namesPageValue, resolveLinkVariables } from "../../utils/urlVariables";
@@ -61,7 +62,11 @@ export function useActionConfirm() {
61
62
  ...request.urlParams,
62
63
  });
63
64
  try {
64
- return await $authFetch<ConfirmDialog>(url);
65
+ const drawable = drawableFetchedDialog(
66
+ await $authFetch<ConfirmDialog>(url),
67
+ );
68
+ if (!drawable) throw new Error(`${url} answered a field it cannot draw`);
69
+ return drawable;
65
70
  } catch (error) {
66
71
  errorPresenter.presentError(error, {
67
72
  fallbackKey: "dms.action_error.generic",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms",
3
- "version": "0.20.8",
3
+ "version": "0.20.9-next.961.g10b1a7b",
4
4
  "description": "AntelopeJS DMS. Plug in your PostgreSQL, MySQL, MariaDB, MongoDB or RethinkDB database and your coding agent builds a back office and analytics dashboard as typed TypeScript. Real-time updates on the data the DMS manages.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -90,6 +90,7 @@
90
90
  "@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
91
91
  "@antelopejs/interface-database": ">=0.4.0 <0.5.0",
92
92
  "@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0",
93
+ "@antelopejs/interface-dms": "0.14.4-next.961.g10b1a7b",
93
94
  "@antelopejs/interface-email": ">=0.2.1 <0.3.0",
94
95
  "@antelopejs/interface-file-storage": ">=0.1.4 <0.2.0",
95
96
  "@csstools/css-tokenizer": "4.0.0",
@@ -112,8 +113,7 @@
112
113
  "ua-parser-js": "^2.0.9",
113
114
  "zod": "^3.25.0",
114
115
  "zod-to-json-schema": "~3.24.6",
115
- "@antelopejs/interface-dms-builder": "^0.5.2",
116
- "@antelopejs/interface-dms": "^0.14.3"
116
+ "@antelopejs/interface-dms-builder": "^0.5.2"
117
117
  },
118
118
  "devDependencies": {
119
119
  "@antelopejs/api": "~1.7.0",
@@ -209,7 +209,7 @@
209
209
  "optional": true
210
210
  }
211
211
  },
212
- "gitHead": "63f91b907babfdc757a362950d61dcf4ff412d02",
212
+ "gitHead": "10b1a7ba5a64554c601a871300fba4da7ed9c612",
213
213
  "scripts": {
214
214
  "build": "pnpm --filter @antelopejs/interface-dms --filter @antelopejs/interface-dms-builder build && rimraf dist && tsc && tsc-alias && tsc -p bin/tsconfig.types.json",
215
215
  "dev": "ajs project run --inspect -w -p playground",