@devvit/ui-renderer 0.9.9 → 0.9.10-next-2023-06-08-62879cbc3.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.
Files changed (52) hide show
  1. package/blocks/attributes.d.ts +2 -0
  2. package/blocks/attributes.d.ts.map +1 -1
  3. package/blocks/attributes.js +13 -1
  4. package/blocks/components/devvit-blocks-renderer.d.ts +1 -1
  5. package/blocks/components/devvit-blocks-renderer.js +9 -1
  6. package/blocks/components/devvit-blocks-webview.js +15 -2
  7. package/blocks/templates/renderAnimationBlock.d.ts +1 -2
  8. package/blocks/templates/renderAnimationBlock.d.ts.map +1 -1
  9. package/blocks/templates/renderAnimationBlock.js +3 -3
  10. package/blocks/templates/renderAvatarBlock.d.ts +1 -1
  11. package/blocks/templates/renderAvatarBlock.d.ts.map +1 -1
  12. package/blocks/templates/renderAvatarBlock.js +3 -2
  13. package/blocks/templates/renderBlock.d.ts +1 -1
  14. package/blocks/templates/renderBlock.d.ts.map +1 -1
  15. package/blocks/templates/renderBlock.js +1 -1
  16. package/blocks/templates/renderButtonBlock.d.ts +1 -1
  17. package/blocks/templates/renderButtonBlock.d.ts.map +1 -1
  18. package/blocks/templates/renderButtonBlock.js +3 -2
  19. package/blocks/templates/renderFullSnooBlock.d.ts +1 -1
  20. package/blocks/templates/renderFullSnooBlock.d.ts.map +1 -1
  21. package/blocks/templates/renderFullSnooBlock.js +3 -2
  22. package/blocks/templates/renderIconBlock.d.ts +1 -1
  23. package/blocks/templates/renderIconBlock.d.ts.map +1 -1
  24. package/blocks/templates/renderIconBlock.js +3 -2
  25. package/blocks/templates/renderImageBlock.d.ts +1 -1
  26. package/blocks/templates/renderImageBlock.d.ts.map +1 -1
  27. package/blocks/templates/renderImageBlock.js +3 -2
  28. package/blocks/templates/renderSpacerBlock.d.ts +1 -1
  29. package/blocks/templates/renderSpacerBlock.d.ts.map +1 -1
  30. package/blocks/templates/renderStackBlock.d.ts +1 -1
  31. package/blocks/templates/renderStackBlock.d.ts.map +1 -1
  32. package/blocks/templates/renderStackBlock.js +3 -2
  33. package/blocks/templates/renderTextBlock.d.ts +1 -1
  34. package/blocks/templates/renderTextBlock.d.ts.map +1 -1
  35. package/blocks/templates/renderTextBlock.js +5 -3
  36. package/blocks/templates/renderWebViewBlock.d.ts +1 -2
  37. package/blocks/templates/renderWebViewBlock.d.ts.map +1 -1
  38. package/blocks/templates/renderWebViewBlock.js +1 -2
  39. package/blocks/templates/util.d.ts +4 -4
  40. package/blocks/templates/util.d.ts.map +1 -1
  41. package/blocks/templates/util.js +30 -6
  42. package/client/devvit-animation-player.js +9 -1
  43. package/client/devvit-custom-post.d.ts +1 -0
  44. package/client/devvit-custom-post.d.ts.map +1 -1
  45. package/client/devvit-custom-post.js +22 -2
  46. package/client/effects/devvit-effect-handler.js +5 -1
  47. package/client/effects/form-effect-handler.js +11 -1
  48. package/client/formbuilder/components/devvit-form-selection-dropdown.js +20 -1
  49. package/client/formbuilder/components/devvit-form-selection-list.js +20 -1
  50. package/client/formbuilder/devvit-form-dialog.js +20 -1
  51. package/package.json +7 -7
  52. package/styles.js +1 -1
@@ -1,5 +1,24 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
13
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14
+ };
15
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16
+ if (kind === "m") throw new TypeError("Private method is not writable");
17
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
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
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
20
+ };
1
21
  var _DevvitCustomPost_instances, _DevvitCustomPost_postData, _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;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __metadata } from "tslib";
3
22
  import { html, LitElement } from 'lit';
4
23
  import { customElement, property, state } from 'lit/decorators.js';
5
24
  import PQueue from 'p-queue';
@@ -10,6 +29,7 @@ import { BrowserLiteClient } from '@devvit/runtime-lite/BrowserLiteClient.js';
10
29
  import { isCircuitBreaker } from '@devvit/runtime-lite/CircuitBreaker.js';
11
30
  import './devvit-animation-player.js';
12
31
  import '../blocks/components/devvit-blocks-renderer.js';
32
+ import '../blocks/components/devvit-blocks-webview.js';
13
33
  let DevvitCustomPost = class DevvitCustomPost extends LitElement {
14
34
  constructor() {
15
35
  super(...arguments);
@@ -140,7 +160,7 @@ _DevvitCustomPost_postData = new WeakMap(), _DevvitCustomPost_appState = new Wea
140
160
  }
141
161
  }
142
162
  if (call) {
143
- this.renderResponse = await call;
163
+ this.renderResponse = call;
144
164
  if (this.renderResponse.state) {
145
165
  __classPrivateFieldSet(this, _DevvitCustomPost_appState, this.renderResponse.state, "f");
146
166
  }
@@ -1,5 +1,9 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
1
6
  var _DevvitEffectHandler_handleEvent;
2
- import { __classPrivateFieldGet } from "tslib";
3
7
  import { EffectType, } from '@devvit/protos';
4
8
  export class DevvitEffectHandler {
5
9
  constructor(host) {
@@ -1,5 +1,15 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ 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");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
1
12
  var _FormEffectHandler_queryString, _FormEffectHandler_dialog;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
13
  import { DevvitEffectHandler } from './devvit-effect-handler.js';
4
14
  export class FormEffectHandler extends DevvitEffectHandler {
5
15
  constructor(host, queryString) {
@@ -1,5 +1,24 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
13
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14
+ };
15
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16
+ if (kind === "m") throw new TypeError("Private method is not writable");
17
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
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
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
20
+ };
1
21
  var _DevvitFormSelectionDropdown_selection, _DevvitFormSelectionDropdown_config, _DevvitFormSelectionDropdown_updateSelection, _DevvitFormSelectionDropdown_singleSelectListItem, _DevvitFormSelectionDropdown_multiSelectListItem;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __metadata } from "tslib";
3
22
  import { css } from 'lit';
4
23
  import { property, state } from 'lit/decorators.js';
5
24
  import { classMap } from 'lit/directives/class-map.js';
@@ -1,5 +1,24 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
13
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14
+ };
15
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16
+ if (kind === "m") throw new TypeError("Private method is not writable");
17
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
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
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
20
+ };
1
21
  var _DevvitFormSelectionList_config, _DevvitFormSelectionList_selection, _DevvitFormSelectionList_updateSelection;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __metadata } from "tslib";
3
22
  import { property } from 'lit/decorators.js';
4
23
  import { html, repeat } from '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
5
24
  import { InputElement } from '@reddit/faceplate/base-classes/input-element.js';
@@ -1,5 +1,24 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
13
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14
+ };
15
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16
+ if (kind === "m") throw new TypeError("Private method is not writable");
17
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
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
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
20
+ };
1
21
  var _DevvitFormDialog_onEvent, _DevvitFormDialog_idMap, _DevvitFormDialog_makeIdMap, _DevvitFormDialog_collectValues, _DevvitFormDialog_submitClicked, _DevvitFormDialog_cancelClicked, _DevvitFormDialog_closeDialog, _DevvitFormDialog_renderTitle, _DevvitFormDialog_renderDescription, _DevvitFormDialog_renderButtons;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __metadata } from "tslib";
3
22
  import { html, LitElement } from 'lit';
4
23
  import { customElement, property, query } from 'lit/decorators.js';
5
24
  import { when } from 'lit/directives/when.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.9.9",
3
+ "version": "0.9.10-next-2023-06-08-62879cbc3.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.9",
51
- "@devvit/runtime-lite": "0.9.9",
52
- "@devvit/runtimes": "0.9.9",
50
+ "@devvit/protos": "0.9.10-next-2023-06-08-62879cbc3.0",
51
+ "@devvit/runtime-lite": "0.9.10-next-2023-06-08-62879cbc3.0",
52
+ "@devvit/runtimes": "0.9.10-next-2023-06-08-62879cbc3.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.9",
78
+ "@devvit/public-api": "0.9.10-next-2023-06-08-62879cbc3.0",
79
79
  "@devvit/repo-tools": "0.9.9",
80
- "@devvit/tsconfig": "0.9.9",
80
+ "@devvit/tsconfig": "0.9.10-next-2023-06-08-62879cbc3.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": "57e11d2ae3b4f7e29eb3090a22dbdfd1dbe1df3d"
104
+ "gitHead": "705641ccb85468f4bb9c00fb1cdbff5fdd9a3ae8"
105
105
  }