jmapcloud-ng-core-types 2.0.22-qa.1 → 2.0.22-qa.10

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/all-enums.ts CHANGED
@@ -34,6 +34,7 @@ import {
34
34
  LOGIN_STATUS,
35
35
  ROLES
36
36
  } from "./enums"
37
+ import type { MEMBER_ROLES } from "./public/jmap/user.d.ts"
37
38
 
38
39
  export const ALL_TIME_UNITS: JTIME_UNITS[] = [JTIME_UNITS.SECONDS, JTIME_UNITS.MINUTES, JTIME_UNITS.HOURS, JTIME_UNITS.DAYS, JTIME_UNITS.WEEKS, JTIME_UNITS.MONTHS, JTIME_UNITS.YEARS]
39
40
 
package/ambient.d.ts CHANGED
@@ -2,10 +2,5 @@
2
2
  /// <reference path="./public/global-aliases.d.ts" />
3
3
  /// <reference path="./index.d.ts" />
4
4
 
5
- declare global {
6
- // Expose the core service on the global JMap variable.
7
- var JMap: import("./index").JCoreService
8
- }
9
-
10
5
  export * from "./index"
11
6
  export {}
package/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="./public/global-aliases.d.ts" />
2
1
  import type { JLocalDynamicFilter, JLocalDynamicFilterCreateParams, JLocalDynamicFilterUpdateParams } from "./public/jmap/dynamic-filter.d.ts"
3
2
  import { Feature, FeatureCollection, LineString, MultiLineString, Point, Polygon } from "geojson"
4
3
  import { DataSourceAttribute, JDataSource, JDataSourceType, JForm, JRelationship } from "jmapcloud-types"
@@ -7,6 +6,104 @@ import { Action, Store } from "redux"
7
6
  import { JDataSourceData, JDataSourceDataParams, JDataSourcePermissions } from "./public/jmap/datasource.ts"
8
7
  import type { JDrawEventModule, JDrawService } from "./public/jmap/draw.d.ts"
9
8
  import type { JCoreState, JMapLegendMode } from "./public/state.d.ts"
9
+ import type { JAppMessageService } from "./public/jmap/message.d.ts"
10
+ import type { JIFramePopupParams } from "./public/jmap/ui.d.ts"
11
+ import type { JId, JMainFatalErrorEventParams, JOPERATING_SYSTEMS, JSize } from "./public/jmap/main.d.ts"
12
+ import type { JSimpleSearchOptions, JSimpleSearchResult } from "./public/jmap/simple-search.d.ts"
13
+ import type {
14
+ JMAP_CONTEXT_SORT_BY_DIRECTIONS,
15
+ JMAP_CONTEXT_SORT_BY_OPTIONS,
16
+ JMapContext,
17
+ JMapContextAfterApplyEventParams,
18
+ JMapContextAfterMapDataChangeEventParams,
19
+ JMapContextBeforeApplyEventParams,
20
+ JMapContextBeforeMapDataChangeEventParams,
21
+ JMapContextEventParams,
22
+ JMapContextMetaData,
23
+ JMapContextSetActiveResult
24
+ } from "./public/jmap/map-context.d.ts"
25
+ import type {
26
+ JBasemap,
27
+ JDisplayExtentParams,
28
+ JGetRenderedFeaturesParams,
29
+ JGetSourceFeaturesParams,
30
+ JLatitudeAndZoom,
31
+ JMAP_DISTANCE_UNITS,
32
+ JMAP_POSITIONS,
33
+ JMapAttribution,
34
+ JMapEventBasemapChangedParams,
35
+ JMapEventContainerReadyParams,
36
+ JMapEventContainerResizedParams,
37
+ JMapEventFeaturesParams,
38
+ JMapEventLayerParams,
39
+ JMapEventLocationParams,
40
+ JMapEventParams,
41
+ JMapEventPitchParams,
42
+ JMapEventRotateParams,
43
+ JMapEventSelectionChangedParams,
44
+ JMapEventZoomParams,
45
+ JMapFeatureAttributeValues,
46
+ JMapFlashLocationParams,
47
+ JMapInteractor,
48
+ JMapNavigateToParams,
49
+ JMapNavigationStep,
50
+ JMapSelection,
51
+ JPanAndZoomOptions,
52
+ JProjection,
53
+ JZoomOptions
54
+ } from "./public/jmap/map.d.ts"
55
+ import type { JDateFormatParams, JDateLike, JTIME_UNITS } from "./public/jmap/date.d.ts"
56
+ import type { JBoundaryBox, JBounds, JCircle, JGEOMETRY_UNITS, JLine, JLocation, JPoint, JPolygon } from "./public/jmap/geometry.d.ts"
57
+ import type {
58
+ JFeatureEventCreateParams,
59
+ JFeatureEventDeleteParams,
60
+ JFeatureEventGeometryUpdateParams,
61
+ JFeatureGeometryCreateParams,
62
+ JFeatureGeometryUpdateParams,
63
+ JFeaturePropertiesUpdateParams
64
+ } from "./public/jmap/features.d.ts"
65
+ import type { JGeocodingErrorEventParams, JGeocodingOptions, JGeocodingResult, JGeocodingSuccessEventParams } from "./public/jmap/geocoding.d.ts"
66
+ import type { JRequestConfig } from "./public/jmap/ajax.d.ts"
67
+ import type { JServerAnyIdentityProvider, JServerIdentityProviderById, JServerInfo, JServerInfoReadyEventParams, JServerVersion } from "./public/jmap/server.d.ts"
68
+ import type { JMouseOverAfterEventParams, JMouseOverBeforeEventParams, JMouseOverEventParams, JMouseOverOpenPopupForSelectionParams, JMouseOverOpenPopupParams } from "./public/jmap/mouseover.d.ts"
69
+ import type { JCoreExtension, JExtensionEventParams, JExtensionMouseOver } from "./public/jmap/extension.d.ts"
70
+ import type { JProject, JProjectAllEventParams, JProjectEventParams, JProjectLoadThumbnailsParams } from "./public/jmap/project.d.ts"
71
+ import type { JLanguageEventLocaleChangeParams, JLOCALES, JTranslateParams, JTranslationBundle, JTranslationBundleById } from "./public/jmap/language.d.ts"
72
+ import type {
73
+ JAddMapThematicEventParams,
74
+ JLayer,
75
+ JLAYER_THEMATIC_FAMILY_TYPES,
76
+ JLayerAddThematicParams,
77
+ JLayerAttribute,
78
+ JLayerDataParams,
79
+ JLayerDynamicFilterActivationParams,
80
+ JLayerEventChangeParams,
81
+ JLayerEventParams,
82
+ JLayerEventSelectabilityParams,
83
+ JLayerEventThematicCategoryVisibilityParams,
84
+ JLayerEventThematicConditionVisibilityParams,
85
+ JLayerEventThematicVisibilityParams,
86
+ JLayerEventVisibilityParams,
87
+ JLayerInitialSearchEventParams,
88
+ JLayerMetadataSchemaItem,
89
+ JLayerSearchByAttributesParams,
90
+ JLayerSetLayerGroupsExpansionParams,
91
+ JLayerSetLayersSelectabilityParams,
92
+ JLayerSetLayersVisibilityParams,
93
+ JLayerSetStyleParams,
94
+ JLayerThematic,
95
+ JLayerThematicEventParams,
96
+ JLayerThematicSetCategoryVisibilityParams,
97
+ JLayerThematicSetConditionVisibilityParams,
98
+ JLayerThematicSetVisibilityParams,
99
+ JLayerTree,
100
+ JLayerTreeElement,
101
+ JMapEventLoadedParams
102
+ } from "./public/jmap/layer.d.ts"
103
+ import type { JJMapPasswordPolicyCompliance, JOrganization, JSessionData, JUserEventSessionChangedParams, JUserInfo } from "./public/jmap/user.d.ts"
104
+ import type { JAttachment, JAttachmentFile, JCreateAttachmentParams, JUpdateAttachmentParams } from "./public/jmap/attachment.d.ts"
105
+ import type { JMapSelectionParams, JSelectionSetLayersSelectionParams } from "./public/jmap/selection.d.ts"
106
+ import type { JTable, JTableData, JTableDataParams } from "./public/jmap/table.d.ts"
10
107
 
11
108
  export type { JLocalDynamicFilter, JLocalDynamicFilterCreateParams, JLocalDynamicFilterUpdateParams } from "./public/jmap/dynamic-filter.d.ts"
12
109
  export type { JMapContextDynamicFilters } from "./public/jmap/map-context.d.ts"
@@ -855,3 +952,38 @@ export interface JObjectId {
855
952
  layer: string
856
953
  element: string
857
954
  }
955
+
956
+ // Every public declaration is importable from the package root. Type-only on purpose: the
957
+ // enum values live in ./enums (import them from "jmapcloud-ng-core-types/enums").
958
+ export type * from "./public/jmap/ajax.d.ts"
959
+ export type * from "./public/jmap/attachment.d.ts"
960
+ export type * from "./public/jmap/datasource.ts"
961
+ export type * from "./public/jmap/date.d.ts"
962
+ export type * from "./public/jmap/draw.d.ts"
963
+ export type * from "./public/jmap/dynamic-filter.d.ts"
964
+ export type * from "./public/jmap/extension.d.ts"
965
+ export type * from "./public/jmap/features.d.ts"
966
+ export type * from "./public/jmap/form.d.ts"
967
+ export type * from "./public/jmap/geocoding.d.ts"
968
+ export type * from "./public/jmap/geometry.d.ts"
969
+ export type * from "./public/jmap/language.d.ts"
970
+ export type * from "./public/jmap/layer.d.ts"
971
+ export type * from "./public/jmap/main.d.ts"
972
+ export type * from "./public/jmap/map-context.d.ts"
973
+ export type * from "./public/jmap/map.d.ts"
974
+ export type * from "./public/jmap/message.d.ts"
975
+ export type * from "./public/jmap/mouseover.d.ts"
976
+ export type * from "./public/jmap/project.d.ts"
977
+ export type * from "./public/jmap/selection.d.ts"
978
+ export type * from "./public/jmap/server.d.ts"
979
+ export type * from "./public/jmap/simple-search.d.ts"
980
+ export type * from "./public/jmap/startup-options.d.ts"
981
+ export type * from "./public/jmap/table.d.ts"
982
+ export type * from "./public/jmap/ui.d.ts"
983
+ export type * from "./public/jmap/user.d.ts"
984
+ export type * from "./public/state.d.ts"
985
+
986
+ declare global {
987
+ /** JMap Cloud NG Core, set on `window` by the library at startup. The one NG runtime global. */
988
+ var JMap: JCoreService
989
+ }
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "2.0.22-qa.1",
3
+ "version": "2.0.22-qa.10",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "types": "ambient.d.ts",
7
- "scripts": {
8
- "update-types-bridge": "node build/codemod-export-globals.js && node build/auto-add-imports.js && node build/generate-ambient.js && node ../../../node_modules/prettier/bin/prettier.cjs --write public/global-aliases.d.ts ambient.d.ts",
9
- "pub-github": "npm run update-types-bridge && node build/buildfile.js publish-github;",
10
- "doc-test": "npm run update-types-bridge && node build/buildfile.js doc-test;"
11
- },
12
7
  "repository": {
13
8
  "type": "git",
14
9
  "url": "https://github.com/k2geospatial/jmapcloud-frontend.git",
@@ -28,14 +23,27 @@
28
23
  "homepage": "https://github.com/k2geospatial/jmapcloud-frontend/tree/master/app/jmapcloud-ng/ng-core-types#readme",
29
24
  "devDependencies": {
30
25
  "rollup-plugin-visualizer": "^5.14.0",
31
- "typedoc": "^0.25.13"
26
+ "typedoc": "^0.25.13",
27
+ "typescript": "5.4.5"
28
+ },
29
+ "peerDependencies": {
30
+ "react": "^19.0.0"
32
31
  },
33
32
  "dependencies": {
33
+ "@fortawesome/fontawesome-svg-core": "7.2.0",
34
+ "@types/react": "^19.2.17",
34
35
  "@auth0/auth0-spa-js": "^2.1.3",
35
36
  "@types/geojson": "^7946.0.14",
36
37
  "geojson": "^0.5.0",
37
- "jmapcloud-types": "*",
38
- "maplibre-gl": "^6.4.0",
38
+ "jmapcloud-types": "0.0.1",
39
+ "maplibre-gl": "^6.17.0",
39
40
  "redux": "^5.0.1"
41
+ },
42
+ "scripts": {
43
+ "lint": "node ../../../scripts/lint.mjs app/jmapcloud-ng/ng-core-types",
44
+ "typecheck": "node ../../../node_modules/typescript/bin/tsc --noEmit",
45
+ "update-types-bridge": "node build/codemod-export-globals.js && node build/generate-ambient.js && node ../../../node_modules/oxfmt/bin/oxfmt --write public/global-aliases.d.ts ambient.d.ts",
46
+ "pub-github": "pnpm run update-types-bridge && node build/buildfile.js publish-github;",
47
+ "doc-test": "pnpm run update-types-bridge && node build/buildfile.js doc-test;"
40
48
  }
41
- }
49
+ }
package/public/core.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type * as maplibregl from "maplibre-gl"
1
2
  import type { JLocalDynamicFilter, JLocalDynamicFilterCreateParams, JLocalDynamicFilterUpdateParams } from "./jmap/dynamic-filter.d.ts"
2
3
  import { DataSourceAttribute, JDataSource, JRelationship } from "jmapcloud-types"
3
4
  import type { Action, Store } from "redux"
@@ -35,10 +36,11 @@ import type { JBoundaryBox, JBounds, JCircle, JGEOMETRY_UNITS, JLine, JLocation,
35
36
  import type { JLOCALES, JLanguageEventLocaleChangeParams, JTranslateParams, JTranslationBundle, JTranslationBundleById } from "./jmap/language.d.ts"
36
37
  import type {
37
38
  JAddMapThematicEventParams,
38
- JLAYER_THEMATIC_FAMILY_TYPES,
39
39
  JLayer,
40
+ JLAYER_THEMATIC_FAMILY_TYPES,
40
41
  JLayerAddThematicParams,
41
42
  JLayerAttribute,
43
+ JLayerDataParams,
42
44
  JLayerDynamicFilterActivationParams,
43
45
  JLayerEventChangeParams,
44
46
  JLayerEventParams,
@@ -115,6 +117,7 @@ import type { JTable, JTableData, JTableDataParams } from "./jmap/table.d.ts"
115
117
  import type { JIFramePopupParams } from "./jmap/ui.d.ts"
116
118
  import type { JJMapPasswordPolicyCompliance, JOrganization, JSessionData, JUserEventSessionChangedParams, JUserInfo } from "./jmap/user.d.ts"
117
119
  import type { JCoreState, JMapLegendMode } from "./state.d.ts"
120
+ import type { JAppConfirmMessage, JAppMessageOptions } from "./jmap/message.d.ts"
118
121
  export {}
119
122
  /**
120
123
  * This is the JMap Cloud NG Core library API documentation.
@@ -1,3 +1,4 @@
1
+ import type * as maplibregl from "maplibre-gl"
1
2
  import type { JTranslationBundle } from "./language.d.ts"
2
3
  import type { JLayer } from "./layer.d.ts"
3
4
  export {}
@@ -1,4 +1,5 @@
1
1
  import type { JDataSearch } from "./datasource.ts"
2
+ import type * as maplibregl from "maplibre-gl"
2
3
  import type { JLocalDynamicFilter } from "./dynamic-filter.d.ts"
3
4
  import type { DataSourceAttribute, JAnyFilterCondition, LayerAttribute, UserMetadata } from "jmapcloud-types"
4
5
  import type { JBoundaryBox } from "./geometry.d.ts"
@@ -1,3 +1,4 @@
1
+ import type * as maplibregl from "maplibre-gl"
1
2
  import type { JBoundaryBox, JCircle, JLocation } from "./geometry.d.ts"
2
3
  export {}
3
4
  // ALL_MAP_MODIFICATION_TYPES in all-enum.ts
@@ -1,3 +1,4 @@
1
+ import type * as maplibregl from "maplibre-gl"
1
2
  import type { JLocation } from "./geometry.d.ts"
2
3
  import type { JMapSelection } from "./map.d.ts"
3
4
  export {}
package/turbo.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": ["//"],
3
+ "tags": ["package"]
4
+ }