@servicetitan/onboarding-ui 13.3.0 → 13.3.1

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.
@@ -1,3 +1,3 @@
1
1
  export * from './marketing-carousel.store';
2
- export * from './interfaces';
2
+ export type * from './interfaces';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contentful/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contentful/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,mBAAmB,cAAc,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './marketing-carousel.store';
2
- export * from './interfaces';
3
2
 
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contentful/index.ts"],"sourcesContent":["export * from './marketing-carousel.store';\nexport * from './interfaces';\n"],"names":[],"mappings":"AAAA,cAAc,6BAA6B;AAC3C,cAAc,eAAe"}
1
+ {"version":3,"sources":["../../src/contentful/index.ts"],"sourcesContent":["export * from './marketing-carousel.store';\nexport type * from './interfaces';\n"],"names":[],"mappings":"AAAA,cAAc,6BAA6B"}
@@ -1,4 +1,4 @@
1
- import { IContentfulApi } from '@servicetitan/contentful-proxy';
1
+ import type { IContentfulApi } from '@servicetitan/contentful-proxy';
2
2
  export declare enum MarketingCarouselColorTheme {
3
3
  Light = "Light",
4
4
  Dark = "Dark"
@@ -1 +1 @@
1
- {"version":3,"file":"marketing-carousel.store.d.ts","sourceRoot":"","sources":["../../src/contentful/marketing-carousel.store.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAwB,MAAM,gCAAgC,CAAC;AAMtF,oBAAY,2BAA2B;IACnC,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC1C,gBAAgB,EAAE;QACd,UAAU,EAAE,2BAA2B,CAAC;QACxC,kBAAkB,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,YAAY,EAAE,qBAAqB,EAAE,CAAC;CACzC;AAED,UAAU,6BAA6B;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,6BAA6B,CAAC;CAChD;AAED,UAAU,qBAAqB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,sBAAsB;IAMW,OAAO,CAAC,aAAa;IALnD,cAAc,UAAS;IACvB,OAAO,CAAC,gBAAgB,CAAC,CAAuB;IAChD,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAC,CAAgC;gBAEf,aAAa,EAAE,cAAc;IAK/E,UAAU,GAAU,iDAKjB,6BAA6B,mBAqB9B;IAGF,IACI,gBAAgB;oBA/DJ,2BAA2B;4BACnB,MAAM;kBAqE7B;IAED,IACI,YAAY,IAAI,qBAAqB,EAAE,GAAG,SAAS,CAiBtD;IAED,OAAO,CAAC,UAAU,CAShB;IAEF,OAAO,CAAC,iBAAiB,CAQvB;CACL"}
1
+ {"version":3,"file":"marketing-carousel.store.d.ts","sourceRoot":"","sources":["../../src/contentful/marketing-carousel.store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAOrE,oBAAY,2BAA2B;IACnC,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC1C,gBAAgB,EAAE;QACd,UAAU,EAAE,2BAA2B,CAAC;QACxC,kBAAkB,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,YAAY,EAAE,qBAAqB,EAAE,CAAC;CACzC;AAED,UAAU,6BAA6B;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,6BAA6B,CAAC;CAChD;AAED,UAAU,qBAAqB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,sBAAsB;IAMW,OAAO,CAAC,aAAa;IALnD,cAAc,UAAS;IACvB,OAAO,CAAC,gBAAgB,CAAC,CAAuB;IAChD,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAC,CAAgC;gBAEf,aAAa,EAAE,cAAc;IAK/E,UAAU,GAAU,iDAKjB,6BAA6B,mBAqB9B;IAGF,IACI,gBAAgB;oBA/DJ,2BAA2B;4BACnB,MAAM;kBAqE7B;IAED,IACI,YAAY,IAAI,qBAAqB,EAAE,GAAG,SAAS,CAiBtD;IAED,OAAO,CAAC,UAAU,CAShB;IAEF,OAAO,CAAC,iBAAiB,CAQvB;CACL"}
@@ -28,8 +28,7 @@ function _ts_param(paramIndex, decorator) {
28
28
  import { inject, injectable } from '@servicetitan/react-ioc';
29
29
  import { action, computed, makeObservable, observable, runInAction } from 'mobx';
30
30
  import queryString from 'query-string';
31
- import { IContentfulApi, CONTENTFUL_API_TOKEN } from '@servicetitan/contentful-proxy';
32
- import { OxPhotoGalleryFields } from './interfaces';
31
+ import { CONTENTFUL_API_TOKEN } from '@servicetitan/contentful-proxy';
33
32
  const carouselBackgroundLightPath = 'https://static.servicetitan.com/acm/auth/sign-in-carousel-background.png';
34
33
  export var MarketingCarouselColorTheme = /*#__PURE__*/ function(MarketingCarouselColorTheme) {
35
34
  MarketingCarouselColorTheme["Light"] = "Light";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/contentful/marketing-carousel.store.ts"],"sourcesContent":["import { inject, injectable } from '@servicetitan/react-ioc';\nimport { action, computed, makeObservable, observable, runInAction } from 'mobx';\nimport queryString from 'query-string';\nimport { IContentfulApi, CONTENTFUL_API_TOKEN } from '@servicetitan/contentful-proxy';\nimport { OxPhotoGalleryFields } from './interfaces';\n\nconst carouselBackgroundLightPath =\n 'https://static.servicetitan.com/acm/auth/sign-in-carousel-background.png';\n\nexport enum MarketingCarouselColorTheme {\n Light = 'Light',\n Dark = 'Dark',\n}\n\nexport interface MarketingCarouselFallbackData {\n carouselSettings: {\n colorTheme: MarketingCarouselColorTheme;\n backgroundImageUrl: string;\n };\n carouselData: MarketingCarouselItem[];\n}\n\ninterface MarketingCarouselStoreOptions {\n codeId: string;\n isPreview?: boolean;\n utmSource?: string;\n fallbackData?: MarketingCarouselFallbackData;\n}\n\ninterface MarketingCarouselItem {\n headline: string;\n ctaLink: string;\n ctaLabel: string;\n imageUrl: string;\n description: string;\n}\n\n@injectable()\nexport class MarketingCarouselStore {\n @observable isInitializing = false;\n @observable private photoGalleryData?: OxPhotoGalleryFields;\n @observable private utmSource?: string;\n @observable private fallbackData?: MarketingCarouselFallbackData;\n\n constructor(@inject(CONTENTFUL_API_TOKEN) private contentfulApi: IContentfulApi) {\n makeObservable(this);\n }\n\n @action\n initialize = async ({\n codeId,\n utmSource,\n fallbackData,\n isPreview = false,\n }: MarketingCarouselStoreOptions) => {\n this.isInitializing = true;\n this.utmSource = utmSource;\n this.fallbackData = fallbackData;\n try {\n const data = await this.contentfulApi.getContentfulData<OxPhotoGalleryFields>({\n entryType: 'oxPhotoGallery',\n codeId,\n isPreview: isPreview ?? false,\n });\n if (!data?.items.length) {\n return;\n }\n runInAction(() => {\n this.photoGalleryData = data;\n });\n } finally {\n runInAction(() => {\n this.isInitializing = false;\n });\n }\n };\n\n // colorTheme and backgroundImageUrl are not not part of initial release of contentful\n @computed\n get carouselSettings() {\n return this.photoGalleryData\n ? {\n backgroundImageUrl: carouselBackgroundLightPath,\n colorTheme: MarketingCarouselColorTheme.Light,\n }\n : this.fallbackData?.carouselSettings;\n }\n\n @computed\n get carouselData(): MarketingCarouselItem[] | undefined {\n try {\n if (!this.photoGalleryData?.items) {\n return this.fallbackData?.carouselData;\n }\n return (\n this.photoGalleryData.items\n .filter(({ showDate, hideDate }) => this.isDateRangeActive(showDate, hideDate))\n .map(({ ctaLink, ctaTrackingCode, media, ...fields }) => ({\n ...fields,\n ctaLink: this.getCtaLink(ctaLink, ctaTrackingCode),\n imageUrl: media.file.url.replace('//', 'https://'),\n })) ?? this.fallbackData?.carouselData\n );\n } catch {\n return this.fallbackData?.carouselData;\n }\n }\n\n private getCtaLink = (ctaLink: string, ctaTrackingCode?: string) => {\n if (!ctaTrackingCode) {\n return ctaLink;\n }\n const qs = queryString.parse(ctaTrackingCode);\n if (this.utmSource) {\n qs.utm_source = this.utmSource;\n }\n return `${ctaLink}?${queryString.stringify(qs)}`;\n };\n\n private isDateRangeActive = (start?: string, end?: string) => {\n if (!start && !end) {\n return true;\n }\n const localCurrentTime = new Date().getTime();\n const inStartRange = !start || localCurrentTime >= new Date(start).getTime();\n const inEndRange = !end || localCurrentTime < new Date(end).getTime();\n return inStartRange && inEndRange;\n };\n}\n"],"names":["inject","injectable","action","computed","makeObservable","observable","runInAction","queryString","IContentfulApi","CONTENTFUL_API_TOKEN","OxPhotoGalleryFields","carouselBackgroundLightPath","MarketingCarouselColorTheme","MarketingCarouselStore","carouselSettings","photoGalleryData","backgroundImageUrl","colorTheme","fallbackData","carouselData","items","filter","showDate","hideDate","isDateRangeActive","map","ctaLink","ctaTrackingCode","media","fields","getCtaLink","imageUrl","file","url","replace","contentfulApi","isInitializing","utmSource","initialize","codeId","isPreview","data","getContentfulData","entryType","length","qs","parse","utm_source","stringify","start","end","localCurr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AACH,KAAK;QACpD;aAEQrB,oBAAoB,CAACyB,OAAgBC;YACzC,IAAI,CAACD,SAAS,CAACC,KAAK;gBAChB,OAAO;YACX;YACA,MAAMC,mBAAmB,IAAIC,OAAOC,OAAO;YAC3C,MAAMC,eAAe,CAACL,SAASE,oBAAoB,IAAIC,KAAKH,OAAOI,OAAO;YAC1E,MAAME,aAAa,CAACL,OAAOC,mBAAmB,IAAIC,KAAKF,KAAKG,OAAO;YACnE,OAAOC,gBAAgBC;QAC3B;QAlFInD,eAAe,IAAI;IACvB;AAkFJ"}
1
+ {"version":3,"sources":["../../src/contentful/marketing-carousel.store.ts"],"sourcesContent":["import { inject, injectable } from '@servicetitan/react-ioc';\nimport { action, computed, makeObservable, observable, runInAction } from 'mobx';\nimport queryString from 'query-string';\nimport type { IContentfulApi } from '@servicetitan/contentful-proxy';\nimport { CONTENTFUL_API_TOKEN } from '@servicetitan/contentful-proxy';\nimport type { OxPhotoGalleryFields } from './interfaces';\n\nconst carouselBackgroundLightPath =\n 'https://static.servicetitan.com/acm/auth/sign-in-carousel-background.png';\n\nexport enum MarketingCarouselColorTheme {\n Light = 'Light',\n Dark = 'Dark',\n}\n\nexport interface MarketingCarouselFallbackData {\n carouselSettings: {\n colorTheme: MarketingCarouselColorTheme;\n backgroundImageUrl: string;\n };\n carouselData: MarketingCarouselItem[];\n}\n\ninterface MarketingCarouselStoreOptions {\n codeId: string;\n isPreview?: boolean;\n utmSource?: string;\n fallbackData?: MarketingCarouselFallbackData;\n}\n\ninterface MarketingCarouselItem {\n headline: string;\n ctaLink: string;\n ctaLabel: string;\n imageUrl: string;\n description: string;\n}\n\n@injectable()\nexport class MarketingCarouselStore {\n @observable isInitializing = false;\n @observable private photoGalleryData?: OxPhotoGalleryFields;\n @observable private utmSource?: string;\n @observable private fallbackData?: MarketingCarouselFallbackData;\n\n constructor(@inject(CONTENTFUL_API_TOKEN) private contentfulApi: IContentfulApi) {\n makeObservable(this);\n }\n\n @action\n initialize = async ({\n codeId,\n utmSource,\n fallbackData,\n isPreview = false,\n }: MarketingCarouselStoreOptions) => {\n this.isInitializing = true;\n this.utmSource = utmSource;\n this.fallbackData = fallbackData;\n try {\n const data = await this.contentfulApi.getContentfulData<OxPhotoGalleryFields>({\n entryType: 'oxPhotoGallery',\n codeId,\n isPreview: isPreview ?? false,\n });\n if (!data?.items.length) {\n return;\n }\n runInAction(() => {\n this.photoGalleryData = data;\n });\n } finally {\n runInAction(() => {\n this.isInitializing = false;\n });\n }\n };\n\n // colorTheme and backgroundImageUrl are not not part of initial release of contentful\n @computed\n get carouselSettings() {\n return this.photoGalleryData\n ? {\n backgroundImageUrl: carouselBackgroundLightPath,\n colorTheme: MarketingCarouselColorTheme.Light,\n }\n : this.fallbackData?.carouselSettings;\n }\n\n @computed\n get carouselData(): MarketingCarouselItem[] | undefined {\n try {\n if (!this.photoGalleryData?.items) {\n return this.fallbackData?.carouselData;\n }\n return (\n this.photoGalleryData.items\n .filter(({ showDate, hideDate }) => this.isDateRangeActive(showDate, hideDate))\n .map(({ ctaLink, ctaTrackingCode, media, ...fields }) => ({\n ...fields,\n ctaLink: this.getCtaLink(ctaLink, ctaTrackingCode),\n imageUrl: media.file.url.replace('//', 'https://'),\n })) ?? this.fallbackData?.carouselData\n );\n } catch {\n return this.fallbackData?.carouselData;\n }\n }\n\n private getCtaLink = (ctaLink: string, ctaTrackingCode?: string) => {\n if (!ctaTrackingCode) {\n return ctaLink;\n }\n const qs = queryString.parse(ctaTrackingCode);\n if (this.utmSource) {\n qs.utm_source = this.utmSource;\n }\n return `${ctaLink}?${queryString.stringify(qs)}`;\n };\n\n private isDateRangeActive = (start?: string, end?: string) => {\n if (!start && !end) {\n return true;\n }\n const localCurrentTime = new Date().getTime();\n const inStartRange = !start || localCurrentTime >= new Date(start).getTime();\n const inEndRange = !end || localCurrentTime < new Date(end).getTime();\n return inStartRange && inEndRange;\n };\n}\n"],"names":["inject","injectable","action","computed","makeObservable","observable","runInAction","queryString","CONTENTFUL_API_TOKEN","carouselBackgroundLightPath","MarketingCarouselColorTheme","MarketingCarouselStore","carouselSettings","photoGalleryData","backgroundImageUrl","colorTheme","fallbackData","carouselData","items","filter","showDate","hideDate","isDateRangeActive","map","ctaLink","ctaTrackingCode","media","fields","getCtaLink","imageUrl","file","url","replace","contentfulApi","isInitializing","utmSource","initialize","codeId","isPreview","data","getContentfulData","entryType","length","qs","parse","utm_source","stringify","start","end","localCurrentTime","Date","getTime","inStartRange","inEndRange"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,MAAM,EAAEC,UAAU,QAAQ,0BAA0B;AAC7D,SAASC,MAAM,EAAEC,QAAQ,EAAEC,cAAc,EAAEC,UAAU,EAAEC,WAAW,QAAQ,OAAO;AACjF,OAAOC,iBAAiB,eAAe;AAEvC,SAASC,oBAAoB,QAAQ,iCAAiC;AAGtE,MAAMC,8BACF;AAEJ,OAAO,IAAA,AAAKC,qDAAAA;;;WAAAA;MAGX;AA0BD,OAAO,MAAMC;IAuCT,sFAAsF;IACtF,IACIC,mBAAmB;YAMb;QALN,OAAO,IAAI,CAACC,gBAAgB,GACtB;YACIC,oBAAoBL;YACpBM,UAAU;QACd,KACA,qBAAA,IAAI,CAACC,YAAY,cAAjB,yCAAA,mBAAmBJ,gBAAgB;IAC7C;IAEA,IACIK,eAAoD;QACpD,IAAI;gBACK,wBAUU;YAVf,IAAI,GAAC,yBAAA,IAAI,CAACJ,gBAAgB,cAArB,6CAAA,uBAAuBK,KAAK,GAAE;oBACxB;gBAAP,QAAO,sBAAA,IAAI,CAACF,YAAY,cAAjB,0CAAA,oBAAmBC,YAAY;YAC1C;gBAEI;YADJ,OACI,CAAA,0CAAA,IAAI,CAACJ,gBAAgB,CAACK,KAAK,CACtBC,MAAM,CAAC,CAAC,EAAEC,QAAQ,EAAEC,QAAQ,EAAE,GAAK,IAAI,CAACC,iBAAiB,CAACF,UAAUC,WACpEE,GAAG,CAAC,CAAC,EAAEC,OAAO,EAAEC,eAAe,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,iBAAiB;gBAClB,OAAOD;YACX;YACA,MAAMmB,KAAKpC,YAAYqC,KAAK,CAACnB;YAC7B,IAAI,IAAI,CAACU,SAAS,EAAE;gBAChBQ,GAAGE,UAAU,GAAG,IAAI,CAACV,SAAS;YAClC;YACA,OAAO,GAAGX,QAAQ,CAAC,EAAEjB,YAAYuC,SAAS,CAACH,KAAK;QACpD;aAEQrB,oBAAoB,CAACyB,OAAgBC;YACzC,IAAI,CAACD,SAAS,CAACC,KAAK;gBAChB,OAAO;YACX;YACA,MAAMC,mBAAmB,IAAIC,OAAOC,OAAO;YAC3C,MAAMC,eAAe,CAACL,SAASE,oBAAoB,IAAIC,KAAKH,OAAOI,OAAO;YAC1E,MAAME,aAAa,CAACL,OAAOC,mBAAmB,IAAIC,KAAKF,KAAKG,OAAO;YACnE,OAAOC,gBAAgBC;QAC3B;QAlFIjD,eAAe,IAAI;IACvB;AAkFJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/onboarding-ui",
3
- "version": "13.3.0",
3
+ "version": "13.3.1",
4
4
  "description": "Shared components between servicetitan monolith and Onboarding",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,11 +30,11 @@
30
30
  "resumablejs": "~1.0.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@servicetitan/confirm": "^32.4.0",
34
- "@servicetitan/culture": "^32.4.0",
35
- "@servicetitan/data-query": "^32.4.0",
33
+ "@servicetitan/confirm": "^32.4.1",
34
+ "@servicetitan/culture": "^32.4.1",
35
+ "@servicetitan/data-query": "^32.4.1",
36
36
  "@servicetitan/design-system": "~14.5.1",
37
- "@servicetitan/form": "^32.4.0",
37
+ "@servicetitan/form": "^32.4.1",
38
38
  "@servicetitan/react-ioc": "^31.6.0",
39
39
  "@types/contentful-resolve-response": "^0.1.31",
40
40
  "@types/react": "~18.2.55",
@@ -50,7 +50,7 @@
50
50
  "@contentful/rich-text-react-renderer": "^15.6.2",
51
51
  "@contentful/rich-text-types": "^15.7.0",
52
52
  "@servicetitan/contentful-proxy": "^1.1.11",
53
- "@servicetitan/react-hooks": "^5.1.0",
53
+ "@servicetitan/react-hooks": "^5.1.1",
54
54
  "@types/google.maps": "^3.45.6",
55
55
  "classnames": "^2.3.1",
56
56
  "contentful-resolve-response": "^1.3.0",
@@ -69,5 +69,5 @@
69
69
  "less": true,
70
70
  "webpack": false
71
71
  },
72
- "gitHead": "3dab3310534a39aaacb0069e1d377579fe0a7fab"
72
+ "gitHead": "5bc4f3c9c8a181df124fdc614964757e5490ea9b"
73
73
  }
@@ -1,2 +1,2 @@
1
1
  export * from './marketing-carousel.store';
2
- export * from './interfaces';
2
+ export type * from './interfaces';
@@ -1,8 +1,9 @@
1
1
  import { inject, injectable } from '@servicetitan/react-ioc';
2
2
  import { action, computed, makeObservable, observable, runInAction } from 'mobx';
3
3
  import queryString from 'query-string';
4
- import { IContentfulApi, CONTENTFUL_API_TOKEN } from '@servicetitan/contentful-proxy';
5
- import { OxPhotoGalleryFields } from './interfaces';
4
+ import type { IContentfulApi } from '@servicetitan/contentful-proxy';
5
+ import { CONTENTFUL_API_TOKEN } from '@servicetitan/contentful-proxy';
6
+ import type { OxPhotoGalleryFields } from './interfaces';
6
7
 
7
8
  const carouselBackgroundLightPath =
8
9
  'https://static.servicetitan.com/acm/auth/sign-in-carousel-background.png';