@fibery/url-utils 2.2.5 → 2.2.6

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/index.ts CHANGED
@@ -8,8 +8,6 @@ export const appendQueryFlag = (url: string, key: string) => {
8
8
  return [`${location}${prefix}${key}`, ...hash].join("#");
9
9
  };
10
10
 
11
- export {makePath} from "./make-path";
12
-
13
11
  export const appendQueryParameter = (url: string, key: string, value: string | null) => {
14
12
  if (!value) {
15
13
  return url;
package/lib/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export declare const appendQueryFlag: (url: string, key: string) => string;
2
- export { makePath } from "./make-path";
3
2
  export declare const appendQueryParameter: (url: string, key: string, value: string | null) => string;
4
3
  export declare const getFlagValue: (flag: string) => string | null;
5
4
  export declare const getSharingKey: () => string | null;
@@ -34,3 +33,4 @@ export declare const createPureFiberyEntityUrlMatcher: ({ ownHost }: {
34
33
  };
35
34
  context?: Context;
36
35
  };
36
+ export {};
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createPureFiberyEntityUrlMatcher = exports.getRelativeUrlFromAbsolute = exports.isPublicUrlInPrivateMode = exports.isRelativeUrl = exports.isPublicAccessMode = exports.isPublicForm = exports.isPublicSpaceMode = exports.isSharingMode = exports.getRefURL = exports.signedFileUrl = exports.appendIsPublicParam = exports.appendSharingKey = exports.getSharingKey = exports.getFlagValue = exports.appendQueryParameter = exports.makePath = exports.appendQueryFlag = void 0;
3
+ exports.createPureFiberyEntityUrlMatcher = exports.getRelativeUrlFromAbsolute = exports.isPublicUrlInPrivateMode = exports.isRelativeUrl = exports.isPublicAccessMode = exports.isPublicForm = exports.isPublicSpaceMode = exports.isSharingMode = exports.getRefURL = exports.signedFileUrl = exports.appendIsPublicParam = exports.appendSharingKey = exports.getSharingKey = exports.getFlagValue = exports.appendQueryParameter = exports.appendQueryFlag = void 0;
4
4
  const url_constants_1 = require("./url-constants");
5
5
  const parse_page_location_1 = require("./parse-page-location");
6
6
  const locator_utils_1 = require("./locator-utils");
@@ -10,8 +10,6 @@ const appendQueryFlag = (url, key) => {
10
10
  return [`${location}${prefix}${key}`, ...hash].join("#");
11
11
  };
12
12
  exports.appendQueryFlag = appendQueryFlag;
13
- var make_path_1 = require("./make-path");
14
- Object.defineProperty(exports, "makePath", { enumerable: true, get: function () { return make_path_1.makePath; } });
15
13
  const appendQueryParameter = (url, key, value) => {
16
14
  if (!value) {
17
15
  return url;
package/lib/routes.js CHANGED
@@ -155,8 +155,6 @@ exports.ORDERED_COMMON_AUX_ROUTES = [
155
155
  [":aux/app-export", `app-export/:auxAppNamespace/share`],
156
156
  [":aux/install-integration-app", `app-sync/:auxAppNamespace`],
157
157
  [":aux/users-invite", `invite-users`],
158
- [":aux/upgrade-to-plan", `upgrade/:auxPlanId`],
159
- [":aux/update-payment-info", `update-payment-info`],
160
158
  [":aux/share-workspace", "share-workspace"],
161
159
  [":aux/ai-create-space", "ai-create-space"],
162
160
  [":aux/ai-create-view", "ai-create-view/:appNamespace"],
@@ -1,9 +1,12 @@
1
- type UiSettings = {
1
+ type WorkspaceSettings = {
2
2
  display_name: string | null;
3
3
  logo?: string | null;
4
+ publicSharing?: {
5
+ disabled: boolean;
6
+ } | null;
4
7
  };
5
8
  export type Workspace = {
6
- ui_settings: UiSettings | null;
9
+ ui_settings: WorkspaceSettings | null;
7
10
  name: string;
8
11
  };
9
12
  export declare function getWorkspaceTitle(workspace: Workspace): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/url-utils",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "main": "lib/index.js",
5
5
  "browser": "index.ts",
6
6
  "files": [
@@ -8,46 +8,36 @@
8
8
  ],
9
9
  "exports": {
10
10
  ".": "./lib/index.js",
11
- "./parse-page-location": "./lib/parse-page-location.js",
12
- "./routes": "./lib/routes.js",
13
- "./locator-utils": "./lib/locator-utils.js",
14
- "./url-constants": "./lib/url-constants.js",
15
- "./workspaces": "./lib/workspaces.js",
16
- "./make-path": "./make-path.js"
11
+ "./*": "./lib/*.js"
17
12
  },
18
13
  "fiberyDevExports": {
19
14
  ".": "./index.ts",
20
- "./parse-page-location": "./parse-page-location.ts",
21
- "./routes": "./routes.ts",
22
- "./locator-utils": "./locator-utils.ts",
23
- "./url-constants": "./url-constants.ts",
24
- "./workspaces": "./workspaces.ts",
25
- "./make-path": "./make-path.ts"
15
+ "./*": "./*.ts"
26
16
  },
27
17
  "dependencies": {
28
18
  "path-to-regexp": "3.0.0"
29
19
  },
30
20
  "devDependencies": {
31
- "@types/jest": "27.0.1",
21
+ "@types/jest": "30.0.0",
32
22
  "@types/lodash": "4.14.172",
33
- "@types/node": "18.11.17",
23
+ "@types/node": "24.10.1",
34
24
  "@types/react-router-dom": "5.3.2",
35
25
  "@typescript-eslint/eslint-plugin": "6.10.0",
36
26
  "@typescript-eslint/parser": "6.10.0",
37
27
  "eslint": "8.53.0",
38
28
  "eslint-plugin-unicorn": "46.0.0",
39
- "jest": "27.5.1",
40
- "jest-circus": "27.5.1",
41
- "jest-junit": "13.0.0",
29
+ "jest": "30.2.0",
30
+ "jest-circus": "30.2.0",
31
+ "jest-junit": "16.0.0",
42
32
  "lodash": "4.17.21",
43
33
  "react": "18.2.0",
44
34
  "react-router-dom": "5.3.0",
45
- "typescript": "5.8.3",
46
- "@fibery/babel-preset": "7.4.0",
47
- "@fibery/eslint-config": "8.6.1"
35
+ "typescript": "5.9.3",
36
+ "@fibery/babel-preset": "7.4.1",
37
+ "@fibery/eslint-config": "8.6.2"
48
38
  },
49
39
  "peerDependencies": {
50
- "lodash": "^4.17.21",
40
+ "lodash": "4.17.21",
51
41
  "react-router-dom": "^5.3.0"
52
42
  },
53
43
  "scripts": {