@ai-matrx/records 0.26.0 → 0.28.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 +51 -0
- package/dist/core/index.cjs +79 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +50 -3
- package/dist/core/index.d.ts +50 -3
- package/dist/core/index.js +79 -0
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +189 -4
- package/dist/index.d.ts +189 -4
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +79 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +229 -4
- package/dist/react/index.d.ts +229 -4
- package/dist/react/index.js +79 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __export(src_exports, {
|
|
|
38
38
|
PARITY_FIELD_TYPES: () => PARITY_FIELD_TYPES,
|
|
39
39
|
PERMISSION_LEVELS: () => PERMISSION_LEVELS,
|
|
40
40
|
PER_VALUE_ACCESS_WORDS: () => PER_VALUE_ACCESS_WORDS,
|
|
41
|
+
PIPELINE_RULE_KINDS: () => PIPELINE_RULE_KINDS,
|
|
41
42
|
REFUSALS_WORTH_REPEATING: () => REFUSALS_WORTH_REPEATING,
|
|
42
43
|
RELATION_BINDINGS: () => RELATION_BINDINGS,
|
|
43
44
|
RELATION_CARDINALITIES: () => RELATION_CARDINALITIES,
|
|
@@ -56,6 +57,7 @@ __export(src_exports, {
|
|
|
56
57
|
VALUE_ENVELOPE_KEYS: () => VALUE_ENVELOPE_KEYS,
|
|
57
58
|
asPermissionLevel: () => asPermissionLevel,
|
|
58
59
|
atLeast: () => atLeast,
|
|
60
|
+
bookingPath: () => bookingPath,
|
|
59
61
|
choiceSlug: () => choiceSlug,
|
|
60
62
|
choiceValuesOf: () => choiceValuesOf,
|
|
61
63
|
choicesOf: () => choicesOf,
|
|
@@ -67,6 +69,7 @@ __export(src_exports, {
|
|
|
67
69
|
isRecordsErr: () => isRecordsErr,
|
|
68
70
|
isTheChosen: () => isTheChosen,
|
|
69
71
|
looksLikeAnId: () => looksLikeAnId,
|
|
72
|
+
mayDrag: () => mayDrag,
|
|
70
73
|
measureKey: () => measureKey,
|
|
71
74
|
memoryStore: () => memoryStore,
|
|
72
75
|
mintClientKey: () => mintClientKey,
|
|
@@ -206,7 +209,16 @@ function looksLikeAnId(value) {
|
|
|
206
209
|
return typeof value === "string" && UUID.test(value);
|
|
207
210
|
}
|
|
208
211
|
|
|
212
|
+
// src/pipeline.ts
|
|
213
|
+
var PIPELINE_RULE_KINDS = ["moves", "requires", "who", "limit", "entry"];
|
|
214
|
+
function mayDrag(level) {
|
|
215
|
+
return level === "editor" || level === "admin" || level === "owner";
|
|
216
|
+
}
|
|
217
|
+
|
|
209
218
|
// src/rule.ts
|
|
219
|
+
function bookingPath(formId) {
|
|
220
|
+
return `/b/${formId}`;
|
|
221
|
+
}
|
|
210
222
|
function publicFormPath(formId) {
|
|
211
223
|
return `/f/${formId}`;
|
|
212
224
|
}
|