@beabee/beabee-common 0.20.3-alpha.2 → 0.20.4

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,26 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var BeabeeCommon = __toESM(require("./index.cjs"), 1);
25
+ globalThis.Beabee ||= {};
26
+ globalThis.Beabee.Common = BeabeeCommon;
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var contacts_exports = {};
20
20
  __export(contacts_exports, {
21
21
  RoleTypes: () => RoleTypes,
22
+ contactCalloutFilters: () => contactCalloutFilters,
22
23
  contactFilters: () => contactFilters
23
24
  });
24
25
  module.exports = __toCommonJS(contacts_exports);
@@ -98,8 +99,14 @@ const contactFilters = {
98
99
  nullable: true
99
100
  }
100
101
  };
102
+ const contactCalloutFilters = {
103
+ hasAnswered: {
104
+ type: "boolean"
105
+ }
106
+ };
101
107
  // Annotate the CommonJS export names for ESM import in node:
102
108
  0 && (module.exports = {
103
109
  RoleTypes,
110
+ contactCalloutFilters,
104
111
  contactFilters
105
112
  });
@@ -0,0 +1,3 @@
1
+ import * as BeabeeCommon from "./index.js";
2
+ globalThis.Beabee || (globalThis.Beabee = {});
3
+ globalThis.Beabee.Common = BeabeeCommon;
@@ -78,7 +78,13 @@ const contactFilters = {
78
78
  nullable: true
79
79
  }
80
80
  };
81
+ const contactCalloutFilters = {
82
+ hasAnswered: {
83
+ type: "boolean"
84
+ }
85
+ };
81
86
  export {
82
87
  RoleTypes,
88
+ contactCalloutFilters,
83
89
  contactFilters
84
90
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -64,3 +64,9 @@ export declare const contactFilters: {
64
64
  };
65
65
  };
66
66
  export type ContactFilterName = keyof typeof contactFilters;
67
+ export declare const contactCalloutFilters: {
68
+ hasAnswered: {
69
+ type: string;
70
+ };
71
+ };
72
+ export type ContactCalloutFilterName = keyof typeof contactCalloutFilters;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "0.20.3-alpha.2",
3
+ "version": "0.20.4",
4
4
  "description": "Shared code between Beabee projects for Node.js, Deno and the browser",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",
7
7
  "module": "./dist/esm/index.js",
8
+ "browser": "./dist/browser/index.js",
8
9
  "types": "./dist/types/index.d.ts",
9
10
  "files": [
10
11
  "dist/"
@@ -18,6 +19,10 @@
18
19
  "require": {
19
20
  "types": "./dist/types/index.d.cts",
20
21
  "default": "./dist/cjs/index.cjs"
22
+ },
23
+ "browser": {
24
+ "types": "./dist/types/index.d.ts",
25
+ "default": "./dist/browser/index.js"
21
26
  }
22
27
  },
23
28
  "./package.json": "./package.json"
@@ -48,7 +53,8 @@
48
53
  "check": "deno task check",
49
54
  "check:format": "deno task check:format",
50
55
  "check:types": "deno task check:types",
51
- "npm:publish:latest": "npm publish --access public --tag latest"
56
+ "npm:publish:latest": "npm publish --access public --tag latest",
57
+ "build:browser": "deno task build:browser"
52
58
  },
53
59
  "repository": {
54
60
  "type": "git",