@wix/himalaya-cli 0.2047.0 → 0.2049.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/sdk/iap/src/index.d.ts +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/monitoring.d.ts +81 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +7 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-monitoring.d.ts +23 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +530 -68
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +198 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +532 -70
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{bfa6093b86d3106ef891a717dc0da1b1c0d9d1a456259753c25398bbafbcef8e.bin → 78e9187a8551e2a63e7bc9f5cda8449c6a39ba3d9bcfa40947713322e68a3e3b.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +51 -47
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/sdk-reference.json +121 -2
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/ar.json +6 -0
- package/templates/beauty-salon/l10n/cs.json +6 -0
- package/templates/beauty-salon/l10n/da.json +6 -0
- package/templates/beauty-salon/l10n/de.json +6 -0
- package/templates/beauty-salon/l10n/el.json +6 -0
- package/templates/beauty-salon/l10n/en.json +6 -0
- package/templates/beauty-salon/l10n/es.json +6 -0
- package/templates/beauty-salon/l10n/fi.json +6 -0
- package/templates/beauty-salon/l10n/fr.json +6 -0
- package/templates/beauty-salon/l10n/he.json +5 -0
- package/templates/beauty-salon/l10n/hu.json +6 -0
- package/templates/beauty-salon/l10n/id.json +6 -0
- package/templates/beauty-salon/l10n/it.json +6 -0
- package/templates/beauty-salon/l10n/ja.json +6 -0
- package/templates/beauty-salon/l10n/ko.json +6 -0
- package/templates/beauty-salon/l10n/lt.json +6 -0
- package/templates/beauty-salon/l10n/nl.json +6 -0
- package/templates/beauty-salon/l10n/no.json +6 -0
- package/templates/beauty-salon/l10n/pl.json +6 -0
- package/templates/beauty-salon/l10n/pt.json +6 -0
- package/templates/beauty-salon/l10n/ru.json +6 -0
- package/templates/beauty-salon/l10n/sv.json +6 -0
- package/templates/beauty-salon/l10n/th.json +6 -0
- package/templates/beauty-salon/l10n/tr.json +6 -0
- package/templates/beauty-salon/l10n/uk.json +6 -0
- package/templates/beauty-salon/l10n/vi.json +6 -0
- package/templates/beauty-salon/l10n/zh.json +6 -0
- package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/branded-lite/recipes/announcement-card.json +85 -34
- package/templates/branded-lite/tier5-src/_shared/announcement-section.ts +52 -10
- package/templates/branded-lite/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/community-club/l10n/ar.json +6 -0
- package/templates/community-club/l10n/cs.json +6 -0
- package/templates/community-club/l10n/da.json +6 -0
- package/templates/community-club/l10n/de.json +6 -0
- package/templates/community-club/l10n/el.json +6 -0
- package/templates/community-club/l10n/en.json +6 -0
- package/templates/community-club/l10n/es.json +6 -0
- package/templates/community-club/l10n/fi.json +6 -0
- package/templates/community-club/l10n/fr.json +6 -0
- package/templates/community-club/l10n/he.json +5 -0
- package/templates/community-club/l10n/hu.json +6 -0
- package/templates/community-club/l10n/id.json +6 -0
- package/templates/community-club/l10n/it.json +6 -0
- package/templates/community-club/l10n/ja.json +6 -0
- package/templates/community-club/l10n/ko.json +6 -0
- package/templates/community-club/l10n/lt.json +6 -0
- package/templates/community-club/l10n/nl.json +6 -0
- package/templates/community-club/l10n/no.json +6 -0
- package/templates/community-club/l10n/pl.json +6 -0
- package/templates/community-club/l10n/pt.json +6 -0
- package/templates/community-club/l10n/ru.json +6 -0
- package/templates/community-club/l10n/sv.json +6 -0
- package/templates/community-club/l10n/th.json +6 -0
- package/templates/community-club/l10n/tr.json +6 -0
- package/templates/community-club/l10n/uk.json +6 -0
- package/templates/community-club/l10n/vi.json +6 -0
- package/templates/community-club/l10n/zh.json +6 -0
- package/templates/community-club/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/events-meetups/l10n/ar.json +6 -0
- package/templates/events-meetups/l10n/cs.json +6 -0
- package/templates/events-meetups/l10n/da.json +6 -0
- package/templates/events-meetups/l10n/de.json +6 -0
- package/templates/events-meetups/l10n/el.json +6 -0
- package/templates/events-meetups/l10n/en.json +6 -0
- package/templates/events-meetups/l10n/es.json +6 -0
- package/templates/events-meetups/l10n/fi.json +6 -0
- package/templates/events-meetups/l10n/fr.json +6 -0
- package/templates/events-meetups/l10n/he.json +5 -0
- package/templates/events-meetups/l10n/hu.json +6 -0
- package/templates/events-meetups/l10n/id.json +6 -0
- package/templates/events-meetups/l10n/it.json +6 -0
- package/templates/events-meetups/l10n/ja.json +6 -0
- package/templates/events-meetups/l10n/ko.json +6 -0
- package/templates/events-meetups/l10n/lt.json +6 -0
- package/templates/events-meetups/l10n/nl.json +6 -0
- package/templates/events-meetups/l10n/no.json +6 -0
- package/templates/events-meetups/l10n/pl.json +6 -0
- package/templates/events-meetups/l10n/pt.json +6 -0
- package/templates/events-meetups/l10n/ru.json +6 -0
- package/templates/events-meetups/l10n/sv.json +6 -0
- package/templates/events-meetups/l10n/th.json +6 -0
- package/templates/events-meetups/l10n/tr.json +6 -0
- package/templates/events-meetups/l10n/uk.json +6 -0
- package/templates/events-meetups/l10n/vi.json +6 -0
- package/templates/events-meetups/l10n/zh.json +6 -0
- package/templates/events-meetups/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/gym-fitness/l10n/ar.json +6 -0
- package/templates/gym-fitness/l10n/cs.json +6 -0
- package/templates/gym-fitness/l10n/da.json +6 -0
- package/templates/gym-fitness/l10n/de.json +6 -0
- package/templates/gym-fitness/l10n/el.json +6 -0
- package/templates/gym-fitness/l10n/en.json +6 -0
- package/templates/gym-fitness/l10n/es.json +6 -0
- package/templates/gym-fitness/l10n/fi.json +6 -0
- package/templates/gym-fitness/l10n/fr.json +6 -0
- package/templates/gym-fitness/l10n/he.json +5 -0
- package/templates/gym-fitness/l10n/hu.json +6 -0
- package/templates/gym-fitness/l10n/id.json +6 -0
- package/templates/gym-fitness/l10n/it.json +6 -0
- package/templates/gym-fitness/l10n/ja.json +6 -0
- package/templates/gym-fitness/l10n/ko.json +6 -0
- package/templates/gym-fitness/l10n/lt.json +6 -0
- package/templates/gym-fitness/l10n/nl.json +6 -0
- package/templates/gym-fitness/l10n/no.json +6 -0
- package/templates/gym-fitness/l10n/pl.json +6 -0
- package/templates/gym-fitness/l10n/pt.json +6 -0
- package/templates/gym-fitness/l10n/ru.json +6 -0
- package/templates/gym-fitness/l10n/sv.json +6 -0
- package/templates/gym-fitness/l10n/th.json +6 -0
- package/templates/gym-fitness/l10n/tr.json +6 -0
- package/templates/gym-fitness/l10n/uk.json +6 -0
- package/templates/gym-fitness/l10n/vi.json +6 -0
- package/templates/gym-fitness/l10n/zh.json +6 -0
- package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/nonprofit-cause/l10n/ar.json +6 -0
- package/templates/nonprofit-cause/l10n/cs.json +6 -0
- package/templates/nonprofit-cause/l10n/da.json +6 -0
- package/templates/nonprofit-cause/l10n/de.json +6 -0
- package/templates/nonprofit-cause/l10n/el.json +6 -0
- package/templates/nonprofit-cause/l10n/en.json +6 -0
- package/templates/nonprofit-cause/l10n/es.json +6 -0
- package/templates/nonprofit-cause/l10n/fi.json +6 -0
- package/templates/nonprofit-cause/l10n/fr.json +6 -0
- package/templates/nonprofit-cause/l10n/he.json +5 -0
- package/templates/nonprofit-cause/l10n/hu.json +6 -0
- package/templates/nonprofit-cause/l10n/id.json +6 -0
- package/templates/nonprofit-cause/l10n/it.json +6 -0
- package/templates/nonprofit-cause/l10n/ja.json +6 -0
- package/templates/nonprofit-cause/l10n/ko.json +6 -0
- package/templates/nonprofit-cause/l10n/lt.json +6 -0
- package/templates/nonprofit-cause/l10n/nl.json +6 -0
- package/templates/nonprofit-cause/l10n/no.json +6 -0
- package/templates/nonprofit-cause/l10n/pl.json +6 -0
- package/templates/nonprofit-cause/l10n/pt.json +6 -0
- package/templates/nonprofit-cause/l10n/ru.json +6 -0
- package/templates/nonprofit-cause/l10n/sv.json +6 -0
- package/templates/nonprofit-cause/l10n/th.json +6 -0
- package/templates/nonprofit-cause/l10n/tr.json +6 -0
- package/templates/nonprofit-cause/l10n/uk.json +6 -0
- package/templates/nonprofit-cause/l10n/vi.json +6 -0
- package/templates/nonprofit-cause/l10n/zh.json +6 -0
- package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/podcast-creator/l10n/ar.json +6 -0
- package/templates/podcast-creator/l10n/cs.json +6 -0
- package/templates/podcast-creator/l10n/da.json +6 -0
- package/templates/podcast-creator/l10n/de.json +6 -0
- package/templates/podcast-creator/l10n/el.json +6 -0
- package/templates/podcast-creator/l10n/en.json +6 -0
- package/templates/podcast-creator/l10n/es.json +6 -0
- package/templates/podcast-creator/l10n/fi.json +6 -0
- package/templates/podcast-creator/l10n/fr.json +6 -0
- package/templates/podcast-creator/l10n/he.json +5 -0
- package/templates/podcast-creator/l10n/hu.json +6 -0
- package/templates/podcast-creator/l10n/id.json +6 -0
- package/templates/podcast-creator/l10n/it.json +6 -0
- package/templates/podcast-creator/l10n/ja.json +6 -0
- package/templates/podcast-creator/l10n/ko.json +6 -0
- package/templates/podcast-creator/l10n/lt.json +6 -0
- package/templates/podcast-creator/l10n/nl.json +6 -0
- package/templates/podcast-creator/l10n/no.json +6 -0
- package/templates/podcast-creator/l10n/pl.json +6 -0
- package/templates/podcast-creator/l10n/pt.json +6 -0
- package/templates/podcast-creator/l10n/ru.json +6 -0
- package/templates/podcast-creator/l10n/sv.json +6 -0
- package/templates/podcast-creator/l10n/th.json +6 -0
- package/templates/podcast-creator/l10n/tr.json +6 -0
- package/templates/podcast-creator/l10n/uk.json +6 -0
- package/templates/podcast-creator/l10n/vi.json +6 -0
- package/templates/podcast-creator/l10n/zh.json +6 -0
- package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/portfolio-creative/l10n/ar.json +6 -0
- package/templates/portfolio-creative/l10n/cs.json +6 -0
- package/templates/portfolio-creative/l10n/da.json +6 -0
- package/templates/portfolio-creative/l10n/de.json +6 -0
- package/templates/portfolio-creative/l10n/el.json +6 -0
- package/templates/portfolio-creative/l10n/en.json +6 -0
- package/templates/portfolio-creative/l10n/es.json +6 -0
- package/templates/portfolio-creative/l10n/fi.json +6 -0
- package/templates/portfolio-creative/l10n/fr.json +6 -0
- package/templates/portfolio-creative/l10n/he.json +5 -0
- package/templates/portfolio-creative/l10n/hu.json +6 -0
- package/templates/portfolio-creative/l10n/id.json +6 -0
- package/templates/portfolio-creative/l10n/it.json +6 -0
- package/templates/portfolio-creative/l10n/ja.json +6 -0
- package/templates/portfolio-creative/l10n/ko.json +6 -0
- package/templates/portfolio-creative/l10n/lt.json +6 -0
- package/templates/portfolio-creative/l10n/nl.json +6 -0
- package/templates/portfolio-creative/l10n/no.json +6 -0
- package/templates/portfolio-creative/l10n/pl.json +6 -0
- package/templates/portfolio-creative/l10n/pt.json +6 -0
- package/templates/portfolio-creative/l10n/ru.json +6 -0
- package/templates/portfolio-creative/l10n/sv.json +6 -0
- package/templates/portfolio-creative/l10n/th.json +6 -0
- package/templates/portfolio-creative/l10n/tr.json +6 -0
- package/templates/portfolio-creative/l10n/uk.json +6 -0
- package/templates/portfolio-creative/l10n/vi.json +6 -0
- package/templates/portfolio-creative/l10n/zh.json +6 -0
- package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/professional-services/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/restaurant/l10n/ar.json +6 -0
- package/templates/restaurant/l10n/cs.json +6 -0
- package/templates/restaurant/l10n/da.json +6 -0
- package/templates/restaurant/l10n/de.json +6 -0
- package/templates/restaurant/l10n/el.json +6 -0
- package/templates/restaurant/l10n/en.json +6 -0
- package/templates/restaurant/l10n/es.json +6 -0
- package/templates/restaurant/l10n/fi.json +6 -0
- package/templates/restaurant/l10n/fr.json +6 -0
- package/templates/restaurant/l10n/he.json +5 -0
- package/templates/restaurant/l10n/hu.json +6 -0
- package/templates/restaurant/l10n/id.json +6 -0
- package/templates/restaurant/l10n/it.json +6 -0
- package/templates/restaurant/l10n/ja.json +6 -0
- package/templates/restaurant/l10n/ko.json +6 -0
- package/templates/restaurant/l10n/lt.json +6 -0
- package/templates/restaurant/l10n/nl.json +6 -0
- package/templates/restaurant/l10n/no.json +6 -0
- package/templates/restaurant/l10n/pl.json +6 -0
- package/templates/restaurant/l10n/pt.json +6 -0
- package/templates/restaurant/l10n/ru.json +6 -0
- package/templates/restaurant/l10n/sv.json +6 -0
- package/templates/restaurant/l10n/th.json +6 -0
- package/templates/restaurant/l10n/tr.json +6 -0
- package/templates/restaurant/l10n/uk.json +6 -0
- package/templates/restaurant/l10n/vi.json +6 -0
- package/templates/restaurant/l10n/zh.json +6 -0
- package/templates/restaurant/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/retail-store/l10n/ar.json +6 -0
- package/templates/retail-store/l10n/cs.json +6 -0
- package/templates/retail-store/l10n/da.json +6 -0
- package/templates/retail-store/l10n/de.json +6 -0
- package/templates/retail-store/l10n/el.json +6 -0
- package/templates/retail-store/l10n/en.json +6 -0
- package/templates/retail-store/l10n/es.json +6 -0
- package/templates/retail-store/l10n/fi.json +6 -0
- package/templates/retail-store/l10n/fr.json +6 -0
- package/templates/retail-store/l10n/he.json +5 -0
- package/templates/retail-store/l10n/hu.json +6 -0
- package/templates/retail-store/l10n/id.json +6 -0
- package/templates/retail-store/l10n/it.json +6 -0
- package/templates/retail-store/l10n/ja.json +6 -0
- package/templates/retail-store/l10n/ko.json +6 -0
- package/templates/retail-store/l10n/lt.json +6 -0
- package/templates/retail-store/l10n/nl.json +6 -0
- package/templates/retail-store/l10n/no.json +6 -0
- package/templates/retail-store/l10n/pl.json +6 -0
- package/templates/retail-store/l10n/pt.json +6 -0
- package/templates/retail-store/l10n/ru.json +6 -0
- package/templates/retail-store/l10n/sv.json +6 -0
- package/templates/retail-store/l10n/th.json +6 -0
- package/templates/retail-store/l10n/tr.json +6 -0
- package/templates/retail-store/l10n/uk.json +6 -0
- package/templates/retail-store/l10n/vi.json +6 -0
- package/templates/retail-store/l10n/zh.json +6 -0
- package/templates/retail-store/tier5-src/_shared/relative-time.ts +35 -2
- package/templates/yoga-studio/l10n/ar.json +6 -0
- package/templates/yoga-studio/l10n/cs.json +6 -0
- package/templates/yoga-studio/l10n/da.json +6 -0
- package/templates/yoga-studio/l10n/de.json +6 -0
- package/templates/yoga-studio/l10n/el.json +6 -0
- package/templates/yoga-studio/l10n/en.json +6 -0
- package/templates/yoga-studio/l10n/es.json +6 -0
- package/templates/yoga-studio/l10n/fi.json +6 -0
- package/templates/yoga-studio/l10n/fr.json +6 -0
- package/templates/yoga-studio/l10n/he.json +5 -0
- package/templates/yoga-studio/l10n/hu.json +6 -0
- package/templates/yoga-studio/l10n/id.json +6 -0
- package/templates/yoga-studio/l10n/it.json +6 -0
- package/templates/yoga-studio/l10n/ja.json +6 -0
- package/templates/yoga-studio/l10n/ko.json +6 -0
- package/templates/yoga-studio/l10n/lt.json +6 -0
- package/templates/yoga-studio/l10n/nl.json +6 -0
- package/templates/yoga-studio/l10n/no.json +6 -0
- package/templates/yoga-studio/l10n/pl.json +6 -0
- package/templates/yoga-studio/l10n/pt.json +6 -0
- package/templates/yoga-studio/l10n/ru.json +6 -0
- package/templates/yoga-studio/l10n/sv.json +6 -0
- package/templates/yoga-studio/l10n/th.json +6 -0
- package/templates/yoga-studio/l10n/tr.json +6 -0
- package/templates/yoga-studio/l10n/uk.json +6 -0
- package/templates/yoga-studio/l10n/vi.json +6 -0
- package/templates/yoga-studio/l10n/zh.json +6 -0
- package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +35 -2
|
Binary file
|
|
@@ -3318,6 +3318,118 @@
|
|
|
3318
3318
|
"decl": "export function availableTicketAttendanceOf(event: unknown, ticket: unknown): TicketAttendance;",
|
|
3319
3319
|
"verificationChecked": true
|
|
3320
3320
|
},
|
|
3321
|
+
{
|
|
3322
|
+
"name": "IapLogLevel",
|
|
3323
|
+
"kind": "type",
|
|
3324
|
+
"jsdoc": "",
|
|
3325
|
+
"decl": "export type IapLogLevel = \"info\" | \"warn\" | \"error\";",
|
|
3326
|
+
"verificationChecked": true
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
"name": "IapEntry",
|
|
3330
|
+
"kind": "type",
|
|
3331
|
+
"jsdoc": "/** Where the purchase started: a cart, one in-app item from a cart of its own, a checkout a page\n * or screen opened, or a recovery of an earlier one. */",
|
|
3332
|
+
"decl": "export type IapEntry = \"cart\" | \"cartAlone\" | \"page\" | \"recovery\";",
|
|
3333
|
+
"verificationChecked": true
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"name": "IapStep",
|
|
3337
|
+
"kind": "type",
|
|
3338
|
+
"jsdoc": "/** `recover`: completing earlier purchases before this one opens Apple's sheet. */",
|
|
3339
|
+
"decl": "export type IapStep = \"recover\" | \"charge\" | \"start\" | \"storekit\" | \"complete\" | \"finish\";",
|
|
3340
|
+
"verificationChecked": true
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
"name": "IapBug",
|
|
3344
|
+
"kind": "type",
|
|
3345
|
+
"jsdoc": "",
|
|
3346
|
+
"decl": "export type IapBug = \"himi-iap-unexpected\" | \"himi-iap-charged-not-completed\" | \"himi-iap-paid-unit-stuck\" | \"himi-iap-recovery-crash\";",
|
|
3347
|
+
"verificationChecked": true
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"name": "IapIds",
|
|
3351
|
+
"kind": "interface",
|
|
3352
|
+
"jsdoc": "",
|
|
3353
|
+
"decl": "export interface IapIds {\n paymentGatewayOrderId?: string;\n orderId?: string;\n productIds?: string;\n wixTransactionId?: string;\n paymentId?: string;\n storeProductId?: string;\n transactionId?: string;\n}",
|
|
3354
|
+
"verificationChecked": true
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"name": "IapMonitoringContext",
|
|
3358
|
+
"kind": "interface",
|
|
3359
|
+
"jsdoc": "/** The fields every event carries, read when the event is sent. */",
|
|
3360
|
+
"decl": "export interface IapMonitoringContext {\n msid?: string;\n bundleId?: string;\n isLoggedIn: boolean;\n}",
|
|
3361
|
+
"verificationChecked": true
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
"name": "IapMonitorEvent",
|
|
3365
|
+
"kind": "interface",
|
|
3366
|
+
"jsdoc": "",
|
|
3367
|
+
"decl": "export interface IapMonitorEvent {\n type: string;\n level: IapLogLevel;\n data: Record<string, unknown>;\n}",
|
|
3368
|
+
"verificationChecked": true
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
"name": "IapEventSink",
|
|
3372
|
+
"kind": "type",
|
|
3373
|
+
"jsdoc": "",
|
|
3374
|
+
"decl": "export type IapEventSink = (event: IapMonitorEvent) => void;",
|
|
3375
|
+
"verificationChecked": true
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
"name": "FORBIDDEN_IAP_FIELDS",
|
|
3379
|
+
"kind": "const",
|
|
3380
|
+
"jsdoc": "/** Field names never sent, compared without case, `_` or `-`. A member id with order and\n * transaction ids would make identity-linked purchase records; wix-iap's Payment names its member. */",
|
|
3381
|
+
"decl": "export const FORBIDDEN_IAP_FIELDS: readonly string[] = [\n \"memberid\", \"contactid\", \"sitememberid\", \"userid\", \"appuserid\", \"uuid\", \"visitorid\",\n \"signedtransaction\", \"jws\", \"signedinstance\", \"instance\", \"signedpayload\",\n \"cookie\", \"cookies\", \"authorization\", \"token\", \"accesstoken\", \"appaccounttoken\", \"refreshtoken\", \"session\",\n \"email\", \"emailaddress\", \"name\", \"firstname\", \"lastname\", \"fullname\", \"nickname\", \"phone\",\n];",
|
|
3382
|
+
"verificationChecked": true
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
"name": "scrubIapData",
|
|
3386
|
+
"kind": "function",
|
|
3387
|
+
"jsdoc": "/** What may be sent of `data`: undefined fields, forbidden names and JWS or email values are left\n * out at every depth, arrays included. Anything deeper than MAX_DEPTH is dropped, not sent unread. */",
|
|
3388
|
+
"decl": "export function scrubIapData(data: Data): Data;",
|
|
3389
|
+
"verificationChecked": true
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
"name": "describeIapError",
|
|
3393
|
+
"kind": "function",
|
|
3394
|
+
"jsdoc": "/** A failure's HTTP status, Wix code, server request id and message, read by shape (a wix-iap\n * failure, an HTTP error); never throws, since it runs inside the flow's own error handling. */",
|
|
3395
|
+
"decl": "export function describeIapError(error: unknown): Data;",
|
|
3396
|
+
"verificationChecked": true
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
"name": "outcomeLevel",
|
|
3400
|
+
"kind": "function",
|
|
3401
|
+
"jsdoc": "/** An outcome's level: ERROR when Apple charged and it failed, WARN for any other failure. */",
|
|
3402
|
+
"decl": "export function outcomeLevel(outcome: Data): IapLogLevel;",
|
|
3403
|
+
"verificationChecked": true
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
"name": "IapMonitorOptions",
|
|
3407
|
+
"kind": "interface",
|
|
3408
|
+
"jsdoc": "",
|
|
3409
|
+
"decl": "export interface IapMonitorOptions {\n /** Where events go; the binary's telemetry is `nativeIapEventSink` (index.ts). */\n sink: IapEventSink;\n context?: () => IapMonitoringContext;\n now?: () => number;\n newId?: () => string;\n}",
|
|
3410
|
+
"verificationChecked": true
|
|
3411
|
+
},
|
|
3412
|
+
{
|
|
3413
|
+
"name": "IapMonitor",
|
|
3414
|
+
"kind": "interface",
|
|
3415
|
+
"jsdoc": "",
|
|
3416
|
+
"decl": "export interface IapMonitor {\n log(type: string, data?: Data, level?: IapLogLevel): void;\n bug(fingerprint: IapBug, error: unknown, data?: Data): void;\n flow(entry: IapEntry, ids?: IapIds): IapFlow;\n gate(gate: { storeKit: boolean; experiment: boolean; enabled: boolean }): void;\n}",
|
|
3417
|
+
"verificationChecked": true
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
"name": "createIapMonitor",
|
|
3421
|
+
"kind": "function",
|
|
3422
|
+
"jsdoc": "/** Builds the IAP monitor: every event gets the shared fields and `eventAt`, loses the never-logged fields,\n * and goes to `options.sink`. A sink that throws is ignored, so monitoring never breaks a purchase. */",
|
|
3423
|
+
"decl": "export function createIapMonitor(options: IapMonitorOptions): IapMonitor;",
|
|
3424
|
+
"verificationChecked": true
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
"name": "IapFlow",
|
|
3428
|
+
"kind": "interface",
|
|
3429
|
+
"jsdoc": "/** One purchase from Continue to its outcome: its ids, each step's time and the last step reached. */",
|
|
3430
|
+
"decl": "export interface IapFlow {\n readonly flowId: string;\n readonly entry: IapEntry;\n /** The ids known so far, for an event logged outside the flow. */\n readonly knownIds: IapIds;\n /** The step the purchase is now in; the time of the one before is kept. */\n at(step: IapStep): void;\n add(ids: IapIds): void;\n /** Fields for the outcome only. */\n note(data: Data): void;\n /** `iap.purchase.started`, and the IapPurchase transaction starts: a start with no outcome is a\n * purchase the app never finished (killed, crashed). */\n started(extra?: Data): void;\n /** `iap.<step>.failed`: an error when Apple charged, unless it is retried later. */\n failed(step: IapStep, error: unknown, extra?: Data, level?: IapLogLevel): void;\n /** `iap.purchase.outcome`: what the shopper was shown, how far it got and how long each step\n * took. The IapPurchase transaction finishes only when bought. */\n outcome(outcome: Data, messageKey: string | undefined, extra?: Data): void;\n}",
|
|
3431
|
+
"verificationChecked": true
|
|
3432
|
+
},
|
|
3321
3433
|
{
|
|
3322
3434
|
"name": "ProductType",
|
|
3323
3435
|
"kind": "type",
|
|
@@ -3374,6 +3486,13 @@
|
|
|
3374
3486
|
"decl": "export async function storefrontCountryCode(): Promise<string | null>;",
|
|
3375
3487
|
"verificationChecked": true
|
|
3376
3488
|
},
|
|
3489
|
+
{
|
|
3490
|
+
"name": "nativeIapEventSink",
|
|
3491
|
+
"kind": "const",
|
|
3492
|
+
"jsdoc": "/** The binary's telemetry hub for IAP monitoring: every event of `createIapMonitor`. A binary\n * without `capability.iap.logEvent` refuses the call, and the event is dropped. */",
|
|
3493
|
+
"decl": "export const nativeIapEventSink: IapEventSink = (event) => { /* … */ };",
|
|
3494
|
+
"verificationChecked": true
|
|
3495
|
+
},
|
|
3377
3496
|
{
|
|
3378
3497
|
"name": "getProducts",
|
|
3379
3498
|
"kind": "function",
|
|
@@ -3637,7 +3756,7 @@
|
|
|
3637
3756
|
"name": "WixBridge",
|
|
3638
3757
|
"kind": "interface",
|
|
3639
3758
|
"jsdoc": "/** The host's Wix REST bridge (`himalaya.wixApi`). Resolves a 2xx body; rejects with\n * `HTTP <status> [<code>]: <message>` otherwise. Credentials are attached natively.\n * Same positional shape as the runtime's `wixApiCall`: `expectation` is bridge metadata for a\n * protected call, after `headers`, and never an HTTP header. */",
|
|
3640
|
-
"decl": "export interface WixBridge {\n call(\n method: \"GET\" | \"POST\",\n path: string,\n body?: unknown,\n headers?: Record<string, string>,\n expectation?: HostCallExpectation,\n ): Promise<unknown>;\n}",
|
|
3759
|
+
"decl": "export interface WixBridge {\n call(\n method: \"GET\" | \"POST\",\n path: string,\n body?: unknown,\n headers?: Record<string, string>,\n expectation?: HostCallExpectation,\n ): Promise<unknown>;\n /** The bridge this one wraps to watch its calls. The host's bridge stays the host's: its\n * identity checks still apply to a wrapper of it. */\n readonly observes?: WixBridge;\n}",
|
|
3641
3760
|
"verificationChecked": true
|
|
3642
3761
|
},
|
|
3643
3762
|
{
|
|
@@ -3805,7 +3924,7 @@
|
|
|
3805
3924
|
"name": "AppleIapCheckoutDependencies",
|
|
3806
3925
|
"kind": "interface",
|
|
3807
3926
|
"jsdoc": "",
|
|
3808
|
-
"decl": "export interface AppleIapCheckoutDependencies {\n wixIap: WixIapClient;\n /** The member signed in for a captured session, from the trusted host (`memberIdentityOf` over the\n * host session). It partitions the references and scopes acknowledgements: wix-iap has no\n * customer ids any more (D61). */\n identity: MemberIdentitySource;\n /** The same trusted binding the wix-iap client uses; it partitions the stored references. */\n binding: AppBindingSource;\n /** The same host provider the wix-iap client was given: every step compares generations. */\n session: SessionProvider;\n clock: Clock;\n cashier: CashierRoute;\n adapters: readonly IapOrderAdapter[];\n /** The screen's catalog pricing: the route and the App Store product a sale must match. */\n pricing: Pick<IapCatalogPricing, \"view\" | \"appleProduct\">;\n store?: TransactionStore;\n /** StoreKit's storefront country for StartItemPayment; defaults to `@himalaya/iap`'s native read. */\n storeCountry?: () => Promise<string | null>;\n refs?: OrderRefStore;\n bridge?: WixBridge;\n jitter?: (baseDelayMs: number) => number;\n onState?: (state: AppleIapCheckoutState) => void;\n}",
|
|
3927
|
+
"decl": "export interface AppleIapCheckoutDependencies {\n wixIap: WixIapClient;\n /** The member signed in for a captured session, from the trusted host (`memberIdentityOf` over the\n * host session). It partitions the references and scopes acknowledgements: wix-iap has no\n * customer ids any more (D61). */\n identity: MemberIdentitySource;\n /** The same trusted binding the wix-iap client uses; it partitions the stored references. */\n binding: AppBindingSource;\n /** The same host provider the wix-iap client was given: every step compares generations. */\n session: SessionProvider;\n clock: Clock;\n cashier: CashierRoute;\n adapters: readonly IapOrderAdapter[];\n /** The screen's catalog pricing: the route and the App Store product a sale must match. */\n pricing: Pick<IapCatalogPricing, \"view\" | \"appleProduct\">;\n store?: TransactionStore;\n /** StoreKit's storefront country for StartItemPayment; defaults to `@himalaya/iap`'s native read. */\n storeCountry?: () => Promise<string | null>;\n refs?: OrderRefStore;\n bridge?: WixBridge;\n jitter?: (baseDelayMs: number) => number;\n onState?: (state: AppleIapCheckoutState) => void;\n /** Where the purchase's monitoring goes (); defaults to the binary's\n * telemetry hub through `capability.iap.logEvent`. */\n monitorSink?: IapEventSink;\n}",
|
|
3809
3928
|
"verificationChecked": true
|
|
3810
3929
|
},
|
|
3811
3930
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2049.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": "7ed2861fbd4486cab6fde7bed7a534dcfa574ddc1744df82608be7d5"
|
|
86
86
|
}
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "اليوم",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "أمس",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Dnes",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Včera",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "I dag",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "I går",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Heute",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Gestern",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Σήμερα",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Χθες",
|
|
87
|
+
"origin": "machine"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -1952,6 +1952,12 @@
|
|
|
1952
1952
|
"key": "collection.filterTitle",
|
|
1953
1953
|
"keyOrigin": "string-table"
|
|
1954
1954
|
},
|
|
1955
|
+
"h_da24830f1f70": {
|
|
1956
|
+
"source": "Yesterday",
|
|
1957
|
+
"kind": "Worker.copy",
|
|
1958
|
+
"translation": "",
|
|
1959
|
+
"key": "businessChat.yesterday"
|
|
1960
|
+
},
|
|
1955
1961
|
"h_dae7cf45ff49": {
|
|
1956
1962
|
"source": "More products could not be loaded.",
|
|
1957
1963
|
"kind": "ErrorState.title",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Hoy",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Ayer",
|
|
87
|
+
"origin": "machine"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Tänään",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Eilen",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
"translation": "Aujourd'hui",
|
|
27
27
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
28
28
|
},
|
|
29
|
+
"h_da24830f1f70": {
|
|
30
|
+
"key": "businessChat.yesterday",
|
|
31
|
+
"source": "Yesterday",
|
|
32
|
+
"translation": "Hier",
|
|
33
|
+
"origin": "machine"
|
|
34
|
+
},
|
|
29
35
|
"h_33ce417454bf": {
|
|
30
36
|
"key": "common.detailLoadingText",
|
|
31
37
|
"source": "Loading…",
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"key": "businessChat.today",
|
|
22
22
|
"translation": "היום"
|
|
23
23
|
},
|
|
24
|
+
"h_da24830f1f70": {
|
|
25
|
+
"source": "Yesterday",
|
|
26
|
+
"key": "businessChat.yesterday",
|
|
27
|
+
"translation": "אתמול"
|
|
28
|
+
},
|
|
24
29
|
"h_33ce417454bf": {
|
|
25
30
|
"source": "Loading…",
|
|
26
31
|
"key": "common.detailLoadingText",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Ma",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Tegnap",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Hari Ini",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Kemarin",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Oggi",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Ieri",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "今日",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "昨日",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "오늘",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "어제",
|
|
87
|
+
"origin": "one-app:mobile-apps-virtual-numbers:calls_list.subheading.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Šiandien",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Vakar",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Vandaag",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Gisteren",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "I dag",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "I går",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Dzisiaj",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Wczoraj",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Hoje",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Ontem",
|
|
87
|
+
"origin": "machine"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Сегодня",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Вчера",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Idag",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Igår",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "วันนี้",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "เมื่อวานนี้",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Bugün",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Dün",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Сьогодні",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Вчора",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "Hôm nay",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "Hôm qua",
|
|
87
|
+
"origin": "machine"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -80,6 +80,12 @@
|
|
|
80
80
|
"translation": "今日",
|
|
81
81
|
"origin": "one-app:wix-one-app-ecom-platform:merchant.ordersList.filters.dateRangeSelect.today"
|
|
82
82
|
},
|
|
83
|
+
"h_da24830f1f70": {
|
|
84
|
+
"key": "businessChat.yesterday",
|
|
85
|
+
"source": "Yesterday",
|
|
86
|
+
"translation": "昨天",
|
|
87
|
+
"origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:transactionsDashboard.timeRangeFilter.yesterday"
|
|
88
|
+
},
|
|
83
89
|
"h_33ce417454bf": {
|
|
84
90
|
"key": "common.detailLoadingText",
|
|
85
91
|
"source": "Loading…",
|
|
@@ -7,6 +7,8 @@ const MINUTE = 60_000;
|
|
|
7
7
|
const HOUR = 60 * MINUTE;
|
|
8
8
|
const DAY = 24 * HOUR;
|
|
9
9
|
const RELATIVE_DAYS = 7;
|
|
10
|
+
/** How far ahead of the device a timestamp may be and still count as now (himi-blog-post's `CLOCK_SKEW_MS`). */
|
|
11
|
+
const CLOCK_SKEW = 5 * MINUTE;
|
|
10
12
|
|
|
11
13
|
/** "" when `iso` is missing or not a date. A time in the future (a clock skew) reads as the date, never "-3 minutes ago". */
|
|
12
14
|
export function relativeTime(iso: string | undefined, now: number): string {
|
|
@@ -16,6 +18,37 @@ export function relativeTime(iso: string | undefined, now: number): string {
|
|
|
16
18
|
if (age < 0 || age >= RELATIVE_DAYS * DAY) return formatDateMedium(new Date(at));
|
|
17
19
|
if (age < MINUTE) return copyParam("relativeTime.justNow", "Just now");
|
|
18
20
|
if (age < HOUR) return copyPlural("relativeTime.minutesAgo", "{n, plural, one {# minute ago} other {# minutes ago}}", Math.floor(age / MINUTE));
|
|
19
|
-
if (age < DAY) return
|
|
20
|
-
return
|
|
21
|
+
if (age < DAY) return hoursAgo(Math.floor(age / HOUR));
|
|
22
|
+
return daysAgo(Math.floor(age / DAY));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// One literal each: a pinned app's translations are matched by this exact English text.
|
|
26
|
+
const hoursAgo = (n: number): string => copyPlural("relativeTime.hoursAgo", "{n, plural, one {# hour ago} other {# hours ago}}", n);
|
|
27
|
+
const daysAgo = (n: number): string => copyPlural("relativeTime.daysAgo", "{n, plural, one {# day ago} other {# days ago}}", n);
|
|
28
|
+
|
|
29
|
+
/** How many calendar days (device zone) `at` is before `now`: 0 today, 1 yesterday, …, capped at RELATIVE_DAYS. The local dates
|
|
30
|
+
* are compared as UTC midnights, so a 23- or 25-hour DST day cannot move a time to another day, and no Intl is used. */
|
|
31
|
+
function calendarDaysBefore(at: number, now: number): number {
|
|
32
|
+
const when = new Date(at);
|
|
33
|
+
const today = new Date(now);
|
|
34
|
+
const days = Math.round((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(when.getFullYear(), when.getMonth(), when.getDate())) / DAY);
|
|
35
|
+
// A backward offset change across local midnight can give an earlier instant a later local date: never fewer than 0 days.
|
|
36
|
+
return Math.min(Math.max(days, 0), RELATIVE_DAYS);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** As the One App's announcement card says it: "Just now" and minutes for the last hour, hours for the rest of today, "Yesterday",
|
|
40
|
+
* then "N days ago" by CALENDAR day (so an older post never reads newer than a later one), and the date once it is a week old. */
|
|
41
|
+
export function relativeDay(iso: string | undefined, now: number): string {
|
|
42
|
+
const at = iso ? Date.parse(iso) : NaN;
|
|
43
|
+
if (!Number.isFinite(at)) return "";
|
|
44
|
+
const age = now - at;
|
|
45
|
+
// A post just made on a server whose clock runs a little ahead reads "Just now"; further in the future it is the date.
|
|
46
|
+
if (age < 0) return -age <= CLOCK_SKEW ? copyParam("relativeTime.justNow", "Just now") : formatDateMedium(new Date(at));
|
|
47
|
+
if (age < HOUR) return relativeTime(iso, now);
|
|
48
|
+
const days = calendarDaysBefore(at, now);
|
|
49
|
+
// Hours for all of today, a 25-hour DST day included.
|
|
50
|
+
if (days === 0) return hoursAgo(Math.floor(age / HOUR));
|
|
51
|
+
if (days === 1) return copyParam("relativeTime.yesterday", "Yesterday");
|
|
52
|
+
if (days < RELATIVE_DAYS) return daysAgo(days);
|
|
53
|
+
return formatDateMedium(new Date(at));
|
|
21
54
|
}
|