@wix/himalaya-cli 0.1521.0 → 0.1523.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.
Files changed (44) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +18 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +13 -0
  3. package/dist/cli.mjs +2 -3
  4. package/package.json +2 -2
  5. package/templates/beauty-salon/dev/index.ts +862 -35
  6. package/templates/beauty-salon/tier5-src/_shared/himi-bookings.ts +69 -0
  7. package/templates/beauty-salon/tier5-src/_shared/himi-copy.ts +9 -0
  8. package/templates/beauty-salon/tier5-src/himi-booking-service/index.ts +237 -17
  9. package/templates/beauty-salon/tier5-src/himi-booking-time/index.ts +277 -55
  10. package/templates/beauty-salon-owner/tier5-src/_shared/himi-copy.ts +9 -0
  11. package/templates/branded-lite/dev/index.ts +862 -35
  12. package/templates/branded-lite/tier5-src/_shared/himi-bookings.ts +69 -0
  13. package/templates/branded-lite/tier5-src/_shared/himi-copy.ts +9 -0
  14. package/templates/branded-lite/tier5-src/himi-booking-service/index.ts +237 -17
  15. package/templates/branded-lite/tier5-src/himi-booking-time/index.ts +277 -55
  16. package/templates/brandy/tier5-src/_shared/himi-copy.ts +9 -0
  17. package/templates/community-club/tier5-src/_shared/himi-copy.ts +9 -0
  18. package/templates/community-club-owner/tier5-src/_shared/himi-copy.ts +9 -0
  19. package/templates/events-meetups/tier5-src/_shared/himi-copy.ts +9 -0
  20. package/templates/events-meetups-owner/tier5-src/_shared/himi-copy.ts +9 -0
  21. package/templates/gym-fitness/dev/index.ts +862 -35
  22. package/templates/gym-fitness/tier5-src/_shared/himi-bookings.ts +69 -0
  23. package/templates/gym-fitness/tier5-src/_shared/himi-copy.ts +9 -0
  24. package/templates/gym-fitness/tier5-src/himi-booking-service/index.ts +237 -17
  25. package/templates/gym-fitness/tier5-src/himi-booking-time/index.ts +277 -55
  26. package/templates/gym-fitness-owner/tier5-src/_shared/himi-copy.ts +9 -0
  27. package/templates/himi-chat/tier5-src/_shared/himi-copy.ts +9 -0
  28. package/templates/nonprofit-cause/tier5-src/_shared/himi-copy.ts +9 -0
  29. package/templates/nonprofit-cause-owner/tier5-src/_shared/himi-copy.ts +9 -0
  30. package/templates/owner-lite/tier5-src/_shared/himi-copy.ts +9 -0
  31. package/templates/podcast-creator/tier5-src/_shared/himi-copy.ts +9 -0
  32. package/templates/podcast-creator-owner/tier5-src/_shared/himi-copy.ts +9 -0
  33. package/templates/portfolio-creative/tier5-src/_shared/himi-copy.ts +9 -0
  34. package/templates/portfolio-creative-owner/tier5-src/_shared/himi-copy.ts +9 -0
  35. package/templates/restaurant/tier5-src/_shared/himi-copy.ts +9 -0
  36. package/templates/restaurant-owner/tier5-src/_shared/himi-copy.ts +9 -0
  37. package/templates/retail-store/tier5-src/_shared/himi-copy.ts +9 -0
  38. package/templates/retail-store-owner/tier5-src/_shared/himi-copy.ts +9 -0
  39. package/templates/yoga-studio/dev/index.ts +857 -30
  40. package/templates/yoga-studio/tier5-src/_shared/himi-bookings.ts +69 -0
  41. package/templates/yoga-studio/tier5-src/_shared/himi-copy.ts +9 -0
  42. package/templates/yoga-studio/tier5-src/himi-booking-service/index.ts +237 -17
  43. package/templates/yoga-studio/tier5-src/himi-booking-time/index.ts +277 -55
  44. package/templates/yoga-studio-owner/tier5-src/_shared/himi-copy.ts +9 -0
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }
@@ -54,3 +54,12 @@ export function copyTemplate(key: string, fallback: string, values: Record<strin
54
54
  name in values ? String(values[name]) : "",
55
55
  );
56
56
  }
57
+
58
+ /** The small ICU plural form used by Bookings spot counts. The provisioned copy may
59
+ * translate both branches without adding a second key for the singular. */
60
+ export function copyPlural(key: string, fallback: string, count: number): string {
61
+ const pattern = copyParam(key, fallback);
62
+ const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
63
+ if (!match) return copyTemplate(key, fallback, { n: count });
64
+ return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
65
+ }