@yaoxiu/marketing-dsl 2.1.0 → 2.1.1
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.
|
@@ -618,9 +618,11 @@ function validateUserFields(dsl, allowed) {
|
|
|
618
618
|
names.forEach((name) => {
|
|
619
619
|
if (allowed.indexOf(name) > -1) return;
|
|
620
620
|
const guess = closestField(name, allowed);
|
|
621
|
+
const tail = guess ? `\uFF0C\u662F\u4E0D\u662F\u60F3\u5199 "user.${guess}"\uFF1F` : "\u3002";
|
|
621
622
|
issues.push({
|
|
622
623
|
path,
|
|
623
|
-
|
|
624
|
+
// 猜中候选时用问号收句,猜不中才补句号 —— 两个都加会写出「?。」这种重复标点
|
|
625
|
+
message: `\u7528\u6237\u4FE1\u606F\u91CC\u6CA1\u6709 "user.${name}" \u8FD9\u4E2A\u5B57\u6BB5${tail}\u53EF\u7528\u5B57\u6BB5\uFF1A${allowed.join(" / ")}`
|
|
624
626
|
});
|
|
625
627
|
});
|
|
626
628
|
return;
|
package/dist/docs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TRACK_EVENT_PATTERN, DEFAULT_USER_FIELDS, USER_FIELD_LABELS, DSL_VERSION, ACTION_TYPES, NODE_TYPES, ALLOWED_STYLE_KEYS, CLOSE_POSITIONS } from '../chunk-
|
|
1
|
+
import { TRACK_EVENT_PATTERN, DEFAULT_USER_FIELDS, USER_FIELD_LABELS, DSL_VERSION, ACTION_TYPES, NODE_TYPES, ALLOWED_STYLE_KEYS, CLOSE_POSITIONS } from '../chunk-DTHKC5AL.js';
|
|
2
2
|
|
|
3
3
|
// src/docs/reconcile.ts
|
|
4
4
|
function pickTokens(rows, columnIndex) {
|
package/dist/index.cjs
CHANGED
|
@@ -1387,9 +1387,11 @@ function validateUserFields(dsl, allowed) {
|
|
|
1387
1387
|
names.forEach((name) => {
|
|
1388
1388
|
if (allowed.indexOf(name) > -1) return;
|
|
1389
1389
|
const guess = closestField(name, allowed);
|
|
1390
|
+
const tail = guess ? `\uFF0C\u662F\u4E0D\u662F\u60F3\u5199 "user.${guess}"\uFF1F` : "\u3002";
|
|
1390
1391
|
issues.push({
|
|
1391
1392
|
path,
|
|
1392
|
-
|
|
1393
|
+
// 猜中候选时用问号收句,猜不中才补句号 —— 两个都加会写出「?。」这种重复标点
|
|
1394
|
+
message: `\u7528\u6237\u4FE1\u606F\u91CC\u6CA1\u6709 "user.${name}" \u8FD9\u4E2A\u5B57\u6BB5${tail}\u53EF\u7528\u5B57\u6BB5\uFF1A${allowed.join(" / ")}`
|
|
1393
1395
|
});
|
|
1394
1396
|
});
|
|
1395
1397
|
return;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { normalizeViews, createTicker, evaluate, resolveNodeStyle, interpolateDeep, interpolate, toLength, toCssStyle, parseEndTime, computeParts, formatParts } from './chunk-
|
|
2
|
-
export { ACTION_TYPES, ALLOWED_STYLE_KEYS, BANNER_MIN_ASPECT_RATIO, CLOSE_POSITIONS, DEFAULT_USER_FIELDS, DSL_VERSION, NODE_TYPES, SINGLE_VIEW_NAME, TRACK_EVENT_PATTERN, USER_FIELD_LABELS, check, computeParts, evaluate, formatIssues, formatParts, interpolate, interpolateDeep, isLength, isValidEndTime, normalizeViews, parseEndTime, toCssStyle, toLength, validate, validateUserFields } from './chunk-
|
|
1
|
+
import { normalizeViews, createTicker, evaluate, resolveNodeStyle, interpolateDeep, interpolate, toLength, toCssStyle, parseEndTime, computeParts, formatParts } from './chunk-DTHKC5AL.js';
|
|
2
|
+
export { ACTION_TYPES, ALLOWED_STYLE_KEYS, BANNER_MIN_ASPECT_RATIO, CLOSE_POSITIONS, DEFAULT_USER_FIELDS, DSL_VERSION, NODE_TYPES, SINGLE_VIEW_NAME, TRACK_EVENT_PATTERN, USER_FIELD_LABELS, check, computeParts, evaluate, formatIssues, formatParts, interpolate, interpolateDeep, isLength, isValidEndTime, normalizeViews, parseEndTime, toCssStyle, toLength, validate, validateUserFields } from './chunk-DTHKC5AL.js';
|
|
3
3
|
|
|
4
4
|
// src/url.ts
|
|
5
5
|
var SAFE_PROTOCOLS = ["http:", "https:", "mailto:", "tel:"];
|