@fibery/url-utils 2.2.6 → 2.3.1

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.
@@ -1,71 +1,66 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseScrollLocatorValue = exports.createAnchorScrollLocatorValue = exports.makeLocator = exports.parseScrollLocator = exports.parseLocator = exports.escapeRegExpChar = void 0;
4
- const diactrics_1 = require("./diactrics");
5
- const urlAllowedChars = [`$`, `-`, `_`, `.`, `+`, `!`, `*`, `'`, `(`, `)`, `,`];
1
+ import { replaceDiactrics } from "./diactrics.js";
2
+ //#region src/locator-utils.ts
3
+ const urlAllowedChars = [
4
+ `$`,
5
+ `-`,
6
+ `_`,
7
+ `.`,
8
+ `+`,
9
+ `!`,
10
+ `*`,
11
+ `'`,
12
+ `(`,
13
+ `)`,
14
+ `,`
15
+ ];
6
16
  const escapeRegExpChar = (x) => `\\${x}`;
7
- exports.escapeRegExpChar = escapeRegExpChar;
8
- const urlAllowedCharsPatternGroup = `a-zA-Z0-9${urlAllowedChars.map(exports.escapeRegExpChar).join("")}`;
17
+ const urlAllowedCharsPatternGroup = `a-zA-Z0-9${urlAllowedChars.map(escapeRegExpChar).join("")}`;
9
18
  const nonUrlChars = new RegExp(`[^${urlAllowedCharsPatternGroup}]+`, "g");
10
19
  const threeNonUrlChars = new RegExp(`[^${urlAllowedCharsPatternGroup}]{3}`);
11
20
  const parseLocator = (locator) => {
12
- const lastDashIndex = locator.lastIndexOf("-");
13
- if (lastDashIndex === -1) {
14
- return { publicId: locator || null, title: null };
15
- }
16
- const publicId = locator.slice(lastDashIndex + 1);
17
- const title = locator.slice(0, lastDashIndex).replace(/-/g, " ");
18
- return { publicId, title };
21
+ const lastDashIndex = locator.lastIndexOf("-");
22
+ if (lastDashIndex === -1) return {
23
+ publicId: locator || null,
24
+ title: null
25
+ };
26
+ return {
27
+ publicId: locator.slice(lastDashIndex + 1),
28
+ title: locator.slice(0, lastDashIndex).replace(/-/g, " ")
29
+ };
19
30
  };
20
- exports.parseLocator = parseLocator;
21
31
  const TITLE_MAX_LENGTH = 100;
22
32
  const normalizeLocatorTitle = (title, maxLength = TITLE_MAX_LENGTH) => {
23
- const normalizedTitle = (0, diactrics_1.replaceDiactrics)(title.trim());
24
- const titleWithoutSpaces = normalizedTitle.split(" ").filter(Boolean).join("-");
25
- return titleWithoutSpaces.match(threeNonUrlChars)
26
- ? ""
27
- : normalizedTitle.replace(nonUrlChars, " ").trim().replace(/\s+/g, "-").substr(0, maxLength).replace(/-+$/, "");
33
+ const normalizedTitle = replaceDiactrics(title.trim());
34
+ return normalizedTitle.split(" ").filter(Boolean).join("-").match(threeNonUrlChars) ? "" : normalizedTitle.replace(nonUrlChars, " ").trim().replace(/\s+/g, "-").substr(0, maxLength).replace(/-+$/, "");
28
35
  };
29
36
  const parseScrollLocator = (locator) => {
30
- const defaultResult = {
31
- field: null,
32
- };
33
- if (locator) {
34
- const searchParams = new URLSearchParams(locator);
35
- const entries = [...searchParams.entries()].map(([key, value]) => {
36
- return [key, (0, exports.parseScrollLocatorValue)(key, value)];
37
- });
38
- return {
39
- ...defaultResult,
40
- ...Object.fromEntries(entries),
41
- };
42
- }
43
- return defaultResult;
37
+ const defaultResult = { field: null };
38
+ if (locator) {
39
+ const entries = [...new URLSearchParams(locator).entries()].map(([key, value]) => {
40
+ return [key, parseScrollLocatorValue(key, value)];
41
+ });
42
+ return {
43
+ ...defaultResult,
44
+ ...Object.fromEntries(entries)
45
+ };
46
+ }
47
+ return defaultResult;
44
48
  };
45
- exports.parseScrollLocator = parseScrollLocator;
46
49
  const makeLocator = ({ publicId, title }) => {
47
- if (!publicId) {
48
- throw new Error("publicId is required");
49
- }
50
- const titleToUse = normalizeLocatorTitle(title || "");
51
- return [titleToUse, publicId].filter(Boolean).join("-");
50
+ if (!publicId) throw new Error("publicId is required");
51
+ return [normalizeLocatorTitle(title || ""), publicId].filter(Boolean).join("-");
52
52
  };
53
- exports.makeLocator = makeLocator;
54
53
  const anchorScrollLocatorDelimiter = "--";
55
54
  const createAnchorScrollLocatorValue = (params) => {
56
- const { id, text } = params;
57
- const title = normalizeLocatorTitle(text || "", 40)
58
- .split(anchorScrollLocatorDelimiter)
59
- .filter(Boolean)
60
- .join("-");
61
- return [title, id].filter(Boolean).join(anchorScrollLocatorDelimiter);
55
+ const { id, text } = params;
56
+ return [normalizeLocatorTitle(text || "", 40).split(anchorScrollLocatorDelimiter).filter(Boolean).join("-"), id].filter(Boolean).join(anchorScrollLocatorDelimiter);
62
57
  };
63
- exports.createAnchorScrollLocatorValue = createAnchorScrollLocatorValue;
64
58
  const parseScrollLocatorValue = (key, originalValue) => {
65
- if (key === "anchor") {
66
- const [anchorId] = originalValue.split(anchorScrollLocatorDelimiter).reverse();
67
- return anchorId;
68
- }
69
- return originalValue;
59
+ if (key === "anchor") {
60
+ const [anchorId] = originalValue.split(anchorScrollLocatorDelimiter).reverse();
61
+ return anchorId;
62
+ }
63
+ return originalValue;
70
64
  };
71
- exports.parseScrollLocatorValue = parseScrollLocatorValue;
65
+ //#endregion
66
+ export { createAnchorScrollLocatorValue, escapeRegExpChar, makeLocator, parseLocator, parseScrollLocator, parseScrollLocatorValue };
@@ -1 +1,4 @@
1
- export declare function makePath(route?: string | void, params?: Record<string, unknown> | null | void): string;
1
+ //#region src/make-path.d.ts
2
+ declare function makePath(route?: string, params?: Record<string, unknown>): string;
3
+ //#endregion
4
+ export { makePath };
package/lib/make-path.js CHANGED
@@ -1,42 +1,36 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.makePath = makePath;
7
- const lodash_1 = __importDefault(require("lodash"));
8
- const path_to_regexp_1 = __importDefault(require("path-to-regexp"));
9
- const routes_1 = require("./routes");
10
- const index_1 = require("./index");
11
- const url_constants_1 = require("./url-constants");
1
+ import { publicUrlPrefix } from "./url-constants.js";
2
+ import { AUX_ROUTES_PATTERNS, ROUTES_WITH_PRESERVED_UNDERSCORES_PATTERNS_LOOKUP } from "./routes.js";
3
+ import { isPublicSpaceMode } from "./index.js";
4
+ import flow from "lodash/flow.js";
5
+ import memoize from "lodash/memoize.js";
6
+ import pathToRegExp from "path-to-regexp";
7
+ //#region src/make-path.ts
12
8
  const throwError = (message) => {
13
- throw new Error(message);
9
+ throw new Error(message);
14
10
  };
15
- const memoizedCompile = lodash_1.default.memoize(path_to_regexp_1.default.compile);
16
- // History lesson: at some point we've encoded space with "–" and then decided to use "_"
17
- // Need to support both old URLs and new ones
11
+ const memoizedCompile = memoize(pathToRegExp.compile, (route) => route);
18
12
  const encodeSpacesWithDashes = (str = "") => str.replace(/ /g, "–");
19
13
  const encodeSpacesWithUnderscores = (str = "") => str.replace(/ /g, "_");
20
14
  const makeEncodeURIComponentPretty = (spacesEncoder) => {
21
- return (str) => {
22
- return lodash_1.default.flow([
23
- spacesEncoder,
24
- encodeURI,
25
- // old encodePretty implementation from prev version of path-to-regexp
26
- (encodedStr) => encodedStr.replace(/[/?#]/g, function (c) {
27
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
28
- }),
29
- ])(str);
30
- };
15
+ return (str) => {
16
+ return flow([
17
+ spacesEncoder,
18
+ encodeURI,
19
+ (encodedStr) => encodedStr.replace(/[/?#]/g, function(c) {
20
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
21
+ })
22
+ ])(str);
23
+ };
31
24
  };
32
25
  const makeEncodeURIComponentPrettyUnderscores = makeEncodeURIComponentPretty(encodeSpacesWithUnderscores);
33
26
  const makeEncodeURIComponentPrettyDashes = makeEncodeURIComponentPretty(encodeSpacesWithDashes);
34
- const shouldAddPublicPrefix = (route) => {
35
- return !routes_1.AUX_ROUTES_PATTERNS.includes(route) && !route.startsWith(url_constants_1.formsUrlPrefix);
27
+ const publicPrefixMaybe = (route) => {
28
+ if (isPublicSpaceMode && !AUX_ROUTES_PATTERNS.includes(route) && !route.startsWith("/@public/forms")) return `${publicUrlPrefix}${route}`;
29
+ return route;
36
30
  };
37
31
  function makePath(route = throwError("route arg is missing"), params = throwError("params arg is missing")) {
38
- const encodeFn = routes_1.ROUTES_WITH_PRESERVED_UNDERSCORES_PATTERNS_LOOKUP[route]
39
- ? makeEncodeURIComponentPrettyDashes
40
- : makeEncodeURIComponentPrettyUnderscores;
41
- return memoizedCompile((index_1.isPublicSpaceMode && shouldAddPublicPrefix(route) ? `${url_constants_1.publicUrlPrefix}${route}` : route))(params, { encode: encodeFn });
32
+ const encodeFn = ROUTES_WITH_PRESERVED_UNDERSCORES_PATTERNS_LOOKUP[route] ? makeEncodeURIComponentPrettyDashes : makeEncodeURIComponentPrettyUnderscores;
33
+ return memoizedCompile(publicPrefixMaybe(route))(params, { encode: encodeFn });
42
34
  }
35
+ //#endregion
36
+ export { makePath };
@@ -1,16 +1,19 @@
1
- export type PageMatch<P, PARAMS> = {
2
- page: P;
3
- params: PARAMS;
4
- isFavorite: boolean;
5
- matchedPath: string | null;
1
+ //#region src/parse-page-location.d.ts
2
+ type PageMatch<P, PARAMS> = {
3
+ page: P;
4
+ params: PARAMS;
5
+ isFavorite: boolean;
6
+ matchedPath: string | null;
6
7
  };
7
- export declare function safeDecodeURIComponent(maybeEncodedPath: string): string;
8
- export declare function findPageMatch(maybeEncodedPath: string): PageMatch<string, Record<string, unknown>> | null;
9
- export type AuxMatch<AUX, PARAMS> = {
10
- aux: AUX;
11
- params: PARAMS;
12
- pageAppNamespace: string;
8
+ declare function safeDecodeURIComponent(maybeEncodedPath: string): string;
9
+ declare function findPageMatch(maybeEncodedPath: string): PageMatch<string, Record<string, unknown>> | null;
10
+ type AuxMatch<AUX, PARAMS> = {
11
+ aux: AUX;
12
+ params: PARAMS;
13
+ pageAppNamespace: string;
13
14
  };
14
- export declare function findAuxMatch(path: string, pageAppNamespace: string): AuxMatch<string, Record<string, unknown>> | null;
15
- export declare function getPageMatch(pathname: string): null | PageMatch<string, Record<string, unknown>>;
16
- export declare function getAuxMatch(hash: string | null | undefined, implicitAppNamespace: string): AuxMatch<string, Record<string, unknown>> | null;
15
+ declare function findAuxMatch(path: string, pageAppNamespace: string): AuxMatch<string, Record<string, unknown>> | null;
16
+ declare function getPageMatch(pathname: string): null | PageMatch<string, Record<string, unknown>>;
17
+ declare function getAuxMatch(hash: string | null | undefined, implicitAppNamespace: string): AuxMatch<string, Record<string, unknown>> | null;
18
+ //#endregion
19
+ export { AuxMatch, PageMatch, findAuxMatch, findPageMatch, getAuxMatch, getPageMatch, safeDecodeURIComponent };
@@ -1,78 +1,80 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.safeDecodeURIComponent = safeDecodeURIComponent;
4
- exports.findPageMatch = findPageMatch;
5
- exports.findAuxMatch = findAuxMatch;
6
- exports.getPageMatch = getPageMatch;
7
- exports.getAuxMatch = getAuxMatch;
8
- const react_router_dom_1 = require("react-router-dom");
9
- const routes_1 = require("./routes");
10
- // History lesson: at some point we've encoded space with "–" and then decided to use "_"
11
- // Need to support both old URLs and new ones
1
+ import { ORDERED_AUX_ROUTES, ORDERED_PAGE_ROUTES, ROUTES_WITH_PRESERVED_UNDERSCORES_LOOKUP } from "./routes.js";
2
+ import { matchPath } from "react-router-dom";
3
+ //#region src/parse-page-location.ts
12
4
  const decodeDashesToSpaces = (str = "") => str.replace(/–/g, " ");
13
5
  const decodeUnderscoresToSpaces = (str = "") => str.replace(/_/g, " ");
14
6
  const isTest = process.env.NODE_ENV === "test";
15
7
  function notEmpty(value) {
16
- return value !== null && value !== undefined;
8
+ return value !== null && value !== void 0;
17
9
  }
18
10
  const findTruthy = (items, transform) => {
19
- const results = items.map(transform).filter(notEmpty);
20
- if (isTest && results.length > 1) {
21
- throw new Error(`Found more than one route: ` + JSON.stringify(results, null, 2));
22
- }
23
- return results[0] || null;
11
+ const results = items.map(transform).filter(notEmpty);
12
+ if (isTest && results.length > 1) throw new Error(`Found more than one route: ` + JSON.stringify(results, null, 2));
13
+ return results[0] || null;
24
14
  };
25
15
  function safeDecodeURIComponent(maybeEncodedPath) {
26
- let path = maybeEncodedPath;
27
- try {
28
- path = decodeURIComponent(maybeEncodedPath);
29
- }
30
- catch (e) {
31
- // we don't care, expected to fail in case already decoded path was provided, but includes %, e.g. '% Done'
32
- // all react-router code (useLocation, usePageMatch) provides already decoded value
33
- // but we also sometimes make path manually using makePath (which is encoded) and then trying to findPageMatch which provides wrong results
34
- }
35
- return path;
16
+ let path = maybeEncodedPath;
17
+ try {
18
+ path = decodeURIComponent(maybeEncodedPath);
19
+ } catch {}
20
+ return path;
36
21
  }
37
- // As it is written right now doesn't work with enums (Object Editor in fullscreen)
38
22
  function findPageMatch(maybeEncodedPath) {
39
- const path = safeDecodeURIComponent(maybeEncodedPath);
40
- const processedPath = decodeUnderscoresToSpaces(decodeDashesToSpaces(path));
41
- return findTruthy(routes_1.ORDERED_PAGE_ROUTES, ([page, route]) => {
42
- const match = (0, react_router_dom_1.matchPath)(processedPath, { path: route, exact: true });
43
- return match ? { page, params: match.params, isFavorite: false, matchedPath: match.path } : null;
44
- });
23
+ const path = safeDecodeURIComponent(maybeEncodedPath);
24
+ const processedPath = decodeUnderscoresToSpaces(decodeDashesToSpaces(path));
25
+ return findTruthy(ORDERED_PAGE_ROUTES, ([page, route]) => {
26
+ const match = matchPath(processedPath, {
27
+ path: route,
28
+ exact: true
29
+ });
30
+ return match ? {
31
+ page,
32
+ params: match.params,
33
+ isFavorite: false,
34
+ matchedPath: match.path
35
+ } : null;
36
+ });
45
37
  }
46
38
  function findAuxMatch(path, pageAppNamespace) {
47
- const decodedPath = decodeDashesToSpaces(path);
48
- return findTruthy(routes_1.ORDERED_AUX_ROUTES, ([aux, route]) => {
49
- const match = (0, react_router_dom_1.matchPath)(decodedPath, { path: route, exact: true });
50
- if (!match) {
51
- return null;
52
- }
53
- if (routes_1.ROUTES_WITH_PRESERVED_UNDERSCORES_LOOKUP[aux]) {
54
- return { aux, params: match.params, pageAppNamespace };
55
- }
56
- const nonEnumRouteMatch = (0, react_router_dom_1.matchPath)(decodeUnderscoresToSpaces(decodedPath), { path: route, exact: true });
57
- return { aux, params: nonEnumRouteMatch?.params ?? {}, pageAppNamespace };
58
- });
39
+ const decodedPath = decodeDashesToSpaces(path);
40
+ return findTruthy(ORDERED_AUX_ROUTES, ([aux, route]) => {
41
+ const match = matchPath(decodedPath, {
42
+ path: route,
43
+ exact: true
44
+ });
45
+ if (!match) return null;
46
+ if (ROUTES_WITH_PRESERVED_UNDERSCORES_LOOKUP[aux]) return {
47
+ aux,
48
+ params: match.params,
49
+ pageAppNamespace
50
+ };
51
+ return {
52
+ aux,
53
+ params: matchPath(decodeUnderscoresToSpaces(decodedPath), {
54
+ path: route,
55
+ exact: true
56
+ })?.params ?? {},
57
+ pageAppNamespace
58
+ };
59
+ });
59
60
  }
60
61
  function getPageMatch(pathname) {
61
- const pageMatch = findPageMatch(pathname);
62
- if (pageMatch === null) {
63
- return null;
64
- }
65
- if (pageMatch.page === ":page/favorite") {
66
- const partsPageMatch = findPageMatch(`/${pageMatch.params.parts}`);
67
- if (partsPageMatch === null) {
68
- return null;
69
- }
70
- return { ...partsPageMatch, isFavorite: true };
71
- }
72
- else {
73
- return { ...pageMatch, isFavorite: false };
74
- }
62
+ const pageMatch = findPageMatch(pathname);
63
+ if (pageMatch === null) return null;
64
+ if (pageMatch.page === ":page/favorite") {
65
+ const partsPageMatch = findPageMatch(`/${pageMatch.params.parts}`);
66
+ if (partsPageMatch === null) return null;
67
+ return {
68
+ ...partsPageMatch,
69
+ isFavorite: true
70
+ };
71
+ } else return {
72
+ ...pageMatch,
73
+ isFavorite: false
74
+ };
75
75
  }
76
76
  function getAuxMatch(hash, implicitAppNamespace) {
77
- return hash ? findAuxMatch(decodeURIComponent(hash.slice(1)), implicitAppNamespace) : null;
77
+ return hash ? findAuxMatch(decodeURIComponent(hash.slice(1)), implicitAppNamespace) : null;
78
78
  }
79
+ //#endregion
80
+ export { findAuxMatch, findPageMatch, getAuxMatch, getPageMatch, safeDecodeURIComponent };
package/lib/routes.d.ts CHANGED
@@ -1,34 +1,38 @@
1
- import _ from "lodash";
2
- export declare const appIndexViewLocator = "views";
3
- export declare const userAccessViewLocator = "access";
4
- export declare const specificObjectViewsCatalogViewLocator = "views";
5
- export declare const deprecatedSpecificObjectEditorViewLocator = "edit";
6
- export declare const specificObjectUnknownObjectLocator = "any";
7
- export declare const specificObjectEditorViewLocator: null;
8
- export declare const appTypeModePage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace";
9
- export declare const appTypeModeSubPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage";
10
- export declare const appTypeModeAutomationBasePage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:automationType/:automationItemId";
11
- export declare const appTypeModeAccessTemplatePage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/access-templates/:accessTemplateId";
12
- export declare const appTypeModeAutomationSpecificPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:automationType/:automationItemId/:automationMode";
13
- export declare const appTypeModeFieldEditPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:fieldTitle/edit";
14
- export declare const appTypeModeGroupEditPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:typeId/members";
15
- export declare const appModePage = "/fibery/space/:appNamespace/:mode";
16
- export declare const appTypeModePageView: string;
17
- export declare const formsPublicPage = "/@public/forms/:formKey";
18
- export declare const highlightTypePage = "/fibery/settings/:subsection(highlights)/:typeWithoutNamespace";
19
- export declare const highlightTypeFieldEditPage = "/fibery/settings/:subsection(highlights)/:typeWithoutNamespace/fields/:fieldWithoutNamespace/edit";
20
- export declare const integrationSettingPage = "/fibery/settings/:subsection(integrations)/:templateId";
21
- export declare const personalIntegrationSettingPage = "/fibery/settings/:subsection(personal-integrations)/:integrationId";
22
- export declare const isSettingsPage: (page?: string) => boolean;
23
- export declare const ORDERED_PAGE_ROUTES: Array<[string, string]>;
24
- export declare const PAGE_ROUTES: _.Dictionary<string>;
25
- export declare const ORDERED_COMMON_AUX_ROUTES: Array<[string, string]>;
26
- export declare const ORDERED_AUX_ROUTES: Array<[string, string]>;
27
- export declare const AUX_ROUTES: _.Dictionary<string>;
28
- export declare const AUX_ROUTES_PATTERNS: string[];
29
- export declare const ROUTES_WITH_PRESERVED_UNDERSCORES_LOOKUP: {
30
- [k: string]: boolean;
1
+ //#region src/routes.d.ts
2
+ declare const appIndexViewLocator = "views";
3
+ declare const userAccessViewLocator = "access";
4
+ declare const specificObjectViewsCatalogViewLocator = "views";
5
+ declare const deprecatedSpecificObjectEditorViewLocator = "edit";
6
+ declare const specificObjectUnknownObjectLocator = "any";
7
+ declare const specificObjectEditorViewLocator: null;
8
+ declare const appTypeModePage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace";
9
+ declare const appTypeModeSubPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage";
10
+ declare const appTypeModeAutomationBasePage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:automationType/:automationItemId";
11
+ declare const appTypeModeAccessTemplatePage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/access-templates/:accessTemplateId";
12
+ declare const appTypeModeFormPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/form/:formId";
13
+ declare const appTypeModeAutomationSpecificPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:automationType/:automationItemId/:automationMode";
14
+ declare const appTypeModeFieldEditPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:fieldTitle/edit";
15
+ declare const appTypeModeGroupEditPage = "/fibery/space/:appNamespace/:mode/:typeWithoutNamespace/:subPage/:typeId/members";
16
+ declare const appModePage = "/fibery/space/:appNamespace/:mode";
17
+ declare const appTypeModePageView: string;
18
+ declare const formsPublicPage = "/@public/forms/:formKey";
19
+ declare const highlightTypePage = "/fibery/settings/:subsection(highlights)/:typeWithoutNamespace";
20
+ declare const highlightTypeFieldEditPage = "/fibery/settings/:subsection(highlights)/:typeWithoutNamespace/fields/:fieldWithoutNamespace/edit";
21
+ declare const integrationSettingPage = "/fibery/settings/:subsection(integrations)/:templateId";
22
+ declare const personalIntegrationSettingPage = "/fibery/settings/:subsection(personal-integrations)/:integrationId";
23
+ declare const typeAccessTemplateSettingPage = "/fibery/settings/:subsection(database-access-templates)/:templateId";
24
+ declare const isSettingsPage: (page?: string) => boolean;
25
+ declare const ORDERED_PAGE_ROUTES: Array<[string, string]>;
26
+ declare const PAGE_ROUTES: import("lodash").Dictionary<string>;
27
+ declare const ORDERED_COMMON_AUX_ROUTES: Array<[string, string]>;
28
+ declare const ORDERED_AUX_ROUTES: Array<[string, string]>;
29
+ declare const AUX_ROUTES: import("lodash").Dictionary<string>;
30
+ declare const AUX_ROUTES_PATTERNS: string[];
31
+ declare const ROUTES_WITH_PRESERVED_UNDERSCORES_LOOKUP: {
32
+ [k: string]: boolean;
31
33
  };
32
- export declare const ROUTES_WITH_PRESERVED_UNDERSCORES_PATTERNS_LOOKUP: {
33
- [k: string]: boolean;
34
+ declare const ROUTES_WITH_PRESERVED_UNDERSCORES_PATTERNS_LOOKUP: {
35
+ [k: string]: boolean;
34
36
  };
37
+ //#endregion
38
+ export { AUX_ROUTES, AUX_ROUTES_PATTERNS, ORDERED_AUX_ROUTES, ORDERED_COMMON_AUX_ROUTES, ORDERED_PAGE_ROUTES, PAGE_ROUTES, ROUTES_WITH_PRESERVED_UNDERSCORES_LOOKUP, ROUTES_WITH_PRESERVED_UNDERSCORES_PATTERNS_LOOKUP, appIndexViewLocator, appModePage, appTypeModeAccessTemplatePage, appTypeModeAutomationBasePage, appTypeModeAutomationSpecificPage, appTypeModeFieldEditPage, appTypeModeFormPage, appTypeModeGroupEditPage, appTypeModePage, appTypeModePageView, appTypeModeSubPage, deprecatedSpecificObjectEditorViewLocator, formsPublicPage, highlightTypeFieldEditPage, highlightTypePage, integrationSettingPage, isSettingsPage, personalIntegrationSettingPage, specificObjectEditorViewLocator, specificObjectUnknownObjectLocator, specificObjectViewsCatalogViewLocator, typeAccessTemplateSettingPage, userAccessViewLocator };