lwc 2.5.10-alpha1 → 2.5.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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +88 -63
- package/dist/engine-dom/iife/es2017/engine-dom.js +89 -64
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +75 -63
- package/dist/engine-dom/iife/es5/engine-dom.js +94 -63
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +80 -62
- package/dist/engine-dom/umd/es2017/engine-dom.js +90 -65
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +76 -64
- package/dist/engine-dom/umd/es5/engine-dom.js +95 -64
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +81 -63
- package/dist/engine-server/commonjs/es2017/engine-server.js +88 -63
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +88 -63
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +4 -4
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +4 -4
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +4 -4
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +5 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +5 -5
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +5 -5
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +3 -3
- package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
- package/dist/wire-service/umd/es2017/wire-service.js +4 -4
- package/dist/wire-service/umd/es2017/wire-service_debug.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
- package/package.json +8 -8
- package/dist/engine/esm/es2017/engine.js +0 -7981
- package/dist/engine/iife/es2017/engine.js +0 -8013
- package/dist/engine/iife/es2017/engine.min.js +0 -9
- package/dist/engine/iife/es2017/engine_debug.js +0 -6541
- package/dist/engine/iife/es5/engine.js +0 -6060
- package/dist/engine/iife/es5/engine.min.js +0 -23
- package/dist/engine/iife/es5/engine_debug.js +0 -4856
- package/dist/engine/umd/es2017/engine.js +0 -8014
- package/dist/engine/umd/es2017/engine.min.js +0 -9
- package/dist/engine/umd/es2017/engine_debug.js +0 -6542
- package/dist/engine/umd/es5/engine.js +0 -6061
- package/dist/engine/umd/es5/engine.min.js +0 -23
- package/dist/engine/umd/es5/engine_debug.js +0 -4857
|
@@ -72,7 +72,7 @@ var LWC = (function (exports) {
|
|
|
72
72
|
find: ArrayFind,
|
|
73
73
|
indexOf: ArrayIndexOf,
|
|
74
74
|
join: ArrayJoin,
|
|
75
|
-
map: ArrayMap
|
|
75
|
+
map: ArrayMap,
|
|
76
76
|
push: ArrayPush$1,
|
|
77
77
|
reduce: ArrayReduce,
|
|
78
78
|
reverse: ArrayReverse,
|
|
@@ -139,7 +139,7 @@ var LWC = (function (exports) {
|
|
|
139
139
|
// Array.prototype.toString directly will cause an error Iterate through
|
|
140
140
|
// all the items and handle individually.
|
|
141
141
|
if (isArray$1(obj)) {
|
|
142
|
-
return ArrayJoin.call(ArrayMap
|
|
142
|
+
return ArrayJoin.call(ArrayMap.call(obj, toString$1), ',');
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
return obj.toString();
|
|
@@ -302,7 +302,7 @@ var LWC = (function (exports) {
|
|
|
302
302
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
303
303
|
return attributeName;
|
|
304
304
|
}
|
|
305
|
-
/** version: 2.5.
|
|
305
|
+
/** version: 2.5.13 */
|
|
306
306
|
|
|
307
307
|
/*
|
|
308
308
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -482,7 +482,7 @@ var LWC = (function (exports) {
|
|
|
482
482
|
setFeatureFlag(name, value);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
/** version: 2.5.
|
|
485
|
+
/** version: 2.5.13 */
|
|
486
486
|
|
|
487
487
|
/* proxy-compat-disable */
|
|
488
488
|
|
|
@@ -1932,7 +1932,6 @@ var LWC = (function (exports) {
|
|
|
1932
1932
|
getPrototypeOf,
|
|
1933
1933
|
create: ObjectCreate,
|
|
1934
1934
|
defineProperty: ObjectDefineProperty,
|
|
1935
|
-
defineProperties: ObjectDefineProperties,
|
|
1936
1935
|
isExtensible,
|
|
1937
1936
|
getOwnPropertyDescriptor,
|
|
1938
1937
|
getOwnPropertyNames,
|
|
@@ -1942,8 +1941,7 @@ var LWC = (function (exports) {
|
|
|
1942
1941
|
} = Object;
|
|
1943
1942
|
const {
|
|
1944
1943
|
push: ArrayPush,
|
|
1945
|
-
concat: ArrayConcat
|
|
1946
|
-
map: ArrayMap
|
|
1944
|
+
concat: ArrayConcat
|
|
1947
1945
|
} = Array.prototype;
|
|
1948
1946
|
const OtS = {}.toString;
|
|
1949
1947
|
|
|
@@ -2008,7 +2006,9 @@ var LWC = (function (exports) {
|
|
|
2008
2006
|
// but it will always be compatible with the previous descriptor
|
|
2009
2007
|
// to preserve the object invariants, which makes these lines safe.
|
|
2010
2008
|
|
|
2011
|
-
const originalDescriptor = getOwnPropertyDescriptor(originalTarget, key);
|
|
2009
|
+
const originalDescriptor = getOwnPropertyDescriptor(originalTarget, key); // TODO: it should be impossible for the originalDescriptor to ever be undefined, this `if` can be removed
|
|
2010
|
+
|
|
2011
|
+
/* istanbul ignore else */
|
|
2012
2012
|
|
|
2013
2013
|
if (!isUndefined(originalDescriptor)) {
|
|
2014
2014
|
const wrappedDesc = this.wrapDescriptor(originalDescriptor);
|
|
@@ -2036,11 +2036,17 @@ var LWC = (function (exports) {
|
|
|
2036
2036
|
|
|
2037
2037
|
preventExtensions(shadowTarget);
|
|
2038
2038
|
} // Shared Traps
|
|
2039
|
+
// TODO: apply() is never called
|
|
2040
|
+
|
|
2041
|
+
/* istanbul ignore next */
|
|
2039
2042
|
|
|
2040
2043
|
|
|
2041
2044
|
apply(shadowTarget, thisArg, argArray) {
|
|
2042
2045
|
/* No op */
|
|
2043
|
-
}
|
|
2046
|
+
} // TODO: construct() is never called
|
|
2047
|
+
|
|
2048
|
+
/* istanbul ignore next */
|
|
2049
|
+
|
|
2044
2050
|
|
|
2045
2051
|
construct(shadowTarget, argArray, newTarget) {
|
|
2046
2052
|
/* No op */
|
|
@@ -2153,8 +2159,8 @@ var LWC = (function (exports) {
|
|
|
2153
2159
|
|
|
2154
2160
|
}
|
|
2155
2161
|
|
|
2156
|
-
const getterMap = new WeakMap();
|
|
2157
|
-
const setterMap = new WeakMap();
|
|
2162
|
+
const getterMap$1 = new WeakMap();
|
|
2163
|
+
const setterMap$1 = new WeakMap();
|
|
2158
2164
|
const reverseGetterMap = new WeakMap();
|
|
2159
2165
|
const reverseSetterMap = new WeakMap();
|
|
2160
2166
|
|
|
@@ -2164,7 +2170,7 @@ var LWC = (function (exports) {
|
|
|
2164
2170
|
}
|
|
2165
2171
|
|
|
2166
2172
|
wrapGetter(originalGet) {
|
|
2167
|
-
const wrappedGetter = getterMap.get(originalGet);
|
|
2173
|
+
const wrappedGetter = getterMap$1.get(originalGet);
|
|
2168
2174
|
|
|
2169
2175
|
if (!isUndefined(wrappedGetter)) {
|
|
2170
2176
|
return wrappedGetter;
|
|
@@ -2177,13 +2183,13 @@ var LWC = (function (exports) {
|
|
|
2177
2183
|
return handler.wrapValue(originalGet.call(unwrap$1(this)));
|
|
2178
2184
|
};
|
|
2179
2185
|
|
|
2180
|
-
getterMap.set(originalGet, get);
|
|
2186
|
+
getterMap$1.set(originalGet, get);
|
|
2181
2187
|
reverseGetterMap.set(get, originalGet);
|
|
2182
2188
|
return get;
|
|
2183
2189
|
}
|
|
2184
2190
|
|
|
2185
2191
|
wrapSetter(originalSet) {
|
|
2186
|
-
const wrappedSetter = setterMap.get(originalSet);
|
|
2192
|
+
const wrappedSetter = setterMap$1.get(originalSet);
|
|
2187
2193
|
|
|
2188
2194
|
if (!isUndefined(wrappedSetter)) {
|
|
2189
2195
|
return wrappedSetter;
|
|
@@ -2194,7 +2200,7 @@ var LWC = (function (exports) {
|
|
|
2194
2200
|
originalSet.call(unwrap$1(this), unwrap$1(v));
|
|
2195
2201
|
};
|
|
2196
2202
|
|
|
2197
|
-
setterMap.set(originalSet, set);
|
|
2203
|
+
setterMap$1.set(originalSet, set);
|
|
2198
2204
|
reverseSetterMap.set(set, originalSet);
|
|
2199
2205
|
return set;
|
|
2200
2206
|
}
|
|
@@ -2235,7 +2241,7 @@ var LWC = (function (exports) {
|
|
|
2235
2241
|
return unwrap$1(redGet.call(handler.wrapValue(this)));
|
|
2236
2242
|
};
|
|
2237
2243
|
|
|
2238
|
-
getterMap.set(get, redGet);
|
|
2244
|
+
getterMap$1.set(get, redGet);
|
|
2239
2245
|
reverseGetterMap.set(redGet, get);
|
|
2240
2246
|
return get;
|
|
2241
2247
|
}
|
|
@@ -2254,7 +2260,7 @@ var LWC = (function (exports) {
|
|
|
2254
2260
|
redSet.call(handler.wrapValue(this), handler.wrapValue(v));
|
|
2255
2261
|
};
|
|
2256
2262
|
|
|
2257
|
-
setterMap.set(set, redSet);
|
|
2263
|
+
setterMap$1.set(set, redSet);
|
|
2258
2264
|
reverseSetterMap.set(redSet, set);
|
|
2259
2265
|
return set;
|
|
2260
2266
|
}
|
|
@@ -2295,6 +2301,7 @@ var LWC = (function (exports) {
|
|
|
2295
2301
|
}
|
|
2296
2302
|
|
|
2297
2303
|
setPrototypeOf(shadowTarget, prototype) {
|
|
2304
|
+
/* istanbul ignore else */
|
|
2298
2305
|
if (process.env.NODE_ENV !== 'production') {
|
|
2299
2306
|
throw new Error(`Invalid setPrototypeOf invocation for reactive proxy ${toString(this.originalTarget)}. Prototype of reactive objects cannot be changed.`);
|
|
2300
2307
|
}
|
|
@@ -2308,6 +2315,11 @@ var LWC = (function (exports) {
|
|
|
2308
2315
|
preventExtensions(originalTarget); // if the originalTarget is a proxy itself, it might reject
|
|
2309
2316
|
// the preventExtension call, in which case we should not attempt to lock down
|
|
2310
2317
|
// the shadow target.
|
|
2318
|
+
// TODO: It should not actually be possible to reach this `if` statement.
|
|
2319
|
+
// If a proxy rejects extensions, then calling preventExtensions will throw an error:
|
|
2320
|
+
// https://codepen.io/nolanlawson-the-selector/pen/QWMOjbY
|
|
2321
|
+
|
|
2322
|
+
/* istanbul ignore if */
|
|
2311
2323
|
|
|
2312
2324
|
if (isExtensible(originalTarget)) {
|
|
2313
2325
|
return false;
|
|
@@ -2349,8 +2361,8 @@ var LWC = (function (exports) {
|
|
|
2349
2361
|
|
|
2350
2362
|
}
|
|
2351
2363
|
|
|
2352
|
-
const getterMap
|
|
2353
|
-
const setterMap
|
|
2364
|
+
const getterMap = new WeakMap();
|
|
2365
|
+
const setterMap = new WeakMap();
|
|
2354
2366
|
|
|
2355
2367
|
class ReadOnlyHandler extends BaseProxyHandler {
|
|
2356
2368
|
wrapValue(value) {
|
|
@@ -2358,7 +2370,7 @@ var LWC = (function (exports) {
|
|
|
2358
2370
|
}
|
|
2359
2371
|
|
|
2360
2372
|
wrapGetter(originalGet) {
|
|
2361
|
-
const wrappedGetter = getterMap
|
|
2373
|
+
const wrappedGetter = getterMap.get(originalGet);
|
|
2362
2374
|
|
|
2363
2375
|
if (!isUndefined(wrappedGetter)) {
|
|
2364
2376
|
return wrappedGetter;
|
|
@@ -2371,12 +2383,12 @@ var LWC = (function (exports) {
|
|
|
2371
2383
|
return handler.wrapValue(originalGet.call(unwrap$1(this)));
|
|
2372
2384
|
};
|
|
2373
2385
|
|
|
2374
|
-
getterMap
|
|
2386
|
+
getterMap.set(originalGet, get);
|
|
2375
2387
|
return get;
|
|
2376
2388
|
}
|
|
2377
2389
|
|
|
2378
2390
|
wrapSetter(originalSet) {
|
|
2379
|
-
const wrappedSetter = setterMap
|
|
2391
|
+
const wrappedSetter = setterMap.get(originalSet);
|
|
2380
2392
|
|
|
2381
2393
|
if (!isUndefined(wrappedSetter)) {
|
|
2382
2394
|
return wrappedSetter;
|
|
@@ -2385,6 +2397,7 @@ var LWC = (function (exports) {
|
|
|
2385
2397
|
const handler = this;
|
|
2386
2398
|
|
|
2387
2399
|
const set = function (v) {
|
|
2400
|
+
/* istanbul ignore else */
|
|
2388
2401
|
if (process.env.NODE_ENV !== 'production') {
|
|
2389
2402
|
const {
|
|
2390
2403
|
originalTarget
|
|
@@ -2393,33 +2406,41 @@ var LWC = (function (exports) {
|
|
|
2393
2406
|
}
|
|
2394
2407
|
};
|
|
2395
2408
|
|
|
2396
|
-
setterMap
|
|
2409
|
+
setterMap.set(originalSet, set);
|
|
2397
2410
|
return set;
|
|
2398
2411
|
}
|
|
2399
2412
|
|
|
2400
2413
|
set(shadowTarget, key, value) {
|
|
2414
|
+
/* istanbul ignore else */
|
|
2401
2415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2402
2416
|
const {
|
|
2403
2417
|
originalTarget
|
|
2404
2418
|
} = this;
|
|
2405
|
-
|
|
2419
|
+
const msg = isArray(originalTarget) ? `Invalid mutation: Cannot mutate array at index ${key.toString()}. Array is read-only.` : `Invalid mutation: Cannot set "${key.toString()}" on "${originalTarget}". "${originalTarget}" is read-only.`;
|
|
2420
|
+
throw new Error(msg);
|
|
2406
2421
|
}
|
|
2422
|
+
/* istanbul ignore next */
|
|
2423
|
+
|
|
2407
2424
|
|
|
2408
2425
|
return false;
|
|
2409
2426
|
}
|
|
2410
2427
|
|
|
2411
2428
|
deleteProperty(shadowTarget, key) {
|
|
2429
|
+
/* istanbul ignore else */
|
|
2412
2430
|
if (process.env.NODE_ENV !== 'production') {
|
|
2413
2431
|
const {
|
|
2414
2432
|
originalTarget
|
|
2415
2433
|
} = this;
|
|
2416
2434
|
throw new Error(`Invalid mutation: Cannot delete "${key.toString()}" on "${originalTarget}". "${originalTarget}" is read-only.`);
|
|
2417
2435
|
}
|
|
2436
|
+
/* istanbul ignore next */
|
|
2437
|
+
|
|
2418
2438
|
|
|
2419
2439
|
return false;
|
|
2420
2440
|
}
|
|
2421
2441
|
|
|
2422
2442
|
setPrototypeOf(shadowTarget, prototype) {
|
|
2443
|
+
/* istanbul ignore else */
|
|
2423
2444
|
if (process.env.NODE_ENV !== 'production') {
|
|
2424
2445
|
const {
|
|
2425
2446
|
originalTarget
|
|
@@ -2429,23 +2450,29 @@ var LWC = (function (exports) {
|
|
|
2429
2450
|
}
|
|
2430
2451
|
|
|
2431
2452
|
preventExtensions(shadowTarget) {
|
|
2453
|
+
/* istanbul ignore else */
|
|
2432
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
2433
2455
|
const {
|
|
2434
2456
|
originalTarget
|
|
2435
2457
|
} = this;
|
|
2436
2458
|
throw new Error(`Invalid mutation: Cannot preventExtensions on ${originalTarget}". "${originalTarget} is read-only.`);
|
|
2437
2459
|
}
|
|
2460
|
+
/* istanbul ignore next */
|
|
2461
|
+
|
|
2438
2462
|
|
|
2439
2463
|
return false;
|
|
2440
2464
|
}
|
|
2441
2465
|
|
|
2442
2466
|
defineProperty(shadowTarget, key, descriptor) {
|
|
2467
|
+
/* istanbul ignore else */
|
|
2443
2468
|
if (process.env.NODE_ENV !== 'production') {
|
|
2444
2469
|
const {
|
|
2445
2470
|
originalTarget
|
|
2446
2471
|
} = this;
|
|
2447
2472
|
throw new Error(`Invalid mutation: Cannot defineProperty "${key.toString()}" on "${originalTarget}". "${originalTarget}" is read-only.`);
|
|
2448
2473
|
}
|
|
2474
|
+
/* istanbul ignore next */
|
|
2475
|
+
|
|
2449
2476
|
|
|
2450
2477
|
return false;
|
|
2451
2478
|
}
|
|
@@ -2503,6 +2530,8 @@ var LWC = (function (exports) {
|
|
|
2503
2530
|
}; // Inspired from paulmillr/es6-shim
|
|
2504
2531
|
// https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js#L176-L185
|
|
2505
2532
|
|
|
2533
|
+
/* istanbul ignore next */
|
|
2534
|
+
|
|
2506
2535
|
function getGlobal() {
|
|
2507
2536
|
// the only reliable means to get the global object is `Function('return this')()`
|
|
2508
2537
|
// However, this causes CSP violations in Chrome apps.
|
|
@@ -2527,6 +2556,7 @@ var LWC = (function (exports) {
|
|
|
2527
2556
|
}
|
|
2528
2557
|
|
|
2529
2558
|
function init() {
|
|
2559
|
+
/* istanbul ignore if */
|
|
2530
2560
|
if (process.env.NODE_ENV === 'production') {
|
|
2531
2561
|
// this method should never leak to prod
|
|
2532
2562
|
throw new ReferenceError();
|
|
@@ -2541,6 +2571,8 @@ var LWC = (function (exports) {
|
|
|
2541
2571
|
ArrayPush.call(devtoolsFormatters, formatter);
|
|
2542
2572
|
global.devtoolsFormatters = devtoolsFormatters;
|
|
2543
2573
|
}
|
|
2574
|
+
/* istanbul ignore else */
|
|
2575
|
+
|
|
2544
2576
|
|
|
2545
2577
|
if (process.env.NODE_ENV !== 'production') {
|
|
2546
2578
|
init();
|
|
@@ -2587,7 +2619,8 @@ var LWC = (function (exports) {
|
|
|
2587
2619
|
this.valueMutated = defaultValueMutated;
|
|
2588
2620
|
this.valueObserved = defaultValueObserved;
|
|
2589
2621
|
this.valueIsObservable = defaultValueIsObservable;
|
|
2590
|
-
this.
|
|
2622
|
+
this.readOnlyObjectGraph = new WeakMap();
|
|
2623
|
+
this.reactiveObjectGraph = new WeakMap();
|
|
2591
2624
|
|
|
2592
2625
|
if (!isUndefined(options)) {
|
|
2593
2626
|
const {
|
|
@@ -2610,10 +2643,13 @@ var LWC = (function (exports) {
|
|
|
2610
2643
|
const distorted = this.valueDistortion(unwrappedValue);
|
|
2611
2644
|
|
|
2612
2645
|
if (this.valueIsObservable(distorted)) {
|
|
2613
|
-
|
|
2614
|
-
|
|
2646
|
+
if (this.readOnlyObjectGraph.get(distorted) === value) {
|
|
2647
|
+
// when trying to extract the writable version of a readonly
|
|
2648
|
+
// we return the readonly.
|
|
2649
|
+
return value;
|
|
2650
|
+
}
|
|
2615
2651
|
|
|
2616
|
-
return
|
|
2652
|
+
return this.getReactiveHandler(unwrappedValue, distorted);
|
|
2617
2653
|
}
|
|
2618
2654
|
|
|
2619
2655
|
return distorted;
|
|
@@ -2624,7 +2660,7 @@ var LWC = (function (exports) {
|
|
|
2624
2660
|
const distorted = this.valueDistortion(value);
|
|
2625
2661
|
|
|
2626
2662
|
if (this.valueIsObservable(distorted)) {
|
|
2627
|
-
return this.
|
|
2663
|
+
return this.getReadOnlyHandler(value, distorted);
|
|
2628
2664
|
}
|
|
2629
2665
|
|
|
2630
2666
|
return distorted;
|
|
@@ -2634,47 +2670,36 @@ var LWC = (function (exports) {
|
|
|
2634
2670
|
return unwrap$1(p);
|
|
2635
2671
|
}
|
|
2636
2672
|
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
objectGraph
|
|
2640
|
-
} = this;
|
|
2641
|
-
let reactiveState = objectGraph.get(distortedValue);
|
|
2673
|
+
getReactiveHandler(value, distortedValue) {
|
|
2674
|
+
let proxy = this.reactiveObjectGraph.get(distortedValue);
|
|
2642
2675
|
|
|
2643
|
-
if (
|
|
2644
|
-
|
|
2676
|
+
if (isUndefined(proxy)) {
|
|
2677
|
+
// caching the proxy after the first time it is accessed
|
|
2678
|
+
const handler = new ReactiveProxyHandler(this, distortedValue);
|
|
2679
|
+
proxy = new Proxy(createShadowTarget(distortedValue), handler);
|
|
2680
|
+
registerProxy(proxy, value);
|
|
2681
|
+
this.reactiveObjectGraph.set(distortedValue, proxy);
|
|
2645
2682
|
}
|
|
2646
2683
|
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
get reactive() {
|
|
2650
|
-
const reactiveHandler = new ReactiveProxyHandler(membrane, distortedValue); // caching the reactive proxy after the first time it is accessed
|
|
2651
|
-
|
|
2652
|
-
const proxy = new Proxy(createShadowTarget(distortedValue), reactiveHandler);
|
|
2653
|
-
registerProxy(proxy, value);
|
|
2654
|
-
ObjectDefineProperty(this, 'reactive', {
|
|
2655
|
-
value: proxy
|
|
2656
|
-
});
|
|
2657
|
-
return proxy;
|
|
2658
|
-
},
|
|
2684
|
+
return proxy;
|
|
2685
|
+
}
|
|
2659
2686
|
|
|
2660
|
-
|
|
2661
|
-
|
|
2687
|
+
getReadOnlyHandler(value, distortedValue) {
|
|
2688
|
+
let proxy = this.readOnlyObjectGraph.get(distortedValue);
|
|
2662
2689
|
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2690
|
+
if (isUndefined(proxy)) {
|
|
2691
|
+
// caching the proxy after the first time it is accessed
|
|
2692
|
+
const handler = new ReadOnlyHandler(this, distortedValue);
|
|
2693
|
+
proxy = new Proxy(createShadowTarget(distortedValue), handler);
|
|
2694
|
+
registerProxy(proxy, value);
|
|
2695
|
+
this.readOnlyObjectGraph.set(distortedValue, proxy);
|
|
2696
|
+
}
|
|
2670
2697
|
|
|
2671
|
-
|
|
2672
|
-
objectGraph.set(distortedValue, reactiveState);
|
|
2673
|
-
return reactiveState;
|
|
2698
|
+
return proxy;
|
|
2674
2699
|
}
|
|
2675
2700
|
|
|
2676
2701
|
}
|
|
2677
|
-
/** version: 1.
|
|
2702
|
+
/** version: 1.1.5 */
|
|
2678
2703
|
|
|
2679
2704
|
/*
|
|
2680
2705
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -7750,7 +7775,7 @@ var LWC = (function (exports) {
|
|
|
7750
7775
|
hooksAreSet = true;
|
|
7751
7776
|
setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
|
|
7752
7777
|
}
|
|
7753
|
-
/* version: 2.5.
|
|
7778
|
+
/* version: 2.5.13 */
|
|
7754
7779
|
|
|
7755
7780
|
/*
|
|
7756
7781
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
@@ -8406,7 +8431,7 @@ var LWC = (function (exports) {
|
|
|
8406
8431
|
});
|
|
8407
8432
|
freeze(LightningElement);
|
|
8408
8433
|
seal(LightningElement.prototype);
|
|
8409
|
-
/* version: 2.5.
|
|
8434
|
+
/* version: 2.5.13 */
|
|
8410
8435
|
|
|
8411
8436
|
exports.LightningElement = LightningElement;
|
|
8412
8437
|
exports.__unstable__ProfilerControl = profilerControl;
|
|
@@ -8439,4 +8464,4 @@ var LWC = (function (exports) {
|
|
|
8439
8464
|
|
|
8440
8465
|
return exports;
|
|
8441
8466
|
|
|
8442
|
-
}({})
|
|
8467
|
+
})({});
|