@draftbit/core 43.6.0 → 43.6.1-9242df.0
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/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
- package/lib/commonjs/mappings/MapView.js +6 -0
- package/lib/commonjs/mappings/MapView.js.map +1 -1
- package/lib/module/components/Checkbox/CheckboxGroup.js +16 -3
- package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -1
- package/lib/module/mappings/MapView.js +7 -1
- package/lib/module/mappings/MapView.js.map +1 -1
- package/lib/typescript/src/mappings/MapView.d.ts +1 -0
- package/package.json +2 -2
- package/src/mappings/MapView.js +7 -1
- package/src/mappings/MapView.ts +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ActionSheetCancel.
|
|
1
|
+
{"version":3,"sources":["ActionSheetCancel.js"],"names":["ActionSheetCancel","label","color","style","onPress","React","createElement","ActionSheetItem"],"mappings":";;;;;;;AAAA;;AACA;;;;AACA,MAAMA,iBAAiB,GAAG,QAAkD;AAAA,MAAjD;AAAEC,IAAAA,KAAK,GAAG,QAAV;AAAoBC,IAAAA,KAApB;AAA2BC,IAAAA,KAA3B;AAAkCC,IAAAA;AAAlC,GAAiD;AACxE,sBAAQC,eAAMC,aAAN,CAAoBC,wBAApB,EAAqC;AAAEN,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,KAAK,EAAEA,KAAK,IAAI,SAAhC;AAA2CC,IAAAA,KAAK,EAAE,CAACA,KAAD,CAAlD;AAA2DC,IAAAA,OAAO,EAAEA;AAApE,GAArC,CAAR;AACH,CAFD;;eAGeJ,iB","sourcesContent":["import React from \"react\";\nimport ActionSheetItem from \"./ActionSheetItem\";\nconst ActionSheetCancel = ({ label = \"Cancel\", color, style, onPress, }) => {\n return (React.createElement(ActionSheetItem, { label: label, color: color || \"#FF453A\", style: [style], onPress: onPress }));\n};\nexport default ActionSheetCancel;\n"]}
|
|
@@ -121,6 +121,12 @@ const SEED_DATA = {
|
|
|
121
121
|
loadingBackgroundColor: (0, _types.createColorProp)({
|
|
122
122
|
label: "Loading Background Color",
|
|
123
123
|
description: "Color of the background to show while the map is loading"
|
|
124
|
+
}),
|
|
125
|
+
apiKey: (0, _types.createTextProp)({
|
|
126
|
+
label: "API Key (PWA only)",
|
|
127
|
+
description: "Your API Key",
|
|
128
|
+
required: false,
|
|
129
|
+
defaultValue: null
|
|
124
130
|
})
|
|
125
131
|
}
|
|
126
132
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MapView.ts"],"names":["SEED_DATA","name","tag","packageName","description","category","COMPONENT_TYPES","media","layout","height","width","props","provider","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","editable","group","GROUPS","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"sources":["MapView.ts"],"names":["SEED_DATA","name","tag","packageName","description","category","COMPONENT_TYPES","media","layout","height","width","props","provider","formType","FORM_TYPES","flatArray","propType","PROP_TYPES","STRING","editable","group","GROUPS","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor","apiKey"],"mappings":";;;;;;;AAAA;;AAWO,MAAMA,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,UADiB;AAEvBC,EAAAA,GAAG,EAAE,SAFkB;AAGvBC,EAAAA,WAAW,EAAE,gBAHU;AAIvBC,EAAAA,WAAW,EAAE,YAJU;AAKvBC,EAAAA,QAAQ,EAAEC,uBAAgBC,KALH;AAMvBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,MA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rBC,MAAAA,YAAY,EAAE;AAJO,KAAf;AAjHH;AAVgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Map View\",\n tag: \"MapView\",\n packageName: \"@draftbit/maps\",\n description: \"A map view\",\n category: COMPONENT_TYPES.media,\n layout: {\n height: \"100%\",\n width: \"100%\",\n },\n props: {\n provider: {\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n group: GROUPS.basic,\n label: \"Provider\",\n description: \"The maps provider\",\n required: false,\n defaultValue: null,\n options: [\"google\"],\n },\n latitude: createNumberProp({\n label: \"Initial Latitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -90,\n max: 90,\n defaultValue: 37.40241,\n }),\n longitude: createNumberProp({\n label: \"Initial Longitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -180,\n max: 180,\n defaultValue: -122.12125,\n }),\n latitudeDelta: createNumberProp({\n label: \"Init Latitude Delta\",\n description: \"The latitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n }),\n longitudeDelta: createNumberProp({\n label: \"Init Longitude Delta\",\n description: \"The longitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n }),\n zoom: createNumberProp({\n label: \"Initial Zoom (Web)\",\n description: \"The initial zoom of the map\",\n required: true,\n precision: 0,\n step: 1,\n defaultValue: 8,\n }),\n mapType: {\n label: \"Map Type\",\n description: \"The type of map to show\",\n group: GROUPS.basic,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n required: false,\n defaultValue: null,\n options: [\n \"standard\",\n \"satellite\",\n \"hybrid\",\n \"terrain\",\n \"none\",\n \"mutedStandard\",\n ],\n },\n zoomEnabled: createBoolProp({\n label: \"Zoom Enabled\",\n description: \"Whether zooming is enabled (native only)\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n showsCompass: createBoolProp({\n label: \"Shows Compass\",\n description: \"Whether compass is shown\",\n group: GROUPS.basic,\n required: false,\n defaultValue: false,\n }),\n rotateEnabled: createBoolProp({\n label: \"Rotate Enabled\",\n description: \"Whether rotating the map is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n scrollEnabled: createBoolProp({\n label: \"Scroll Enabled\",\n description: \"Whether scrolling the map view is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingEnabled: createBoolProp({\n label: \"Loading Enabled\",\n description:\n \"If true a loading indicator will show while the map is loading\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingIndicatorColor: createColorProp({\n label: \"Loading Indicator Color\",\n description: \"Color of the loading indicator\",\n }),\n loadingBackgroundColor: createColorProp({\n label: \"Loading Background Color\",\n description: \"Color of the background to show while the map is loading\",\n }),\n apiKey: createTextProp({\n label: \"API Key (PWA only)\",\n description: \"Your API Key\",\n required: false,\n defaultValue: null,\n }),\n },\n};\n"]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import * as React from "react";
|
|
4
2
|
import { View } from "react-native";
|
|
5
3
|
import { checkboxGroupContext, Direction } from "./context";
|
|
@@ -27,9 +25,24 @@ const CheckboxGroup = _ref => {
|
|
|
27
25
|
});
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
return /*#__PURE__*/React.createElement(View,
|
|
28
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
31
29
|
style: [{
|
|
32
30
|
minHeight: 40
|
|
31
|
+
}, style],
|
|
32
|
+
...rest
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Provider, {
|
|
34
|
+
value: {
|
|
35
|
+
values,
|
|
36
|
+
onValueChange,
|
|
37
|
+
direction
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
40
|
+
style: _containerStyle
|
|
41
|
+
}, children)));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default CheckboxGroup;
|
|
45
|
+
//# sourceMappingURL=CheckboxGroup.js.map minHeight: 40
|
|
33
46
|
}, style]
|
|
34
47
|
}, rest), /*#__PURE__*/React.createElement(Provider, {
|
|
35
48
|
value: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["CheckboxGroup.
|
|
1
|
+
{"version":3,"sources":["CheckboxGroup.js"],"names":["React","View","checkboxGroupContext","Direction","Provider","CheckboxGroup","direction","Vertical","values","onValueChange","style","children","rest","_containerStyle","flexDirection","Horizontal","overflow","push","alignItems","createElement","minHeight","value"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,oBAAT,EAA+BC,SAA/B,QAAgD,WAAhD;AACA,MAAM;AAAEC,EAAAA;AAAF,IAAeF,oBAArB;;AACA,MAAMG,aAAa,GAAG,QAAqG;AAAA,MAApG;AAAEC,IAAAA,SAAS,GAAGH,SAAS,CAACI,QAAxB;AAAkCC,IAAAA,MAAlC;AAA0CC,IAAAA,aAAa,GAAG,MAAM,CAAG,CAAnE;AAAqEC,IAAAA,KAArE;AAA4EC,IAAAA,QAA5E;AAAsF,OAAGC;AAAzF,GAAoG;AACvH,QAAMC,eAAe,GAAG,CACpB;AACIC,IAAAA,aAAa,EAAER,SAAS,KAAKH,SAAS,CAACY,UAAxB,GAAqC,KAArC,GAA6C,QADhE;AAEIC,IAAAA,QAAQ,EAAE;AAFd,GADoB,CAAxB;;AAMA,MAAIV,SAAS,KAAKH,SAAS,CAACI,QAA5B,EAAsC;AAClCM,IAAAA,eAAe,CAACI,IAAhB,CAAqB;AACjBC,MAAAA,UAAU,EAAE;AADK,KAArB;AAGH;;AACD,sBAAQlB,KAAK,CAACmB,aAAN,CAAoBlB,IAApB,EAA0B;AAAES,IAAAA,KAAK,EAAE,CAAC;AAAEU,MAAAA,SAAS,EAAE;AAAb,KAAD,EAAoBV,KAApB,CAAT;AAAqC,OAAGE;AAAxC,GAA1B,eACJZ,KAAK,CAACmB,aAAN,CAAoBf,QAApB,EAA8B;AAAEiB,IAAAA,KAAK,EAAE;AAAEb,MAAAA,MAAF;AAAUC,MAAAA,aAAV;AAAyBH,MAAAA;AAAzB;AAAT,GAA9B,eACIN,KAAK,CAACmB,aAAN,CAAoBlB,IAApB,EAA0B;AAAES,IAAAA,KAAK,EAAEG;AAAT,GAA1B,EAAsDF,QAAtD,CADJ,CADI,CAAR;AAGH,CAfD;;AAgBA,eAAeN,aAAf","sourcesContent":["import * as React from \"react\";\nimport { View } from \"react-native\";\nimport { checkboxGroupContext, Direction } from \"./context\";\nconst { Provider } = checkboxGroupContext;\nconst CheckboxGroup = ({ direction = Direction.Vertical, values, onValueChange = () => { }, style, children, ...rest }) => {\n const _containerStyle = [\n {\n flexDirection: direction === Direction.Horizontal ? \"row\" : \"column\",\n overflow: \"hidden\",\n },\n ];\n if (direction !== Direction.Vertical) {\n _containerStyle.push({\n alignItems: \"center\",\n });\n }\n return (React.createElement(View, { style: [{ minHeight: 40 }, style], ...rest },\n React.createElement(Provider, { value: { values, onValueChange, direction } },\n React.createElement(View, { style: _containerStyle }, children))));\n};\nexport default CheckboxGroup;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, GROUPS, FORM_TYPES, PROP_TYPES } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map View",
|
|
4
4
|
tag: "MapView",
|
|
@@ -113,6 +113,12 @@ export const SEED_DATA = {
|
|
|
113
113
|
loadingBackgroundColor: createColorProp({
|
|
114
114
|
label: "Loading Background Color",
|
|
115
115
|
description: "Color of the background to show while the map is loading"
|
|
116
|
+
}),
|
|
117
|
+
apiKey: createTextProp({
|
|
118
|
+
label: "API Key (PWA only)",
|
|
119
|
+
description: "Your API Key",
|
|
120
|
+
required: false,
|
|
121
|
+
defaultValue: null
|
|
116
122
|
})
|
|
117
123
|
}
|
|
118
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["MapView.ts"],"names":["COMPONENT_TYPES","createBoolProp","createColorProp","createNumberProp","GROUPS","FORM_TYPES","PROP_TYPES","SEED_DATA","name","tag","packageName","description","category","media","layout","height","width","props","provider","formType","flatArray","propType","STRING","editable","group","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor"],"mappings":"AAAA,SACEA,eADF,EAEEC,cAFF,EAGEC,eAHF,EAIEC,gBAJF,EAKEC,
|
|
1
|
+
{"version":3,"sources":["MapView.ts"],"names":["COMPONENT_TYPES","createBoolProp","createColorProp","createNumberProp","createTextProp","GROUPS","FORM_TYPES","PROP_TYPES","SEED_DATA","name","tag","packageName","description","category","media","layout","height","width","props","provider","formType","flatArray","propType","STRING","editable","group","basic","label","required","defaultValue","options","latitude","precision","min","max","longitude","latitudeDelta","longitudeDelta","zoom","step","mapType","zoomEnabled","showsCompass","rotateEnabled","scrollEnabled","loadingEnabled","loadingIndicatorColor","loadingBackgroundColor","apiKey"],"mappings":"AAAA,SACEA,eADF,EAEEC,cAFF,EAGEC,eAHF,EAIEC,gBAJF,EAKEC,cALF,EAMEC,MANF,EAOEC,UAPF,EAQEC,UARF,QASO,iBATP;AAWA,OA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AAyGLiB,IAAAA,qBAAqB,EAAE5C,eAAe,CAAC;AACrCyB,MAAAA,KAAK,EAAE,yBAD8B;AAErCf,MAAAA,WAAW,EAAE;AAFwB,KAAD,CAzGjC;AA6GLmC,IAAAA,sBAAsB,EAAE7C,eAAe,CAAC;AACtCyB,MAAAA,KAAK,EAAE,0BAD+B;AAEtCf,MAAAA,WAAW,EAAE;AAFyB,KAAD,CA7GlC;AAiHLoC,IAAAA,MAAM,EAAE5C,cAAc,CAAC;AACrBuB,MAAAA,KAAK,EAAE,oBADc;AAErBf,MAAAA,WAAW,EAAE,cAFQ;AAGrBgB,MAAAA,QAAQ,EAAE,KAHW;AAIrBC,MAAAA,YAAY,EAAE;AAJO,KAAD;AAjHjB;AAVgB,CAAlB","sourcesContent":["import {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n GROUPS,\n FORM_TYPES,\n PROP_TYPES,\n} from \"@draftbit/types\";\n\nexport const SEED_DATA = {\n name: \"Map View\",\n tag: \"MapView\",\n packageName: \"@draftbit/maps\",\n description: \"A map view\",\n category: COMPONENT_TYPES.media,\n layout: {\n height: \"100%\",\n width: \"100%\",\n },\n props: {\n provider: {\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n editable: true,\n group: GROUPS.basic,\n label: \"Provider\",\n description: \"The maps provider\",\n required: false,\n defaultValue: null,\n options: [\"google\"],\n },\n latitude: createNumberProp({\n label: \"Initial Latitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -90,\n max: 90,\n defaultValue: 37.40241,\n }),\n longitude: createNumberProp({\n label: \"Initial Longitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 6,\n min: -180,\n max: 180,\n defaultValue: -122.12125,\n }),\n latitudeDelta: createNumberProp({\n label: \"Init Latitude Delta\",\n description: \"The latitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n }),\n longitudeDelta: createNumberProp({\n label: \"Init Longitude Delta\",\n description: \"The longitude delta for the map's initial region\",\n required: false,\n precision: 4,\n defaultValue: 1,\n }),\n zoom: createNumberProp({\n label: \"Initial Zoom (Web)\",\n description: \"The initial zoom of the map\",\n required: true,\n precision: 0,\n step: 1,\n defaultValue: 8,\n }),\n mapType: {\n label: \"Map Type\",\n description: \"The type of map to show\",\n group: GROUPS.basic,\n formType: FORM_TYPES.flatArray,\n propType: PROP_TYPES.STRING,\n required: false,\n defaultValue: null,\n options: [\n \"standard\",\n \"satellite\",\n \"hybrid\",\n \"terrain\",\n \"none\",\n \"mutedStandard\",\n ],\n },\n zoomEnabled: createBoolProp({\n label: \"Zoom Enabled\",\n description: \"Whether zooming is enabled (native only)\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n showsCompass: createBoolProp({\n label: \"Shows Compass\",\n description: \"Whether compass is shown\",\n group: GROUPS.basic,\n required: false,\n defaultValue: false,\n }),\n rotateEnabled: createBoolProp({\n label: \"Rotate Enabled\",\n description: \"Whether rotating the map is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n scrollEnabled: createBoolProp({\n label: \"Scroll Enabled\",\n description: \"Whether scrolling the map view is enabled\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingEnabled: createBoolProp({\n label: \"Loading Enabled\",\n description:\n \"If true a loading indicator will show while the map is loading\",\n group: GROUPS.basic,\n required: false,\n defaultValue: true,\n }),\n loadingIndicatorColor: createColorProp({\n label: \"Loading Indicator Color\",\n description: \"Color of the loading indicator\",\n }),\n loadingBackgroundColor: createColorProp({\n label: \"Loading Background Color\",\n description: \"Color of the background to show while the map is loading\",\n }),\n apiKey: createTextProp({\n label: \"API Key (PWA only)\",\n description: \"Your API Key\",\n required: false,\n defaultValue: null,\n }),\n },\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "43.6.0",
|
|
3
|
+
"version": "43.6.1-9242df.0+9242df07",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
]
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "9242df070ed9cbf72a83283c6821d797df0c091b"
|
|
84
84
|
}
|
package/src/mappings/MapView.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, GROUPS, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map View",
|
|
4
4
|
tag: "MapView",
|
|
@@ -121,5 +121,11 @@ export const SEED_DATA = {
|
|
|
121
121
|
label: "Loading Background Color",
|
|
122
122
|
description: "Color of the background to show while the map is loading",
|
|
123
123
|
}),
|
|
124
|
+
apiKey: createTextProp({
|
|
125
|
+
label: "API Key (PWA only)",
|
|
126
|
+
description: "Your API Key",
|
|
127
|
+
required: false,
|
|
128
|
+
defaultValue: null,
|
|
129
|
+
}),
|
|
124
130
|
},
|
|
125
131
|
};
|
package/src/mappings/MapView.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
createBoolProp,
|
|
4
4
|
createColorProp,
|
|
5
5
|
createNumberProp,
|
|
6
|
+
createTextProp,
|
|
6
7
|
GROUPS,
|
|
7
8
|
FORM_TYPES,
|
|
8
9
|
PROP_TYPES,
|
|
@@ -131,5 +132,11 @@ export const SEED_DATA = {
|
|
|
131
132
|
label: "Loading Background Color",
|
|
132
133
|
description: "Color of the background to show while the map is loading",
|
|
133
134
|
}),
|
|
135
|
+
apiKey: createTextProp({
|
|
136
|
+
label: "API Key (PWA only)",
|
|
137
|
+
description: "Your API Key",
|
|
138
|
+
required: false,
|
|
139
|
+
defaultValue: null,
|
|
140
|
+
}),
|
|
134
141
|
},
|
|
135
142
|
};
|