@devvit/ui-renderer 0.9.10-next-2023-06-09-a0aa0bc21.0 → 0.9.10-next-2023-06-09-a340e4a27.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.
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-custom-post.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-custom-post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvD,OAAO,kEAAkE,CAAC;AAG1E,OAAO,KAAK,EAOV,YAAY,EACZ,QAAQ,EAER,MAAM,EAGP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,EAKL,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAK9E,OAAO,8BAA8B,CAAC;AACtC,OAAO,gDAAgD,CAAC;AACxD,OAAO,+CAA+C,CAAC;AAEvD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF;AASD,qBACa,gBAAiB,SAAQ,UAAU;;IAE9C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAG9B,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAGxB,MAAM,CAAC,EAAE,YAAY,CAAC;IAGtB,UAAU,EAAE,OAAO,CAAQ;IAG3B,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC;IAclB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAMvB,iBAAi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BAAiB;IAKjB,oBAAoB;cASJ,UAAU,CAAC,iBAAiB,EAAE,cAAc;IA8B5D,MAAM;CAiIhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
@@ -18,7 +18,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
18
18
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
19
19
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
20
20
  };
21
- var _DevvitCustomPost_instances, _DevvitCustomPost_postData, _DevvitCustomPost_postConfig, _DevvitCustomPost_appState, _DevvitCustomPost_lastRequest, _DevvitCustomPost_customPostActor, _DevvitCustomPost_uiEventHandlerActor, _DevvitCustomPost_rpcQueue, _DevvitCustomPost_rerenderTimeout, _DevvitCustomPost_state_get, _DevvitCustomPost_makeRenderContext, _DevvitCustomPost_handleUIEvent, _DevvitCustomPost_handleUserAction, _DevvitCustomPost_renderRequest, _DevvitCustomPost_initialRender, _DevvitCustomPost_userActionRender, _DevvitCustomPost_effectEventRender, _DevvitCustomPost_renderPost, _DevvitCustomPost_handleEffects;
21
+ var _DevvitCustomPost_instances, _DevvitCustomPost_appState, _DevvitCustomPost_lastRequest, _DevvitCustomPost_customPostActor, _DevvitCustomPost_uiEventHandlerActor, _DevvitCustomPost_rpcQueue, _DevvitCustomPost_rerenderTimeout, _DevvitCustomPost_state_get, _DevvitCustomPost_makeRenderContext, _DevvitCustomPost_handleUIEvent, _DevvitCustomPost_handleUserAction, _DevvitCustomPost_renderRequest, _DevvitCustomPost_initialRender, _DevvitCustomPost_userActionRender, _DevvitCustomPost_effectEventRender, _DevvitCustomPost_renderPost, _DevvitCustomPost_handleEffects;
22
22
  import { html, LitElement } from 'lit';
23
23
  import { customElement, property, state } from 'lit/decorators.js';
24
24
  import PQueue from 'p-queue';
@@ -35,8 +35,6 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
35
35
  super(...arguments);
36
36
  _DevvitCustomPost_instances.add(this);
37
37
  this.useSandbox = true;
38
- _DevvitCustomPost_postData.set(this, void 0);
39
- _DevvitCustomPost_postConfig.set(this, void 0);
40
38
  _DevvitCustomPost_appState.set(this, {});
41
39
  _DevvitCustomPost_lastRequest.set(this, void 0);
42
40
  _DevvitCustomPost_customPostActor.set(this, void 0);
@@ -92,11 +90,6 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
92
90
  this.localClient?.quit();
93
91
  }
94
92
  async willUpdate(changedProperties) {
95
- if (changedProperties.has('postId')) {
96
- __classPrivateFieldSet(this, _DevvitCustomPost_postData, this.postId !== undefined
97
- ? { __postData: { thingId: this.postId, config: __classPrivateFieldGet(this, _DevvitCustomPost_postConfig, "f") ?? {} } }
98
- : undefined, "f");
99
- }
100
93
  if (changedProperties.has('localRuntimeCode') && this.localRuntimeCode) {
101
94
  this.localClient?.quit();
102
95
  this.localClient = new BrowserLiteClient(this.localRuntimeCode);
@@ -135,8 +128,10 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
135
128
  </devvit-blocks-renderer>`;
136
129
  }
137
130
  };
138
- _DevvitCustomPost_postData = new WeakMap(), _DevvitCustomPost_postConfig = new WeakMap(), _DevvitCustomPost_appState = new WeakMap(), _DevvitCustomPost_lastRequest = new WeakMap(), _DevvitCustomPost_customPostActor = new WeakMap(), _DevvitCustomPost_uiEventHandlerActor = new WeakMap(), _DevvitCustomPost_rpcQueue = new WeakMap(), _DevvitCustomPost_rerenderTimeout = new WeakMap(), _DevvitCustomPost_makeRenderContext = new WeakMap(), _DevvitCustomPost_handleUIEvent = new WeakMap(), _DevvitCustomPost_handleUserAction = new WeakMap(), _DevvitCustomPost_renderRequest = new WeakMap(), _DevvitCustomPost_instances = new WeakSet(), _DevvitCustomPost_state_get = function _DevvitCustomPost_state_get() {
139
- return Object.assign({}, __classPrivateFieldGet(this, _DevvitCustomPost_postData, "f"), __classPrivateFieldGet(this, _DevvitCustomPost_appState, "f"));
131
+ _DevvitCustomPost_appState = new WeakMap(), _DevvitCustomPost_lastRequest = new WeakMap(), _DevvitCustomPost_customPostActor = new WeakMap(), _DevvitCustomPost_uiEventHandlerActor = new WeakMap(), _DevvitCustomPost_rpcQueue = new WeakMap(), _DevvitCustomPost_rerenderTimeout = new WeakMap(), _DevvitCustomPost_makeRenderContext = new WeakMap(), _DevvitCustomPost_handleUIEvent = new WeakMap(), _DevvitCustomPost_handleUserAction = new WeakMap(), _DevvitCustomPost_renderRequest = new WeakMap(), _DevvitCustomPost_instances = new WeakSet(), _DevvitCustomPost_state_get = function _DevvitCustomPost_state_get() {
132
+ return Object.assign({}, __classPrivateFieldGet(this, _DevvitCustomPost_appState, "f"), {
133
+ __postData: { thingId: this.postId, config: this.postConfig },
134
+ });
140
135
  }, _DevvitCustomPost_initialRender = function _DevvitCustomPost_initialRender() {
141
136
  __classPrivateFieldGet(this, _DevvitCustomPost_instances, "m", _DevvitCustomPost_renderPost).call(this, __classPrivateFieldGet(this, _DevvitCustomPost_renderRequest, "f").call(this, BlockRenderEventType.RENDER_INITIAL));
142
137
  }, _DevvitCustomPost_userActionRender = function _DevvitCustomPost_userActionRender(actionId, data = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.9.10-next-2023-06-09-a0aa0bc21.0",
3
+ "version": "0.9.10-next-2023-06-09-a340e4a27.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,9 +47,9 @@
47
47
  },
48
48
  "types": "./index.d.ts",
49
49
  "dependencies": {
50
- "@devvit/protos": "0.9.10-next-2023-06-09-a0aa0bc21.0",
51
- "@devvit/runtime-lite": "0.9.10-next-2023-06-09-a0aa0bc21.0",
52
- "@devvit/runtimes": "0.9.10-next-2023-06-09-a0aa0bc21.0",
50
+ "@devvit/protos": "0.9.10-next-2023-06-09-a340e4a27.0",
51
+ "@devvit/runtime-lite": "0.9.10-next-2023-06-09-a340e4a27.0",
52
+ "@devvit/runtimes": "0.9.10-next-2023-06-09-a340e4a27.0",
53
53
  "@lottiefiles/lottie-player": "1.7.1",
54
54
  "p-queue": "7.3.4",
55
55
  "rxjs": "7.5.7"
@@ -75,9 +75,9 @@
75
75
  },
76
76
  "devDependencies": {
77
77
  "@devvit/eslint-config": "0.9.9",
78
- "@devvit/public-api": "0.9.10-next-2023-06-09-a0aa0bc21.0",
78
+ "@devvit/public-api": "0.9.10-next-2023-06-09-a340e4a27.0",
79
79
  "@devvit/repo-tools": "0.9.9",
80
- "@devvit/tsconfig": "0.9.10-next-2023-06-09-a0aa0bc21.0",
80
+ "@devvit/tsconfig": "0.9.10-next-2023-06-09-a340e4a27.0",
81
81
  "@lit/localize": "0.11.4",
82
82
  "@reddit/baseplate": "0.14.0",
83
83
  "@reddit/eslint-plugin-i18n-shreddit": "0.1.0",
@@ -101,5 +101,5 @@
101
101
  "directory": "dist"
102
102
  },
103
103
  "source": "./src/index.ts",
104
- "gitHead": "93746c1bab07a3739111642ca90e558a8c550cb9"
104
+ "gitHead": "4f560b2463b285071c65c614188990fd139bfc9f"
105
105
  }