@aglyn/plugins-email 1.0.0-beta.269 → 1.0.0-beta.270
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/package.json +16 -16
- package/src/lib/native-nav.d.ts +20 -0
- package/src/lib/native-nav.js +79 -0
- package/src/lib/native-nav.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-email",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.270",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.0.0-beta.
|
|
29
|
-
"@aglyn/shared-data-enums": "1.0.0-beta.
|
|
30
|
-
"@aglyn/shared-data-mdi": "1.0.0-beta.
|
|
31
|
-
"@aglyn/shared-data-types": "1.0.0-beta.
|
|
32
|
-
"@aglyn/shared-ui-jsx": "1.0.0-beta.
|
|
33
|
-
"@aglyn/shared-ui-jsx-forms": "1.0.0-beta.
|
|
34
|
-
"@aglyn/shared-ui-next": "1.0.0-beta.
|
|
35
|
-
"@aglyn/shared-ui-snackstack": "1.0.0-beta.
|
|
36
|
-
"@aglyn/shared-ui-theme": "1.0.0-beta.
|
|
37
|
-
"@aglyn/shared-util-email": "1.0.0-beta.
|
|
38
|
-
"@aglyn/shared-util-http": "1.0.0-beta.
|
|
39
|
-
"@aglyn/shared-util-timestamp": "1.0.0-beta.
|
|
40
|
-
"@aglyn/shared-util-tools": "1.0.0-beta.
|
|
41
|
-
"@aglyn/tenant-data-admin": "1.0.0-beta.
|
|
42
|
-
"@aglyn/tenant-feature-instance": "1.0.0-beta.
|
|
28
|
+
"@aglyn/aglyn": "1.0.0-beta.270",
|
|
29
|
+
"@aglyn/shared-data-enums": "1.0.0-beta.270",
|
|
30
|
+
"@aglyn/shared-data-mdi": "1.0.0-beta.270",
|
|
31
|
+
"@aglyn/shared-data-types": "1.0.0-beta.270",
|
|
32
|
+
"@aglyn/shared-ui-jsx": "1.0.0-beta.270",
|
|
33
|
+
"@aglyn/shared-ui-jsx-forms": "1.0.0-beta.270",
|
|
34
|
+
"@aglyn/shared-ui-next": "1.0.0-beta.270",
|
|
35
|
+
"@aglyn/shared-ui-snackstack": "1.0.0-beta.270",
|
|
36
|
+
"@aglyn/shared-ui-theme": "1.0.0-beta.270",
|
|
37
|
+
"@aglyn/shared-util-email": "1.0.0-beta.270",
|
|
38
|
+
"@aglyn/shared-util-http": "1.0.0-beta.270",
|
|
39
|
+
"@aglyn/shared-util-timestamp": "1.0.0-beta.270",
|
|
40
|
+
"@aglyn/shared-util-tools": "1.0.0-beta.270",
|
|
41
|
+
"@aglyn/tenant-data-admin": "1.0.0-beta.270",
|
|
42
|
+
"@aglyn/tenant-feature-instance": "1.0.0-beta.270",
|
|
43
43
|
"@swc/helpers": "0.5.23"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { type NativeNavContribution, type NativeNavCreateContribution } from '@aglyn/aglyn/app-utils/native-nav';
|
|
18
|
+
export declare const NATIVE_NAV_ROWS: readonly NativeNavContribution[];
|
|
19
|
+
/** An email template, the console's "New template" on the workspace's Emails → Templates. */
|
|
20
|
+
export declare const NATIVE_NAV_CREATE: readonly NativeNavCreateContribution[];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ import { nativeNavHubSection, nativeNavIcon, nativeNavRef } from "@aglyn/aglyn/app-utils/native-nav";
|
|
17
|
+
/**
|
|
18
|
+
* Emails in the native apps' navigation (AGL-3943): the rows this plugin
|
|
19
|
+
* adds to the manifest the shells draw, placed into the core's lists by
|
|
20
|
+
* `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the
|
|
21
|
+
* console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.
|
|
22
|
+
*
|
|
23
|
+
* Imports only the core's plain nav module, so the native contracts read it.
|
|
24
|
+
*/ /**
|
|
25
|
+
* The row at either scope. The workspace's opens the console's org page
|
|
26
|
+
* (`orgNavItems`, `/[orgSlug]/emails`), the site's the site's hub; both list
|
|
27
|
+
* the same sections under the same ids.
|
|
28
|
+
*/ function row(scope, order) {
|
|
29
|
+
return {
|
|
30
|
+
id: 'emails',
|
|
31
|
+
label: 'Emails',
|
|
32
|
+
icon: nativeNavIcon('envelope', 'mail'),
|
|
33
|
+
screen: 'email.messages',
|
|
34
|
+
pluginId: 'email',
|
|
35
|
+
order,
|
|
36
|
+
sections: [
|
|
37
|
+
nativeNavHubSection(scope, '/emails', 'messages', 'Messages', 'email.messages'),
|
|
38
|
+
nativeNavHubSection(scope, '/emails', 'templates', 'Templates', 'email.templates'),
|
|
39
|
+
nativeNavHubSection(scope, '/emails', 'audiences', 'Audiences', 'email.audiences'),
|
|
40
|
+
nativeNavHubSection(scope, '/emails', 'topics', 'Topics', 'email.topics'),
|
|
41
|
+
nativeNavHubSection(scope, '/emails', 'sending', 'Sending', 'email.sending'),
|
|
42
|
+
nativeNavHubSection(scope, '/emails', 'suppressions', 'Suppressions', 'email.suppressions')
|
|
43
|
+
],
|
|
44
|
+
docs: '/marketing-and-automation/email-campaigns/overview',
|
|
45
|
+
console: nativeNavRef(scope === 'org' ? 'orgPluginTab' : 'hostPluginTab', '/emails')
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export const NATIVE_NAV_ROWS = [
|
|
49
|
+
{
|
|
50
|
+
list: 'workspace',
|
|
51
|
+
group: 'workspace',
|
|
52
|
+
row: row('org', 40)
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
list: 'site',
|
|
56
|
+
group: 'customers',
|
|
57
|
+
row: row('host', 30)
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
/** An email template, the console's "New template" on the workspace's Emails → Templates. */ export const NATIVE_NAV_CREATE = [
|
|
61
|
+
{
|
|
62
|
+
scope: 'workspace',
|
|
63
|
+
item: {
|
|
64
|
+
id: 'emailTemplate',
|
|
65
|
+
label: 'Email template',
|
|
66
|
+
icon: nativeNavIcon('envelope', 'mail'),
|
|
67
|
+
screen: 'email.templates',
|
|
68
|
+
params: {
|
|
69
|
+
new: '1'
|
|
70
|
+
},
|
|
71
|
+
pluginId: 'email',
|
|
72
|
+
permission: 'data.manage',
|
|
73
|
+
order: 30,
|
|
74
|
+
console: nativeNavRef('orgPluginSection', '/emails/templates')
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=native-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/email/src/lib/native-nav.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-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 * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type NativeNavContribution,\n type NativeNavCreateContribution,\n type NativeNavRow,\n nativeNavHubSection,\n nativeNavIcon,\n nativeNavRef,\n} from '@aglyn/aglyn/app-utils/native-nav'\n\n/**\n * Emails in the native apps' navigation (AGL-3943): the rows this plugin\n * adds to the manifest the shells draw, placed into the core's lists by\n * `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the\n * console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.\n *\n * Imports only the core's plain nav module, so the native contracts read it.\n */\n\n/**\n * The row at either scope. The workspace's opens the console's org page\n * (`orgNavItems`, `/[orgSlug]/emails`), the site's the site's hub; both list\n * the same sections under the same ids.\n */\nfunction row(scope: 'org' | 'host', order: number): NativeNavRow {\n return {\n id: 'emails',\n label: 'Emails',\n icon: nativeNavIcon('envelope', 'mail'),\n screen: 'email.messages',\n pluginId: 'email',\n order,\n sections: [\n nativeNavHubSection(scope, '/emails', 'messages', 'Messages', 'email.messages'),\n nativeNavHubSection(scope, '/emails', 'templates', 'Templates', 'email.templates'),\n nativeNavHubSection(scope, '/emails', 'audiences', 'Audiences', 'email.audiences'),\n nativeNavHubSection(scope, '/emails', 'topics', 'Topics', 'email.topics'),\n nativeNavHubSection(scope, '/emails', 'sending', 'Sending', 'email.sending'),\n nativeNavHubSection(scope, '/emails', 'suppressions', 'Suppressions', 'email.suppressions'),\n ],\n docs: '/marketing-and-automation/email-campaigns/overview',\n console: nativeNavRef(scope === 'org' ? 'orgPluginTab' : 'hostPluginTab', '/emails'),\n }\n}\n\nexport const NATIVE_NAV_ROWS: readonly NativeNavContribution[] = [\n { list: 'workspace', group: 'workspace', row: row('org', 40) },\n { list: 'site', group: 'customers', row: row('host', 30) },\n]\n\n/** An email template, the console's \"New template\" on the workspace's Emails → Templates. */\nexport const NATIVE_NAV_CREATE: readonly NativeNavCreateContribution[] = [\n {\n scope: 'workspace',\n item: {\n id: 'emailTemplate',\n label: 'Email template',\n icon: nativeNavIcon('envelope', 'mail'),\n screen: 'email.templates',\n params: { new: '1' },\n pluginId: 'email',\n permission: 'data.manage',\n order: 30,\n console: nativeNavRef('orgPluginSection', '/emails/templates'),\n },\n },\n]\n"],"names":["nativeNavHubSection","nativeNavIcon","nativeNavRef","row","scope","order","id","label","icon","screen","pluginId","sections","docs","console","NATIVE_NAV_ROWS","list","group","NATIVE_NAV_CREATE","item","params","new","permission"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAIEA,mBAAmB,EACnBC,aAAa,EACbC,YAAY,QACP,oCAAmC;AAE1C;;;;;;;CAOC,GAED;;;;CAIC,GACD,SAASC,IAAIC,KAAqB,EAAEC,KAAa;IAC/C,OAAO;QACLC,IAAI;QACJC,OAAO;QACPC,MAAMP,cAAc,YAAY;QAChCQ,QAAQ;QACRC,UAAU;QACVL;QACAM,UAAU;YACRX,oBAAoBI,OAAO,WAAW,YAAY,YAAY;YAC9DJ,oBAAoBI,OAAO,WAAW,aAAa,aAAa;YAChEJ,oBAAoBI,OAAO,WAAW,aAAa,aAAa;YAChEJ,oBAAoBI,OAAO,WAAW,UAAU,UAAU;YAC1DJ,oBAAoBI,OAAO,WAAW,WAAW,WAAW;YAC5DJ,oBAAoBI,OAAO,WAAW,gBAAgB,gBAAgB;SACvE;QACDQ,MAAM;QACNC,SAASX,aAAaE,UAAU,QAAQ,iBAAiB,iBAAiB;IAC5E;AACF;AAEA,OAAO,MAAMU,kBAAoD;IAC/D;QAAEC,MAAM;QAAaC,OAAO;QAAab,KAAKA,IAAI,OAAO;IAAI;IAC7D;QAAEY,MAAM;QAAQC,OAAO;QAAab,KAAKA,IAAI,QAAQ;IAAI;CAC1D,CAAA;AAED,2FAA2F,GAC3F,OAAO,MAAMc,oBAA4D;IACvE;QACEb,OAAO;QACPc,MAAM;YACJZ,IAAI;YACJC,OAAO;YACPC,MAAMP,cAAc,YAAY;YAChCQ,QAAQ;YACRU,QAAQ;gBAAEC,KAAK;YAAI;YACnBV,UAAU;YACVW,YAAY;YACZhB,OAAO;YACPQ,SAASX,aAAa,oBAAoB;QAC5C;IACF;CACD,CAAA"}
|