@overmap-ai/core 1.0.43-projects-licensing.3 → 1.0.43

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,151 +1,151 @@
1
- {
2
- "name": "@overmap-ai/core",
3
- "description": "Core functionality for Overmap",
4
- "author": "Wôrdn Inc.",
5
- "license": "UNLICENSED",
6
- "version": "1.0.43-projects-licensing.3",
7
- "type": "module",
8
- "main": "dist/overmap-core.umd.cjs",
9
- "module": "dist/overmap-core.js",
10
- "types": "dist/index.d.ts",
11
- "scripts": {
12
- "dev": "vite",
13
- "build": "tsc --noEmit && vite build",
14
- "lint": "tsc --noEmit && eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
15
- "lint:fix": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
16
- "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
17
- "preview": "vite preview",
18
- "prepare": "husky install",
19
- "storybook": "storybook dev -p 6006",
20
- "build-storybook": "storybook build",
21
- "test": "npx vitest"
22
- },
23
- "dependencies": {
24
- "@hello-pangea/dnd": "^16.5.0",
25
- "@redux-offline/redux-offline": "^2.6.0",
26
- "@reduxjs/toolkit": "^1.9.5",
27
- "color": "^4.2.3",
28
- "dependency-graph": "^1.0.0",
29
- "eslint-plugin-vitest": "^0.3.20",
30
- "feather-icons-react": "^0.7.0",
31
- "file-saver": "^2.0.5",
32
- "formik": "^2.4.5",
33
- "idb": "^7.1.1",
34
- "jwt-decode": "^3.1.2",
35
- "leaflet-draw": "^1.0.4",
36
- "leaflet.markercluster": "^1.5.3",
37
- "linkify-react": "^4.1.3",
38
- "linkifyjs": "^4.1.3",
39
- "localforage": "^1.10.0",
40
- "lodash.clonedeep": "^4.5.0",
41
- "lodash.get": "^4.4.2",
42
- "lodash.set": "^4.3.2",
43
- "react-leaflet": "^4.2.1",
44
- "react-pdf": "^8.0.2",
45
- "react-sketch-canvas": "^6.2.0",
46
- "react-spreadsheet": "^0.9.4",
47
- "redux-persist-migrate": "^5.0.0",
48
- "superagent": "^8.1.2",
49
- "uuid": "^9.0.0",
50
- "xlsx": "^0.18.5"
51
- },
52
- "devDependencies": {
53
- "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
54
- "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
55
- "@overmap-ai/blocks": "^1.0.27-alpha.0",
56
- "@rollup/plugin-commonjs": "^25.0.4",
57
- "@storybook/addon-essentials": "7.3.2",
58
- "@storybook/addon-interactions": "7.3.2",
59
- "@storybook/addon-links": "7.3.2",
60
- "@storybook/addon-onboarding": "1.0.8",
61
- "@storybook/blocks": "7.3.2",
62
- "@storybook/react": "7.3.2",
63
- "@storybook/react-vite": "7.3.2",
64
- "@storybook/testing-library": "0.2.0",
65
- "@testing-library/dom": "^9.3.4",
66
- "@testing-library/react": "^14.1.2",
67
- "@testing-library/user-event": "^14.5.2",
68
- "@types/color": "^3.0.4",
69
- "@types/file-saver": "^2.0.7",
70
- "@types/jwt-decode": "^3.1.0",
71
- "@types/leaflet": "^1.9.3",
72
- "@types/lodash.clonedeep": "^4.5.9",
73
- "@types/lodash.get": "^4.4.9",
74
- "@types/lodash.set": "^4.3.9",
75
- "@types/node": "^20.12.11",
76
- "@types/react": "^18.3.1",
77
- "@types/react-dom": "^18.2.7",
78
- "@types/react-redux": "^7.1.26",
79
- "@types/superagent": "^4.1.18",
80
- "@types/uuid": "^9.0.3",
81
- "@types/xlsx": "^0.0.36",
82
- "@typescript-eslint/eslint-plugin": "^6.4.1",
83
- "@typescript-eslint/parser": "^6.4.1",
84
- "@vitejs/plugin-react-swc": "^3.3.2",
85
- "@vitest/coverage-v8": "^1.2.1",
86
- "eslint": "^8.47.0",
87
- "eslint-config-prettier": "^9.0.0",
88
- "eslint-plugin-import": "^2.28.1",
89
- "eslint-plugin-prettier": "^5.0.0",
90
- "eslint-plugin-react": "^7.33.2",
91
- "eslint-plugin-react-hooks": "^4.6.0",
92
- "eslint-plugin-react-refresh": "^0.4.3",
93
- "eslint-plugin-simple-import-sort": "^10.0.0",
94
- "eslint-plugin-storybook": "^0.6.13",
95
- "happy-dom": "^13.3.1",
96
- "husky": "^8.0.3",
97
- "jsdom": "^23.2.0",
98
- "leaflet": "^1.9.0",
99
- "lint-staged": "^15.1.0",
100
- "prettier": "^3.0.2",
101
- "react": "^18.2.0",
102
- "react-dom": "^18.2.0",
103
- "react-hooks": "^1.0.1",
104
- "react-redux": "^8.1.2",
105
- "redux": "^4.2.1",
106
- "rollup-plugin-polyfill-node": "^0.12.0",
107
- "sass": "^1.66.1",
108
- "storybook": "7.3.2",
109
- "typescript": "^5.2.2",
110
- "vite": "^4.4.5",
111
- "vite-plugin-dts": "^3.5.2",
112
- "vite-plugin-externalize-deps": "^0.7.0",
113
- "vitest": "^1.2.1"
114
- },
115
- "peerDependencies": {
116
- "@overmap-ai/blocks": "1.0.8",
117
- "leaflet": "^1.9.0",
118
- "react": "^18.2.0",
119
- "react-dom": "^18.2.0",
120
- "react-redux": "^8.1.2"
121
- },
122
- "resolutions": {
123
- "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
124
- "strip-ansi": "6.0.1",
125
- "string-width": "4.2.2",
126
- "wrap-ansi": "7.0.0"
127
- },
128
- "lint-staged": {
129
- "src/**/*.{js,jsx,ts,tsx}": [
130
- "yarn lint",
131
- "yarn format"
132
- ]
133
- },
134
- "files": [
135
- "dist"
136
- ],
137
- "keywords": [
138
- "react",
139
- "geospacial",
140
- "map",
141
- "components"
142
- ],
143
- "homepage": "https://overmap.ai",
144
- "repository": {
145
- "type": "git",
146
- "url": "git+https://github.com/hemora-app/overmap-core.git"
147
- },
148
- "bugs": {
149
- "url": "https://github.com/hemora-app/overmap-core/issues"
150
- }
151
- }
1
+ {
2
+ "name": "@overmap-ai/core",
3
+ "description": "Core functionality for Overmap",
4
+ "author": "Wôrdn Inc.",
5
+ "license": "UNLICENSED",
6
+ "version": "1.0.43",
7
+ "type": "module",
8
+ "main": "dist/overmap-core.umd.cjs",
9
+ "module": "dist/overmap-core.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "dev": "vite",
13
+ "build": "tsc --noEmit && vite build",
14
+ "lint": "tsc --noEmit && eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
15
+ "lint:fix": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
16
+ "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
17
+ "preview": "vite preview",
18
+ "prepare": "husky install",
19
+ "storybook": "storybook dev -p 6006",
20
+ "build-storybook": "storybook build",
21
+ "test": "npx vitest"
22
+ },
23
+ "dependencies": {
24
+ "@hello-pangea/dnd": "^16.5.0",
25
+ "@redux-offline/redux-offline": "^2.6.0",
26
+ "@reduxjs/toolkit": "^1.9.5",
27
+ "color": "^4.2.3",
28
+ "dependency-graph": "^1.0.0",
29
+ "eslint-plugin-vitest": "^0.3.20",
30
+ "feather-icons-react": "^0.7.0",
31
+ "file-saver": "^2.0.5",
32
+ "formik": "^2.4.5",
33
+ "idb": "^7.1.1",
34
+ "jwt-decode": "^3.1.2",
35
+ "leaflet-draw": "^1.0.4",
36
+ "leaflet.markercluster": "^1.5.3",
37
+ "linkify-react": "^4.1.3",
38
+ "linkifyjs": "^4.1.3",
39
+ "localforage": "^1.10.0",
40
+ "lodash.clonedeep": "^4.5.0",
41
+ "lodash.get": "^4.4.2",
42
+ "lodash.set": "^4.3.2",
43
+ "react-leaflet": "^4.2.1",
44
+ "react-pdf": "^8.0.2",
45
+ "react-sketch-canvas": "^6.2.0",
46
+ "react-spreadsheet": "^0.9.4",
47
+ "redux-persist-migrate": "^5.0.0",
48
+ "superagent": "^8.1.2",
49
+ "uuid": "^9.0.0",
50
+ "xlsx": "^0.18.5"
51
+ },
52
+ "devDependencies": {
53
+ "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
54
+ "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
55
+ "@overmap-ai/blocks": "^1.0.27-alpha.0",
56
+ "@rollup/plugin-commonjs": "^25.0.4",
57
+ "@storybook/addon-essentials": "7.3.2",
58
+ "@storybook/addon-interactions": "7.3.2",
59
+ "@storybook/addon-links": "7.3.2",
60
+ "@storybook/addon-onboarding": "1.0.8",
61
+ "@storybook/blocks": "7.3.2",
62
+ "@storybook/react": "7.3.2",
63
+ "@storybook/react-vite": "7.3.2",
64
+ "@storybook/testing-library": "0.2.0",
65
+ "@testing-library/dom": "^9.3.4",
66
+ "@testing-library/react": "^14.1.2",
67
+ "@testing-library/user-event": "^14.5.2",
68
+ "@types/color": "^3.0.4",
69
+ "@types/file-saver": "^2.0.7",
70
+ "@types/jwt-decode": "^3.1.0",
71
+ "@types/leaflet": "^1.9.3",
72
+ "@types/lodash.clonedeep": "^4.5.9",
73
+ "@types/lodash.get": "^4.4.9",
74
+ "@types/lodash.set": "^4.3.9",
75
+ "@types/node": "^20.12.11",
76
+ "@types/react": "^18.3.1",
77
+ "@types/react-dom": "^18.2.7",
78
+ "@types/react-redux": "^7.1.26",
79
+ "@types/superagent": "^4.1.18",
80
+ "@types/uuid": "^9.0.3",
81
+ "@types/xlsx": "^0.0.36",
82
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
83
+ "@typescript-eslint/parser": "^6.4.1",
84
+ "@vitejs/plugin-react-swc": "^3.3.2",
85
+ "@vitest/coverage-v8": "^1.2.1",
86
+ "eslint": "^8.47.0",
87
+ "eslint-config-prettier": "^9.0.0",
88
+ "eslint-plugin-import": "^2.28.1",
89
+ "eslint-plugin-prettier": "^5.0.0",
90
+ "eslint-plugin-react": "^7.33.2",
91
+ "eslint-plugin-react-hooks": "^4.6.0",
92
+ "eslint-plugin-react-refresh": "^0.4.3",
93
+ "eslint-plugin-simple-import-sort": "^10.0.0",
94
+ "eslint-plugin-storybook": "^0.6.13",
95
+ "happy-dom": "^13.3.1",
96
+ "husky": "^8.0.3",
97
+ "jsdom": "^23.2.0",
98
+ "leaflet": "^1.9.0",
99
+ "lint-staged": "^15.1.0",
100
+ "prettier": "^3.0.2",
101
+ "react": "^18.2.0",
102
+ "react-dom": "^18.2.0",
103
+ "react-hooks": "^1.0.1",
104
+ "react-redux": "^8.1.2",
105
+ "redux": "^4.2.1",
106
+ "rollup-plugin-polyfill-node": "^0.12.0",
107
+ "sass": "^1.66.1",
108
+ "storybook": "7.3.2",
109
+ "typescript": "^5.2.2",
110
+ "vite": "^4.4.5",
111
+ "vite-plugin-dts": "^3.5.2",
112
+ "vite-plugin-externalize-deps": "^0.7.0",
113
+ "vitest": "^1.2.1"
114
+ },
115
+ "peerDependencies": {
116
+ "@overmap-ai/blocks": "1.0.8",
117
+ "leaflet": "^1.9.0",
118
+ "react": "^18.2.0",
119
+ "react-dom": "^18.2.0",
120
+ "react-redux": "^8.1.2"
121
+ },
122
+ "resolutions": {
123
+ "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
124
+ "strip-ansi": "6.0.1",
125
+ "string-width": "4.2.2",
126
+ "wrap-ansi": "7.0.0"
127
+ },
128
+ "lint-staged": {
129
+ "src/**/*.{js,jsx,ts,tsx}": [
130
+ "yarn lint",
131
+ "yarn format"
132
+ ]
133
+ },
134
+ "files": [
135
+ "dist"
136
+ ],
137
+ "keywords": [
138
+ "react",
139
+ "geospacial",
140
+ "map",
141
+ "components"
142
+ ],
143
+ "homepage": "https://overmap.ai",
144
+ "repository": {
145
+ "type": "git",
146
+ "url": "git+https://github.com/hemora-app/overmap-core.git"
147
+ },
148
+ "bugs": {
149
+ "url": "https://github.com/hemora-app/overmap-core/issues"
150
+ }
151
+ }
@@ -1,12 +0,0 @@
1
- import { BaseApiService } from "./BaseApiService.ts";
2
- import { License, Project, Transaction } from "../../typings";
3
- export declare class LicenseService extends BaseApiService {
4
- fetchLicensesForOrganization(organizationId: number, showLoading?: boolean): Promise<License[]>;
5
- getLicense(license: License): Promise<License>;
6
- pauseLicense(license: License): Promise<License>;
7
- resumeLicense(license: License): Promise<License>;
8
- cancelLicense(license: License): Promise<License>;
9
- attachLicenseToProject(license: License, project: Project): Promise<License>;
10
- detachLicenseFromProject(license: License): Promise<License>;
11
- getLatestTransaction(license: License): Promise<Transaction>;
12
- }
@@ -1,25 +0,0 @@
1
- import { License } from "../../typings/models/license.ts";
2
- import { Reducer } from "@reduxjs/toolkit";
3
- import { Selector, SelectorWithArgs } from "../../typings";
4
- export interface LicenseState {
5
- licenses: Record<string, License>;
6
- }
7
- export declare const licenseSlice: import("@reduxjs/toolkit").Slice<LicenseState, {
8
- setLicenses: (state: import("immer/dist/internal.js").WritableDraft<LicenseState>, action: {
9
- payload: License[];
10
- }) => void;
11
- addLicenses: (state: import("immer/dist/internal.js").WritableDraft<LicenseState>, action: {
12
- payload: License[];
13
- }) => void;
14
- updateLicense: (state: import("immer/dist/internal.js").WritableDraft<LicenseState>, action: {
15
- payload: License;
16
- }) => void;
17
- }, "license">;
18
- export declare const setLicenses: import("@reduxjs/toolkit").ActionCreatorWithPayload<License[], "license/setLicenses">, addLicenses: import("@reduxjs/toolkit").ActionCreatorWithPayload<License[], "license/addLicenses">, updateLicense: import("@reduxjs/toolkit").ActionCreatorWithPayload<License, "license/updateLicense">;
19
- export declare const selectLicenses: Selector<Record<string, License>>;
20
- export declare const selectLicense: SelectorWithArgs<string, License>;
21
- export declare const selectActiveLicense: Selector<License | null>;
22
- export declare const selectLicenseForProject: SelectorWithArgs<number, License | undefined>;
23
- export declare const selectActiveStatusLicenses: Selector<License[]>;
24
- export declare const selectLicensesForProjectsMapping: Selector<Record<number, License>>;
25
- export declare const licenseReducer: Reducer<LicenseState>;
@@ -1,26 +0,0 @@
1
- import { OfflineModel, OwnedByUserOrOrganization } from "./base";
2
- export declare enum PaddleCheckoutEvent {
3
- COMPLETED = "checkout.completed",
4
- CLOSED = "checkout.closed"
5
- }
6
- export declare enum LicenseLevel {
7
- PRO = 0
8
- }
9
- export declare enum LicenseStatus {
10
- ACTIVE = 0,
11
- PAUSED = 2,
12
- CANCELLED = 4,
13
- INACTIVE = 6,
14
- PAST_DUE = 8
15
- }
16
- export interface Transaction {
17
- id: string;
18
- }
19
- export interface License extends OfflineModel, OwnedByUserOrOrganization {
20
- project: number | null;
21
- level: LicenseLevel;
22
- status: LicenseStatus;
23
- is_special: boolean;
24
- is_active: boolean;
25
- next_billing_date: Date;
26
- }