@phila/layerboard 3.0.0-beta.21 → 3.0.0-beta.23

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 +1,3 @@
1
1
  export { transformWebMapToLayerConfigs } from './webmap-transformer';
2
+ export { normalizeUrl } from './url';
3
+ export { shouldShowCheckbox, shouldShowSlider, shouldShowLegendBox, getLayerDisplayName } from './layer-display';
@@ -0,0 +1,20 @@
1
+ import { LayerConfig } from '../types/layer';
2
+ /**
3
+ * Whether to show a checkbox for this layer.
4
+ * Defaults to true unless displayOptions.shouldShowCheckbox is explicitly false.
5
+ */
6
+ export declare function shouldShowCheckbox(config: LayerConfig): boolean;
7
+ /**
8
+ * Whether to show an opacity slider for this layer.
9
+ * Respects both the component-level `showOpacity` prop and per-layer override.
10
+ */
11
+ export declare function shouldShowSlider(config: LayerConfig, componentShowOpacity: boolean): boolean;
12
+ /**
13
+ * Whether to show the legend for this layer.
14
+ * Respects both the component-level `showLegend` prop and per-layer override.
15
+ */
16
+ export declare function shouldShowLegendBox(config: LayerConfig, componentShowLegend: boolean): boolean;
17
+ /**
18
+ * Get the display name for a layer, using layerNameChange override if set.
19
+ */
20
+ export declare function getLayerDisplayName(config: LayerConfig): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Normalize a URL for comparison by stripping query params, trailing /query, and trailing slashes.
3
+ */
4
+ export declare function normalizeUrl(url: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phila/layerboard",
3
- "version": "3.0.0-beta.21",
3
+ "version": "3.0.0-beta.23",
4
4
  "type": "module",
5
5
  "description": "Vue 3 + MapLibre mapping framework for City of Philadelphia applications",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@phila/phila-ui-core": "2.3.1-beta.0",
38
38
  "@phila/phila-ui-link": "1.0.2-beta.0",
39
- "@phila/phila-ui-map-core": "0.0.3-beta.7",
39
+ "@phila/phila-ui-map-core": "0.0.3-beta.8",
40
40
  "@phila/phila-ui-text-field": "1.1.1-beta.1"
41
41
  },
42
42
  "devDependencies": {