@bpd-library/components 1.4.1-beta.3 → 1.4.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.
@@ -0,0 +1,9 @@
1
+ declare type Service = 'vimeo' | 'youtube' | 'mapbox';
2
+ declare type Services = {
3
+ vimeo: string;
4
+ youtube: string;
5
+ mapbox: string;
6
+ };
7
+ export declare const blockedServices: Services;
8
+ export declare function isBlockedService(service: Service): boolean;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ export const blockedServices = {
2
+ vimeo: 'HyEX5Nidi-m',
3
+ youtube: 'BJz7qNsdj-7',
4
+ mapbox: 'U8QkTd2W'
5
+ };
6
+ export function isBlockedService(service) {
7
+ return !!document.querySelector(`[pid="${blockedServices[service]}"]`);
8
+ }
9
+ //# sourceMappingURL=blocklist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blocklist.js","sourceRoot":"","sources":["../../../../src/molecules/map/utilities/blocklist.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,eAAe,GAAa;IACrC,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,aAAa;IACtB,MAAM,EAAE,UAAU;CACrB,CAAA;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC7C,OAAO,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC","sourcesContent":["// TODO (abo 16/1/2024) move this to a more generic place\n\ntype Service = 'vimeo' | 'youtube' | 'mapbox';\n\ntype Services = {\n vimeo: string;\n youtube: string;\n mapbox: string;\n}\n\nexport const blockedServices: Services = {\n vimeo: 'HyEX5Nidi-m',\n youtube: 'BJz7qNsdj-7',\n mapbox: 'U8QkTd2W'\n}\n\nexport function isBlockedService(service: Service) {\n return !!document.querySelector(`[pid=\"${blockedServices[service]}\"]`);\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpd-library/components",
3
- "version": "1.4.1-beta.3",
3
+ "version": "1.4.1",
4
4
  "description": "Description",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
@@ -46,14 +46,14 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "bfec0a5f594e5be4ba3856f265189bd1ebb95976",
49
+ "gitHead": "2335b5760515c149a904f8730ad9274f6ab7526a",
50
50
  "dependencies": {
51
51
  "@atomify/core": "2.4.1",
52
52
  "@atomify/hooks": "1.1.11",
53
53
  "@atomify/jsx": "1.7.1",
54
54
  "@atomify/kit": "1.1.11",
55
- "@bpd-library/types": "^1.4.1-beta.3",
56
- "@bpd-library/utilities": "^1.4.1-beta.3",
55
+ "@bpd-library/types": "^1.4.1",
56
+ "@bpd-library/utilities": "^1.4.1",
57
57
  "@mapbox/mapbox-gl-geocoder": "^4.7.0",
58
58
  "@mapbox/mapbox-gl-language": "^0.10.1",
59
59
  "@turf/helpers": "^6.5.0",