@flamingo-stack/openframe-frontend-core 0.0.235 → 0.0.236
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/dist/{chunk-ABSGXVGP.js → chunk-265KKBV2.js} +2 -2
- package/dist/{chunk-VO3K4EEG.js → chunk-2LEMRJ7Z.js} +3 -3
- package/dist/{chunk-MDWFPCHN.cjs → chunk-7SOVT7RJ.cjs} +16 -16
- package/dist/{chunk-MDWFPCHN.cjs.map → chunk-7SOVT7RJ.cjs.map} +1 -1
- package/dist/{chunk-FWYMYXL7.js → chunk-AGU44B7B.js} +2 -2
- package/dist/{chunk-2MHQE5ET.js → chunk-AZGRKZJ7.js} +7 -5
- package/dist/{chunk-X4SQ2S7Z.cjs → chunk-BXMMMSIK.cjs} +1277 -1275
- package/dist/chunk-BXMMMSIK.cjs.map +1 -0
- package/dist/{chunk-M4CWPAIB.cjs → chunk-E3VQ53IM.cjs} +7 -7
- package/dist/{chunk-M4CWPAIB.cjs.map → chunk-E3VQ53IM.cjs.map} +1 -1
- package/dist/{chunk-CG6AZ2MC.cjs → chunk-FIG2RKZF.cjs} +12 -5
- package/dist/chunk-FIG2RKZF.cjs.map +1 -0
- package/dist/{chunk-4Y7427BF.cjs → chunk-GRTZ23GL.cjs} +49 -49
- package/dist/{chunk-4Y7427BF.cjs.map → chunk-GRTZ23GL.cjs.map} +1 -1
- package/dist/{chunk-GW6J7IPD.js → chunk-HGYOMQM3.js} +2 -2
- package/dist/{chunk-EI36Q3EC.js → chunk-JNXFCV7K.js} +4 -4
- package/dist/{chunk-ZLQT3T4F.js → chunk-KIGEKMBB.js} +4 -4
- package/dist/{chunk-X6WUWOL5.cjs → chunk-LPJPTBRI.cjs} +38 -38
- package/dist/{chunk-X6WUWOL5.cjs.map → chunk-LPJPTBRI.cjs.map} +1 -1
- package/dist/{chunk-ETFVD7QU.cjs → chunk-NOS6DCYY.cjs} +12 -12
- package/dist/{chunk-ETFVD7QU.cjs.map → chunk-NOS6DCYY.cjs.map} +1 -1
- package/dist/{chunk-Z6FT2JDQ.js → chunk-Q3GY66ST.js} +3 -3
- package/dist/{chunk-76NMNINV.js → chunk-XTCBRQN2.js} +12 -5
- package/dist/chunk-XTCBRQN2.js.map +1 -0
- package/dist/{chunk-W4NBBPQL.cjs → chunk-Z4IBEIWD.cjs} +8 -8
- package/dist/{chunk-W4NBBPQL.cjs.map → chunk-Z4IBEIWD.cjs.map} +1 -1
- package/dist/{chunk-HJRWBA7M.cjs → chunk-ZP2DKI5P.cjs} +32 -32
- package/dist/{chunk-HJRWBA7M.cjs.map → chunk-ZP2DKI5P.cjs.map} +1 -1
- package/dist/components/chat/index.cjs +10 -6
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +9 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/contact/index.js +6 -6
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/index.js +5 -5
- package/dist/components/icons/index.cjs +3 -3
- package/dist/components/icons/index.js +2 -2
- package/dist/components/index.cjs +241 -238
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +13 -10
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +30 -30
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/tickets/index.cjs +89 -89
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/ui/file-manager/index.cjs +69 -69
- package/dist/components/ui/file-manager/index.js +2 -2
- package/dist/components/ui/index.cjs +10 -6
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +9 -5
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/index.cjs +10 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -5
- package/dist/platform-domains.cjs +25 -3
- package/dist/platform-domains.cjs.map +1 -1
- package/dist/platform-domains.d.ts +32 -1
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +23 -4
- package/dist/platform-domains.js.map +1 -1
- package/dist/types/index.cjs +10 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +10 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.cjs +10 -3
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +10 -3
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/platform-domains.test.ts +52 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/vendor-display-button.tsx +4 -3
- package/src/platform-domains.ts +71 -10
- package/dist/chunk-76NMNINV.js.map +0 -1
- package/dist/chunk-CG6AZ2MC.cjs.map +0 -1
- package/dist/chunk-X4SQ2S7Z.cjs.map +0 -1
- /package/dist/{chunk-ABSGXVGP.js.map → chunk-265KKBV2.js.map} +0 -0
- /package/dist/{chunk-VO3K4EEG.js.map → chunk-2LEMRJ7Z.js.map} +0 -0
- /package/dist/{chunk-FWYMYXL7.js.map → chunk-AGU44B7B.js.map} +0 -0
- /package/dist/{chunk-2MHQE5ET.js.map → chunk-AZGRKZJ7.js.map} +0 -0
- /package/dist/{chunk-GW6J7IPD.js.map → chunk-HGYOMQM3.js.map} +0 -0
- /package/dist/{chunk-EI36Q3EC.js.map → chunk-JNXFCV7K.js.map} +0 -0
- /package/dist/{chunk-ZLQT3T4F.js.map → chunk-KIGEKMBB.js.map} +0 -0
- /package/dist/{chunk-Z6FT2JDQ.js.map → chunk-Q3GY66ST.js.map} +0 -0
package/dist/utils/index.js
CHANGED
|
@@ -46,8 +46,14 @@ function envOverrideFor(key) {
|
|
|
46
46
|
if (!envVar) return null;
|
|
47
47
|
return ENV_OVERRIDES[envVar] || null;
|
|
48
48
|
}
|
|
49
|
+
function ensureScheme(url) {
|
|
50
|
+
const trimmed = url.trim();
|
|
51
|
+
if (/^[a-z][a-z0-9+.-]*:\/\//i.test(trimmed)) return trimmed;
|
|
52
|
+
return `https://${trimmed.replace(/^\/+/, "")}`;
|
|
53
|
+
}
|
|
49
54
|
function getPlatformProductionUrl(platform) {
|
|
50
|
-
|
|
55
|
+
const resolved = envOverrideFor(platform) ?? byKey(platform)?.defaultUrl ?? envOverrideFor("flamingo") ?? "https://www.flamingo.run";
|
|
56
|
+
return ensureScheme(resolved);
|
|
51
57
|
}
|
|
52
58
|
function hostOf(value) {
|
|
53
59
|
if (!value) return null;
|
|
@@ -110,9 +116,10 @@ function getAllPlatformBaseDomains() {
|
|
|
110
116
|
}
|
|
111
117
|
return Array.from(baseDomains);
|
|
112
118
|
}
|
|
113
|
-
|
|
119
|
+
var _orderIdx = (k) => PLATFORM_DOMAINS.findIndex((e) => e.key === k);
|
|
120
|
+
if (_orderIdx("flamingo") > _orderIdx("flamingo-teaser") || _orderIdx("flamingo") > _orderIdx("universal") || getPlatformByHostname("flamingo.cx") !== "flamingo-teaser" || getPlatformByHostname("hub.openframe.ai") !== "openframe") {
|
|
114
121
|
console.error(
|
|
115
|
-
"[platform-domains] \u26A0\uFE0F PLATFORM_DOMAINS ordering invariant violated \u2014 `flamingo` must precede `flamingo-teaser`/`universal`, and the openframe aliases must be intact. Do not reorder the table."
|
|
122
|
+
"[platform-domains] \u26A0\uFE0F PLATFORM_DOMAINS ordering invariant violated \u2014 `flamingo` must precede `flamingo-teaser`/`universal`, and the openframe/teaser aliases must be intact. Do not reorder the table."
|
|
116
123
|
);
|
|
117
124
|
}
|
|
118
125
|
|