@nocobase/plugin-notification-in-app-message 2.2.0-alpha.2 → 2.2.0-alpha.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.
- package/dist/client-v2/821.ea74c740c488d845.js +10 -0
- package/dist/client-v2/components/ContentConfigForm.d.ts +12 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +10 -10
- package/dist/node_modules/uuid/dist/bin/uuid +2 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/index.js +104 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/md5.js +200 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/native.js +10 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/nil.js +7 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/parse.js +44 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/regex.js +7 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/rng.js +23 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/sha1.js +82 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/stringify.js +38 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v1.js +131 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v3.js +11 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v35.js +63 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v4.js +32 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v5.js +11 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/validate.js +12 -0
- package/dist/node_modules/uuid/dist/commonjs-browser/version.js +15 -0
- package/dist/node_modules/uuid/dist/esm-browser/index.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/max.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/md5.js +172 -113
- package/dist/node_modules/uuid/dist/esm-browser/native.js +4 -2
- package/dist/node_modules/uuid/dist/esm-browser/nil.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/parse.js +34 -6
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +14 -8
- package/dist/node_modules/uuid/dist/esm-browser/sha1.js +68 -62
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +25 -29
- package/dist/node_modules/uuid/dist/esm-browser/v1.js +117 -75
- package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.js +16 -6
- package/dist/node_modules/uuid/dist/esm-browser/v3.js +3 -8
- package/dist/node_modules/uuid/dist/esm-browser/v35.js +47 -31
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +19 -21
- package/dist/node_modules/uuid/dist/esm-browser/v5.js +3 -8
- package/dist/node_modules/uuid/dist/esm-browser/v6.js +32 -16
- package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.js +15 -5
- package/dist/node_modules/uuid/dist/esm-browser/v7.js +139 -58
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +2 -2
- package/dist/node_modules/uuid/dist/esm-browser/version.js +5 -5
- package/dist/node_modules/uuid/dist/{esm → esm-node}/index.js +1 -1
- package/dist/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/dist/node_modules/uuid/dist/esm-node/md5.js +10 -0
- package/dist/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/dist/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/dist/node_modules/uuid/dist/esm-node/parse.js +37 -0
- package/dist/node_modules/uuid/dist/{esm → esm-node}/regex.js +1 -1
- package/dist/node_modules/uuid/dist/esm-node/rng.js +10 -0
- package/dist/node_modules/uuid/dist/esm-node/sha1.js +10 -0
- package/dist/node_modules/uuid/dist/esm-node/stringify.js +31 -0
- package/dist/node_modules/uuid/dist/esm-node/v1.js +125 -0
- package/dist/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/dist/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/dist/node_modules/uuid/dist/esm-node/v35.js +55 -0
- package/dist/node_modules/uuid/dist/esm-node/v4.js +25 -0
- package/dist/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/dist/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/dist/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/dist/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/dist/node_modules/uuid/dist/esm-node/validate.js +5 -0
- package/dist/node_modules/uuid/dist/esm-node/version.js +8 -0
- package/dist/node_modules/uuid/dist/index.js +1 -0
- package/dist/node_modules/uuid/dist/max.js +7 -0
- package/dist/node_modules/uuid/dist/md5-browser.js +200 -0
- package/dist/node_modules/uuid/dist/md5.js +17 -0
- package/dist/node_modules/uuid/dist/native-browser.js +10 -0
- package/dist/node_modules/uuid/dist/native.js +11 -0
- package/dist/node_modules/uuid/dist/nil.js +7 -0
- package/dist/node_modules/uuid/dist/parse.js +44 -0
- package/dist/node_modules/uuid/dist/regex.js +7 -0
- package/dist/node_modules/uuid/dist/rng-browser.js +23 -0
- package/dist/node_modules/uuid/dist/rng.js +17 -0
- package/dist/node_modules/uuid/dist/sha1-browser.js +82 -0
- package/dist/node_modules/uuid/dist/sha1.js +17 -0
- package/dist/node_modules/uuid/dist/stringify.js +38 -0
- package/dist/node_modules/uuid/dist/uuid-bin.js +75 -0
- package/dist/node_modules/uuid/dist/v1.js +131 -0
- package/dist/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/dist/node_modules/uuid/dist/v3.js +11 -0
- package/dist/node_modules/uuid/dist/v35.js +63 -0
- package/dist/node_modules/uuid/dist/v4.js +32 -0
- package/dist/node_modules/uuid/dist/v5.js +11 -0
- package/dist/node_modules/uuid/dist/v6.js +38 -0
- package/dist/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/dist/node_modules/uuid/dist/v7.js +152 -0
- package/dist/node_modules/uuid/dist/validate.js +12 -0
- package/dist/node_modules/uuid/dist/version.js +15 -0
- package/dist/node_modules/uuid/package.json +1 -1
- package/package.json +2 -2
- package/dist/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/dist/node_modules/uuid/dist/cjs/index.js +0 -1
- package/dist/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/max.js +0 -3
- package/dist/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/dist/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/dist/node_modules/uuid/dist/cjs/native.js +0 -4
- package/dist/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/dist/node_modules/uuid/dist/cjs/package.json +0 -1
- package/dist/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/dist/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/dist/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/dist/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/dist/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/dist/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/dist/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/dist/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/dist/node_modules/uuid/dist/cjs/types.js +0 -2
- package/dist/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/dist/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/dist/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/dist/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/dist/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/dist/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/dist/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/dist/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/dist/node_modules/uuid/dist/cjs/v35.js +0 -44
- package/dist/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/dist/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/dist/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/dist/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs/v6.js +0 -22
- package/dist/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/dist/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/dist/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/dist/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/dist/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs/version.js +0 -10
- package/dist/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/dist/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/dist/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/dist/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/dist/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/dist/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/dist/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/dist/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/dist/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/dist/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/dist/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/dist/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/dist/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/dist/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/dist/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/dist/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +0 -1
- package/dist/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/dist/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/dist/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/dist/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/dist/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/dist/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/dist/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/dist/node_modules/uuid/dist/cjs-browser/v35.js +0 -44
- package/dist/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/dist/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/dist/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/dist/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/dist/node_modules/uuid/dist/cjs-browser/v6.js +0 -22
- package/dist/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/dist/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/dist/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/dist/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/dist/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/dist/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/dist/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/dist/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/dist/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/max.js +0 -1
- package/dist/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm/md5.js +0 -11
- package/dist/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/dist/node_modules/uuid/dist/esm/native.js +0 -2
- package/dist/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/nil.js +0 -1
- package/dist/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/parse.js +0 -9
- package/dist/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/dist/node_modules/uuid/dist/esm/rng.js +0 -10
- package/dist/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/dist/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/dist/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/dist/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/dist/node_modules/uuid/dist/esm/types.js +0 -1
- package/dist/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/dist/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/dist/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/dist/node_modules/uuid/dist/esm/v1.js +0 -83
- package/dist/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/dist/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/dist/node_modules/uuid/dist/esm/v3.js +0 -9
- package/dist/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/dist/node_modules/uuid/dist/esm/v35.js +0 -39
- package/dist/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm/v4.js +0 -27
- package/dist/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/dist/node_modules/uuid/dist/esm/v5.js +0 -9
- package/dist/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm/v6.js +0 -20
- package/dist/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/dist/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/dist/node_modules/uuid/dist/esm/v7.js +0 -65
- package/dist/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/validate.js +0 -5
- package/dist/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm/version.js +0 -8
- package/dist/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/dist/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/dist/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/dist/node_modules/uuid/dist/esm-browser/types.js +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/dist/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/dist/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/dist/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/dist/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/dist/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/dist/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/dist/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_notification_in_app_message_client_v2=self.webpackChunk_nocobase_plugin_notification_in_app_message_client_v2||[]).push([["821"],{68:function(e,t,n){n.r(t),n.d(t,{ContentConfigForm:function(){return f}});var r=n(197),a=n(59),i=n(155),l=n.n(i),o=n(488);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return m(null!=e?e:[]).concat(m(n))}function f(e){var t=(0,o.mG)().t,n=(0,o.kj)();return l().createElement(l().Fragment,null,l().createElement(a.Form.Item,{name:u(e.namePrefix,"title"),label:t("Message title"),rules:[{required:!0,message:t("The field value is required")}]},l().createElement(r.WorkflowVariableInput,{variableOptions:{types:["string"]}})),l().createElement(a.Form.Item,{name:u(e.namePrefix,"content"),label:t("Message content"),rules:[{required:!0,message:t("The field value is required")}]},l().createElement(r.WorkflowVariableTextArea,{autoSize:{minRows:10},placeholder:"Hi,",delimiters:["{{{","}}}"]})),l().createElement(a.Form.Item,{name:u(e.namePrefix,"options","url"),label:t("Details page for desktop"),extra:n('Support two types of links: internal links and external links. If using an internal link, the link starts with "/", for example, "/admin". If using an external link, the link starts with "http", for example, "https://example.com".')},l().createElement(r.WorkflowVariableInput,{variableOptions:{types:["string"]}})),l().createElement(a.Form.Item,{name:u(e.namePrefix,"options","mobileUrl"),label:t("Details page for mobile"),extra:n('Support two types of links: internal links and external links. If using an internal link, the link starts with "/", for example, "/m". If using an external link, the link starts with "http", for example, "https://example.com".')},l().createElement(r.WorkflowVariableInput,{variableOptions:{types:["string"]}})),l().createElement(a.Form.Item,{name:u(e.namePrefix,"options","duration"),label:t("Close after"),extra:n("Unit is second. Will not close automatically when set to empty."),initialValue:5},l().createElement(a.InputNumber,null)))}t.default=f}}]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { ContentConfigFormProps } from '@nocobase/plugin-notification-manager/client-v2';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export declare function ContentConfigForm(props: ContentConfigFormProps): React.JSX.Element;
|
|
12
|
+
export default ContentConfigForm;
|
package/dist/client-v2/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ahooks"),require("react-i18next"),require("@emotion/css"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react-router-dom"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@dnd-kit/core"),require("@nocobase/utils/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-in-app-message/client-v2",["ahooks","react-i18next","@emotion/css","@nocobase/plugin-notification-manager/client-v2","@nocobase/client-v2","react-router-dom","@dnd-kit/sortable","react","antd","@nocobase/plugin-workflow/client-v2","@ant-design/icons","@nocobase/flow-engine","@dnd-kit/core","@nocobase/utils/client"],n):"object"==typeof exports?exports["@nocobase/plugin-notification-in-app-message/client-v2"]=n(require("ahooks"),require("react-i18next"),require("@emotion/css"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react-router-dom"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@dnd-kit/core"),require("@nocobase/utils/client")):e["@nocobase/plugin-notification-in-app-message/client-v2"]=n(e.ahooks,e["react-i18next"],e["@emotion/css"],e["@nocobase/plugin-notification-manager/client-v2"],e["@nocobase/client-v2"],e["react-router-dom"],e["@dnd-kit/sortable"],e.react,e.antd,e["@nocobase/plugin-workflow/client-v2"],e["@ant-design/icons"],e["@nocobase/flow-engine"],e["@dnd-kit/core"],e["@nocobase/utils/client"])}(self,function(e,n,t,r,o,i,c,a,u,l,s,f,p,b){return function(){"use strict";var d,g,v,h={247:function(e,n,t){t.d(n,{A:function(){return o},e:function(){return i}});var r=null;function o(e){r=e}function i(){return r}},488:function(e,n,t){t.d(n,{MZ:function(){return l},kj:function(){return u},mG:function(){return a}});var r=t(694),o=t(953),i="notification-in-app-message",c="@nocobase/plugin-notification-in-app-message";function a(){return(0,o.useTranslation)([i,c,"client"],{nsMode:"fallback"})}function u(){var e=(0,r.useFlowEngine)();return function(n,t){return e.context.t(n,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({ns:[i,c,"client"],nsMode:"fallback"},t))}}function l(e){return(0,r.tExpr)(e,{ns:[i,c,"client"]})}},375:function(e){e.exports=s},799:function(e){e.exports=p},428:function(e){e.exports=c},477:function(e){e.exports=t},485:function(e){e.exports=o},694:function(e){e.exports=f},341:function(e){e.exports=r},197:function(e){e.exports=l},768:function(e){e.exports=b},625:function(n){n.exports=e},59:function(e){e.exports=u},155:function(e){e.exports=a},953:function(e){e.exports=n},442:function(e){e.exports=i}},m={};function y(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return h[e].call(t.exports,t,t.exports,y),t.exports}y.m=h,y.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(n,{a:n}),n},y.d=function(e,n){for(var t in n)y.o(n,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce(function(n,t){return y.f[t](e,n),n},[]))},y.u=function(e){return""+e+"."+({297:"503d86e234fdb749",839:"1731373ad55724b2"})[e]+".js"},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},w={},y.l=function(e,n,t,r){if(w[e])return void w[e].push(n);if(void 0!==t)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-notification-in-app-message/client-v2:"+t){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,y.nc&&o.setAttribute("nonce",y.nc),o.setAttribute("data-rspack","@nocobase/plugin-notification-in-app-message/client-v2:"+t),o.src=e),w[e]=[n];var l=function(n,t){o.onerror=o.onload=null,clearTimeout(s);var r=w[e];if(delete w[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(t)}),n)return n(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},y.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.g.importScripts&&(_=y.g.location+"");var w,_,x=y.g.document;if(!_&&x&&(x.currentScript&&"SCRIPT"===x.currentScript.tagName.toUpperCase()&&(_=x.currentScript.src),!_)){var k=x.getElementsByTagName("script");if(k.length)for(var O=k.length-1;O>-1&&(!_||!/^http(s?):/.test(_));)_=k[O--].src}if(!_)throw Error("Automatic publicPath is not supported in this browser");y.p=_.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),d={889:0},y.f.j=function(e,n){var t=y.o(d,e)?d[e]:void 0;if(0!==t)if(t)n.push(t[2]);else{var r=new Promise(function(n,r){t=d[e]=[n,r]});n.push(t[2]=r);var o=y.p+y.u(e),i=Error();y.l(o,function(n){if(y.o(d,e)&&(0!==(t=d[e])&&(d[e]=void 0),t)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,t[1](i)}},"chunk-"+e,e)}},g=function(e,n){var t,r,o=n[0],i=n[1],c=n[2],a=0;if(o.some(function(e){return 0!==d[e]})){for(t in i)y.o(i,t)&&(y.m[t]=i[t]);c&&c(y)}for(e&&e(n);a<o.length;a++)r=o[a],y.o(d,r)&&d[r]&&d[r][0](),d[r]=0},(v=self.webpackChunk_nocobase_plugin_notification_in_app_message_client_v2=self.webpackChunk_nocobase_plugin_notification_in_app_message_client_v2||[]).forEach(g.bind(null,0)),v.push=g.bind(null,v.push.bind(v));var j={};return!function(){var e="",n="u">typeof document?document.currentScript:null;if(n&&n.src){var t=n.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");t.indexOf("/static/plugins/@nocobase/plugin-notification-in-app-message/dist/client-v2/")>=0&&(e=t.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-notification-in-app-message/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-in-app-message/dist/client-v2/"}y.p=e}(),!function(){y.r(j),y.d(j,{PluginNotificationInAppMessageClientV2:function(){return d},NAMESPACE:function(){return b},default:function(){return g}});var e=y(485),n=y(341),t=y.n(n),r=y(247),o=y(488);function i(e,n,t,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){t(e);return}a.done?n(u):Promise.resolve(u).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var c=e.apply(n,t);function a(e){i(c,r,o,a,u,"next",e)}function u(e){i(c,r,o,a,u,"throw",e)}a(void 0)})}}function a(e,n,t){return(a=f()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&l(o,t.prototype),o}).apply(null,arguments)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,n){return(l=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function s(e){var n="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,u(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,e)})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function p(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(t)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var b="notification-in-app-message",d=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,n;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,n=arguments,e=u(e),function(e,n){var t;if(n&&("object"==((t=n)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,f()?Reflect.construct(e,n||[],u(this).constructor):e.apply(this,n))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&l(i,e),n=[{key:"beforeLoad",value:function(){return c(function(){var e;return p(this,function(n){return(e=this.pm.get(t()))&&e.registerChannelType({type:"in-app-message",title:(0,o.MZ)("In-app message"),components:{MessageConfigFormLoader:function(){return y.e("839").then(y.bind(y,138))}},meta:{creatable:!0,editable:!0,deletable:!0}}),[2]})}).call(this)}},{key:"load",value:function(){return c(function(){return p(this,function(e){return(0,r.A)(this.app.apiClient),this.flowEngine.registerModelLoaders({InboxTopbarActionModel:{extends:"TopbarActionModel",loader:function(){return y.e("297").then(y.bind(y,8))}}}),[2]})}).call(this)}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,n),i}(s(e.Plugin)),g=d}(),j}()});
|
|
10
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("ahooks"),require("react-i18next"),require("@emotion/css"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react-router-dom"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@dnd-kit/core"),require("@nocobase/utils/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-notification-in-app-message/client-v2",["ahooks","react-i18next","@emotion/css","@nocobase/plugin-notification-manager/client-v2","@nocobase/client-v2","react-router-dom","@dnd-kit/sortable","react","antd","@nocobase/plugin-workflow/client-v2","@ant-design/icons","@nocobase/flow-engine","@dnd-kit/core","@nocobase/utils/client"],n):"object"==typeof exports?exports["@nocobase/plugin-notification-in-app-message/client-v2"]=n(require("ahooks"),require("react-i18next"),require("@emotion/css"),require("@nocobase/plugin-notification-manager/client-v2"),require("@nocobase/client-v2"),require("react-router-dom"),require("@dnd-kit/sortable"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine"),require("@dnd-kit/core"),require("@nocobase/utils/client")):e["@nocobase/plugin-notification-in-app-message/client-v2"]=n(e.ahooks,e["react-i18next"],e["@emotion/css"],e["@nocobase/plugin-notification-manager/client-v2"],e["@nocobase/client-v2"],e["react-router-dom"],e["@dnd-kit/sortable"],e.react,e.antd,e["@nocobase/plugin-workflow/client-v2"],e["@ant-design/icons"],e["@nocobase/flow-engine"],e["@dnd-kit/core"],e["@nocobase/utils/client"])}(self,function(e,n,t,r,o,i,c,a,u,l,s,f,p,b){return function(){"use strict";var d,g,v,h={247:function(e,n,t){t.d(n,{A:function(){return o},e:function(){return i}});var r=null;function o(e){r=e}function i(){return r}},488:function(e,n,t){t.d(n,{MZ:function(){return l},kj:function(){return u},mG:function(){return a}});var r=t(694),o=t(953),i="notification-in-app-message",c="@nocobase/plugin-notification-in-app-message";function a(){return(0,o.useTranslation)([i,c,"client"],{nsMode:"fallback"})}function u(){var e=(0,r.useFlowEngine)();return function(n,t){return e.context.t(n,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({ns:[i,c,"client"],nsMode:"fallback"},t))}}function l(e){return(0,r.tExpr)(e,{ns:[i,c,"client"]})}},375:function(e){e.exports=s},799:function(e){e.exports=p},428:function(e){e.exports=c},477:function(e){e.exports=t},485:function(e){e.exports=o},694:function(e){e.exports=f},341:function(e){e.exports=r},197:function(e){e.exports=l},768:function(e){e.exports=b},625:function(n){n.exports=e},59:function(e){e.exports=u},155:function(e){e.exports=a},953:function(e){e.exports=n},442:function(e){e.exports=i}},m={};function y(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return h[e].call(t.exports,t,t.exports,y),t.exports}y.m=h,y.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(n,{a:n}),n},y.d=function(e,n){for(var t in n)y.o(n,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce(function(n,t){return y.f[t](e,n),n},[]))},y.u=function(e){return""+e+"."+({297:"503d86e234fdb749",821:"ea74c740c488d845",839:"1731373ad55724b2"})[e]+".js"},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},w={},y.l=function(e,n,t,r){if(w[e])return void w[e].push(n);if(void 0!==t)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@nocobase/plugin-notification-in-app-message/client-v2:"+t){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,y.nc&&o.setAttribute("nonce",y.nc),o.setAttribute("data-rspack","@nocobase/plugin-notification-in-app-message/client-v2:"+t),o.src=e),w[e]=[n];var l=function(n,t){o.onerror=o.onload=null,clearTimeout(s);var r=w[e];if(delete w[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(t)}),n)return n(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},y.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.g.importScripts&&(_=y.g.location+"");var w,_,x=y.g.document;if(!_&&x&&(x.currentScript&&"SCRIPT"===x.currentScript.tagName.toUpperCase()&&(_=x.currentScript.src),!_)){var k=x.getElementsByTagName("script");if(k.length)for(var O=k.length-1;O>-1&&(!_||!/^http(s?):/.test(_));)_=k[O--].src}if(!_)throw Error("Automatic publicPath is not supported in this browser");y.p=_.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),d={889:0},y.f.j=function(e,n){var t=y.o(d,e)?d[e]:void 0;if(0!==t)if(t)n.push(t[2]);else{var r=new Promise(function(n,r){t=d[e]=[n,r]});n.push(t[2]=r);var o=y.p+y.u(e),i=Error();y.l(o,function(n){if(y.o(d,e)&&(0!==(t=d[e])&&(d[e]=void 0),t)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,t[1](i)}},"chunk-"+e,e)}},g=function(e,n){var t,r,o=n[0],i=n[1],c=n[2],a=0;if(o.some(function(e){return 0!==d[e]})){for(t in i)y.o(i,t)&&(y.m[t]=i[t]);c&&c(y)}for(e&&e(n);a<o.length;a++)r=o[a],y.o(d,r)&&d[r]&&d[r][0](),d[r]=0},(v=self.webpackChunk_nocobase_plugin_notification_in_app_message_client_v2=self.webpackChunk_nocobase_plugin_notification_in_app_message_client_v2||[]).forEach(g.bind(null,0)),v.push=g.bind(null,v.push.bind(v));var j={};return!function(){var e="",n="u">typeof document?document.currentScript:null;if(n&&n.src){var t=n.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");t.indexOf("/static/plugins/@nocobase/plugin-notification-in-app-message/dist/client-v2/")>=0&&(e=t.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-notification-in-app-message/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-notification-in-app-message/dist/client-v2/"}y.p=e}(),!function(){y.r(j),y.d(j,{PluginNotificationInAppMessageClientV2:function(){return d},NAMESPACE:function(){return b},default:function(){return g}});var e=y(485),n=y(341),t=y.n(n),r=y(247),o=y(488);function i(e,n,t,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){t(e);return}a.done?n(u):Promise.resolve(u).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var c=e.apply(n,t);function a(e){i(c,r,o,a,u,"next",e)}function u(e){i(c,r,o,a,u,"throw",e)}a(void 0)})}}function a(e,n,t){return(a=f()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&l(o,t.prototype),o}).apply(null,arguments)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,n){return(l=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function s(e){var n="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,u(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,e)})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function p(e,n){var t,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(t)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var b="notification-in-app-message",d=function(e){var n;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,n;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,n=arguments,e=u(e),function(e,n){var t;if(n&&("object"==((t=n)&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,f()?Reflect.construct(e,n||[],u(this).constructor):e.apply(this,n))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&l(i,e),n=[{key:"beforeLoad",value:function(){return c(function(){var e;return p(this,function(n){return(e=this.pm.get(t()))&&e.registerChannelType({type:"in-app-message",title:(0,o.MZ)("In-app message"),components:{ContentConfigFormLoader:function(){return y.e("821").then(y.bind(y,68))},MessageConfigFormLoader:function(){return y.e("839").then(y.bind(y,138))}},meta:{creatable:!0,editable:!0,deletable:!0}}),[2]})}).call(this)}},{key:"load",value:function(){return c(function(){return p(this,function(e){return(0,r.A)(this.app.apiClient),this.flowEngine.registerModelLoaders({InboxTopbarActionModel:{extends:"TopbarActionModel",loader:function(){return y.e("297").then(y.bind(y,8))}}}),[2]})}).call(this)}}],function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,n),i}(s(e.Plugin)),g=d}(),j}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -9,23 +9,23 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"@nocobase/client": "2.2.0-alpha.
|
|
13
|
-
"@nocobase/plugin-notification-manager": "2.2.0-alpha.
|
|
14
|
-
"@nocobase/plugin-mobile": "2.2.0-alpha.
|
|
15
|
-
"@nocobase/utils": "2.2.0-alpha.
|
|
16
|
-
"@nocobase/client-v2": "2.2.0-alpha.
|
|
17
|
-
"@nocobase/flow-engine": "2.2.0-alpha.
|
|
12
|
+
"@nocobase/client": "2.2.0-alpha.4",
|
|
13
|
+
"@nocobase/plugin-notification-manager": "2.2.0-alpha.4",
|
|
14
|
+
"@nocobase/plugin-mobile": "2.2.0-alpha.4",
|
|
15
|
+
"@nocobase/utils": "2.2.0-alpha.4",
|
|
16
|
+
"@nocobase/client-v2": "2.2.0-alpha.4",
|
|
17
|
+
"@nocobase/flow-engine": "2.2.0-alpha.4",
|
|
18
18
|
"react-i18next": "11.18.6",
|
|
19
19
|
"dayjs": "1.11.13",
|
|
20
|
-
"@nocobase/database": "2.2.0-alpha.
|
|
21
|
-
"@nocobase/server": "2.2.0-alpha.
|
|
20
|
+
"@nocobase/database": "2.2.0-alpha.4",
|
|
21
|
+
"@nocobase/server": "2.2.0-alpha.4",
|
|
22
22
|
"sequelize": "6.35.2",
|
|
23
|
-
"@nocobase/actions": "2.2.0-alpha.
|
|
23
|
+
"@nocobase/actions": "2.2.0-alpha.4",
|
|
24
24
|
"antd": "5.24.2",
|
|
25
25
|
"antd-style": "3.7.1",
|
|
26
26
|
"@emotion/css": "11.13.0",
|
|
27
27
|
"@formily/react": "2.3.7",
|
|
28
|
-
"@nocobase/plugin-workflow": "2.2.0-alpha.
|
|
28
|
+
"@nocobase/plugin-workflow": "2.2.0-alpha.4",
|
|
29
29
|
"react-router-dom": "6.30.1",
|
|
30
30
|
"@formily/reactive": "2.3.7",
|
|
31
31
|
"ahooks": "3.7.8",
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "MAX", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _max.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "NIL", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _nil.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "parse", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _parse.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "stringify", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _stringify.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "v1", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _v.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "v1ToV6", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _v1ToV.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "v3", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _v2.default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "v4", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _v3.default;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "v5", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _v4.default;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "v6", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _v5.default;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "v6ToV1", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _v6ToV.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "v7", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _v6.default;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "validate", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _validate.default;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "version", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _version.default;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var _max = _interopRequireDefault(require("./max.js"));
|
|
91
|
+
var _nil = _interopRequireDefault(require("./nil.js"));
|
|
92
|
+
var _parse = _interopRequireDefault(require("./parse.js"));
|
|
93
|
+
var _stringify = _interopRequireDefault(require("./stringify.js"));
|
|
94
|
+
var _v = _interopRequireDefault(require("./v1.js"));
|
|
95
|
+
var _v1ToV = _interopRequireDefault(require("./v1ToV6.js"));
|
|
96
|
+
var _v2 = _interopRequireDefault(require("./v3.js"));
|
|
97
|
+
var _v3 = _interopRequireDefault(require("./v4.js"));
|
|
98
|
+
var _v4 = _interopRequireDefault(require("./v5.js"));
|
|
99
|
+
var _v5 = _interopRequireDefault(require("./v6.js"));
|
|
100
|
+
var _v6ToV = _interopRequireDefault(require("./v6ToV1.js"));
|
|
101
|
+
var _v6 = _interopRequireDefault(require("./v7.js"));
|
|
102
|
+
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
103
|
+
var _version = _interopRequireDefault(require("./version.js"));
|
|
104
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Browser-compatible JavaScript MD5
|
|
9
|
+
*
|
|
10
|
+
* Modification of JavaScript MD5
|
|
11
|
+
* https://github.com/blueimp/JavaScript-MD5
|
|
12
|
+
*
|
|
13
|
+
* Copyright 2011, Sebastian Tschan
|
|
14
|
+
* https://blueimp.net
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the MIT license:
|
|
17
|
+
* https://opensource.org/licenses/MIT
|
|
18
|
+
*
|
|
19
|
+
* Based on
|
|
20
|
+
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
21
|
+
* Digest Algorithm, as defined in RFC 1321.
|
|
22
|
+
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
23
|
+
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
24
|
+
* Distributed under the BSD License
|
|
25
|
+
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
26
|
+
*/
|
|
27
|
+
function md5(bytes) {
|
|
28
|
+
if (typeof bytes === 'string') {
|
|
29
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
30
|
+
|
|
31
|
+
bytes = new Uint8Array(msg.length);
|
|
32
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
33
|
+
bytes[i] = msg.charCodeAt(i);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
* Convert an array of little-endian words to an array of bytes
|
|
41
|
+
*/
|
|
42
|
+
function md5ToHexEncodedArray(input) {
|
|
43
|
+
var output = [];
|
|
44
|
+
var length32 = input.length * 32;
|
|
45
|
+
var hexTab = '0123456789abcdef';
|
|
46
|
+
for (var i = 0; i < length32; i += 8) {
|
|
47
|
+
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
48
|
+
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
49
|
+
output.push(hex);
|
|
50
|
+
}
|
|
51
|
+
return output;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Calculate output length with padding and bit length
|
|
56
|
+
*/
|
|
57
|
+
function getOutputLength(inputLength8) {
|
|
58
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
63
|
+
*/
|
|
64
|
+
function wordsToMd5(x, len) {
|
|
65
|
+
/* append padding */
|
|
66
|
+
x[len >> 5] |= 0x80 << len % 32;
|
|
67
|
+
x[getOutputLength(len) - 1] = len;
|
|
68
|
+
var a = 1732584193;
|
|
69
|
+
var b = -271733879;
|
|
70
|
+
var c = -1732584194;
|
|
71
|
+
var d = 271733878;
|
|
72
|
+
for (var i = 0; i < x.length; i += 16) {
|
|
73
|
+
var olda = a;
|
|
74
|
+
var oldb = b;
|
|
75
|
+
var oldc = c;
|
|
76
|
+
var oldd = d;
|
|
77
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
78
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
79
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
80
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
81
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
82
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
83
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
84
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
85
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
86
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
87
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
88
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
89
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
90
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
91
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
92
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
93
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
94
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
95
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
96
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
97
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
98
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
99
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
100
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
101
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
102
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
103
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
104
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
105
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
106
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
107
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
108
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
109
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
110
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
111
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
112
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
113
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
114
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
115
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
116
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
117
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
118
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
119
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
120
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
121
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
122
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
123
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
124
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
125
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
126
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
127
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
128
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
129
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
130
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
131
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
132
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
133
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
134
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
135
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
136
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
137
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
138
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
139
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
140
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
141
|
+
a = safeAdd(a, olda);
|
|
142
|
+
b = safeAdd(b, oldb);
|
|
143
|
+
c = safeAdd(c, oldc);
|
|
144
|
+
d = safeAdd(d, oldd);
|
|
145
|
+
}
|
|
146
|
+
return [a, b, c, d];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* Convert an array bytes to an array of little-endian words
|
|
151
|
+
* Characters >255 have their high-byte silently ignored.
|
|
152
|
+
*/
|
|
153
|
+
function bytesToWords(input) {
|
|
154
|
+
if (input.length === 0) {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
var length8 = input.length * 8;
|
|
158
|
+
var output = new Uint32Array(getOutputLength(length8));
|
|
159
|
+
for (var i = 0; i < length8; i += 8) {
|
|
160
|
+
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
161
|
+
}
|
|
162
|
+
return output;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
167
|
+
* to work around bugs in some JS interpreters.
|
|
168
|
+
*/
|
|
169
|
+
function safeAdd(x, y) {
|
|
170
|
+
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
171
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
172
|
+
return msw << 16 | lsw & 0xffff;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/*
|
|
176
|
+
* Bitwise rotate a 32-bit number to the left.
|
|
177
|
+
*/
|
|
178
|
+
function bitRotateLeft(num, cnt) {
|
|
179
|
+
return num << cnt | num >>> 32 - cnt;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/*
|
|
183
|
+
* These functions implement the four basic operations the algorithm uses.
|
|
184
|
+
*/
|
|
185
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
186
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
187
|
+
}
|
|
188
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
189
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
190
|
+
}
|
|
191
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
192
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
193
|
+
}
|
|
194
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
195
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
196
|
+
}
|
|
197
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
198
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
199
|
+
}
|
|
200
|
+
var _default = exports.default = md5;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
8
|
+
var _default = exports.default = {
|
|
9
|
+
randomUUID
|
|
10
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _validate = _interopRequireDefault(require("./validate.js"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
function parse(uuid) {
|
|
10
|
+
if (!(0, _validate.default)(uuid)) {
|
|
11
|
+
throw TypeError('Invalid UUID');
|
|
12
|
+
}
|
|
13
|
+
var v;
|
|
14
|
+
var arr = new Uint8Array(16);
|
|
15
|
+
|
|
16
|
+
// Parse ########-....-....-....-............
|
|
17
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
18
|
+
arr[1] = v >>> 16 & 0xff;
|
|
19
|
+
arr[2] = v >>> 8 & 0xff;
|
|
20
|
+
arr[3] = v & 0xff;
|
|
21
|
+
|
|
22
|
+
// Parse ........-####-....-....-............
|
|
23
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
24
|
+
arr[5] = v & 0xff;
|
|
25
|
+
|
|
26
|
+
// Parse ........-....-####-....-............
|
|
27
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
28
|
+
arr[7] = v & 0xff;
|
|
29
|
+
|
|
30
|
+
// Parse ........-....-....-####-............
|
|
31
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
32
|
+
arr[9] = v & 0xff;
|
|
33
|
+
|
|
34
|
+
// Parse ........-....-....-....-############
|
|
35
|
+
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
36
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
37
|
+
arr[11] = v / 0x100000000 & 0xff;
|
|
38
|
+
arr[12] = v >>> 24 & 0xff;
|
|
39
|
+
arr[13] = v >>> 16 & 0xff;
|
|
40
|
+
arr[14] = v >>> 8 & 0xff;
|
|
41
|
+
arr[15] = v & 0xff;
|
|
42
|
+
return arr;
|
|
43
|
+
}
|
|
44
|
+
var _default = exports.default = parse;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = rng;
|
|
7
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
8
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
9
|
+
// generators (like Math.random()).
|
|
10
|
+
|
|
11
|
+
var getRandomValues;
|
|
12
|
+
var rnds8 = new Uint8Array(16);
|
|
13
|
+
function rng() {
|
|
14
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
15
|
+
if (!getRandomValues) {
|
|
16
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
17
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
18
|
+
if (!getRandomValues) {
|
|
19
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return getRandomValues(rnds8);
|
|
23
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// Adapted from Chris Veness' SHA1 code at
|
|
8
|
+
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
9
|
+
function f(s, x, y, z) {
|
|
10
|
+
switch (s) {
|
|
11
|
+
case 0:
|
|
12
|
+
return x & y ^ ~x & z;
|
|
13
|
+
case 1:
|
|
14
|
+
return x ^ y ^ z;
|
|
15
|
+
case 2:
|
|
16
|
+
return x & y ^ x & z ^ y & z;
|
|
17
|
+
case 3:
|
|
18
|
+
return x ^ y ^ z;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function ROTL(x, n) {
|
|
22
|
+
return x << n | x >>> 32 - n;
|
|
23
|
+
}
|
|
24
|
+
function sha1(bytes) {
|
|
25
|
+
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
26
|
+
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
27
|
+
if (typeof bytes === 'string') {
|
|
28
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
29
|
+
|
|
30
|
+
bytes = [];
|
|
31
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
32
|
+
bytes.push(msg.charCodeAt(i));
|
|
33
|
+
}
|
|
34
|
+
} else if (!Array.isArray(bytes)) {
|
|
35
|
+
// Convert Array-like to Array
|
|
36
|
+
bytes = Array.prototype.slice.call(bytes);
|
|
37
|
+
}
|
|
38
|
+
bytes.push(0x80);
|
|
39
|
+
var l = bytes.length / 4 + 2;
|
|
40
|
+
var N = Math.ceil(l / 16);
|
|
41
|
+
var M = new Array(N);
|
|
42
|
+
for (var _i = 0; _i < N; ++_i) {
|
|
43
|
+
var arr = new Uint32Array(16);
|
|
44
|
+
for (var j = 0; j < 16; ++j) {
|
|
45
|
+
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
46
|
+
}
|
|
47
|
+
M[_i] = arr;
|
|
48
|
+
}
|
|
49
|
+
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
50
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
51
|
+
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
52
|
+
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
53
|
+
var W = new Uint32Array(80);
|
|
54
|
+
for (var t = 0; t < 16; ++t) {
|
|
55
|
+
W[t] = M[_i2][t];
|
|
56
|
+
}
|
|
57
|
+
for (var _t = 16; _t < 80; ++_t) {
|
|
58
|
+
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
59
|
+
}
|
|
60
|
+
var a = H[0];
|
|
61
|
+
var b = H[1];
|
|
62
|
+
var c = H[2];
|
|
63
|
+
var d = H[3];
|
|
64
|
+
var e = H[4];
|
|
65
|
+
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
66
|
+
var s = Math.floor(_t2 / 20);
|
|
67
|
+
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
68
|
+
e = d;
|
|
69
|
+
d = c;
|
|
70
|
+
c = ROTL(b, 30) >>> 0;
|
|
71
|
+
b = a;
|
|
72
|
+
a = T;
|
|
73
|
+
}
|
|
74
|
+
H[0] = H[0] + a >>> 0;
|
|
75
|
+
H[1] = H[1] + b >>> 0;
|
|
76
|
+
H[2] = H[2] + c >>> 0;
|
|
77
|
+
H[3] = H[3] + d >>> 0;
|
|
78
|
+
H[4] = H[4] + e >>> 0;
|
|
79
|
+
}
|
|
80
|
+
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
81
|
+
}
|
|
82
|
+
var _default = exports.default = sha1;
|