@devvit/ui-renderer 0.9.4 → 0.9.6

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 (65) hide show
  1. package/blocks/attributes.d.ts +2 -0
  2. package/blocks/attributes.d.ts.map +1 -1
  3. package/blocks/attributes.js +42 -9
  4. package/blocks/components/devvit-blocks-renderer.d.ts +15 -0
  5. package/blocks/components/devvit-blocks-renderer.d.ts.map +1 -0
  6. package/blocks/components/devvit-blocks-renderer.js +42 -0
  7. package/blocks/components/devvit-blocks-webview.d.ts.map +1 -1
  8. package/blocks/index.d.ts.map +1 -1
  9. package/blocks/templates/index.d.ts.map +1 -1
  10. package/blocks/templates/renderAnimationBlock.d.ts +1 -0
  11. package/blocks/templates/renderAnimationBlock.d.ts.map +1 -1
  12. package/blocks/templates/renderAnimationBlock.js +1 -0
  13. package/blocks/templates/renderAvatarBlock.d.ts.map +1 -1
  14. package/blocks/templates/renderBlock.d.ts.map +1 -1
  15. package/blocks/templates/renderButtonBlock.d.ts.map +1 -1
  16. package/blocks/templates/renderButtonBlock.js +8 -4
  17. package/blocks/templates/renderContext.d.ts.map +1 -1
  18. package/blocks/templates/renderFullSnooBlock.d.ts.map +1 -1
  19. package/blocks/templates/renderIconBlock.d.ts.map +1 -1
  20. package/blocks/templates/renderIconBlock.js +16 -5
  21. package/blocks/templates/renderImageBlock.d.ts.map +1 -1
  22. package/blocks/templates/renderSpacerBlock.d.ts.map +1 -1
  23. package/blocks/templates/renderStackBlock.d.ts.map +1 -1
  24. package/blocks/templates/renderStackBlock.js +3 -1
  25. package/blocks/templates/renderTextBlock.d.ts.map +1 -1
  26. package/blocks/templates/renderTextBlock.js +5 -5
  27. package/blocks/templates/renderWebViewBlock.d.ts.map +1 -1
  28. package/blocks/templates/util.d.ts +21 -0
  29. package/blocks/templates/util.d.ts.map +1 -1
  30. package/blocks/templates/util.js +96 -7
  31. package/client/blocks.d.ts.map +1 -1
  32. package/client/devvit-animation-player.d.ts.map +1 -1
  33. package/client/devvit-custom-post.d.ts +7 -2
  34. package/client/devvit-custom-post.d.ts.map +1 -1
  35. package/client/devvit-custom-post.js +18 -29
  36. package/client/effects/devvit-effect-handler.d.ts.map +1 -1
  37. package/client/effects/form-effect-handler.d.ts.map +1 -1
  38. package/client/effects/toast-effect-handler.d.ts.map +1 -1
  39. package/client/formbuilder/components/devvit-form-selection-dropdown.d.ts.map +1 -1
  40. package/client/formbuilder/components/devvit-form-selection-dropdown.js +11 -1
  41. package/client/formbuilder/components/devvit-form-selection-list.d.ts.map +1 -1
  42. package/client/formbuilder/devvit-form-dialog.d.ts.map +1 -1
  43. package/client/formbuilder/fields/index.d.ts.map +1 -1
  44. package/client/formbuilder/fields/renderBooleanField.d.ts.map +1 -1
  45. package/client/formbuilder/fields/renderFieldLabel.d.ts.map +1 -1
  46. package/client/formbuilder/fields/renderFormFields.d.ts.map +1 -1
  47. package/client/formbuilder/fields/renderGroupField.d.ts.map +1 -1
  48. package/client/formbuilder/fields/renderHelpText.d.ts.map +1 -1
  49. package/client/formbuilder/fields/renderListField.d.ts.map +1 -1
  50. package/client/formbuilder/fields/renderNumberField.d.ts.map +1 -1
  51. package/client/formbuilder/fields/renderParagraphField.d.ts.map +1 -1
  52. package/client/formbuilder/fields/renderSelectionField.d.ts.map +1 -1
  53. package/client/formbuilder/fields/renderStringField.d.ts.map +1 -1
  54. package/client/formbuilder/index.d.ts.map +1 -1
  55. package/custom-styles.css +36 -0
  56. package/index.d.ts.map +1 -1
  57. package/package.json +43 -24
  58. package/server/blocks.d.ts.map +1 -1
  59. package/styles.d.ts.map +1 -1
  60. package/styles.js +1 -1
  61. package/types/events.d.ts.map +1 -1
  62. package/client/assets/snooBlocks.d.ts +0 -2
  63. package/client/assets/snooBlocks.d.ts.map +0 -1
  64. package/client/assets/snooBlocks.js +0 -2
  65. package/styles.css +0 -804
@@ -1,17 +1,13 @@
1
- var _DevvitCustomPost_instances, _DevvitCustomPost_postData, _DevvitCustomPost_appState, _DevvitCustomPost_lastRequest, _DevvitCustomPost_customPostActor, _DevvitCustomPost_uiEventHandlerActor, _DevvitCustomPost_rpcQueue, _DevvitCustomPost_rerenderTimeout, _DevvitCustomPost_state_get, _DevvitCustomPost_handleUIEvent, _DevvitCustomPost_handleUserAction, _DevvitCustomPost_renderRequest, _DevvitCustomPost_initialRender, _DevvitCustomPost_userActionRender, _DevvitCustomPost_effectEventRender, _DevvitCustomPost_renderPost, _DevvitCustomPost_handleEffects;
1
+ 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
2
  import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __metadata } from "tslib";
3
3
  import { html, LitElement } from 'lit';
4
4
  import { customElement, property, state } from 'lit/decorators.js';
5
- import { localized, msg } from '@lit/localize';
6
5
  import PQueue from 'p-queue';
7
6
  import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
8
- import { emptyState } from '@reddit/faceplate-ui/templates/empty-state.js';
9
7
  import { customEvent } from '@reddit/faceplate/lib/custom-event.js';
10
- import { Block, BlockRenderEventType, BlockStackDirection, BlockType, CustomPostDefinition, EffectType, RenderPostResponse, UIEventHandlerDefinition, } from '@devvit/protos';
11
- import { renderBlocks } from '../blocks/index.js';
12
- import { snooBlocks } from './assets/snooBlocks.js';
13
- import { styles } from '../styles.js';
8
+ import { Block, BlockRenderEventType, BlockStackDirection, CustomPostDefinition, EffectType, RenderPostResponse, UIEventHandlerDefinition, } from '@devvit/protos';
14
9
  import './devvit-animation-player.js';
10
+ import '../blocks/components/devvit-blocks-renderer.js';
15
11
  let DevvitCustomPost = class DevvitCustomPost extends LitElement {
16
12
  constructor() {
17
13
  super(...arguments);
@@ -23,6 +19,14 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
23
19
  _DevvitCustomPost_uiEventHandlerActor.set(this, void 0);
24
20
  _DevvitCustomPost_rpcQueue.set(this, new PQueue({ concurrency: 1 }));
25
21
  _DevvitCustomPost_rerenderTimeout.set(this, void 0);
22
+ _DevvitCustomPost_makeRenderContext.set(this, () => ({
23
+ request: __classPrivateFieldGet(this, _DevvitCustomPost_lastRequest, "f"),
24
+ state: __classPrivateFieldGet(this, _DevvitCustomPost_instances, "a", _DevvitCustomPost_state_get),
25
+ stackDirection: BlockStackDirection.UNRECOGNIZED,
26
+ onAction: (action) => {
27
+ __classPrivateFieldGet(this, _DevvitCustomPost_instances, "m", _DevvitCustomPost_userActionRender).call(this, action.id, action.data);
28
+ },
29
+ }));
26
30
  _DevvitCustomPost_handleUIEvent.set(this, (event) => {
27
31
  void __classPrivateFieldGet(this, _DevvitCustomPost_rpcQueue, "f").add(async () => {
28
32
  const req = {
@@ -45,9 +49,6 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
45
49
  state: __classPrivateFieldGet(this, _DevvitCustomPost_instances, "a", _DevvitCustomPost_state_get),
46
50
  }));
47
51
  }
48
- static get styles() {
49
- return [styles];
50
- }
51
52
  connectedCallback() {
52
53
  super.connectedCallback();
53
54
  this.addEventListener('devvit-user-action', __classPrivateFieldGet(this, _DevvitCustomPost_handleUserAction, "f"));
@@ -73,26 +74,15 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
73
74
  if (!this.renderResponse) {
74
75
  return html `<slot></slot>`;
75
76
  }
76
- if (this.rootBlock && this.rootBlock.type === BlockType.BLOCK_ROOT) {
77
- return renderBlocks(this.rootBlock, {
78
- request: __classPrivateFieldGet(this, _DevvitCustomPost_lastRequest, "f"),
79
- state: __classPrivateFieldGet(this, _DevvitCustomPost_instances, "a", _DevvitCustomPost_state_get),
80
- stackDirection: BlockStackDirection.UNRECOGNIZED,
81
- onAction: (action) => {
82
- __classPrivateFieldGet(this, _DevvitCustomPost_instances, "m", _DevvitCustomPost_userActionRender).call(this, action.id, action.data);
83
- },
84
- });
85
- }
86
- return html `${emptyState({
87
- creative: html `<div class="w-3xl h-3xl">${snooBlocks}</div>`,
88
- title: msg('Whoops!', { desc: 'Header for message to display when rendering fails' }),
89
- description: msg('Something went wrong while attempting to display this content.', {
90
- desc: 'Message for users to display when rendering fails',
91
- }),
92
- })}`;
77
+ return html `<devvit-blocks-renderer
78
+ .block="${this.rootBlock}"
79
+ .renderContext="${__classPrivateFieldGet(this, _DevvitCustomPost_makeRenderContext, "f")}"
80
+ >
81
+ <slot slot="empty-state-image" name="empty-state-image"></slot>
82
+ </devvit-blocks-renderer>`;
93
83
  }
94
84
  };
95
- _DevvitCustomPost_postData = 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_handleUIEvent = new WeakMap(), _DevvitCustomPost_handleUserAction = new WeakMap(), _DevvitCustomPost_renderRequest = new WeakMap(), _DevvitCustomPost_instances = new WeakSet(), _DevvitCustomPost_state_get = function _DevvitCustomPost_state_get() {
85
+ _DevvitCustomPost_postData = 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() {
96
86
  return Object.assign({}, __classPrivateFieldGet(this, _DevvitCustomPost_postData, "f"), __classPrivateFieldGet(this, _DevvitCustomPost_appState, "f"));
97
87
  }, _DevvitCustomPost_initialRender = function _DevvitCustomPost_initialRender() {
98
88
  __classPrivateFieldGet(this, _DevvitCustomPost_instances, "m", _DevvitCustomPost_renderPost).call(this, __classPrivateFieldGet(this, _DevvitCustomPost_renderRequest, "f").call(this, BlockRenderEventType.RENDER_INITIAL));
@@ -152,7 +142,6 @@ __decorate([
152
142
  __metadata("design:type", Object)
153
143
  ], DevvitCustomPost.prototype, "rootBlock", void 0);
154
144
  DevvitCustomPost = __decorate([
155
- localized(),
156
145
  customElement('devvit-custom-post')
157
146
  ], DevvitCustomPost);
158
147
  export { DevvitCustomPost };
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-effect-handler.d.ts","sourceRoot":"","sources":["../../../src/client/effects/devvit-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EACL,MAAM,EAEN,IAAI,EACJ,2BAA2B,EAC3B,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,8BAAsB,mBAAoB,YAAW,kBAAkB;;IACrE,SAAS,CAAC,IAAI,EAAE,eAAe,CAAC;gBAEpB,IAAI,EAAE,eAAe;IAKjC,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAEvE,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAEpE,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAEnF,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAE1E,SAAS,CAAC,uBAAuB,CAC/B,cAAc,EAAE,2BAA2B,EAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAGpC,aAAa;IAIb,gBAAgB;IAIhB,UAAU;IAEV,WAAW;IAOX,MAAM,WAAY,MAAM,mBAAmB,OAAO,KAAK,IAAI,UA8BzD;CACH"}
1
+ {"version":3,"file":"devvit-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/devvit-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EACL,MAAM,EAEN,IAAI,EACJ,2BAA2B,EAC3B,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,8BAAsB,mBAAoB,YAAW,kBAAkB;;IACrE,SAAS,CAAC,IAAI,EAAE,eAAe,CAAC;gBAEpB,IAAI,EAAE,eAAe;IAKjC,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAEvE,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAEpE,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAEnF,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAE1E,SAAS,CAAC,uBAAuB,CAC/B,cAAc,EAAE,2BAA2B,EAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAGpC,aAAa;IAIb,gBAAgB;IAIhB,UAAU;IAEV,WAAW;IAOX,MAAM,WAAY,MAAM,mBAAmB,OAAO,KAAK,IAAI,UA8BzD;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-effect-handler.d.ts","sourceRoot":"","sources":["../../../src/client/effects/form-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAGtC,qBAAa,iBAAkB,SAAQ,mBAAmB;;gBAK5C,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM;IAK7C,WAAW;cAKD,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAG5E"}
1
+ {"version":3,"file":"form-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/form-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAGtC,qBAAa,iBAAkB,SAAQ,mBAAmB;;gBAK5C,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM;IAK7C,WAAW;cAKD,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;CAG5E"}
@@ -1 +1 @@
1
- {"version":3,"file":"toast-effect-handler.d.ts","sourceRoot":"","sources":["../../../src/client/effects/toast-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAmB,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,qBAAa,kBAAmB,SAAQ,mBAAmB;IAChD,WAAW,CAAC,KAAK,EAAE,KAAK;CAQlC"}
1
+ {"version":3,"file":"toast-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/toast-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAmB,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,qBAAa,kBAAmB,SAAQ,mBAAmB;IAChD,WAAW,CAAC,KAAK,EAAE,KAAK;CAQlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-form-selection-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/components/devvit-form-selection-dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AASrD,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAGL,SAAS,EAEV,MAAM,gBAAgB,CAAC;AAIxB,OAAO,4DAA4D,CAAC;AACpE,OAAO,mDAAmD,CAAC;AAC3D,OAAO,2DAA2D,CAAC;AAEnE,qBAAa,2BAA4B,SAAQ,YAAY;;IAE3D,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAG7B,YAAY,UAAS;IAGrB,YAAY,SAAM;IAKlB,WAAoB,MAAM,mCAEzB;IAED,IAAI,KAAK,WAER;IAED,UAAU,CAAC,iBAAiB,EAAE,cAAc;IAwDnC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgDrC"}
1
+ {"version":3,"file":"devvit-form-selection-dropdown.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/components/devvit-form-selection-dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAS1D,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAGL,SAAS,EAEV,MAAM,gBAAgB,CAAC;AAIxB,OAAO,4DAA4D,CAAC;AACpE,OAAO,mDAAmD,CAAC;AAC3D,OAAO,2DAA2D,CAAC;AAEnE,qBAAa,2BAA4B,SAAQ,YAAY;;IAE3D,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAG7B,YAAY,UAAS;IAGrB,YAAY,SAAM;IAKlB,WAAoB,MAAM,mCAWzB;IAED,IAAI,KAAK,WAER;IAED,UAAU,CAAC,iBAAiB,EAAE,cAAc;IAwDnC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgDrC"}
@@ -1,5 +1,6 @@
1
1
  var _DevvitFormSelectionDropdown_selection, _DevvitFormSelectionDropdown_config, _DevvitFormSelectionDropdown_updateSelection, _DevvitFormSelectionDropdown_singleSelectListItem, _DevvitFormSelectionDropdown_multiSelectListItem;
2
2
  import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate, __metadata } from "tslib";
3
+ import { css } from 'lit';
3
4
  import { property, state } from 'lit/decorators.js';
4
5
  import { classMap } from 'lit/directives/class-map.js';
5
6
  import { html, ifDefined } from '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
@@ -62,7 +63,16 @@ export class DevvitFormSelectionDropdown extends InputElement {
62
63
  }));
63
64
  }
64
65
  static get styles() {
65
- return [super.styles, styles];
66
+ return [
67
+ super.styles,
68
+ styles,
69
+ // fixes a layering bug when dropdown menus are too close together
70
+ css `
71
+ .button .dropdown-icon {
72
+ transform: none;
73
+ }
74
+ `,
75
+ ];
66
76
  }
67
77
  get value() {
68
78
  return __classPrivateFieldGet(this, _DevvitFormSelectionDropdown_selection, "f").values.join(',');
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-form-selection-list.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/components/devvit-form-selection-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAKrD,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAGL,SAAS,EAEV,MAAM,gBAAgB,CAAC;AAMxB,OAAO,0DAA0D,CAAC;AAClE,OAAO,6DAA6D,CAAC;AAErE,qBAAa,uBAAwB,SAAQ,YAAY;;IAEvD,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAK7B,WAAoB,MAAM,mCAEzB;IAED,IAAI,KAAK,WAER;IAED,UAAU,CAAC,iBAAiB,EAAE,cAAc;IAsBnC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CA6CrC"}
1
+ {"version":3,"file":"devvit-form-selection-list.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/components/devvit-form-selection-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAKrD,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,EAGL,SAAS,EAEV,MAAM,gBAAgB,CAAC;AAMxB,OAAO,0DAA0D,CAAC;AAClE,OAAO,6DAA6D,CAAC;AAErE,qBAAa,uBAAwB,SAAQ,YAAY;;IAEvD,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAK7B,WAAoB,MAAM,mCAEzB;IAED,IAAI,KAAK,WAER;IAED,UAAU,CAAC,iBAAiB,EAAE,cAAc;IAsBnC,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CA6CrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-form-dialog.d.ts","sourceRoot":"","sources":["../../../src/client/formbuilder/devvit-form-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,kEAAkE,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAGtF,OAAO,EAAE,aAAa,EAAoB,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EAAE,IAAI,EAA4C,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAKzF,OAAO,kDAAkD,CAAC;AAC1D,OAAO,gDAAgD,CAAC;AAKxD,qBACa,gBAAiB,SAAQ,UAAU;;IAE9C,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IAGvB,OAAO,CAAC,EAAE,eAAe,CAAC;IAG1B,KAAK,CAAC,EAAE,aAAa,CAAC;IAKtB,WAAoB,MAAM,8BAEzB;IAED,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAgF7C,MAAM;CA+ChB"}
1
+ {"version":3,"file":"devvit-form-dialog.d.ts","sourceRoot":"","sources":["../../../library/src/client/formbuilder/devvit-form-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,kEAAkE,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAGtF,OAAO,EAAE,aAAa,EAAoB,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EAAE,IAAI,EAA4C,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAKzF,OAAO,kDAAkD,CAAC;AAC1D,OAAO,gDAAgD,CAAC;AAKxD,qBACa,gBAAiB,SAAQ,UAAU;;IAE9C,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IAGvB,OAAO,CAAC,EAAE,eAAe,CAAC;IAG1B,KAAK,CAAC,EAAE,aAAa,CAAC;IAKtB,WAAoB,MAAM,8BAEzB;IAED,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAgF7C,MAAM;CA+ChB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderBooleanField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderBooleanField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,2DAA2D,CAAC;AAEnE,eAAO,MAAM,kBAAkB,UAAW,SAAS,yCAWlD,CAAC"}
1
+ {"version":3,"file":"renderBooleanField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderBooleanField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,2DAA2D,CAAC;AAEnE,eAAO,MAAM,kBAAkB,UAAW,SAAS,yCAWlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderFieldLabel.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderFieldLabel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,eAAO,MAAM,gBAAgB,UAAW,SAAS,yCAC+B,CAAC"}
1
+ {"version":3,"file":"renderFieldLabel.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderFieldLabel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,eAAO,MAAM,gBAAgB,UAAW,SAAS,yCAC+B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderFormFields.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderFormFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAKrC,OAAO,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAqB1D,eAAO,MAAM,gBAAgB,WAAY,SAAS,EAAE,KAAG,cAEtD,CAAC"}
1
+ {"version":3,"file":"renderFormFields.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderFormFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAKrC,OAAO,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAqB1D,eAAO,MAAM,gBAAgB,WAAY,SAAS,EAAE,KAAG,cAEtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderGroupField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderGroupField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,gBAAgB,UACpB,SAAS,6BACW,SAAS,EAAE,KAAK,cAAc,sBAU1D,CAAC"}
1
+ {"version":3,"file":"renderGroupField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderGroupField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,gBAAgB,UACpB,SAAS,6BACW,SAAS,EAAE,KAAK,cAAc,sBAU1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderHelpText.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderHelpText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIrC,OAAO,+DAA+D,CAAC;AAEvE,eAAO,MAAM,cAAc,cAAe,MAAM,GAAG,SAAS,KAAG,cACiC,CAAC"}
1
+ {"version":3,"file":"renderHelpText.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderHelpText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIrC,OAAO,+DAA+D,CAAC;AAEvE,eAAO,MAAM,cAAc,cAAe,MAAM,GAAG,SAAS,KAAG,cACiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderListField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderListField.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"renderListField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderListField.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"renderNumberField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderNumberField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,yDAAyD,CAAC;AAEjE,eAAO,MAAM,iBAAiB,UAAW,SAAS,yCAmBjD,CAAC"}
1
+ {"version":3,"file":"renderNumberField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderNumberField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,yDAAyD,CAAC;AAEjE,eAAO,MAAM,iBAAiB,UAAW,SAAS,yCAmBjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderParagraphField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderParagraphField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,6DAA6D,CAAC;AACrE,OAAO,+DAA+D,CAAC;AAGvE,eAAO,MAAM,oBAAoB,UAAW,SAAS,yCAoBpD,CAAC"}
1
+ {"version":3,"file":"renderParagraphField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderParagraphField.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,6DAA6D,CAAC;AACrE,OAAO,+DAA+D,CAAC;AAGvE,eAAO,MAAM,oBAAoB,UAAW,SAAS,yCAoBpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderSelectionField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderSelectionField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,OAAO,iDAAiD,CAAC;AACzD,OAAO,6CAA6C,CAAC;AAErD,eAAO,MAAM,oBAAoB,UAAW,SAAS,yCAapD,CAAC"}
1
+ {"version":3,"file":"renderSelectionField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderSelectionField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,OAAO,iDAAiD,CAAC;AACzD,OAAO,6CAA6C,CAAC;AAErD,eAAO,MAAM,oBAAoB,UAAW,SAAS,yCAapD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderStringField.d.ts","sourceRoot":"","sources":["../../../../src/client/formbuilder/fields/renderStringField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,yDAAyD,CAAC;AAEjE,eAAO,MAAM,iBAAiB,UAAW,SAAS,yCAqBjD,CAAC"}
1
+ {"version":3,"file":"renderStringField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderStringField.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,yDAAyD,CAAC;AAEjE,eAAO,MAAM,iBAAiB,UAAW,SAAS,yCAqBjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/formbuilder/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../library/src/client/formbuilder/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ /** Text outline classes */
2
+ .text-outline-thin-bright {
3
+ text-shadow: #000 1px 0 0.5px, #000 -1px 0 0.5px, #000 0 1px 0.5px, #000 0 -1px 0.5px;
4
+ }
5
+ .text-outline-thick-bright {
6
+ text-shadow: #000 1px 0 2px, #000 -1px 0 2px, #000 0 1px 1px, #000 0 -1px 1px, #000 1px 0 2px,
7
+ #000 -1px 0 2px, #000 0 1px 1px, #000 0 -1px 1px;
8
+ }
9
+ .text-outline-thin-dark {
10
+ text-shadow: #fff 1px 0 0.5px, #fff -1px 0 0.5px, #fff 0 1px 0.5px, #fff 0 -1px 0.5px;
11
+ }
12
+ .text-outline-thick-dark {
13
+ text-shadow: #fff 1px 0 2px, #fff -1px 0 2px, #fff 0 1px 1px, #fff 0 -1px 1px, #fff 1px 0 2px,
14
+ #fff -1px 0 2px, #fff 0 1px 1px, #fff 0 -1px 1px;
15
+ }
16
+ /** Custom border sizes */
17
+ .border-dx-thick {
18
+ border-width: 2px;
19
+ }
20
+ .border-dx-thin {
21
+ border-width: 1px;
22
+ }
23
+ /** Custom border radius sizes */
24
+ .rounded-dx-lg {
25
+ border-radius: 1.5rem;
26
+ }
27
+ .rounded-dx-md {
28
+ border-radius: 1rem;
29
+ }
30
+ .rounded-dx-sm {
31
+ border-radius: 0.5rem;
32
+ }
33
+ /** Custom z-index for form dialogs */
34
+ .z-dialog {
35
+ z-index: 100;
36
+ }
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../library/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,29 +9,46 @@
9
9
  "type": "module",
10
10
  "main": "./index.js",
11
11
  "scripts": {
12
- "build": "yarn build:typescript && yarn build:styles",
13
- "build:styles": "postcss -c postcss.config.cjs styles.css -o dist/styles.css && yarn build:styles-dist",
14
- "build:styles-dist": "node scripts/make-styles.js",
15
- "build:typescript": "tsc",
12
+ "build": "yarn library:build",
16
13
  "clean": "rm -rf .turbo coverage dist",
17
14
  "clobber": "yarn clean && rm -rf node_modules",
18
- "dev": "concurrently -n 'styles,styles-dist,typescript' 'yarn watch:styles' 'yarn watch:styles-dist' 'yarn watch:typescript'",
19
- "lint": "redlint . && yarn lint:circular-deps",
15
+ "dev": "yarn library:dev",
16
+ "library:build": "yarn library:build:typescript && yarn library:build:styles",
17
+ "library:build:custom-styles": "cd library && postcss custom-styles.css -o ../dist/custom-styles.css",
18
+ "library:build:styles": "cd library && postcss styles.css -o tailwind-build.css && yarn library:build:styles-dist && yarn library:build:custom-styles",
19
+ "library:build:styles-dist": "node scripts/make-styles.js",
20
+ "library:build:typescript": "tsc -p library",
21
+ "library:dev": "concurrently -n 'lib:styles,lib:styles-dist,lib:typescript' 'yarn library:dev:styles' 'yarn library:dev:styles-dist' 'yarn library:dev:typescript",
22
+ "library:dev:styles": "yarn library:build:styles -w",
23
+ "library:dev:styles-dist": "yarn library:build:styles-dist --watch",
24
+ "library:dev:typescript": "yarn library:build:typescript -w",
25
+ "library:lint": "redlint ./library",
26
+ "library:lint:fix": "yarn lint --fix",
27
+ "library:test": "yarn library:test:unit && yarn library:test:types && yarn library:lint",
28
+ "library:test:types": "tsc --noEmit -p library",
29
+ "library:test:unit": "vitest run -r library -c vitest.config.js",
30
+ "library:test:unit-with-coverage": "yarn library:test:unit --coverage",
31
+ "lint": "yarn library:lint && yarn lint:circular-deps",
20
32
  "lint:circular-deps": "yarn madge --circular dist/**/*.js",
21
- "lint:fix": "yarn lint --fix",
22
33
  "prepublishOnly": "publish-package-json",
23
- "test": "yarn test:unit && yarn test:types && yarn lint",
24
- "test:types": "tsc --noEmit",
25
- "test:unit": "vitest run",
26
- "test:unit-with-coverage": "vitest run --coverage",
27
- "watch:styles": "postcss -w -c postcss.config.cjs styles.css -o dist/styles.css",
28
- "watch:styles-dist": "node scripts/make-styles.js --watch",
29
- "watch:typescript": "tsc -w"
34
+ "test": "yarn library:test && yarn visual-test:test",
35
+ "test:types": "yarn library:test:types",
36
+ "test:unit": "yarn library:test:unit",
37
+ "test:unit-with-coverage": "yarn library:test:unit-with-coverage",
38
+ "visual-test:build": "yarn visual-test:build:typescript && yarn visual-test:build:vite",
39
+ "visual-test:build:typescript": "tsc -p visual-testing",
40
+ "visual-test:build:vite": "vite build --force --config visual-testing/vite.config.js",
41
+ "visual-test:dev": "concurrently -n 'viz:typescript,viz:vite,viz:serve' 'yarn visual-test:dev:typescript' 'yarn visual-test:dev:vite' 'yarn visual-test:dev:serve'",
42
+ "visual-test:dev:serve": "vite --config visual-testing/vite.config.js",
43
+ "visual-test:dev:typescript": "tsc -p visual-testing -w",
44
+ "visual-test:dev:vite": "vite build --force --config visual-testing/vite.config.js --watch",
45
+ "visual-test:report": "backstop --config backstop.config.cjs openReport",
46
+ "visual-test:test": "backstop --config backstop.config.cjs test"
30
47
  },
31
48
  "types": "./index.d.ts",
32
49
  "dependencies": {
33
- "@devvit/protos": "0.9.4",
34
- "@devvit/runtimes": "0.9.4",
50
+ "@devvit/protos": "0.9.6",
51
+ "@devvit/runtimes": "0.9.6",
35
52
  "@lottiefiles/lottie-player": "1.7.1",
36
53
  "p-queue": "7.3.4",
37
54
  "rxjs": "7.5.7"
@@ -56,30 +73,32 @@
56
73
  "lit": "^2.0.0"
57
74
  },
58
75
  "devDependencies": {
59
- "@devvit/eslint-config": "0.9.4",
60
- "@devvit/public-api": "0.9.4",
61
- "@devvit/repo-tools": "0.9.4",
62
- "@devvit/tsconfig": "0.9.4",
76
+ "@devvit/eslint-config": "0.9.6",
77
+ "@devvit/public-api": "0.9.6",
78
+ "@devvit/repo-tools": "0.9.6",
79
+ "@devvit/tsconfig": "0.9.6",
63
80
  "@lit/localize": "0.11.4",
64
81
  "@reddit/baseplate": "0.14.0",
65
82
  "@reddit/eslint-plugin-i18n-shreddit": "0.1.0",
66
83
  "autoprefixer": "10.4.14",
84
+ "backstopjs": "6.2.1",
67
85
  "chokidar": "3.5.3",
68
86
  "concurrently": "7.5.0",
69
87
  "debounce": "1.2.1",
70
88
  "eslint": "8.9.0",
71
- "lit": "^2.0.0",
89
+ "lit": "2.2.8",
72
90
  "madge": "6.0.0",
73
91
  "postcss": "8.4.22",
74
92
  "postcss-cli": "10.1.0",
75
93
  "postcss-import": "15.1.0",
76
94
  "tailwindcss": "3.3.1",
77
95
  "typescript": "4.9.3",
78
- "vitest": "0.8.2"
96
+ "vite": "4.3.1",
97
+ "vitest": "0.31.0"
79
98
  },
80
99
  "publishConfig": {
81
100
  "directory": "dist"
82
101
  },
83
102
  "source": "./src/index.ts",
84
- "gitHead": "27a5a627334932929b427700f6d6686683689a4f"
103
+ "gitHead": "656833a63ae45857f86b4753f46d9344430e3c8c"
85
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/server/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../library/src/server/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,cAAc,oBAAoB,CAAC"}
package/styles.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,yBAA8B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../library/src/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,yBAA8B,CAAC"}