@hcengineering/global-profile 0.7.423

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.
package/lib/index.js ADDED
@@ -0,0 +1,38 @@
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var index_exports = {};
30
+ __export(index_exports, {
31
+ default: () => import_plugin2.default,
32
+ globalProfileId: () => import_plugin.globalProfileId,
33
+ globalProfileRoute: () => import_plugin.globalProfileRoute
34
+ });
35
+ module.exports = __toCommonJS(index_exports);
36
+ var import_plugin = require("./plugin");
37
+ var import_plugin2 = __toESM(require("./plugin"));
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2024 Huly Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nexport { globalProfileId, globalProfileRoute } from './plugin'\nexport { default } from './plugin'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,oBAAoD;AACpD,IAAAA,iBAAwB;",
6
+ "names": ["import_plugin"]
7
+ }
package/lib/plugin.js ADDED
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var plugin_exports = {};
20
+ __export(plugin_exports, {
21
+ default: () => plugin_default,
22
+ globalProfileId: () => globalProfileId,
23
+ globalProfileRoute: () => globalProfileRoute
24
+ });
25
+ module.exports = __toCommonJS(plugin_exports);
26
+ var import_platform = require("@hcengineering/platform");
27
+ const globalProfileId = "global-profile";
28
+ const globalProfileRoute = "user";
29
+ var plugin_default = (0, import_platform.plugin)(globalProfileId, {
30
+ component: {
31
+ GlobalProfileApp: ""
32
+ },
33
+ icon: {
34
+ Globe: ""
35
+ },
36
+ image: {
37
+ ProfileBackground: "",
38
+ ProfileBackgroundLight: ""
39
+ },
40
+ string: {
41
+ GlobalProfile: "",
42
+ EditProfile: "",
43
+ GeneralInformation: "",
44
+ FirstName: "",
45
+ LastName: "",
46
+ City: "",
47
+ Country: "",
48
+ Bio: "",
49
+ FirstNamePlaceholder: "",
50
+ LastNamePlaceholder: "",
51
+ CityPlaceholder: "",
52
+ CountryPlaceholder: "",
53
+ BioPlaceholder: "",
54
+ Save: "",
55
+ Cancel: "",
56
+ MaximumLength: "",
57
+ Required: "",
58
+ ProfileVisibility: "",
59
+ PublicProfile: "",
60
+ PrivateProfile: "",
61
+ PublicProfileDescription: "",
62
+ PrivateProfileDescription: "",
63
+ AddBioPlaceholder: "",
64
+ AddLocationPlaceholder: "",
65
+ ProfileNotAvailable: ""
66
+ }
67
+ });
68
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/plugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2024 Huly Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport { type Asset, type IntlString, plugin, type Plugin } from '@hcengineering/platform'\n\nexport const globalProfileId = 'global-profile' as Plugin\nexport const globalProfileRoute = 'user'\n\nexport default plugin(globalProfileId, {\n component: {\n GlobalProfileApp: '' as any\n },\n icon: {\n Globe: '' as Asset\n },\n image: {\n ProfileBackground: '' as Asset,\n ProfileBackgroundLight: '' as Asset\n },\n string: {\n GlobalProfile: '' as IntlString,\n EditProfile: '' as IntlString,\n GeneralInformation: '' as IntlString,\n FirstName: '' as IntlString,\n LastName: '' as IntlString,\n City: '' as IntlString,\n Country: '' as IntlString,\n Bio: '' as IntlString,\n FirstNamePlaceholder: '' as IntlString,\n LastNamePlaceholder: '' as IntlString,\n CityPlaceholder: '' as IntlString,\n CountryPlaceholder: '' as IntlString,\n BioPlaceholder: '' as IntlString,\n Save: '' as IntlString,\n Cancel: '' as IntlString,\n MaximumLength: '' as IntlString,\n Required: '' as IntlString,\n ProfileVisibility: '' as IntlString,\n PublicProfile: '' as IntlString,\n PrivateProfile: '' as IntlString,\n PublicProfileDescription: '' as IntlString,\n PrivateProfileDescription: '' as IntlString,\n AddBioPlaceholder: '' as IntlString,\n AddLocationPlaceholder: '' as IntlString,\n ProfileNotAvailable: '' as IntlString\n }\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,sBAAiE;AAE1D,MAAM,kBAAkB;AACxB,MAAM,qBAAqB;AAElC,IAAO,qBAAQ,wBAAO,iBAAiB;AAAA,EACrC,WAAW;AAAA,IACT,kBAAkB;AAAA,EACpB;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,IACL,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,EAC1B;AAAA,EACA,QAAQ;AAAA,IACN,eAAe;AAAA,IACf,aAAa;AAAA,IACb,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,UAAU;AAAA,IACV,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,0BAA0B;AAAA,IAC1B,2BAA2B;AAAA,IAC3B,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,IACxB,qBAAqB;AAAA,EACvB;AACF,CAAC;",
6
+ "names": []
7
+ }
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@hcengineering/global-profile",
3
+ "version": "0.7.423",
4
+ "main": "lib/index.js",
5
+ "svelte": "src/index.ts",
6
+ "types": "types/index.d.ts",
7
+ "files": [
8
+ "lib/**/*",
9
+ "types/**/*",
10
+ "tsconfig.json"
11
+ ],
12
+ "author": "Anticrm Platform Contributors",
13
+ "license": "EPL-2.0",
14
+ "scripts": {
15
+ "build": "compile",
16
+ "build:watch": "compile",
17
+ "format": "format src",
18
+ "test": "jest --passWithNoTests --silent",
19
+ "_phase:build": "compile transpile src",
20
+ "_phase:test": "jest --passWithNoTests --silent",
21
+ "_phase:format": "format src",
22
+ "_phase:validate": "compile validate"
23
+ },
24
+ "devDependencies": {
25
+ "@hcengineering/platform-rig": "^0.7.423",
26
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
27
+ "eslint-plugin-import": "^2.26.0",
28
+ "eslint-plugin-promise": "^6.1.1",
29
+ "eslint-plugin-n": "^15.4.0",
30
+ "eslint": "^8.54.0",
31
+ "@typescript-eslint/parser": "^6.21.0",
32
+ "eslint-config-standard-with-typescript": "^40.0.0",
33
+ "prettier": "^3.6.2",
34
+ "typescript": "^5.9.3",
35
+ "jest": "^29.7.0",
36
+ "ts-jest": "^29.1.1",
37
+ "@types/jest": "^29.5.5"
38
+ },
39
+ "dependencies": {
40
+ "@hcengineering/core": "^0.7.423",
41
+ "@hcengineering/platform": "^0.7.423",
42
+ "@hcengineering/ui": "^0.7.423"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ }
47
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "./node_modules/@hcengineering/platform-rig/profiles/default/tsconfig.json",
3
+
4
+ "compilerOptions": {
5
+ "rootDir": "./src",
6
+ "outDir": "./lib",
7
+ "declarationDir": "./types",
8
+ "tsBuildInfoFile": ".build/build.tsbuildinfo"
9
+ },
10
+ "include": ["src/**/*"],
11
+ "exclude": ["node_modules", "lib", "dist", "types", "bundle"]
12
+ }