@wix/himalaya-cli 0.1897.0 → 0.1899.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/app-config.d.ts +11 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +11 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +12 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{0c2266c1d7d6e00c558adf2e3706e5ae360fdb6b5ca7663ed596d683a0f39f34.bin → 3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab.bin} +1 -1
- package/dist/browser-plane/sw.js +5 -5
- package/dist/cli.mjs +1117 -1004
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/capabilities.md +1 -1
- package/guides/qa-builds.md +29 -1
- package/guides/release-notes.md +10 -0
- package/guides/wix-business-context.md +2 -1
- package/package.json +2 -2
|
@@ -145,6 +145,7 @@ export interface NavigationConfig {
|
|
|
145
145
|
cashierConfig?: import("@wix/himalaya/core").CashierConfig;
|
|
146
146
|
base44Config?: import("@wix/himalaya/core").Base44Config;
|
|
147
147
|
wixIapConfig?: import("@wix/himalaya/core").WixIapConfig;
|
|
148
|
+
adsConfig?: AdsRuntimeConfig;
|
|
148
149
|
socialSignInConfig?: import("@wix/himalaya/core").SocialSignInConfig;
|
|
149
150
|
contract?: import("./provisioning-facts.js").ServedReleaseContract;
|
|
150
151
|
wixPlatformConfig?: WixPlatformConfig;
|
|
@@ -387,3 +388,13 @@ export declare function buildAppConfigDocument(req: IncomingMessage, meta: Deriv
|
|
|
387
388
|
/** The package's checked-in net-mocks fixture, for a DEBUG device (#4607). Dev-server only. */
|
|
388
389
|
devNetMocks?: NetMocksFile | null): AppConfigDocument;
|
|
389
390
|
export declare function handleAppConfigRequest(req: IncomingMessage, res: ServerResponse, meta: DerivedAppMeta, override?: Record<string, unknown>, bundleCtx?: NavBundleContext, devNetMocks?: NetMocksFile | null): void;
|
|
391
|
+
/** The served `adsConfig` block (docs/ads.md): everything in `defineApp({ ads })` except the build-time AdMob app IDs. */
|
|
392
|
+
export interface AdsRuntimeConfig {
|
|
393
|
+
enabled: boolean;
|
|
394
|
+
slots: Record<string, {
|
|
395
|
+
iosUnitId?: string;
|
|
396
|
+
androidUnitId?: string;
|
|
397
|
+
}>;
|
|
398
|
+
adFreeEntitlements: string[];
|
|
399
|
+
}
|
|
400
|
+
export declare function deriveAdsConfig(ads: import("@wix/himalaya/core").AdsConfig): AdsRuntimeConfig;
|
|
@@ -303,6 +303,9 @@ export interface DerivedAppMeta {
|
|
|
303
303
|
/** Forwarded from AppConfig.wixIap — feeds the served `wixIapConfig`, which serve-control
|
|
304
304
|
* projects into the dist contract's `native.iapBinding` (baked at build time, never OTA-read). */
|
|
305
305
|
wixIap?: import("@wix/himalaya/core").WixIapConfig;
|
|
306
|
+
/** Forwarded from AppConfig.ads — feeds the served `adsConfig` (kill switch, slot unit IDs, ad-free
|
|
307
|
+
* products). The build-time AdMob app IDs are never served. */
|
|
308
|
+
ads?: import("@wix/himalaya/core").AdsConfig;
|
|
306
309
|
/** Forwarded from AppConfig.socialSignIn — feeds the served `socialSignInConfig`, which
|
|
307
310
|
* serve-control projects into the dist contract's `native.googleSignIn` (baked, never OTA-read). */
|
|
308
311
|
socialSignIn?: import("@wix/himalaya/core").SocialSignInConfig;
|
|
@@ -273,6 +273,20 @@ export declare function qrCode(props: {
|
|
|
273
273
|
export declare function appIntent(pkg: string, type: string, props: unknown, opts?: {
|
|
274
274
|
id?: string;
|
|
275
275
|
}): Component;
|
|
276
|
+
/** The ads module's component id (docs/ads.md): owned by the `himi_ads` module, not by any app, so every
|
|
277
|
+
* shell that links `ads` (demo-app, a branded-lite build from `himi dist`) can draw it. */
|
|
278
|
+
export declare const AD_BANNER_PACKAGE = "himi_ads";
|
|
279
|
+
export declare const AD_BANNER_TYPE = "AdBanner";
|
|
280
|
+
/** A banner ad in the named slot (`defineApp({ ads: { slots } })`). Draws nothing where the binary does not
|
|
281
|
+
* link `ads` or while ads are off, unconsented, unfilled or the user is ad-free: the node carries an EMPTY
|
|
282
|
+
* fallback, the same contract as an RFC 0080 extension view. Authoring surfaces draw a dashed placeholder.
|
|
283
|
+
* Placement rules (docs/ads.md): at most one per screen; never on auth, checkout, paywall, settings or forms. */
|
|
284
|
+
export declare function adBanner(props: {
|
|
285
|
+
slot: string;
|
|
286
|
+
size?: "adaptive" | "banner" | "largeBanner" | "mediumRectangle";
|
|
287
|
+
}, opts?: {
|
|
288
|
+
id?: string;
|
|
289
|
+
}): Component;
|
|
276
290
|
/** RFC 0058 §3.3 — an `image` with a `contentDescription` is an IMAGE the tree
|
|
277
291
|
* announces; without one it is DECORATIVE. Both are correct answers and the
|
|
278
292
|
* choice is the author's, but `contentDescription: ""` spells the second one
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -708,6 +708,17 @@ export interface PushConfig {
|
|
|
708
708
|
export interface AdsConfig {
|
|
709
709
|
iosAppId: string;
|
|
710
710
|
androidAppId: string;
|
|
711
|
+
/** Global kill switch, served as `adsConfig.enabled`. Omitted ⇒ off (a missing or invalid block means no ads). */
|
|
712
|
+
enabled?: boolean;
|
|
713
|
+
/** Ad unit IDs per slot name (what `adBanner({ slot })` references). Debug/dev builds ignore these and request Google's test units. */
|
|
714
|
+
slots?: Record<string, AdsSlotConfig>;
|
|
715
|
+
/** Store product IDs (IAP) that make the user ad-free: any ACTIVE entitlement in this list suppresses every banner. */
|
|
716
|
+
adFreeEntitlements?: string[];
|
|
717
|
+
}
|
|
718
|
+
/** One banner slot's ad unit IDs (`ca-app-pub-XXXX/YYYY`). */
|
|
719
|
+
export interface AdsSlotConfig {
|
|
720
|
+
iosUnitId?: string;
|
|
721
|
+
androidUnitId?: string;
|
|
711
722
|
}
|
|
712
723
|
export type IapProductType = "subscription" | "nonConsumable" | "consumable";
|
|
713
724
|
export interface IapProduct {
|
|
@@ -8260,6 +8260,14 @@ function validateLadderConfig(config) {
|
|
|
8260
8260
|
throw new Error(`defineApp: ads.${key} must be an AdMob app ID like "ca-app-pub-1234567890123456~1234567890", got ${JSON.stringify(config.ads[key])}.`);
|
|
8261
8261
|
}
|
|
8262
8262
|
}
|
|
8263
|
+
for (const [slot, ids] of Object.entries(config.ads.slots ?? {})) {
|
|
8264
|
+
for (const key of ["iosUnitId", "androidUnitId"]) {
|
|
8265
|
+
const id = ids[key];
|
|
8266
|
+
if (id !== void 0 && !/^ca-app-pub-\d+\/\d+$/.test(id)) {
|
|
8267
|
+
throw new Error(`defineApp: ads.slots.${slot}.${key} must be an AdMob ad unit ID like "ca-app-pub-1234567890123456/1234567890", got ${JSON.stringify(id)}.`);
|
|
8268
|
+
}
|
|
8269
|
+
}
|
|
8270
|
+
}
|
|
8263
8271
|
}
|
|
8264
8272
|
if (Array.isArray(config.capabilityEnvelope)) {
|
|
8265
8273
|
const built = new Set(config.capabilityEnvelope);
|
|
@@ -9465,6 +9465,14 @@ function appIntent(pkg, type, props, opts) {
|
|
|
9465
9465
|
body: { package: pkg, type, props }
|
|
9466
9466
|
};
|
|
9467
9467
|
}
|
|
9468
|
+
var AD_BANNER_PACKAGE = "himi_ads";
|
|
9469
|
+
var AD_BANNER_TYPE = "AdBanner";
|
|
9470
|
+
function adBanner(props, opts) {
|
|
9471
|
+
return {
|
|
9472
|
+
id: opts?.id ?? auto("ad_banner"),
|
|
9473
|
+
body: { package: AD_BANNER_PACKAGE, type: AD_BANNER_TYPE, props: { slot: props.slot, size: props.size ?? "adaptive" } }
|
|
9474
|
+
};
|
|
9475
|
+
}
|
|
9468
9476
|
function image(props, opts) {
|
|
9469
9477
|
const { decorative, ...imageProps } = props;
|
|
9470
9478
|
if (decorative && (imageProps.contentDescription ?? "").trim() !== "") {
|
|
@@ -10103,6 +10111,7 @@ function deriveAppMeta(name, m, platforms = {}, provisioning = {}) {
|
|
|
10103
10111
|
base44: config.base44,
|
|
10104
10112
|
wixIap: config.wixIap,
|
|
10105
10113
|
socialSignIn: config.socialSignIn,
|
|
10114
|
+
ads: config.ads,
|
|
10106
10115
|
// RFC 0042 Phase 2 — optional per-app Wix Platform productionization block.
|
|
10107
10116
|
// Read loosely (AppConfig in @himalaya/core doesn't type it yet) so apps can
|
|
10108
10117
|
// opt in without a core-types bump; absent ⇒ all members keep the dev seam.
|
|
@@ -10157,9 +10166,12 @@ function emptyBlock(service, titlePath, ctaTitle, ctaScreen, iconName, id, opts
|
|
|
10157
10166
|
}
|
|
10158
10167
|
var STATE_SWAP_TRANSITION = { enter: "fade", exit: "fade" };
|
|
10159
10168
|
export {
|
|
10169
|
+
AD_BANNER_PACKAGE,
|
|
10170
|
+
AD_BANNER_TYPE,
|
|
10160
10171
|
REQUIRED_APP_DEV_MODULE_FIELDS,
|
|
10161
10172
|
STATE_SWAP_TRANSITION,
|
|
10162
10173
|
activityIndicator,
|
|
10174
|
+
adBanner,
|
|
10163
10175
|
agenda,
|
|
10164
10176
|
agendaList,
|
|
10165
10177
|
alertDialog,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2790910
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-BPtDeeCf.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab",
|
|
85
|
+
"file": "preview-deferred/3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|