react-semaphor 0.1.381 → 0.1.382
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/DATA_APP_SDK.md +238 -0
- package/README.md +7 -0
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +45 -41
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +6 -6
- package/dist/chunks/analyze-result-contract-CtXfp3nv.js +1 -0
- package/dist/chunks/analyze-result-contract-DuhlklhI.js +102 -0
- package/dist/chunks/{braces-BT-ZyB-g.js → braces-CGi-YFZp.js} +1 -1
- package/dist/chunks/{braces-DOxxfERN.js → braces-CP8BEzl3.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-Dsgs8WDv.js → calendar-preferences-dialog-CV4xF2Tp.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-iZs8XqyH.js → calendar-preferences-dialog-rDDobeLo.js} +1 -1
- package/dist/chunks/catalog-field-grounding-Bnx-3tE0.js +1 -0
- package/dist/chunks/catalog-field-grounding-CJKAqtiC.js +100 -0
- package/dist/chunks/{dashboard-briefing-launcher-Coks66cV.js → dashboard-briefing-launcher-BT00MvGB.js} +5 -5
- package/dist/chunks/{dashboard-briefing-launcher-B5vPTl8P.js → dashboard-briefing-launcher-Dcbh-mjY.js} +1 -1
- package/dist/chunks/{dashboard-controls-BfkcnIdy.js → dashboard-controls-B6y7jkKO.js} +8 -8
- package/dist/chunks/{dashboard-controls-Dyqye6fh.js → dashboard-controls-CRqnPibB.js} +1 -1
- package/dist/chunks/{dashboard-json-DjXi4cI6.js → dashboard-json-CfIUG8k1.js} +3 -3
- package/dist/chunks/{dashboard-json-CV_LnO9x.js → dashboard-json-DEQqRR1x.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DOW1Ap1N.js → edit-dashboard-visual-DMbf89xa.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-yinO0yU-.js → edit-dashboard-visual-wDOcHak3.js} +1 -1
- package/dist/chunks/{index-DlprYjr6.js → index-BAsWLkZ8.js} +169 -168
- package/dist/chunks/{index-CkoRCh3g.js → index-CrKxP9uF.js} +5 -5
- package/dist/chunks/{layout-grid-DTbOIOsE.js → layout-grid-BsKH3TgY.js} +1 -1
- package/dist/chunks/{layout-grid-DccceHv4.js → layout-grid-jJQUqDN9.js} +1 -1
- package/dist/chunks/operators-C8TxpM4C.js +48 -0
- package/dist/chunks/operators-DrTQsJXv.js +1 -0
- package/dist/chunks/{palette-SimHJELn.js → palette-9zLPGlj2.js} +1 -1
- package/dist/chunks/{palette-DCzLwqIw.js → palette-xU9Qt6bE.js} +1 -1
- package/dist/chunks/{save-D2O96E5A.js → save-8A_q6K4E.js} +1 -1
- package/dist/chunks/{save-zNVYH02T.js → save-DzciESDh.js} +1 -1
- package/dist/chunks/{source-identity-Dj3dryN9.js → source-identity-CN4xiyKJ.js} +5 -5
- package/dist/chunks/{switch-DMPsMpHW.js → switch-DArtNJZh.js} +292 -291
- package/dist/chunks/{switch-Jhyl63RF.js → switch-k7kj6NRg.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-r5JKyXU8.js → use-create-flow-overlay-state-BdG1DiSx.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-NsqFPwdB.js → use-create-flow-overlay-state-ipeaE65_.js} +1 -1
- package/dist/chunks/{validators-CtNmgsvG.js → validators-CHPH6ORs.js} +641 -498
- package/dist/chunks/validators-lWo8m0Q7.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +105 -92
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +444 -380
- package/dist/data-app-sdk-adapters/index.cjs +1 -0
- package/dist/data-app-sdk-adapters/index.js +383 -0
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +1073 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +58 -31
- package/dist/types/dashboard-assistant.d.ts +40 -15
- package/dist/types/dashboard-authoring.d.ts +36 -16
- package/dist/types/dashboard.d.ts +8 -8
- package/dist/types/data-app-builder.d.ts +35 -11
- package/dist/types/data-app-sdk-adapters.d.ts +733 -0
- package/dist/types/data-app-sdk-validation.d.ts +85 -25
- package/dist/types/data-app-sdk.d.ts +99 -155
- package/dist/types/main.d.ts +35 -11
- package/dist/types/shared.d.ts +8 -8
- package/dist/types/surfboard.d.ts +8 -8
- package/dist/types/types.d.ts +8 -8
- package/package.json +9 -2
- package/src/data-app-sdk/README.md +240 -0
- package/dist/chunks/catalog-field-grounding-8L9I0zdg.js +0 -1
- package/dist/chunks/catalog-field-grounding-BK4BX8sZ.js +0 -200
- package/dist/chunks/validation-BM3-ShHV.js +0 -1003
- package/dist/chunks/validation-BVpqRFar.js +0 -1
- package/dist/chunks/validators-jpoYhpHh.js +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function i(n) {
|
|
2
|
+
const t = e(n);
|
|
3
|
+
return r(t) ? t : void 0;
|
|
4
|
+
}
|
|
5
|
+
function e(n) {
|
|
6
|
+
if (typeof n != "string" || n.trim().length === 0)
|
|
7
|
+
return;
|
|
8
|
+
const t = n.trim().toLowerCase();
|
|
9
|
+
switch (t) {
|
|
10
|
+
case "=":
|
|
11
|
+
return "=";
|
|
12
|
+
case "!=":
|
|
13
|
+
return "!=";
|
|
14
|
+
case "in":
|
|
15
|
+
return "in";
|
|
16
|
+
case "not_in":
|
|
17
|
+
return "not_in";
|
|
18
|
+
case "contains":
|
|
19
|
+
return "contains";
|
|
20
|
+
case "not_contains":
|
|
21
|
+
return "not_contains";
|
|
22
|
+
case "between":
|
|
23
|
+
return "between";
|
|
24
|
+
case "not_between":
|
|
25
|
+
return "not_between";
|
|
26
|
+
case ">":
|
|
27
|
+
case ">=":
|
|
28
|
+
case "<":
|
|
29
|
+
case "<=":
|
|
30
|
+
return t;
|
|
31
|
+
case "is_null":
|
|
32
|
+
return "is_null";
|
|
33
|
+
case "is_not_null":
|
|
34
|
+
return "is_not_null";
|
|
35
|
+
default:
|
|
36
|
+
return o(n) ? n : void 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function r(n) {
|
|
40
|
+
return n === "=" || n === "!=" || n === "in" || n === "not_in" || n === "contains" || n === "not_contains" || n === "between" || n === "not_between" || n === ">" || n === ">=" || n === "<" || n === "<=";
|
|
41
|
+
}
|
|
42
|
+
function o(n) {
|
|
43
|
+
return r(n) || n === "not_contains" || n === "is_null" || n === "is_not_null";
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
e as a,
|
|
47
|
+
i as n
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function o(n){const t=r(n);return e(t)?t:void 0}function r(n){if(typeof n!="string"||n.trim().length===0)return;const t=n.trim().toLowerCase();switch(t){case"=":return"=";case"!=":return"!=";case"in":return"in";case"not_in":return"not_in";case"contains":return"contains";case"not_contains":return"not_contains";case"between":return"between";case"not_between":return"not_between";case">":case">=":case"<":case"<=":return t;case"is_null":return"is_null";case"is_not_null":return"is_not_null";default:return i(n)?n:void 0}}function e(n){return n==="="||n==="!="||n==="in"||n==="not_in"||n==="contains"||n==="not_contains"||n==="between"||n==="not_between"||n===">"||n===">="||n==="<"||n==="<="}function i(n){return e(n)||n==="not_contains"||n==="is_null"||n==="is_not_null"}exports.normalizeSemaphorAnalyticsFilterOperator=r;exports.normalizeSemaphorInputOperator=o;
|