@aglyn/plugins-redirects 1.0.0-beta.217 → 1.0.0-beta.219
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-redirects",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.219",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.0.0-beta.
|
|
29
|
-
"@aglyn/shared-data-mdi": "1.0.0-beta.
|
|
30
|
-
"@aglyn/shared-ui-jsx": "1.0.0-beta.
|
|
31
|
-
"@aglyn/shared-ui-snackstack": "1.0.0-beta.
|
|
32
|
-
"@aglyn/shared-util-http": "1.0.0-beta.
|
|
33
|
-
"@aglyn/shared-util-timestamp": "1.0.0-beta.
|
|
34
|
-
"@aglyn/shared-util-tools": "1.0.0-beta.
|
|
35
|
-
"@aglyn/tenant-data-admin": "1.0.0-beta.
|
|
36
|
-
"@aglyn/tenant-feature-instance": "1.0.0-beta.
|
|
28
|
+
"@aglyn/aglyn": "1.0.0-beta.219",
|
|
29
|
+
"@aglyn/shared-data-mdi": "1.0.0-beta.219",
|
|
30
|
+
"@aglyn/shared-ui-jsx": "1.0.0-beta.219",
|
|
31
|
+
"@aglyn/shared-ui-snackstack": "1.0.0-beta.219",
|
|
32
|
+
"@aglyn/shared-util-http": "1.0.0-beta.219",
|
|
33
|
+
"@aglyn/shared-util-timestamp": "1.0.0-beta.219",
|
|
34
|
+
"@aglyn/shared-util-tools": "1.0.0-beta.219",
|
|
35
|
+
"@aglyn/tenant-data-admin": "1.0.0-beta.219",
|
|
36
|
+
"@aglyn/tenant-feature-instance": "1.0.0-beta.219",
|
|
37
37
|
"@swc/helpers": "0.5.23"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
* See the License for the specific language governing permissions and
|
|
12
|
+
* limitations under the License.
|
|
13
|
+
*/
|
|
14
|
+
import type { ConsoleSearchSource } from '@aglyn/aglyn';
|
|
15
|
+
/**
|
|
16
|
+
* What the console's search finds among a site's redirects (AGL-3080): a
|
|
17
|
+
* redirect by the path it answers or the one it sends to, opening on the
|
|
18
|
+
* site's Redirects page. A redirect has no name, so its source path is what
|
|
19
|
+
* a row is labeled by.
|
|
20
|
+
*/
|
|
21
|
+
export declare const REDIRECTS_SEARCH_SOURCES: readonly ConsoleSearchSource[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
* See the License for the specific language governing permissions and
|
|
12
|
+
* limitations under the License.
|
|
13
|
+
*/ import { buildRoute, Route } from "@aglyn/aglyn/app-utils/console-routes";
|
|
14
|
+
/**
|
|
15
|
+
* What the console's search finds among a site's redirects (AGL-3080): a
|
|
16
|
+
* redirect by the path it answers or the one it sends to, opening on the
|
|
17
|
+
* site's Redirects page. A redirect has no name, so its source path is what
|
|
18
|
+
* a row is labeled by.
|
|
19
|
+
*/ export const REDIRECTS_SEARCH_SOURCES = [
|
|
20
|
+
{
|
|
21
|
+
id: 'redirects',
|
|
22
|
+
group: 'Redirects',
|
|
23
|
+
noun: 'redirects',
|
|
24
|
+
scope: 'host',
|
|
25
|
+
collection: 'redirects',
|
|
26
|
+
nameField: 'source',
|
|
27
|
+
extraFields: [
|
|
28
|
+
'destination'
|
|
29
|
+
],
|
|
30
|
+
entitlementKey: 'redirectsPerHost',
|
|
31
|
+
order: 170,
|
|
32
|
+
href: (_row, { orgSlug, host })=>host ? buildRoute(Route.HOST_REDIRECTS, {
|
|
33
|
+
orgSlug,
|
|
34
|
+
host
|
|
35
|
+
}) : null
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=redirects-search-sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../libs/plugins/redirects/src/lib/model/redirects-search-sources.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\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 * http://www.apache.org/licenses/LICENSE-2.0\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 type { ConsoleSearchSource } from '@aglyn/aglyn'\nimport { buildRoute, Route } from '@aglyn/aglyn/app-utils/console-routes'\n\n/**\n * What the console's search finds among a site's redirects (AGL-3080): a\n * redirect by the path it answers or the one it sends to, opening on the\n * site's Redirects page. A redirect has no name, so its source path is what\n * a row is labeled by.\n */\nexport const REDIRECTS_SEARCH_SOURCES: readonly ConsoleSearchSource[] = [\n {\n id: 'redirects',\n group: 'Redirects',\n noun: 'redirects',\n scope: 'host',\n collection: 'redirects',\n nameField: 'source',\n extraFields: ['destination'],\n entitlementKey: 'redirectsPerHost',\n order: 170,\n href: (_row, { orgSlug, host }) =>\n host ? buildRoute(Route.HOST_REDIRECTS, { orgSlug, host }) : null,\n },\n]\n"],"names":["buildRoute","Route","REDIRECTS_SEARCH_SOURCES","id","group","noun","scope","collection","nameField","extraFields","entitlementKey","order","href","_row","orgSlug","host","HOST_REDIRECTS"],"mappings":"AAAA;;;;;;;;;;;;CAYC,GAGD,SAASA,UAAU,EAAEC,KAAK,QAAQ,wCAAuC;AAEzE;;;;;CAKC,GACD,OAAO,MAAMC,2BAA2D;IACtE;QACEC,IAAI;QACJC,OAAO;QACPC,MAAM;QACNC,OAAO;QACPC,YAAY;QACZC,WAAW;QACXC,aAAa;YAAC;SAAc;QAC5BC,gBAAgB;QAChBC,OAAO;QACPC,MAAM,CAACC,MAAM,EAAEC,OAAO,EAAEC,IAAI,EAAE,GAC5BA,OAAOf,WAAWC,MAAMe,cAAc,EAAE;gBAAEF;gBAASC;YAAK,KAAK;IACjE;CACD,CAAA"}
|
package/src/lib/plugin.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { mdiSignDirection } from "@aglyn/shared-data-mdi";
|
|
18
18
|
import { lazy } from "react";
|
|
19
19
|
import { BUNDLE_ID } from "./constants/bundle-common.js";
|
|
20
|
+
import { REDIRECTS_SEARCH_SOURCES } from "./model/redirects-search-sources.js";
|
|
20
21
|
/** Code-split: the Redirects console page only loads when opened. */ const RedirectsConsolePage = lazy(()=>import("./components/redirects-console-page.js"));
|
|
21
22
|
/**
|
|
22
23
|
* Redirects feature plugin (AGL-395). Console-only — redirects render on
|
|
@@ -29,6 +30,7 @@ import { BUNDLE_ID } from "./constants/bundle-common.js";
|
|
|
29
30
|
pluginId: BUNDLE_ID,
|
|
30
31
|
displayName: 'Redirects',
|
|
31
32
|
featureFlag: 'redirects',
|
|
33
|
+
searchSources: REDIRECTS_SEARCH_SOURCES,
|
|
32
34
|
navItems: [
|
|
33
35
|
{
|
|
34
36
|
label: 'Redirects',
|
package/src/lib/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/plugins/redirects/src/lib/plugin.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 * as Aglyn from '@aglyn/aglyn'\nimport { mdiSignDirection } from '@aglyn/shared-data-mdi'\nimport { lazy } from 'react'\nimport { BUNDLE_ID } from './constants/bundle-common'\n\n/** Code-split: the Redirects console page only loads when opened. */\nconst RedirectsConsolePage = lazy(\n () => import('./components/redirects-console-page'),\n)\n\n/**\n * Redirects feature plugin (AGL-395). Console-only — redirects render on\n * published sites through server enforcement (ISR), not a canvas component,\n * so there is no UI bundle to register in the tenant/besigner. The console\n * half declares the Redirects nav + page through the ConsoleExtension\n * registry, gated by the `redirects` entitlement.\n */\nexport function registerRedirectsConsole(): void {\n Aglyn.registerConsoleExtension({\n pluginId: BUNDLE_ID,\n displayName: 'Redirects',\n featureFlag: 'redirects',\n navItems: [\n {\n label: 'Redirects',\n href: '/redirects',\n // Reuse the existing release-flag nav-tab so staff-preview gating is\n // unchanged now that the tab comes from the plugin (AGL-395).\n navTabId: 'nav-tab-redirects',\n icon: { path: mdiSignDirection.path },\n header: {\n title: 'Redirects',\n icon: { path: mdiSignDirection.path },\n docsTopic: 'redirects',\n },\n Component: RedirectsConsolePage,\n },\n ],\n })\n}\n"],"names":["Aglyn","mdiSignDirection","lazy","BUNDLE_ID","RedirectsConsolePage","registerRedirectsConsole","registerConsoleExtension","pluginId","displayName","featureFlag","navItems","label","href","navTabId","icon","path","header","title","docsTopic","Component"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,YAAYA,WAAW,eAAc;AACrC,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,SAASC,IAAI,QAAQ,QAAO;AAC5B,SAASC,SAAS,QAAQ,+BAA2B;
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/plugins/redirects/src/lib/plugin.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 * as Aglyn from '@aglyn/aglyn'\nimport { mdiSignDirection } from '@aglyn/shared-data-mdi'\nimport { lazy } from 'react'\nimport { BUNDLE_ID } from './constants/bundle-common'\nimport { REDIRECTS_SEARCH_SOURCES } from './model/redirects-search-sources'\n\n/** Code-split: the Redirects console page only loads when opened. */\nconst RedirectsConsolePage = lazy(\n () => import('./components/redirects-console-page'),\n)\n\n/**\n * Redirects feature plugin (AGL-395). Console-only — redirects render on\n * published sites through server enforcement (ISR), not a canvas component,\n * so there is no UI bundle to register in the tenant/besigner. The console\n * half declares the Redirects nav + page through the ConsoleExtension\n * registry, gated by the `redirects` entitlement.\n */\nexport function registerRedirectsConsole(): void {\n Aglyn.registerConsoleExtension({\n pluginId: BUNDLE_ID,\n displayName: 'Redirects',\n featureFlag: 'redirects',\n searchSources: REDIRECTS_SEARCH_SOURCES,\n navItems: [\n {\n label: 'Redirects',\n href: '/redirects',\n // Reuse the existing release-flag nav-tab so staff-preview gating is\n // unchanged now that the tab comes from the plugin (AGL-395).\n navTabId: 'nav-tab-redirects',\n icon: { path: mdiSignDirection.path },\n header: {\n title: 'Redirects',\n icon: { path: mdiSignDirection.path },\n docsTopic: 'redirects',\n },\n Component: RedirectsConsolePage,\n },\n ],\n })\n}\n"],"names":["Aglyn","mdiSignDirection","lazy","BUNDLE_ID","REDIRECTS_SEARCH_SOURCES","RedirectsConsolePage","registerRedirectsConsole","registerConsoleExtension","pluginId","displayName","featureFlag","searchSources","navItems","label","href","navTabId","icon","path","header","title","docsTopic","Component"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,YAAYA,WAAW,eAAc;AACrC,SAASC,gBAAgB,QAAQ,yBAAwB;AACzD,SAASC,IAAI,QAAQ,QAAO;AAC5B,SAASC,SAAS,QAAQ,+BAA2B;AACrD,SAASC,wBAAwB,QAAQ,sCAAkC;AAE3E,mEAAmE,GACnE,MAAMC,uBAAuBH,KAC3B,IAAM,MAAM,CAAC;AAGf;;;;;;CAMC,GACD,OAAO,SAASI;IACdN,MAAMO,wBAAwB,CAAC;QAC7BC,UAAUL;QACVM,aAAa;QACbC,aAAa;QACbC,eAAeP;QACfQ,UAAU;YACR;gBACEC,OAAO;gBACPC,MAAM;gBACN,qEAAqE;gBACrE,8DAA8D;gBAC9DC,UAAU;gBACVC,MAAM;oBAAEC,MAAMhB,iBAAiBgB,IAAI;gBAAC;gBACpCC,QAAQ;oBACNC,OAAO;oBACPH,MAAM;wBAAEC,MAAMhB,iBAAiBgB,IAAI;oBAAC;oBACpCG,WAAW;gBACb;gBACAC,WAAWhB;YACb;SACD;IACH;AACF"}
|