esrieact 0.4.2 → 0.4.4
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import EsriAttributionWidget from "@arcgis/core/widgets/Attribution";
|
|
3
|
+
/**
|
|
4
|
+
* An Attribution Widget component
|
|
5
|
+
*
|
|
6
|
+
* ArcGIS JS API Source Components:
|
|
7
|
+
* - [Attribution](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html)
|
|
8
|
+
*/
|
|
9
|
+
export declare const Attribution: React.ForwardRefExoticComponent<__esri.AttributionProperties & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
} & {
|
|
12
|
+
events?: {} | ((widgetInstance: __esri.Widget) => {}) | undefined;
|
|
13
|
+
position?: string | __esri.UIAddPosition | undefined;
|
|
14
|
+
} & React.RefAttributes<EsriAttributionWidget>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import EsriAttributionWidget from "@arcgis/core/widgets/Attribution";
|
|
3
|
+
import { createWidgetComponent } from ".";
|
|
4
|
+
const createWidget = (properties) => {
|
|
5
|
+
return new EsriAttributionWidget(properties);
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* An Attribution Widget component
|
|
9
|
+
*
|
|
10
|
+
* ArcGIS JS API Source Components:
|
|
11
|
+
* - [Attribution](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html)
|
|
12
|
+
*/
|
|
13
|
+
export const Attribution = React.forwardRef((properties, ref) => {
|
|
14
|
+
// @ts-expect-error internal mismatch of arcgis types?
|
|
15
|
+
return createWidgetComponent(createWidget, ref, properties);
|
|
16
|
+
});
|
package/dist/widgets/index.d.ts
CHANGED
package/dist/widgets/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esrieact",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.4",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "rm -rf dist && tsc && cp ../../README.md .",
|
|
13
13
|
"tsc": "tsc --noEmit",
|
|
14
|
-
"tsc:watch": "tsc --noEmit --watch --preserveWatchOutput"
|
|
14
|
+
"tsc:watch": "tsc --noEmit --watch --preserveWatchOutput",
|
|
15
|
+
"prepublish": "npm run build"
|
|
15
16
|
},
|
|
16
17
|
"exports": {
|
|
17
18
|
".": "./dist/index.js",
|