@frontile/buttons 0.17.0-beta.25 → 0.17.0-beta.26

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,68 @@
1
+
2
+ const deferred = /* @__PURE__ */new WeakMap();
3
+ function deferDecorator(proto, prop, desc) {
4
+ let map = deferred.get(proto);
5
+ if (!map) {
6
+ map = /* @__PURE__ */new Map();
7
+ deferred.set(proto, map);
8
+ }
9
+ map.set(prop, desc);
10
+ }
11
+ function findDeferredDecorator(target, prop) {
12
+ var _a;
13
+ let cursor = target.prototype;
14
+ while (cursor) {
15
+ let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);
16
+ if (desc) {
17
+ return desc;
18
+ }
19
+ cursor = cursor.prototype;
20
+ }
21
+ }
22
+ function decorateFieldV2(prototype, prop, decorators, initializer) {
23
+ let desc = {
24
+ configurable: true,
25
+ enumerable: true,
26
+ writable: true,
27
+ initializer: null
28
+ };
29
+ if (initializer) {
30
+ desc.initializer = initializer;
31
+ }
32
+ for (let decorator of decorators) {
33
+ desc = decorator(prototype, prop, desc) || desc;
34
+ }
35
+ if (desc.initializer === void 0) {
36
+ Object.defineProperty(prototype, prop, desc);
37
+ } else {
38
+ deferDecorator(prototype, prop, desc);
39
+ }
40
+ }
41
+ function decorateMethodV2(prototype, prop, decorators) {
42
+ const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);
43
+ let desc = {
44
+ ...origDesc
45
+ };
46
+ for (let decorator of decorators) {
47
+ desc = decorator(prototype, prop, desc) || desc;
48
+ }
49
+ if (desc.initializer !== void 0) {
50
+ desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;
51
+ desc.initializer = void 0;
52
+ }
53
+ Object.defineProperty(prototype, prop, desc);
54
+ }
55
+ function initializeDeferredDecorator(target, prop) {
56
+ let desc = findDeferredDecorator(target.constructor, prop);
57
+ if (desc) {
58
+ Object.defineProperty(target, prop, {
59
+ enumerable: desc.enumerable,
60
+ configurable: desc.configurable,
61
+ writable: desc.writable,
62
+ value: desc.initializer ? desc.initializer.call(target) : void 0
63
+ });
64
+ }
65
+ }
66
+
67
+ export { decorateMethodV2 as a, decorateFieldV2 as d, initializeDeferredDecorator as i };
68
+ //# sourceMappingURL=runtime-BPCpkOf1-DChRNafj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-BPCpkOf1-DChRNafj.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontile/buttons",
3
- "version": "0.17.0-beta.25",
3
+ "version": "0.17.0-beta.26",
4
4
  "description": "Component Library for Ember Octane apps: Buttons",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@embroider/addon-shim": "^1.9.0",
56
- "@frontile/theme": "0.17.0-beta.25",
57
- "@frontile/utilities": "0.17.0-beta.25"
56
+ "@frontile/theme": "0.17.0-beta.26",
57
+ "@frontile/utilities": "0.17.0-beta.26"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@babel/core": "7.26.7",
@@ -104,5 +104,5 @@
104
104
  "./components/toggle-button.js": "./dist/_app_/components/toggle-button.js"
105
105
  }
106
106
  },
107
- "gitHead": "0571257175db834c73c5104f4021c6bb0bbb6120"
107
+ "gitHead": "0f11415a1976c376af1ffcdda5311dee416f3d46"
108
108
  }