dbm 1.1.12 → 1.1.13

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.
@@ -42,10 +42,9 @@ export default class CachedRequests extends Dbm.core.BaseObject {
42
42
  }
43
43
 
44
44
  requestRange(aSelect, aEncode) {
45
- console.log("requestRange");
45
+ //console.log("requestRange");
46
46
 
47
47
  let id = this._getRangeIdentifier(aSelect, aEncode);
48
- console.log(id);
49
48
 
50
49
  if(this._ranges[id]) {
51
50
  return this._ranges[id];
@@ -59,10 +58,9 @@ export default class CachedRequests extends Dbm.core.BaseObject {
59
58
  }
60
59
 
61
60
  requestItem(aId, aEncode) {
62
- console.log("requestItem");
61
+ //console.log("requestItem");
63
62
 
64
63
  let id = aId + "/" + this._getEncodeIdentifier(aEncode);
65
- console.log(id);
66
64
 
67
65
  if(this._items[id]) {
68
66
  return this._items[id];
@@ -149,4 +149,28 @@ export const fullSetup = function() {
149
149
  currentDecoder.item.setValue("encodingType", name);
150
150
  currentDecoder.item.register(decodePrefix + name);
151
151
  }
152
+
153
+ {
154
+ let name = "atLocation";
155
+ let currentDecoder = new Dbm.graphapi.webclient.decode.DecodeBaseObject();
156
+ currentDecoder.item.setValue("copyLink", ["location"]);
157
+ currentDecoder.item.setValue("encodingType", name);
158
+ currentDecoder.item.register(decodePrefix + name);
159
+ }
160
+
161
+ {
162
+ let name = "mainImage";
163
+ let currentDecoder = new Dbm.graphapi.webclient.decode.DecodeBaseObject();
164
+ currentDecoder.item.setValue("copyLink", ["image"]);
165
+ currentDecoder.item.setValue("encodingType", name);
166
+ currentDecoder.item.register(decodePrefix + name);
167
+ }
168
+
169
+ {
170
+ let name = "location";
171
+ let currentDecoder = new Dbm.graphapi.webclient.decode.DecodeBaseObject();
172
+ currentDecoder.item.setValue("copyFields", ["street", "postCode", "city", "country", "coordinates"]);
173
+ currentDecoder.item.setValue("encodingType", name);
174
+ currentDecoder.item.register(decodePrefix + name);
175
+ }
152
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbm",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {},
@@ -189,7 +189,7 @@ export default class EditWebsite extends Dbm.react.BaseObject {
189
189
  React.createElement("div", {},
190
190
  React.createElement("h3", {}, "Local business"),
191
191
  React.createElement(Dbm.react.interaction.CommandButton, {command: Dbm.commands.callFunction(this._removeArrayRow, [Dbm.react.source.contextVariable("arrayEditor"), Dbm.react.source.contextVariable("item")])},
192
- React.createElement("div", {}, "Remove2"),
192
+ React.createElement("div", {}, "Remove"),
193
193
  ),
194
194
  React.createElement(Dbm.react.form.GraphApiSelectOrCreateObject, {"value": Dbm.react.source.contextVariable("item.properties.value"), objectType: "localBusiness"}),
195
195
  React.createElement(Dbm.react.area.HasData, {check: Dbm.react.source.contextVariable("item.properties.value")},
@@ -25,9 +25,9 @@ export default class ContentBlock extends Dbm.react.BaseObject {
25
25
  }
26
26
 
27
27
  _loaded(aRequest) {
28
- console.log("_loaded");
28
+ //console.log("_loaded");
29
29
  this.item.item = aRequest.items[0];
30
- console.log(aRequest);
30
+
31
31
  }
32
32
 
33
33
  _renderMainElement() {