@wix/himalaya-cli 0.1764.0 → 0.1766.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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/wix-member-login.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +6 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +6 -2
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{a96903bb457796ee606fe986078d9629ba53b5ba4013bdb94e8afba3288284ed.bin → cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +114 -44
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/base44-app-context.md +7 -2
- package/guides/base44-app-to-himi-app.md +4 -2
- package/guides/release-notes.md +22 -0
- package/guides/wix-site-to-himi-app.md +2 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +5 -5
- package/templates/beauty-salon/l10n/ar.json +6 -12
- package/templates/beauty-salon/l10n/cs.json +6 -12
- package/templates/beauty-salon/l10n/da.json +6 -12
- package/templates/beauty-salon/l10n/de.json +6 -12
- package/templates/beauty-salon/l10n/el.json +6 -12
- package/templates/beauty-salon/l10n/en.json +6 -14
- package/templates/beauty-salon/l10n/es.json +6 -12
- package/templates/beauty-salon/l10n/fi.json +6 -12
- package/templates/beauty-salon/l10n/fr.json +6 -12
- package/templates/beauty-salon/l10n/he.json +5 -10
- package/templates/beauty-salon/l10n/hu.json +6 -12
- package/templates/beauty-salon/l10n/id.json +6 -12
- package/templates/beauty-salon/l10n/it.json +6 -12
- package/templates/beauty-salon/l10n/ja.json +6 -12
- package/templates/beauty-salon/l10n/ko.json +6 -12
- package/templates/beauty-salon/l10n/lt.json +6 -12
- package/templates/beauty-salon/l10n/nl.json +6 -12
- package/templates/beauty-salon/l10n/no.json +6 -12
- package/templates/beauty-salon/l10n/pl.json +6 -12
- package/templates/beauty-salon/l10n/pt.json +6 -12
- package/templates/beauty-salon/l10n/ru.json +6 -12
- package/templates/beauty-salon/l10n/sv.json +6 -12
- package/templates/beauty-salon/l10n/th.json +6 -12
- package/templates/beauty-salon/l10n/tr.json +6 -12
- package/templates/beauty-salon/l10n/uk.json +6 -12
- package/templates/beauty-salon/l10n/vi.json +6 -12
- package/templates/beauty-salon/l10n/zh.json +6 -12
- package/templates/branded-lite/dev/index.ts +5 -5
- package/templates/branded-lite/l10n/ar.json +6 -12
- package/templates/branded-lite/l10n/cs.json +6 -12
- package/templates/branded-lite/l10n/da.json +6 -12
- package/templates/branded-lite/l10n/de.json +6 -12
- package/templates/branded-lite/l10n/el.json +6 -12
- package/templates/branded-lite/l10n/en.json +6 -14
- package/templates/branded-lite/l10n/es.json +6 -12
- package/templates/branded-lite/l10n/fi.json +6 -12
- package/templates/branded-lite/l10n/fr.json +6 -12
- package/templates/branded-lite/l10n/he.json +5 -10
- package/templates/branded-lite/l10n/hu.json +6 -12
- package/templates/branded-lite/l10n/id.json +6 -12
- package/templates/branded-lite/l10n/it.json +6 -12
- package/templates/branded-lite/l10n/ja.json +6 -12
- package/templates/branded-lite/l10n/ko.json +6 -12
- package/templates/branded-lite/l10n/lt.json +6 -12
- package/templates/branded-lite/l10n/nl.json +6 -12
- package/templates/branded-lite/l10n/no.json +6 -12
- package/templates/branded-lite/l10n/pl.json +6 -12
- package/templates/branded-lite/l10n/pt.json +6 -12
- package/templates/branded-lite/l10n/ru.json +6 -12
- package/templates/branded-lite/l10n/sv.json +6 -12
- package/templates/branded-lite/l10n/th.json +6 -12
- package/templates/branded-lite/l10n/tr.json +6 -12
- package/templates/branded-lite/l10n/uk.json +6 -12
- package/templates/branded-lite/l10n/vi.json +6 -12
- package/templates/branded-lite/l10n/zh.json +6 -12
- package/templates/brandy/README.md +15 -2
- package/templates/community-club/dev/index.ts +5 -5
- package/templates/community-club/l10n/ar.json +6 -12
- package/templates/community-club/l10n/cs.json +6 -12
- package/templates/community-club/l10n/da.json +6 -12
- package/templates/community-club/l10n/de.json +6 -12
- package/templates/community-club/l10n/el.json +6 -12
- package/templates/community-club/l10n/en.json +6 -14
- package/templates/community-club/l10n/es.json +6 -12
- package/templates/community-club/l10n/fi.json +6 -12
- package/templates/community-club/l10n/fr.json +6 -12
- package/templates/community-club/l10n/he.json +5 -10
- package/templates/community-club/l10n/hu.json +6 -12
- package/templates/community-club/l10n/id.json +6 -12
- package/templates/community-club/l10n/it.json +6 -12
- package/templates/community-club/l10n/ja.json +6 -12
- package/templates/community-club/l10n/ko.json +6 -12
- package/templates/community-club/l10n/lt.json +6 -12
- package/templates/community-club/l10n/nl.json +6 -12
- package/templates/community-club/l10n/no.json +6 -12
- package/templates/community-club/l10n/pl.json +6 -12
- package/templates/community-club/l10n/pt.json +6 -12
- package/templates/community-club/l10n/ru.json +6 -12
- package/templates/community-club/l10n/sv.json +6 -12
- package/templates/community-club/l10n/th.json +6 -12
- package/templates/community-club/l10n/tr.json +6 -12
- package/templates/community-club/l10n/uk.json +6 -12
- package/templates/community-club/l10n/vi.json +6 -12
- package/templates/community-club/l10n/zh.json +6 -12
- package/templates/events-meetups/dev/index.ts +5 -5
- package/templates/events-meetups/l10n/ar.json +6 -12
- package/templates/events-meetups/l10n/cs.json +6 -12
- package/templates/events-meetups/l10n/da.json +6 -12
- package/templates/events-meetups/l10n/de.json +6 -12
- package/templates/events-meetups/l10n/el.json +6 -12
- package/templates/events-meetups/l10n/en.json +6 -14
- package/templates/events-meetups/l10n/es.json +6 -12
- package/templates/events-meetups/l10n/fi.json +6 -12
- package/templates/events-meetups/l10n/fr.json +6 -12
- package/templates/events-meetups/l10n/he.json +5 -10
- package/templates/events-meetups/l10n/hu.json +6 -12
- package/templates/events-meetups/l10n/id.json +6 -12
- package/templates/events-meetups/l10n/it.json +6 -12
- package/templates/events-meetups/l10n/ja.json +6 -12
- package/templates/events-meetups/l10n/ko.json +6 -12
- package/templates/events-meetups/l10n/lt.json +6 -12
- package/templates/events-meetups/l10n/nl.json +6 -12
- package/templates/events-meetups/l10n/no.json +6 -12
- package/templates/events-meetups/l10n/pl.json +6 -12
- package/templates/events-meetups/l10n/pt.json +6 -12
- package/templates/events-meetups/l10n/ru.json +6 -12
- package/templates/events-meetups/l10n/sv.json +6 -12
- package/templates/events-meetups/l10n/th.json +6 -12
- package/templates/events-meetups/l10n/tr.json +6 -12
- package/templates/events-meetups/l10n/uk.json +6 -12
- package/templates/events-meetups/l10n/vi.json +6 -12
- package/templates/events-meetups/l10n/zh.json +6 -12
- package/templates/gym-fitness/dev/index.ts +5 -5
- package/templates/gym-fitness/l10n/ar.json +6 -12
- package/templates/gym-fitness/l10n/cs.json +6 -12
- package/templates/gym-fitness/l10n/da.json +6 -12
- package/templates/gym-fitness/l10n/de.json +6 -12
- package/templates/gym-fitness/l10n/el.json +6 -12
- package/templates/gym-fitness/l10n/en.json +6 -14
- package/templates/gym-fitness/l10n/es.json +6 -12
- package/templates/gym-fitness/l10n/fi.json +6 -12
- package/templates/gym-fitness/l10n/fr.json +6 -12
- package/templates/gym-fitness/l10n/he.json +5 -10
- package/templates/gym-fitness/l10n/hu.json +6 -12
- package/templates/gym-fitness/l10n/id.json +6 -12
- package/templates/gym-fitness/l10n/it.json +6 -12
- package/templates/gym-fitness/l10n/ja.json +6 -12
- package/templates/gym-fitness/l10n/ko.json +6 -12
- package/templates/gym-fitness/l10n/lt.json +6 -12
- package/templates/gym-fitness/l10n/nl.json +6 -12
- package/templates/gym-fitness/l10n/no.json +6 -12
- package/templates/gym-fitness/l10n/pl.json +6 -12
- package/templates/gym-fitness/l10n/pt.json +6 -12
- package/templates/gym-fitness/l10n/ru.json +6 -12
- package/templates/gym-fitness/l10n/sv.json +6 -12
- package/templates/gym-fitness/l10n/th.json +6 -12
- package/templates/gym-fitness/l10n/tr.json +6 -12
- package/templates/gym-fitness/l10n/uk.json +6 -12
- package/templates/gym-fitness/l10n/vi.json +6 -12
- package/templates/gym-fitness/l10n/zh.json +6 -12
- package/templates/nonprofit-cause/dev/index.ts +5 -5
- package/templates/nonprofit-cause/l10n/ar.json +6 -12
- package/templates/nonprofit-cause/l10n/cs.json +6 -12
- package/templates/nonprofit-cause/l10n/da.json +6 -12
- package/templates/nonprofit-cause/l10n/de.json +6 -12
- package/templates/nonprofit-cause/l10n/el.json +6 -12
- package/templates/nonprofit-cause/l10n/en.json +6 -14
- package/templates/nonprofit-cause/l10n/es.json +6 -12
- package/templates/nonprofit-cause/l10n/fi.json +6 -12
- package/templates/nonprofit-cause/l10n/fr.json +6 -12
- package/templates/nonprofit-cause/l10n/he.json +5 -10
- package/templates/nonprofit-cause/l10n/hu.json +6 -12
- package/templates/nonprofit-cause/l10n/id.json +6 -12
- package/templates/nonprofit-cause/l10n/it.json +6 -12
- package/templates/nonprofit-cause/l10n/ja.json +6 -12
- package/templates/nonprofit-cause/l10n/ko.json +6 -12
- package/templates/nonprofit-cause/l10n/lt.json +6 -12
- package/templates/nonprofit-cause/l10n/nl.json +6 -12
- package/templates/nonprofit-cause/l10n/no.json +6 -12
- package/templates/nonprofit-cause/l10n/pl.json +6 -12
- package/templates/nonprofit-cause/l10n/pt.json +6 -12
- package/templates/nonprofit-cause/l10n/ru.json +6 -12
- package/templates/nonprofit-cause/l10n/sv.json +6 -12
- package/templates/nonprofit-cause/l10n/th.json +6 -12
- package/templates/nonprofit-cause/l10n/tr.json +6 -12
- package/templates/nonprofit-cause/l10n/uk.json +6 -12
- package/templates/nonprofit-cause/l10n/vi.json +6 -12
- package/templates/nonprofit-cause/l10n/zh.json +6 -12
- package/templates/personal-fitness-trainer/dev/index.ts +3 -3
- package/templates/podcast-creator/dev/index.ts +5 -5
- package/templates/podcast-creator/l10n/ar.json +6 -12
- package/templates/podcast-creator/l10n/cs.json +6 -12
- package/templates/podcast-creator/l10n/da.json +6 -12
- package/templates/podcast-creator/l10n/de.json +6 -12
- package/templates/podcast-creator/l10n/el.json +6 -12
- package/templates/podcast-creator/l10n/en.json +6 -14
- package/templates/podcast-creator/l10n/es.json +6 -12
- package/templates/podcast-creator/l10n/fi.json +6 -12
- package/templates/podcast-creator/l10n/fr.json +6 -12
- package/templates/podcast-creator/l10n/he.json +5 -10
- package/templates/podcast-creator/l10n/hu.json +6 -12
- package/templates/podcast-creator/l10n/id.json +6 -12
- package/templates/podcast-creator/l10n/it.json +6 -12
- package/templates/podcast-creator/l10n/ja.json +6 -12
- package/templates/podcast-creator/l10n/ko.json +6 -12
- package/templates/podcast-creator/l10n/lt.json +6 -12
- package/templates/podcast-creator/l10n/nl.json +6 -12
- package/templates/podcast-creator/l10n/no.json +6 -12
- package/templates/podcast-creator/l10n/pl.json +6 -12
- package/templates/podcast-creator/l10n/pt.json +6 -12
- package/templates/podcast-creator/l10n/ru.json +6 -12
- package/templates/podcast-creator/l10n/sv.json +6 -12
- package/templates/podcast-creator/l10n/th.json +6 -12
- package/templates/podcast-creator/l10n/tr.json +6 -12
- package/templates/podcast-creator/l10n/uk.json +6 -12
- package/templates/podcast-creator/l10n/vi.json +6 -12
- package/templates/podcast-creator/l10n/zh.json +6 -12
- package/templates/portfolio-creative/dev/index.ts +5 -5
- package/templates/portfolio-creative/l10n/ar.json +6 -12
- package/templates/portfolio-creative/l10n/cs.json +6 -12
- package/templates/portfolio-creative/l10n/da.json +6 -12
- package/templates/portfolio-creative/l10n/de.json +6 -12
- package/templates/portfolio-creative/l10n/el.json +6 -12
- package/templates/portfolio-creative/l10n/en.json +6 -14
- package/templates/portfolio-creative/l10n/es.json +6 -12
- package/templates/portfolio-creative/l10n/fi.json +6 -12
- package/templates/portfolio-creative/l10n/fr.json +6 -12
- package/templates/portfolio-creative/l10n/he.json +5 -10
- package/templates/portfolio-creative/l10n/hu.json +6 -12
- package/templates/portfolio-creative/l10n/id.json +6 -12
- package/templates/portfolio-creative/l10n/it.json +6 -12
- package/templates/portfolio-creative/l10n/ja.json +6 -12
- package/templates/portfolio-creative/l10n/ko.json +6 -12
- package/templates/portfolio-creative/l10n/lt.json +6 -12
- package/templates/portfolio-creative/l10n/nl.json +6 -12
- package/templates/portfolio-creative/l10n/no.json +6 -12
- package/templates/portfolio-creative/l10n/pl.json +6 -12
- package/templates/portfolio-creative/l10n/pt.json +6 -12
- package/templates/portfolio-creative/l10n/ru.json +6 -12
- package/templates/portfolio-creative/l10n/sv.json +6 -12
- package/templates/portfolio-creative/l10n/th.json +6 -12
- package/templates/portfolio-creative/l10n/tr.json +6 -12
- package/templates/portfolio-creative/l10n/uk.json +6 -12
- package/templates/portfolio-creative/l10n/vi.json +6 -12
- package/templates/portfolio-creative/l10n/zh.json +6 -12
- package/templates/restaurant/dev/index.ts +5 -5
- package/templates/restaurant/l10n/ar.json +6 -12
- package/templates/restaurant/l10n/cs.json +6 -12
- package/templates/restaurant/l10n/da.json +6 -12
- package/templates/restaurant/l10n/de.json +6 -12
- package/templates/restaurant/l10n/el.json +6 -12
- package/templates/restaurant/l10n/en.json +6 -14
- package/templates/restaurant/l10n/es.json +6 -12
- package/templates/restaurant/l10n/fi.json +6 -12
- package/templates/restaurant/l10n/fr.json +6 -12
- package/templates/restaurant/l10n/he.json +5 -10
- package/templates/restaurant/l10n/hu.json +6 -12
- package/templates/restaurant/l10n/id.json +6 -12
- package/templates/restaurant/l10n/it.json +6 -12
- package/templates/restaurant/l10n/ja.json +6 -12
- package/templates/restaurant/l10n/ko.json +6 -12
- package/templates/restaurant/l10n/lt.json +6 -12
- package/templates/restaurant/l10n/nl.json +6 -12
- package/templates/restaurant/l10n/no.json +6 -12
- package/templates/restaurant/l10n/pl.json +6 -12
- package/templates/restaurant/l10n/pt.json +6 -12
- package/templates/restaurant/l10n/ru.json +6 -12
- package/templates/restaurant/l10n/sv.json +6 -12
- package/templates/restaurant/l10n/th.json +6 -12
- package/templates/restaurant/l10n/tr.json +6 -12
- package/templates/restaurant/l10n/uk.json +6 -12
- package/templates/restaurant/l10n/vi.json +6 -12
- package/templates/restaurant/l10n/zh.json +6 -12
- package/templates/retail-store/dev/index.ts +5 -5
- package/templates/retail-store/l10n/ar.json +6 -12
- package/templates/retail-store/l10n/cs.json +6 -12
- package/templates/retail-store/l10n/da.json +6 -12
- package/templates/retail-store/l10n/de.json +6 -12
- package/templates/retail-store/l10n/el.json +6 -12
- package/templates/retail-store/l10n/en.json +6 -14
- package/templates/retail-store/l10n/es.json +6 -12
- package/templates/retail-store/l10n/fi.json +6 -12
- package/templates/retail-store/l10n/fr.json +6 -12
- package/templates/retail-store/l10n/he.json +5 -10
- package/templates/retail-store/l10n/hu.json +6 -12
- package/templates/retail-store/l10n/id.json +6 -12
- package/templates/retail-store/l10n/it.json +6 -12
- package/templates/retail-store/l10n/ja.json +6 -12
- package/templates/retail-store/l10n/ko.json +6 -12
- package/templates/retail-store/l10n/lt.json +6 -12
- package/templates/retail-store/l10n/nl.json +6 -12
- package/templates/retail-store/l10n/no.json +6 -12
- package/templates/retail-store/l10n/pl.json +6 -12
- package/templates/retail-store/l10n/pt.json +6 -12
- package/templates/retail-store/l10n/ru.json +6 -12
- package/templates/retail-store/l10n/sv.json +6 -12
- package/templates/retail-store/l10n/th.json +6 -12
- package/templates/retail-store/l10n/tr.json +6 -12
- package/templates/retail-store/l10n/uk.json +6 -12
- package/templates/retail-store/l10n/vi.json +6 -12
- package/templates/retail-store/l10n/zh.json +6 -12
- package/templates/yoga-studio/dev/index.ts +5 -5
- package/templates/yoga-studio/l10n/ar.json +6 -12
- package/templates/yoga-studio/l10n/cs.json +6 -12
- package/templates/yoga-studio/l10n/da.json +6 -12
- package/templates/yoga-studio/l10n/de.json +6 -12
- package/templates/yoga-studio/l10n/el.json +6 -12
- package/templates/yoga-studio/l10n/en.json +6 -14
- package/templates/yoga-studio/l10n/es.json +6 -12
- package/templates/yoga-studio/l10n/fi.json +6 -12
- package/templates/yoga-studio/l10n/fr.json +6 -12
- package/templates/yoga-studio/l10n/he.json +5 -10
- package/templates/yoga-studio/l10n/hu.json +6 -12
- package/templates/yoga-studio/l10n/id.json +6 -12
- package/templates/yoga-studio/l10n/it.json +6 -12
- package/templates/yoga-studio/l10n/ja.json +6 -12
- package/templates/yoga-studio/l10n/ko.json +6 -12
- package/templates/yoga-studio/l10n/lt.json +6 -12
- package/templates/yoga-studio/l10n/nl.json +6 -12
- package/templates/yoga-studio/l10n/no.json +6 -12
- package/templates/yoga-studio/l10n/pl.json +6 -12
- package/templates/yoga-studio/l10n/pt.json +6 -12
- package/templates/yoga-studio/l10n/ru.json +6 -12
- package/templates/yoga-studio/l10n/sv.json +6 -12
- package/templates/yoga-studio/l10n/th.json +6 -12
- package/templates/yoga-studio/l10n/tr.json +6 -12
- package/templates/yoga-studio/l10n/uk.json +6 -12
- package/templates/yoga-studio/l10n/vi.json +6 -12
- package/templates/yoga-studio/l10n/zh.json +6 -12
package/dist/cli.mjs
CHANGED
|
@@ -41879,6 +41879,7 @@ function shouldRevealError(args) {
|
|
|
41879
41879
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
41880
41880
|
var init_validation = __esm({
|
|
41881
41881
|
"../../core/ts/src/validation.ts"() {
|
|
41882
|
+
"use strict";
|
|
41882
41883
|
init_define_HHP_CATALOG();
|
|
41883
41884
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
41884
41885
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -43154,6 +43155,7 @@ var init_wix_hosts = __esm({
|
|
|
43154
43155
|
// ../../core/dev-server/src/wix-member-login.ts
|
|
43155
43156
|
var wix_member_login_exports = {};
|
|
43156
43157
|
__export(wix_member_login_exports, {
|
|
43158
|
+
IamCallError: () => IamCallError,
|
|
43157
43159
|
isAllowedConsumerStreamTarget: () => isAllowedConsumerStreamTarget,
|
|
43158
43160
|
memberDirectLogin: () => memberDirectLogin,
|
|
43159
43161
|
memberDirectRegister: () => memberDirectRegister,
|
|
@@ -43276,7 +43278,10 @@ async function memberDirectRegister(clientId, redirectUri, email, password, firs
|
|
|
43276
43278
|
`Bearer ${visitorToken}`
|
|
43277
43279
|
);
|
|
43278
43280
|
const sessionToken = register.json?.sessionToken;
|
|
43279
|
-
if (register.status !== 200 || !sessionToken)
|
|
43281
|
+
if (register.status !== 200 || !sessionToken) {
|
|
43282
|
+
const code2 = register.json?.details?.applicationError?.code;
|
|
43283
|
+
throw new IamCallError(`IAM register failed (${register.status})`, register.status, typeof code2 === "string" ? code2 : void 0);
|
|
43284
|
+
}
|
|
43280
43285
|
const memberToken = await exchangeSessionToken(clientId, redirectUri, visitorToken, sessionToken);
|
|
43281
43286
|
return { memberToken, visitorToken };
|
|
43282
43287
|
}
|
|
@@ -43326,7 +43331,7 @@ async function readMemberId(memberToken) {
|
|
|
43326
43331
|
return null;
|
|
43327
43332
|
}
|
|
43328
43333
|
}
|
|
43329
|
-
var API;
|
|
43334
|
+
var API, IamCallError;
|
|
43330
43335
|
var init_wix_member_login = __esm({
|
|
43331
43336
|
"../../core/dev-server/src/wix-member-login.ts"() {
|
|
43332
43337
|
init_define_HHP_CATALOG();
|
|
@@ -43334,6 +43339,13 @@ var init_wix_member_login = __esm({
|
|
|
43334
43339
|
init_wix_hosts();
|
|
43335
43340
|
init_wix_bridge();
|
|
43336
43341
|
API = "https://www.wixapis.com";
|
|
43342
|
+
IamCallError = class extends Error {
|
|
43343
|
+
constructor(message5, status2, applicationCode) {
|
|
43344
|
+
super(message5);
|
|
43345
|
+
this.status = status2;
|
|
43346
|
+
this.applicationCode = applicationCode;
|
|
43347
|
+
}
|
|
43348
|
+
};
|
|
43337
43349
|
}
|
|
43338
43350
|
});
|
|
43339
43351
|
|
|
@@ -149556,7 +149568,8 @@ async function handleWebWix(req, res, state) {
|
|
|
149556
149568
|
session.account = void 0;
|
|
149557
149569
|
return reply(200, { ok: true, email: session.email });
|
|
149558
149570
|
} catch (e2) {
|
|
149559
|
-
|
|
149571
|
+
const iam = e2 instanceof IamCallError ? { iamStatus: e2.status, ...e2.applicationCode ? { applicationCode: e2.applicationCode } : {} } : {};
|
|
149572
|
+
return reply(200, { ok: false, ...iam, error: String(e2?.message ?? e2) });
|
|
149560
149573
|
}
|
|
149561
149574
|
}
|
|
149562
149575
|
reply(404, { error: "unknown_webwix_route" });
|
|
@@ -171439,7 +171452,20 @@ var init_net_guard = __esm({
|
|
|
171439
171452
|
function isSafeFreeText(text32) {
|
|
171440
171453
|
return !FREE_TEXT_UNSAFE.test(text32) && text32.length <= FREE_TEXT_MAX;
|
|
171441
171454
|
}
|
|
171442
|
-
|
|
171455
|
+
function base44RecordOwnsTenant(record5, origin, appId3) {
|
|
171456
|
+
const tenant = base44TenantOrigin(origin);
|
|
171457
|
+
if (!tenant || !record5 || typeof record5 !== "object") return false;
|
|
171458
|
+
const { id, slug } = record5;
|
|
171459
|
+
const label4 = new URL(tenant).hostname.slice(0, -".base44.app".length);
|
|
171460
|
+
return typeof id === "string" && id === appId3 && typeof slug === "string" && slug.toLowerCase() === label4;
|
|
171461
|
+
}
|
|
171462
|
+
function base44TenantOrigin(value2) {
|
|
171463
|
+
const origin = bakeableHttpsOrigin(value2);
|
|
171464
|
+
if (!origin) return void 0;
|
|
171465
|
+
const u2 = new URL(origin);
|
|
171466
|
+
return u2.port === "" && BASE44_TENANT_HOST.test(u2.hostname) ? origin : void 0;
|
|
171467
|
+
}
|
|
171468
|
+
var FREE_TEXT_UNSAFE, FREE_TEXT_MAX, BASE44_APP_RECORD_URL, BASE44_RECORD_MAX_BYTES, BASE44_TENANT_HOST;
|
|
171443
171469
|
var init_dist_release_contract = __esm({
|
|
171444
171470
|
"../../core/serve-control/src/dist-release-contract.ts"() {
|
|
171445
171471
|
init_define_HHP_CATALOG();
|
|
@@ -171449,6 +171475,9 @@ var init_dist_release_contract = __esm({
|
|
|
171449
171475
|
init_site_shell();
|
|
171450
171476
|
FREE_TEXT_UNSAFE = /[\u0000-\u001f\u007f-\u009f\u2028\u2029$`{}<>\\]/;
|
|
171451
171477
|
FREE_TEXT_MAX = 200;
|
|
171478
|
+
BASE44_APP_RECORD_URL = (appId3) => `https://base44.app/api/apps/public/login-info/by-id/${encodeURIComponent(appId3)}`;
|
|
171479
|
+
BASE44_RECORD_MAX_BYTES = 256e3;
|
|
171480
|
+
BASE44_TENANT_HOST = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.base44\.app$/;
|
|
171452
171481
|
}
|
|
171453
171482
|
});
|
|
171454
171483
|
|
|
@@ -175137,6 +175166,7 @@ var init_write_artifacts = __esm({
|
|
|
175137
175166
|
var infer_exports = {};
|
|
175138
175167
|
__export(infer_exports, {
|
|
175139
175168
|
base44AppIdFor: () => base44AppIdFor,
|
|
175169
|
+
confirmBase44App: () => confirmBase44App,
|
|
175140
175170
|
inferSite: () => inferSite,
|
|
175141
175171
|
largestSize: () => largestSize,
|
|
175142
175172
|
readManifest: () => readManifest2,
|
|
@@ -175238,6 +175268,31 @@ function base44AppIdFor(html, siteUrl) {
|
|
|
175238
175268
|
});
|
|
175239
175269
|
return found.size === 1 ? [...found][0] : void 0;
|
|
175240
175270
|
}
|
|
175271
|
+
async function confirmBase44App(origin, appId3, deps = {}) {
|
|
175272
|
+
const fetchSite = deps.fetchSite ?? guardedSiteFetch;
|
|
175273
|
+
try {
|
|
175274
|
+
const res = await fetchSite(BASE44_APP_RECORD_URL(appId3), { redirect: "error", signal: AbortSignal.timeout(TIMEOUT_MS), headers: { accept: "application/json" } });
|
|
175275
|
+
if (res.status === 404) {
|
|
175276
|
+
await res.body?.cancel();
|
|
175277
|
+
return "not-owned";
|
|
175278
|
+
}
|
|
175279
|
+
if (!res.ok) {
|
|
175280
|
+
await res.body?.cancel();
|
|
175281
|
+
return "unknown";
|
|
175282
|
+
}
|
|
175283
|
+
const bytes2 = await readCapped(res, BASE44_RECORD_MAX_BYTES);
|
|
175284
|
+
if (!bytes2) return "unknown";
|
|
175285
|
+
let record5;
|
|
175286
|
+
try {
|
|
175287
|
+
record5 = JSON.parse(bytes2.toString("utf8"));
|
|
175288
|
+
} catch {
|
|
175289
|
+
return "unknown";
|
|
175290
|
+
}
|
|
175291
|
+
return base44RecordOwnsTenant(record5, origin, appId3) ? "owned" : "not-owned";
|
|
175292
|
+
} catch {
|
|
175293
|
+
return "unknown";
|
|
175294
|
+
}
|
|
175295
|
+
}
|
|
175241
175296
|
async function fetchText(url, fetchSite, cap2) {
|
|
175242
175297
|
const res = await fetchSite(url, { signal: AbortSignal.timeout(TIMEOUT_MS), headers: { accept: "text/html,application/json;q=0.9,*/*;q=0.5" } });
|
|
175243
175298
|
if (!res.ok) {
|
|
@@ -175283,6 +175338,7 @@ var init_infer = __esm({
|
|
|
175283
175338
|
init_net_guard();
|
|
175284
175339
|
init_write_artifacts();
|
|
175285
175340
|
init_spec();
|
|
175341
|
+
init_dist_release_contract();
|
|
175286
175342
|
HTML_CAP = 2 * 1024 * 1024;
|
|
175287
175343
|
MANIFEST_CAP = 256 * 1024;
|
|
175288
175344
|
TIMEOUT_MS = 15e3;
|
|
@@ -250511,52 +250567,52 @@ var init_preview_assets_generated = __esm({
|
|
|
250511
250567
|
init_define_HHP_CATALOG();
|
|
250512
250568
|
init_preview_assets_format();
|
|
250513
250569
|
PREVIEW_ASSET_MANIFEST = [
|
|
250514
|
-
{ key: "assets/DashboardHost-
|
|
250515
|
-
{ key: "assets/DevDrawer-
|
|
250516
|
-
{ key: "assets/IdiomCompare-
|
|
250517
|
-
{ key: "assets/LightboxViewer-
|
|
250518
|
-
{ key: "assets/OfflineReadingBar-
|
|
250519
|
-
{ key: "assets/PhonePreviewControl-
|
|
250520
|
-
{ key: "assets/SchemeCompare-
|
|
250521
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
250570
|
+
{ key: "assets/DashboardHost-6lnHOyve.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "68ff555df2dc3c2f48559cc6eee4ae23567b73b44badb1c6c79f3218fe03a74a" },
|
|
250571
|
+
{ key: "assets/DevDrawer-DjHfkMkY.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "fc15728035a6770b41dc41aec34a35c09f56df008f5a7df8613e078b523821d9" },
|
|
250572
|
+
{ key: "assets/IdiomCompare-4pcPSt4M.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "7ad8d9c10412e494cea85e6e6c7d83fb785b09dd2bdfa16c197596d5ec12ac00" },
|
|
250573
|
+
{ key: "assets/LightboxViewer-CmkfM50_.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "5c6fc926980514955e18d7b72ed5977834d473cb2fa33469192995202ebffc1a" },
|
|
250574
|
+
{ key: "assets/OfflineReadingBar-DHAcphNP.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "fc06f29ed38209c5b99007e0b76f37cd4c542eeb2fa03b809ddff3e37876ceb7" },
|
|
250575
|
+
{ key: "assets/PhonePreviewControl-Dxt42I1s.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "756ff003f48c7186df51f46334be3a654ceee20d8b5f0407871c85e8143d1ba4" },
|
|
250576
|
+
{ key: "assets/SchemeCompare-SItDKyyK.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "49a56710f17d00b050f5d583c47a3e386be791c3d957e39922b0ea6bf9287b16" },
|
|
250577
|
+
{ key: "assets/WixFrogTelemetrySink-Dt-ZS55l.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "5af3a2a89d148798c862f625b7ffa8702042e7085d43c8afb4fe0f4ad6a07f6a" },
|
|
250522
250578
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
250523
250579
|
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
|
|
250524
|
-
{ key: "assets/catalogFontFaces-
|
|
250580
|
+
{ key: "assets/catalogFontFaces-BE0kdLC4.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "8f533ffd8ced1d1a9094664c5aa4976c7120016f501bb545f500edda75ec9477" },
|
|
250525
250581
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
250526
|
-
{ key: "assets/files-transfer-
|
|
250582
|
+
{ key: "assets/files-transfer-Dlcd1iah.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "b0868bd52f43d85ab5c6d01ca26522bacd9ff31241536dc879d8cbac1d96153a" },
|
|
250527
250583
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
250528
|
-
{ key: "assets/frogApiRules-
|
|
250584
|
+
{ key: "assets/frogApiRules-CQFbROzu.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "eff11d3260ac44cb2b4f5e4e39d20b78e0c98da618e544d108f7f4fba7048bfd" },
|
|
250529
250585
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
250530
250586
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
250531
250587
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
250532
|
-
{ key: "assets/index-
|
|
250533
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250534
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250535
|
-
{ key: "assets/pdf-
|
|
250536
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250537
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
250538
|
-
{ key: "assets/pdfDocument-
|
|
250539
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250540
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
250541
|
-
{ key: "assets/webviewBridgeHost-
|
|
250542
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
250543
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
250544
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
250545
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
250546
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
250547
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
250548
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
250549
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
250550
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
250551
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
250552
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
250553
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
250554
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
250555
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
250556
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
250557
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
250558
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
250559
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
250588
|
+
{ key: "assets/index-Botp3sHT.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1601284, sha256: "fe905a3112c2e454db7c8a71b058faee1cbd3094dfde5647095bfb2f9e7fa73b" },
|
|
250589
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1737328, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
250590
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1745079, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
250591
|
+
{ key: "assets/pdf-CRFkfIB7.js", contentType: "application/javascript; charset=utf-8", offset: 1755610, length: 488215, sha256: "cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92" },
|
|
250592
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2243825, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
250593
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2243915, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
250594
|
+
{ key: "assets/pdfDocument-sn-I-3Zi.js", contentType: "application/javascript; charset=utf-8", offset: 3560949, length: 3470, sha256: "32bc78db1d7aa9cc57faeaf3a20f21ecf50f7dde241321df941b3124f94f4319" },
|
|
250595
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3564419, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
250596
|
+
{ key: "assets/scrollLinkedRuntime-BRLsWHsQ.js", contentType: "application/javascript; charset=utf-8", offset: 3566685, length: 2278, sha256: "812a87c8d2842ce75fa68af360dae13cf785392049de66d1f86eae66e05fdca8" },
|
|
250597
|
+
{ key: "assets/webviewBridgeHost-Yh0dkDD6.js", contentType: "application/javascript; charset=utf-8", offset: 3568963, length: 9889, sha256: "527f2672ed6bc45d6291e0b3acfd0422eb3a573ed7d14ceaa0bd8dea6a908b1b" },
|
|
250598
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3578852, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
250599
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3583462, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
250600
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4072046, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
250601
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4162970, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
250602
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4253954, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
250603
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4344934, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
250604
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4435806, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
250605
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4526786, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
250606
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4635422, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
250607
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4744506, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
250608
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4853554, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
250609
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4961254, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
250610
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5049362, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
250611
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5056180, length: 4924, sha256: "05d65beed22368b5a49e6ec462bbdd1c9a8dd13bb6c1f4d6a368390ca3b66d07" },
|
|
250612
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5061104, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
250613
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5072561, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
250614
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5073732, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
250615
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5098035, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
250560
250616
|
];
|
|
250561
250617
|
}
|
|
250562
250618
|
});
|
|
@@ -282009,7 +282065,21 @@ async function resolveFromUrl(ctx) {
|
|
|
282009
282065
|
const { inferSite: inferSite2 } = await Promise.resolve().then(() => (init_infer(), infer_exports));
|
|
282010
282066
|
const facts = await inferSite2(origin, { fetchSite: ctx.deps.fromUrl?.fetchSite });
|
|
282011
282067
|
const { resolveApp: resolveApp2 } = await Promise.resolve().then(() => (init_resolve(), resolve_exports));
|
|
282012
|
-
|
|
282068
|
+
const app2 = resolveApp2(origin, spec, facts);
|
|
282069
|
+
if (app2.base44AppId.value) {
|
|
282070
|
+
const { confirmBase44App: confirmBase44App2 } = await Promise.resolve().then(() => (init_infer(), infer_exports));
|
|
282071
|
+
const verdict = await confirmBase44App2(origin, app2.base44AppId.value, { fetchSite: ctx.deps.fromUrl?.fetchSite });
|
|
282072
|
+
if (verdict === "not-owned") {
|
|
282073
|
+
if (app2.base44AppId.from === "spec") {
|
|
282074
|
+
throw new FromUrlError2("app_spec_invalid", `base44.appId ${app2.base44AppId.value}: Base44's record of that app does not give it ${origin} \u2014 use the id from that app's editor URL, or omit base44.appId`);
|
|
282075
|
+
}
|
|
282076
|
+
app2.notes.push(`Base44's record did not confirm app ${app2.base44AppId.value} for ${origin}, so the app is visitor-only \u2014 set base44.appId in the spec once the app is published on this host`);
|
|
282077
|
+
app2.base44AppId = { value: void 0, from: "default" };
|
|
282078
|
+
} else if (verdict === "unknown") {
|
|
282079
|
+
app2.notes.push(`could not reach Base44 to confirm app ${app2.base44AppId.value} for ${origin}; \`himi dist\` checks it again before building`);
|
|
282080
|
+
}
|
|
282081
|
+
}
|
|
282082
|
+
return { app: app2 };
|
|
282013
282083
|
} catch (e2) {
|
|
282014
282084
|
return refuse10(e2);
|
|
282015
282085
|
}
|
|
Binary file
|
|
@@ -207,8 +207,13 @@ names the user. The Base44 CLI keeps its own session in `~/.base44/auth/auth.jso
|
|
|
207
207
|
own, and reads the Base44 CLI's only on `--from-base44-cli`.
|
|
208
208
|
|
|
209
209
|
**Published apps.** An app published on `<tenant>.base44.app` is served by Base44's platform shell.
|
|
210
|
-
Its HTML carries the app's identity: `og:site_name`, description, favicon
|
|
211
|
-
app id on
|
|
210
|
+
Its HTML carries the app's identity: `og:site_name`, description, favicon and `theme-color`. Older
|
|
211
|
+
pages also named the app id on a Base44 badge tag (`<script data-app-id="<id>" …>`); current ones do
|
|
212
|
+
not, and the id that does appear (in asset URLs, in the bundle) is the app author's to write. Which
|
|
213
|
+
app owns a tenant is Base44's own answer: its public app record,
|
|
214
|
+
`https://base44.app/api/apps/public/login-info/by-id/<id>`, gives the app's `slug`, the tenant's host
|
|
215
|
+
label. `himi dist` (before it trusts the site with a member's session) and `himi init --from-url`
|
|
216
|
+
(before it writes a binding) both check that record. The app's own page code loads at
|
|
212
217
|
run time, so the visitor pass usually finds **no routes** there and says so in `gaps[]`. The owner
|
|
213
218
|
pass reads them from the source router instead. A self-hosted build of an ejected app is a plain
|
|
214
219
|
Vite bundle: the app id is baked in (`VITE_BASE44_APP_ID`) and the router's `path` strings survive
|
|
@@ -32,8 +32,10 @@ himi dist --app <slug> --shell brandy --platform android # and --platform ios
|
|
|
32
32
|
(manifest `short_name`/`name`, `apple-mobile-web-app-title`, `og:site_name`, `<title>`, the host),
|
|
33
33
|
the description, the icon (the manifest's largest raster icon, normalized to the 1024 opaque PNG the
|
|
34
34
|
stores require), the brand colour (the theme colour — unless it is black, white or grey, which is a
|
|
35
|
-
generator default), and the **Base44 app id
|
|
36
|
-
|
|
35
|
+
generator default), and the **Base44 app id**: a candidate from the page's own asset URLs, written
|
|
36
|
+
only once Base44's own app record (`base44.app/api/apps/public/login-info/by-id/<id>`) gives that app
|
|
37
|
+
this host — the same check `himi dist` makes before it trusts the site with a member's session. An id
|
|
38
|
+
the record does not confirm is dropped (visitor-only, with a note); one you name in the spec is refused. With the app id the shell signs members in natively and carries the
|
|
37
39
|
session into the pages — Google sign-in inside a WebView is blocked by Google, so without it a
|
|
38
40
|
login-gated app cannot be signed in to.
|
|
39
41
|
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,28 @@ areas, always in the same order, so you can skim for the one you care about.
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 2026-11-18
|
|
18
|
+
|
|
19
|
+
### Getting started & the CLI
|
|
20
|
+
|
|
21
|
+
- **Turn a live website into an app with one command.** `himi init --from-url <https://site>` scaffolds
|
|
22
|
+
the brandy site shell and fills it from the site's own web manifest and `<head>`. It takes the name,
|
|
23
|
+
description and icon, normalizing the icon to the 1024 store PNG. It takes the brand colour from the
|
|
24
|
+
theme colour, unless that is black, white or grey. On a Base44 site it also takes the app id, once
|
|
25
|
+
Base44's own app record confirms it, so members sign in natively. A spec file overrides any value,
|
|
26
|
+
and only `url` is required: `himi init --spec app.json`. It accepts `name`, `description`, `icon`,
|
|
27
|
+
`colors`, `splash`, `base44`, `pages` and the support, privacy and terms links. The JSON output's
|
|
28
|
+
`fromUrl` block says where each value came from and gives the push and dist commands to run next.
|
|
29
|
+
A refusal carries a typed `code` and writes nothing. (#6128)
|
|
30
|
+
|
|
31
|
+
### Shipping binaries
|
|
32
|
+
|
|
33
|
+
- **`himi dist` builds Base44 site-shell apps with native sign-in again.** Published Base44 pages no
|
|
34
|
+
longer carry the `data-app-id` badge attribute `himi dist` used to prove a site belongs to the bound app, so every
|
|
35
|
+
Base44-bound build was refused with `release_base44_site_unverified`. The check now asks Base44's own
|
|
36
|
+
app record, which must give the bound app this `<slug>.base44.app` host. `himi init --from-url`
|
|
37
|
+
confirms the app id the same way before writing it. (#6136)
|
|
38
|
+
|
|
17
39
|
## 2026-11-15
|
|
18
40
|
|
|
19
41
|
### Logic, data & SDKs
|
|
@@ -8,7 +8,8 @@ IA and UX rewritten for a phone. Not a WebView. Not a shrunk desktop. Not
|
|
|
8
8
|
|
|
9
9
|
> **Not this page: "my website, as an app, today."** That is the *site shell*
|
|
10
10
|
> (`himi dist --shell brandy`) — the customer's live site in native-framed WebView tabs (a Wix or Base44 site, or any other
|
|
11
|
-
> https site with `site.kind: "web"`; see `himi docs wix-business-context`).
|
|
11
|
+
> https site with `site.kind: "web"`; see `himi docs wix-business-context`). Start it with
|
|
12
|
+
> `himi init --from-url <site>` (`himi docs base44-app-to-himi-app`, "Wrap"). It is a separate, day-0 path that
|
|
12
13
|
> graduates to this page's native app one tab at a time; it never replaces it. Everything
|
|
13
14
|
> below is the native app.
|
|
14
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1766.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "e73b653a66e4b53e730c953bbfc37f1dfc0bb265bab6331d8b3db607"
|
|
86
86
|
}
|
|
@@ -2834,7 +2834,7 @@ const SCREENS = runtimeSetting({
|
|
|
2834
2834
|
"package": "himalaya",
|
|
2835
2835
|
"type": "Button",
|
|
2836
2836
|
"props": {
|
|
2837
|
-
"title": "
|
|
2837
|
+
"title": "Sign in",
|
|
2838
2838
|
"style": "primary",
|
|
2839
2839
|
"fullWidth": true,
|
|
2840
2840
|
"action": {
|
|
@@ -2856,7 +2856,7 @@ const SCREENS = runtimeSetting({
|
|
|
2856
2856
|
"package": "himalaya",
|
|
2857
2857
|
"type": "Button",
|
|
2858
2858
|
"props": {
|
|
2859
|
-
"title": "
|
|
2859
|
+
"title": "Create account",
|
|
2860
2860
|
"style": "secondary",
|
|
2861
2861
|
"fullWidth": true,
|
|
2862
2862
|
"action": {
|
|
@@ -6259,7 +6259,7 @@ const SCREENS = runtimeSetting({
|
|
|
6259
6259
|
"package": "himalaya",
|
|
6260
6260
|
"type": "Button",
|
|
6261
6261
|
"props": {
|
|
6262
|
-
"title": "
|
|
6262
|
+
"title": "Sign in",
|
|
6263
6263
|
"style": "primary",
|
|
6264
6264
|
"fullWidth": true,
|
|
6265
6265
|
"disabledPath": "$service:himiStoreAccount.authBusy",
|
|
@@ -6278,7 +6278,7 @@ const SCREENS = runtimeSetting({
|
|
|
6278
6278
|
"package": "himalaya",
|
|
6279
6279
|
"type": "Button",
|
|
6280
6280
|
"props": {
|
|
6281
|
-
"title": "
|
|
6281
|
+
"title": "Create account",
|
|
6282
6282
|
"style": "primary",
|
|
6283
6283
|
"fullWidth": true,
|
|
6284
6284
|
"disabledPath": "$service:himiStoreAccount.authBusy",
|
|
@@ -6316,7 +6316,7 @@ const SCREENS = runtimeSetting({
|
|
|
6316
6316
|
"package": "himalaya",
|
|
6317
6317
|
"type": "Button",
|
|
6318
6318
|
"props": {
|
|
6319
|
-
"title": "
|
|
6319
|
+
"title": "Create account",
|
|
6320
6320
|
"style": "secondary",
|
|
6321
6321
|
"fullWidth": true,
|
|
6322
6322
|
"disabledPath": "$service:himiStoreAccount.authBusy",
|
|
@@ -152,12 +152,6 @@
|
|
|
152
152
|
"translation": "شقة، جناح، إلخ.",
|
|
153
153
|
"origin": "machine"
|
|
154
154
|
},
|
|
155
|
-
"h_174f9cc09136": {
|
|
156
|
-
"key": "account.signInButton",
|
|
157
|
-
"source": "SIGN IN",
|
|
158
|
-
"translation": "تسجيل الدخول",
|
|
159
|
-
"origin": "machine"
|
|
160
|
-
},
|
|
161
155
|
"h_1753c2061c67": {
|
|
162
156
|
"key": "account.deleteAccountCta",
|
|
163
157
|
"source": "Delete account",
|
|
@@ -608,12 +602,6 @@
|
|
|
608
602
|
"translation": "سجّل الدخول للانضمام",
|
|
609
603
|
"origin": "machine"
|
|
610
604
|
},
|
|
611
|
-
"h_6cb8411971b9": {
|
|
612
|
-
"key": "account.createAccountButton",
|
|
613
|
-
"source": "CREATE ACCOUNT",
|
|
614
|
-
"translation": "إنشاء حساب",
|
|
615
|
-
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
616
|
-
},
|
|
617
605
|
"h_6ccb60071be8": {
|
|
618
606
|
"key": "shop.categoriesLabel",
|
|
619
607
|
"source": "Categories",
|
|
@@ -992,6 +980,12 @@
|
|
|
992
980
|
"translation": "هل تريد إلغاء حظر هذا العضو؟ قد يتمكن من التفاعل مع ملفك الشخصي مجددًا.",
|
|
993
981
|
"origin": "machine"
|
|
994
982
|
},
|
|
983
|
+
"h_aaf374479756": {
|
|
984
|
+
"key": "account.createAccountButton",
|
|
985
|
+
"source": "Create account",
|
|
986
|
+
"translation": "إنشاء حساب",
|
|
987
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
988
|
+
},
|
|
995
989
|
"h_ab301b04c7fa": {
|
|
996
990
|
"key": "addresses.emptyTitle",
|
|
997
991
|
"source": "No saved addresses yet",
|
|
@@ -152,12 +152,6 @@
|
|
|
152
152
|
"translation": "Byt, apartmán atd.",
|
|
153
153
|
"origin": "machine"
|
|
154
154
|
},
|
|
155
|
-
"h_174f9cc09136": {
|
|
156
|
-
"key": "account.signInButton",
|
|
157
|
-
"source": "SIGN IN",
|
|
158
|
-
"translation": "PŘIHLÁSIT SE",
|
|
159
|
-
"origin": "machine"
|
|
160
|
-
},
|
|
161
155
|
"h_1753c2061c67": {
|
|
162
156
|
"key": "account.deleteAccountCta",
|
|
163
157
|
"source": "Delete account",
|
|
@@ -608,12 +602,6 @@
|
|
|
608
602
|
"translation": "Pro připojení se přihlaste",
|
|
609
603
|
"origin": "machine"
|
|
610
604
|
},
|
|
611
|
-
"h_6cb8411971b9": {
|
|
612
|
-
"key": "account.createAccountButton",
|
|
613
|
-
"source": "CREATE ACCOUNT",
|
|
614
|
-
"translation": "Vytvořit účet",
|
|
615
|
-
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
616
|
-
},
|
|
617
605
|
"h_6ccb60071be8": {
|
|
618
606
|
"key": "shop.categoriesLabel",
|
|
619
607
|
"source": "Categories",
|
|
@@ -992,6 +980,12 @@
|
|
|
992
980
|
"translation": "Odblokovat tohoto člena? Může s vaším profilem opět komunikovat.",
|
|
993
981
|
"origin": "machine"
|
|
994
982
|
},
|
|
983
|
+
"h_aaf374479756": {
|
|
984
|
+
"key": "account.createAccountButton",
|
|
985
|
+
"source": "Create account",
|
|
986
|
+
"translation": "Vytvořit účet",
|
|
987
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
988
|
+
},
|
|
995
989
|
"h_ab301b04c7fa": {
|
|
996
990
|
"key": "addresses.emptyTitle",
|
|
997
991
|
"source": "No saved addresses yet",
|
|
@@ -152,12 +152,6 @@
|
|
|
152
152
|
"translation": "Lejlighed, suite osv.",
|
|
153
153
|
"origin": "machine"
|
|
154
154
|
},
|
|
155
|
-
"h_174f9cc09136": {
|
|
156
|
-
"key": "account.signInButton",
|
|
157
|
-
"source": "SIGN IN",
|
|
158
|
-
"translation": "LOG IND",
|
|
159
|
-
"origin": "machine"
|
|
160
|
-
},
|
|
161
155
|
"h_1753c2061c67": {
|
|
162
156
|
"key": "account.deleteAccountCta",
|
|
163
157
|
"source": "Delete account",
|
|
@@ -608,12 +602,6 @@
|
|
|
608
602
|
"translation": "Log ind for at deltage",
|
|
609
603
|
"origin": "machine"
|
|
610
604
|
},
|
|
611
|
-
"h_6cb8411971b9": {
|
|
612
|
-
"key": "account.createAccountButton",
|
|
613
|
-
"source": "CREATE ACCOUNT",
|
|
614
|
-
"translation": "Opret konto",
|
|
615
|
-
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
616
|
-
},
|
|
617
605
|
"h_6ccb60071be8": {
|
|
618
606
|
"key": "shop.categoriesLabel",
|
|
619
607
|
"source": "Categories",
|
|
@@ -992,6 +980,12 @@
|
|
|
992
980
|
"translation": "Vil du fjerne blokeringen af dette medlem? Vedkommende kan muligvis interagere med din profil igen.",
|
|
993
981
|
"origin": "machine"
|
|
994
982
|
},
|
|
983
|
+
"h_aaf374479756": {
|
|
984
|
+
"key": "account.createAccountButton",
|
|
985
|
+
"source": "Create account",
|
|
986
|
+
"translation": "Opret konto",
|
|
987
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
988
|
+
},
|
|
995
989
|
"h_ab301b04c7fa": {
|
|
996
990
|
"key": "addresses.emptyTitle",
|
|
997
991
|
"source": "No saved addresses yet",
|
|
@@ -152,12 +152,6 @@
|
|
|
152
152
|
"translation": "Wohnung, Etage usw.",
|
|
153
153
|
"origin": "machine"
|
|
154
154
|
},
|
|
155
|
-
"h_174f9cc09136": {
|
|
156
|
-
"key": "account.signInButton",
|
|
157
|
-
"source": "SIGN IN",
|
|
158
|
-
"translation": "ANMELDEN",
|
|
159
|
-
"origin": "machine"
|
|
160
|
-
},
|
|
161
155
|
"h_1753c2061c67": {
|
|
162
156
|
"key": "account.deleteAccountCta",
|
|
163
157
|
"source": "Delete account",
|
|
@@ -608,12 +602,6 @@
|
|
|
608
602
|
"translation": "Zum Beitreten anmelden",
|
|
609
603
|
"origin": "machine"
|
|
610
604
|
},
|
|
611
|
-
"h_6cb8411971b9": {
|
|
612
|
-
"key": "account.createAccountButton",
|
|
613
|
-
"source": "CREATE ACCOUNT",
|
|
614
|
-
"translation": "Konto erstellen",
|
|
615
|
-
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
616
|
-
},
|
|
617
605
|
"h_6ccb60071be8": {
|
|
618
606
|
"key": "shop.categoriesLabel",
|
|
619
607
|
"source": "Categories",
|
|
@@ -992,6 +980,12 @@
|
|
|
992
980
|
"translation": "Dieses Mitglied entsperren? Es kann dann möglicherweise wieder mit deinem Profil interagieren.",
|
|
993
981
|
"origin": "machine"
|
|
994
982
|
},
|
|
983
|
+
"h_aaf374479756": {
|
|
984
|
+
"key": "account.createAccountButton",
|
|
985
|
+
"source": "Create account",
|
|
986
|
+
"translation": "Konto erstellen",
|
|
987
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
988
|
+
},
|
|
995
989
|
"h_ab301b04c7fa": {
|
|
996
990
|
"key": "addresses.emptyTitle",
|
|
997
991
|
"source": "No saved addresses yet",
|
|
@@ -152,12 +152,6 @@
|
|
|
152
152
|
"translation": "Διαμέρισμα, όροφος κ.λπ.",
|
|
153
153
|
"origin": "machine"
|
|
154
154
|
},
|
|
155
|
-
"h_174f9cc09136": {
|
|
156
|
-
"key": "account.signInButton",
|
|
157
|
-
"source": "SIGN IN",
|
|
158
|
-
"translation": "ΣΥΝΔΕΣΗ",
|
|
159
|
-
"origin": "machine"
|
|
160
|
-
},
|
|
161
155
|
"h_1753c2061c67": {
|
|
162
156
|
"key": "account.deleteAccountCta",
|
|
163
157
|
"source": "Delete account",
|
|
@@ -608,12 +602,6 @@
|
|
|
608
602
|
"translation": "Συνδεθείτε για να συμμετάσχετε",
|
|
609
603
|
"origin": "machine"
|
|
610
604
|
},
|
|
611
|
-
"h_6cb8411971b9": {
|
|
612
|
-
"key": "account.createAccountButton",
|
|
613
|
-
"source": "CREATE ACCOUNT",
|
|
614
|
-
"translation": "Δημ. λογαριασμού",
|
|
615
|
-
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
616
|
-
},
|
|
617
605
|
"h_6ccb60071be8": {
|
|
618
606
|
"key": "shop.categoriesLabel",
|
|
619
607
|
"source": "Categories",
|
|
@@ -992,6 +980,12 @@
|
|
|
992
980
|
"translation": "Κατάργηση αποκλεισμού αυτού του μέλους; Μπορεί να αλληλεπιδρά ξανά με το προφίλ σας.",
|
|
993
981
|
"origin": "machine"
|
|
994
982
|
},
|
|
983
|
+
"h_aaf374479756": {
|
|
984
|
+
"key": "account.createAccountButton",
|
|
985
|
+
"source": "Create account",
|
|
986
|
+
"translation": "Δημ. λογαριασμού",
|
|
987
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
|
|
988
|
+
},
|
|
995
989
|
"h_ab301b04c7fa": {
|
|
996
990
|
"key": "addresses.emptyTitle",
|
|
997
991
|
"source": "No saved addresses yet",
|