@odus/checkout 1.11.0 → 1.11.2

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 +1 @@
1
- {"version":3,"file":"appendGoogleFont.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/appendGoogleFont.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,GAAI,MAAM,eAAe,YACkB,CAAC;AAEzE,eAAO,MAAM,gBAAgB,GAAI,gBAAgB;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE;;CA0CvE,CAAC"}
1
+ {"version":3,"file":"appendGoogleFont.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/appendGoogleFont.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,GAAI,MAAM,eAAe,YACkB,CAAC;AAEzE,eAAO,MAAM,gBAAgB,GAAI,gBAAgB;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE;;CA2CvE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchGoogleFontFace.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/fetchGoogleFontFace.ts"],"names":[],"mappings":"AAMA,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAsBxB"}
1
+ {"version":3,"file":"fetchGoogleFontFace.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/fetchGoogleFontFace.ts"],"names":[],"mappings":"AASA,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAuBxB"}
@@ -0,0 +1,26 @@
1
+ export declare const GOOGLE_FONTS_ORIGIN = "https://fonts.googleapis.com/";
2
+ /**
3
+ * The value for the `family=` parameter, or `null` when Google Fonts cannot
4
+ * serve this family.
5
+ *
6
+ * The API answers `400` rather than an empty stylesheet, and both callers
7
+ * treat that as "no font", so a request for a family it cannot serve buys
8
+ * nothing and costs a round trip. `fetchGoogleFontFace` spends that round trip
9
+ * on the path that mounts the card fields, so the check has to happen before
10
+ * the request rather than on its response.
11
+ *
12
+ * A list of families is rejected for the same reason: `family=` takes one
13
+ * name, so `Roboto, sans-serif` answers `400` exactly as `system-ui` does.
14
+ * Reading the first real family out of a list would load a font that does not
15
+ * load today, which is a change of behaviour rather than of load order — see
16
+ * #5406.
17
+ */
18
+ export declare const toGoogleFontFamilyParam: (fontFamily: string | undefined) => string | null;
19
+ /**
20
+ * The Google Fonts stylesheet for a family param from
21
+ * `toGoogleFontFamilyParam`. Both the injected `<link>` and the `fetch` that
22
+ * reads the woff2 URL out of the CSS ask for the same URL, so they share one
23
+ * definition of it.
24
+ */
25
+ export declare const googleFontStylesheetUrl: (familyParam: string) => string;
26
+ //# sourceMappingURL=googleFontUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"googleFontUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/googleFontUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,kCAAkC,CAAC;AA4CnE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,GAClC,YAAY,MAAM,GAAG,SAAS,KAC7B,MAAM,GAAG,IAQX,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,aAAa,MAAM,KAAG,MACgB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './appendGoogleFont';
2
2
  export * from './createSyntheticEvent.util';
3
3
  export * from './fetchGoogleFontFace';
4
+ export * from './googleFontUrl';
4
5
  export * from './preconnectOrigins';
5
6
  export * from './restoreCursorAfterFormat.util';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/dom/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odus/checkout",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "displayName": "Odus Checkout SDK",
5
5
  "keywords": [
6
6
  "odus",