@devvit/ui-renderer 0.10.17-next-2024-02-28-72acbe86a.0 → 0.10.17
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/blocks/attributes.d.ts +8 -6
- package/blocks/attributes.d.ts.map +1 -1
- package/blocks/components/devvit-blocks-renderer.d.ts +1 -1
- package/blocks/components/devvit-blocks-renderer.d.ts.map +1 -1
- package/blocks/templates/color.d.ts +1 -1
- package/blocks/templates/color.d.ts.map +1 -1
- package/blocks/templates/renderAnimationBlock.d.ts +3 -3
- package/blocks/templates/renderAnimationBlock.d.ts.map +1 -1
- package/blocks/templates/renderAvatarBlock.d.ts +3 -3
- package/blocks/templates/renderAvatarBlock.d.ts.map +1 -1
- package/blocks/templates/renderBlock.d.ts +3 -3
- package/blocks/templates/renderBlock.d.ts.map +1 -1
- package/blocks/templates/renderButtonBlock.d.ts +3 -3
- package/blocks/templates/renderButtonBlock.d.ts.map +1 -1
- package/blocks/templates/renderButtonBlock.js +1 -1
- package/blocks/templates/renderContext.d.ts +1 -1
- package/blocks/templates/renderContext.d.ts.map +1 -1
- package/blocks/templates/renderFullSnooBlock.d.ts +3 -3
- package/blocks/templates/renderFullSnooBlock.d.ts.map +1 -1
- package/blocks/templates/renderIconBlock.d.ts +3 -3
- package/blocks/templates/renderIconBlock.d.ts.map +1 -1
- package/blocks/templates/renderImageBlock.d.ts +3 -3
- package/blocks/templates/renderImageBlock.d.ts.map +1 -1
- package/blocks/templates/renderSpacerBlock.d.ts +3 -3
- package/blocks/templates/renderSpacerBlock.d.ts.map +1 -1
- package/blocks/templates/renderStackBlock.d.ts +4 -4
- package/blocks/templates/renderStackBlock.d.ts.map +1 -1
- package/blocks/templates/renderTextBlock.d.ts +3 -3
- package/blocks/templates/renderTextBlock.d.ts.map +1 -1
- package/blocks/templates/renderWebViewBlock.d.ts +3 -3
- package/blocks/templates/renderWebViewBlock.d.ts.map +1 -1
- package/blocks/templates/util.d.ts +8 -5
- package/blocks/templates/util.d.ts.map +1 -1
- package/blocks/templates/util.js +1 -1
- package/client/app-ui-looper.d.ts +6 -5
- package/client/app-ui-looper.d.ts.map +1 -1
- package/client/app-ui-looper.js +2 -2
- package/client/devvit-animation-player.d.ts +2 -1
- package/client/devvit-animation-player.d.ts.map +1 -1
- package/client/devvit-custom-post.d.ts +6 -6
- package/client/devvit-custom-post.d.ts.map +1 -1
- package/client/effects/devvit-effect-handler.d.ts +4 -4
- package/client/effects/devvit-effect-handler.d.ts.map +1 -1
- package/client/effects/devvit-effect-handler.js +1 -1
- package/client/effects/form-effect-handler.d.ts +3 -3
- package/client/effects/form-effect-handler.d.ts.map +1 -1
- package/client/effects/navigate-to-url-handler.d.ts +3 -3
- package/client/effects/navigate-to-url-handler.d.ts.map +1 -1
- package/client/effects/realtime-effect-handler.d.ts +2 -2
- package/client/effects/realtime-effect-handler.d.ts.map +1 -1
- package/client/effects/toast-effect-handler.d.ts +3 -3
- package/client/effects/toast-effect-handler.d.ts.map +1 -1
- package/client/formbuilder/components/devvit-form-selection-dropdown.d.ts +2 -2
- package/client/formbuilder/components/devvit-form-selection-dropdown.d.ts.map +1 -1
- package/client/formbuilder/components/devvit-form-selection-dropdown.js +1 -1
- package/client/formbuilder/components/devvit-form-selection-list.d.ts +2 -2
- package/client/formbuilder/components/devvit-form-selection-list.d.ts.map +1 -1
- package/client/formbuilder/components/devvit-form-selection-list.js +1 -1
- package/client/formbuilder/devvit-form-dialog.d.ts +5 -3
- package/client/formbuilder/devvit-form-dialog.d.ts.map +1 -1
- package/client/formbuilder/fields/renderBooleanField.d.ts +2 -2
- package/client/formbuilder/fields/renderBooleanField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderFieldLabel.d.ts +2 -2
- package/client/formbuilder/fields/renderFieldLabel.d.ts.map +1 -1
- package/client/formbuilder/fields/renderFormFields.d.ts +2 -2
- package/client/formbuilder/fields/renderFormFields.d.ts.map +1 -1
- package/client/formbuilder/fields/renderGroupField.d.ts +2 -2
- package/client/formbuilder/fields/renderGroupField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderHelpText.d.ts +1 -1
- package/client/formbuilder/fields/renderHelpText.d.ts.map +1 -1
- package/client/formbuilder/fields/renderNumberField.d.ts +2 -2
- package/client/formbuilder/fields/renderNumberField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderParagraphField.d.ts +2 -2
- package/client/formbuilder/fields/renderParagraphField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderSelectionField.d.ts +2 -2
- package/client/formbuilder/fields/renderSelectionField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderStringField.d.ts +2 -2
- package/client/formbuilder/fields/renderStringField.d.ts.map +1 -1
- package/client/ui-app.d.ts +2 -2
- package/client/ui-app.d.ts.map +1 -1
- package/client/ui-app.js +1 -1
- package/package.json +11 -10
package/blocks/attributes.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ClassInfo } from 'lit/directives/class-map.js';
|
|
2
|
-
import { StyleInfo } from 'lit/directives/style-map.js';
|
|
3
|
-
import { ButtonAppearance
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import type { ClassInfo } from 'lit/directives/class-map.js';
|
|
2
|
+
import type { StyleInfo } from 'lit/directives/style-map.js';
|
|
3
|
+
import type { ButtonAppearance } from '@reddit/faceplate-ui/templates/button.js';
|
|
4
|
+
import { ButtonSize } from '@reddit/faceplate-ui/templates/button.js';
|
|
5
|
+
import type { Block, BlockAlignment, BlockBorder, BlockColor, BlockConfig_Text, BlockSizes } from '@devvit/protos';
|
|
6
|
+
import { BlockAvatarFacing, BlockAvatarSize, BlockButtonAppearance, BlockButtonSize, BlockFullSnooSize, BlockGap, BlockIconSize, BlockImageResizeMode, BlockPadding, BlockRadius, BlockSpacerShape, BlockSpacerSize, BlockStackDirection, BlockTextOutline, BlockTextSize, BlockTextWeight } from '@devvit/protos';
|
|
7
|
+
import type { RenderContext } from './templates/renderContext.js';
|
|
8
|
+
import type { ref as clientRef } from 'lit/directives/ref.js';
|
|
7
9
|
export type AttributeOverrides = {
|
|
8
10
|
styles?: StyleInfo | undefined;
|
|
9
11
|
classes?: ClassInfo | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../library/src/blocks/attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../library/src/blocks/attributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,iBAAiB,EACjB,eAAe,EAEf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EAER,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,WAAW,EAEX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAEhB,aAAa,EACb,eAAe,EAGhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAY9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;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AAE,gBAAgB,GAAG,SAAS,GACtC,UAAU,CAAC,OAAO,SAAS,CAAC,CAmC9B;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAUrE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAUzD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,cAAc,EAAE,mBAAmB,EACnC,GAAG,EAAE,QAAQ,GAAG,SAAS,EACzB,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,UAAU,EAAE,MAAM,GACjB,SAAS,CAoCX;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,SAAS,CAkB3D;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,oBAAoB,GAAG,SAAS,GAAG,SAAS,CAOpF;AAGD,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,oBAAoB,GAAG,SAAS,EAC5C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,SAAS,CAuBX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devvit-blocks-renderer.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/components/devvit-blocks-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAkB,MAAM,KAAK,CAAC;AAMvD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"devvit-blocks-renderer.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/components/devvit-blocks-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAkB,MAAM,KAAK,CAAC;AAMvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,qBAEa,oBAAqB,SAAQ,UAAU;;IAElD,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IAGzB,aAAa,EAAE,CAAC,MAAM,aAAa,CAAC,GAAG,SAAS,CAAC;IAGjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAI1B,WAAoB,MAAM,8BAEzB;IAEQ,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAW5B,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,oBAAoB,CAAC;KAChD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAiB,GAAG,EAAE,MAAM,WAAW,CAAC;AAQ/C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,CAkBxF;AAqDD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA4BvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderAnimationBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderAnimationBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderAnimationBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderAnimationBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderAnimationBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderAnimationBlock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAK5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAmCnF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderAvatarBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderAvatarBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderAvatarBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderAvatarBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderAvatarBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderAvatarBlock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAW5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CA2BhF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare const DEFAULT_ROOT_HEIGHT = 320;
|
|
5
5
|
export declare function renderBlocks(block: Block, context?: Partial<RenderContext>): TemplateLike;
|
|
6
6
|
export declare function renderBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderBlock.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"renderBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderBlock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAa5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM,GAAG,YAAY,CAgC7F;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAwD1E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderButtonBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderButtonBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderButtonBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderButtonBlock.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"renderButtonBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderButtonBlock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAW5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAM9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAuEhF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getTemplateRenderingStrategy } from '@reddit/faceplate-ui/faceplateUIConfig.js';
|
|
2
2
|
import { button } from '@reddit/faceplate-ui/templates/button.js';
|
|
3
3
|
import { styleMap } from '@reddit/faceplate-ui/templateUtils/styleMap.js';
|
|
4
|
-
import { BlockButtonSize, BlockIconSize, BlockStackDirection, BlockType
|
|
4
|
+
import { BlockButtonSize, BlockIconSize, BlockStackDirection, BlockType } from '@devvit/protos';
|
|
5
5
|
import { buttonAppearance, buttonSize, defaultClasses, defaultStyles, onClickAction, textColorStyle, } from '../attributes.js';
|
|
6
6
|
import { classMap } from './util.js';
|
|
7
7
|
import { renderIconBlock } from './renderIconBlock.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockAction, BlockRenderRequest, BlockStackDirection } from '@devvit/protos';
|
|
1
|
+
import type { BlockAction, BlockRenderRequest, BlockStackDirection } from '@devvit/protos';
|
|
2
2
|
export type RenderContext = {
|
|
3
3
|
request?: BlockRenderRequest | undefined;
|
|
4
4
|
state?: unknown | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderContext.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderContext.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE3F,MAAM,MAAM,aAAa,GAAG;IAE1B,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAEzC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE5B,cAAc,EAAE,mBAAmB,CAAC;IAEpC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAEvD,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE7B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderFullSnooBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderFullSnooBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderFullSnooBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderFullSnooBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderFullSnooBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderFullSnooBlock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAS5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CA2BlF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderIconBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderIconBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderIconBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderIconBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderIconBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderIconBlock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAU5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAgC9E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderImageBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderImageBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderImageBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderImageBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderImageBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderImageBlock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAS5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAU9C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CA0D/E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderSpacerBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderSpacerBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderSpacerBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderSpacerBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderSpacerBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderSpacerBlock.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAqBhF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { AttributeOverrides } from '../attributes.js';
|
|
3
|
-
import { RenderContext } from './renderContext.js';
|
|
4
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { AttributeOverrides } from '../attributes.js';
|
|
3
|
+
import type { RenderContext } from './renderContext.js';
|
|
4
|
+
import type { TemplateLike } from './util.js';
|
|
5
5
|
export declare function renderStackBlock(block: Block, ctx: RenderContext | undefined, renderBlock: (block: Block, ctx: RenderContext) => TemplateLike, attributeOverrides?: AttributeOverrides | undefined): TemplateLike;
|
|
6
6
|
//# sourceMappingURL=renderStackBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderStackBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderStackBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"renderStackBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderStackBlock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAiB3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,EACZ,GAAG,2BAAsE,EACzE,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,KAAK,YAAY,EAC/D,kBAAkB,GAAE,kBAAkB,GAAG,SAAqB,GAC7D,YAAY,CAiFd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
export declare function renderTextBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
5
5
|
//# sourceMappingURL=renderTextBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTextBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderTextBlock.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"renderTextBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderTextBlock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAgB5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9C,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CA8D9E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Block } from '@devvit/protos';
|
|
2
|
-
import { RenderContext } from './renderContext.js';
|
|
3
|
-
import { TemplateLike } from './util.js';
|
|
1
|
+
import type { Block } from '@devvit/protos';
|
|
2
|
+
import type { RenderContext } from './renderContext.js';
|
|
3
|
+
import type { TemplateLike } from './util.js';
|
|
4
4
|
import '../components/devvit-blocks-webview.js';
|
|
5
5
|
export declare function renderWebViewBlock(block: Block, ctx: RenderContext): TemplateLike;
|
|
6
6
|
//# sourceMappingURL=renderWebViewBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWebViewBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderWebViewBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderWebViewBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderWebViewBlock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,wCAAwC,CAAC;AAEhD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAyBjF"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { nothing, TemplateResult } from 'lit';
|
|
1
|
+
import type { nothing, TemplateResult } from 'lit';
|
|
2
2
|
import type { DirectiveClass, DirectiveResult } from 'lit/directive.js';
|
|
3
|
-
import { ClassInfo
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { ClassInfo } from 'lit/directives/class-map.js';
|
|
4
|
+
import { classMap as clientClassMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import type { RefOrCallback } from 'lit/directives/ref.js';
|
|
6
|
+
import { ref as clientRef } from 'lit/directives/ref.js';
|
|
7
|
+
import type { StyleInfo } from 'lit/directives/style-map.js';
|
|
6
8
|
import type { UnsafeString } from '@reddit/baseplate/html/html.js';
|
|
7
|
-
import { Block, BlockColor, BlockSizes, BlockSizes_Dimension_Value
|
|
9
|
+
import type { Block, BlockColor, BlockSizes, BlockSizes_Dimension_Value } from '@devvit/protos';
|
|
10
|
+
import { BlockSizeUnit } from '@devvit/protos';
|
|
8
11
|
export type TemplateLike = TemplateResult | typeof nothing;
|
|
9
12
|
export declare function classMap(classInfo: ClassInfo, forceString?: boolean): string | ReturnType<typeof clientClassMap>;
|
|
10
13
|
export declare function unsafeHTML(input: string): DirectiveResult<DirectiveClass> | UnsafeString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,K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AQ,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,GAAG,SAAS,CA2B7D;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,0BAA0B,GAAG,SAAS,EAC7C,QAAQ,GAAE,aAAa,GAAG,SAAqB,GAC9C,MAAM,GAAG,SAAS,CAKpB;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAUpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,GAC/B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAIzD"}
|
package/blocks/templates/util.js
CHANGED
|
@@ -4,7 +4,7 @@ import { unsafeHTML as clientUnsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
|
4
4
|
import { unsafeHTML as serverUnsafeHTML } from '@reddit/baseplate/html/html.js';
|
|
5
5
|
import { getTemplateRenderingStrategy } from '@reddit/faceplate-ui/faceplateUIConfig.js';
|
|
6
6
|
import faceplateIcons from '@reddit/faceplate-ui/svgs/svg-manifest.js';
|
|
7
|
-
import { BlockSizeUnit
|
|
7
|
+
import { BlockSizeUnit } from '@devvit/protos';
|
|
8
8
|
import { sanitizeSvg } from '@devvit/shared-types/sanitizeSvg.js';
|
|
9
9
|
import { parseDataUrl, isAcceptableDataUrlMimeType } from '@devvit/shared-types/imageUtil.js';
|
|
10
10
|
export function classMap(classInfo, forceString) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { Effect, LinkedBundle, Metadata, RenderPostRequest, RenderPostResponse, Struct, UIEvent } from '@devvit/protos';
|
|
2
|
+
import { BlockRenderEventType } from '@devvit/protos';
|
|
3
|
+
import type { ErrorCallback, LiteClient } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
|
|
4
|
+
import type { PluginCallback } from '@devvit/runtime-lite/runtime/RuntimeLite.js';
|
|
5
|
+
import type { T3ID, TID } from '@devvit/shared-types/tid.js';
|
|
6
|
+
import type { UIApp } from './ui-app.js';
|
|
6
7
|
type AppState = {
|
|
7
8
|
__postData?: {
|
|
8
9
|
thingId: TID | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-ui-looper.d.ts","sourceRoot":"","sources":["../../library/src/client/app-ui-looper.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"app-ui-looper.d.ts","sourceRoot":"","sources":["../../library/src/client/app-ui-looper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAGN,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAsB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAElG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAQzC,KAAK,QAAQ,GAAG;IACd,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,GAAG,GAAG,SAAS,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;KACtC,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AACF,KAAK,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAE5C;;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ivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
10
10
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
11
|
};
|
|
12
12
|
var _AppUILooper_instances, _AppUILooper_appState, _AppUILooper_q, _AppUILooper_rendered, _AppUILooper_rerenderTimeout, _AppUILooper_onEffects, _AppUILooper_onPluginCall, _AppUILooper_processEvent, _AppUILooper_renderPost;
|
|
13
|
-
import { BlockRenderEventType, RealtimeDefinition
|
|
14
|
-
import { BrowserLiteClient
|
|
13
|
+
import { BlockRenderEventType, RealtimeDefinition } from '@devvit/protos';
|
|
14
|
+
import { BrowserLiteClient } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
|
|
15
15
|
import { isCircuitBreaker } from '@devvit/runtime-lite/types/CircuitBreaker.js';
|
|
16
16
|
import PQueue from 'p-queue';
|
|
17
17
|
import { initDevvitGlobal } from '../types/devvit-global.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BlockAnimationDirection, BlockAnimationLoopMode, BlockAnimationType } from '@devvit/protos';
|
|
2
|
-
import {
|
|
2
|
+
import type { PropertyValues } from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
3
4
|
import '@dotlottie/player-component';
|
|
4
5
|
/**
|
|
5
6
|
* @description a simple wrapper for lottie-player
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devvit-animation-player.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-animation-player.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"devvit-animation-player.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-animation-player.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,6BAA6B,CAAC;AAGrC;;GAEG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACvB,GAAG,EAAE,MAAM,CAAM;IACjB,UAAU,EAAE,MAAM,CAAM;IACxB,WAAW,EAAE,MAAM,CAAM;IACxB,QAAQ,EAAE,OAAO,CAAQ;IACzB,IAAI,EAAE,OAAO,CAAQ;IACtB,QAAQ,EAAE,sBAAsB,CAClB;IACd,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IAElB,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAElD,WAAW,EAAE,MAAM,CAAY;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAyBtD,MAAM;CAyBhB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
|
|
2
|
-
import type { BlockAction, Effect, LinkedBundle, Metadata, RenderPostResponse, Struct, UIEvent } from '@devvit/protos';
|
|
3
|
-
import {
|
|
4
|
-
import { WorkerErrorType } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
|
|
2
|
+
import type { BlockAction, Effect, LinkedBundle, Metadata, RenderPostResponse, Struct, UIEvent, RealtimeEvent } from '@devvit/protos';
|
|
3
|
+
import type { WorkerErrorType } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
|
|
5
4
|
import type { ActorRef } from '@devvit/runtimes/common/runtime/ActorRef.js';
|
|
6
|
-
import { FaceplateEvent } from '@reddit/faceplate/event-types.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import type { FaceplateEvent } from '@reddit/faceplate/event-types.js';
|
|
6
|
+
import type { PropertyValues } from 'lit';
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
|
+
import type { UIApp } from './ui-app.js';
|
|
9
9
|
import '../blocks/components/devvit-blocks-renderer.js';
|
|
10
10
|
import '../blocks/components/devvit-blocks-webview.js';
|
|
11
11
|
import './devvit-animation-player.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devvit-custom-post.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-custom-post.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAE1E,OAAO,KAAK,EACV,WAAW,EAEX,MAAM,EACN,YAAY,EACZ,QAAQ,EAER,kBAAkB,EAClB,MAAM,EACN,OAAO,
|
|
1
|
+
{"version":3,"file":"devvit-custom-post.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-custom-post.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAE1E,OAAO,KAAK,EACV,WAAW,EAEX,MAAM,EACN,YAAY,EACZ,QAAQ,EAER,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,aAAa,EACd,MAAM,gBAAgB,CAAC;AASxB,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,kDAAkD,CAAC;AAG1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AAOhD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,gDAAgD,CAAC;AACxD,OAAO,+CAA+C,CAAC;AACvD,OAAO,8BAA8B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC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AAU,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAEzE,qBAAqB,EAAE,OAAO,CAAS;IAGgB,UAAU,EAAE,OAAO,CAAQ;IACzE,cAAc,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAExB,OAAO,CAAC,eAAe,CAAwB;IACvE,OAAO,CAAC,YAAY,CAAkB;IACtC,OAAO,CAAC,UAAU,CAAC,CAAoB;;IAcjC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxC,oBAAoB,IAAI,IAAI;IAMrC,IAAI,YAAY,IAAI,MAAM,CAGzB;IAGD,QAAQ,IAAI,IAAI;IAIhB,WAAoB,MAAM,8BAEzB;cAEkB,MAAM;cAoBA,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAuFhF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Effect, Form, NavigateToUrlEffect, RealtimeSubscriptionsEffect, ReloadPartEffect, Toast, UIEvent } from '@devvit/protos';
|
|
2
|
-
import { Severity } from '@reddit/faceplate/types.js';
|
|
3
|
-
import { ReactiveController, ReactiveElement } from 'lit';
|
|
4
|
-
import { ParentWindowInfo } from '../../types/parent-window.js';
|
|
1
|
+
import type { Effect, Form, NavigateToUrlEffect, RealtimeSubscriptionsEffect, ReloadPartEffect, Toast, UIEvent } from '@devvit/protos';
|
|
2
|
+
import type { Severity } from '@reddit/faceplate/types.js';
|
|
3
|
+
import type { ReactiveController, ReactiveElement } from 'lit';
|
|
4
|
+
import type { ParentWindowInfo } from '../../types/parent-window.js';
|
|
5
5
|
export type DevvitPostMessageEffectDetail = {
|
|
6
6
|
onEvent?(event: UIEvent): void;
|
|
7
7
|
} & ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devvit-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/devvit-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"devvit-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/devvit-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,IAAI,EACJ,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAChB,KAAK,EACL,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC,GAAG,CACA;IAAE,UAAU,EAAE,yBAAyB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,UAAU,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,GACtE;IAAE,UAAU,EAAE,mBAAmB,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,CAClD,CAAC;AAEF,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,GAAG,IAAI;IAE9E,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;IAE3E,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;IAE1F,SAAS,CAAC,eAAe,CACvB,WAAW,EAAE,mBAAmB,EAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACjC,IAAI;IAEP,SAAS,CAAC,uBAAuB,CAC/B,cAAc,EAAE,2BAA2B,EAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACjC,IAAI;IAEP,aAAa,IAAI,IAAI;IAIrB,gBAAgB,IAAI,IAAI;IAIxB,UAAU,IAAI,IAAI;IAElB,WAAW,IAAI,IAAI;IAOnB,mBAAmB,qBACC,gBAAgB,eACrB,6BAA6B,KACzC,IAAI,CASL;IAEF,MAAM,WAAY,MAAM,mBAAmB,OAAO,KAAK,IAAI,KAAG,IAAI,CA8BhE;CACH"}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _DevvitEffectHandler_handleEvent;
|
|
7
|
-
import { EffectType
|
|
7
|
+
import { EffectType } from '@devvit/protos';
|
|
8
8
|
export class DevvitEffectHandler {
|
|
9
9
|
constructor(host) {
|
|
10
10
|
_DevvitEffectHandler_handleEvent.set(this, (event) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Form, UIEvent } from '@devvit/protos';
|
|
2
|
-
import { ReactiveElement } from 'lit';
|
|
3
|
-
import { ParentWindowInfo } from '../../types/parent-window.js';
|
|
1
|
+
import type { Form, UIEvent } from '@devvit/protos';
|
|
2
|
+
import type { ReactiveElement } from 'lit';
|
|
3
|
+
import type { ParentWindowInfo } from '../../types/parent-window.js';
|
|
4
4
|
import { DevvitEffectHandler } from './devvit-effect-handler.js';
|
|
5
5
|
export declare class FormEffectHandler extends DevvitEffectHandler {
|
|
6
6
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/form-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"form-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/form-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,qBAAa,iBAAkB,SAAQ,mBAAmB;;gBAOtD,IAAI,EAAE,eAAe,EACrB,WAAW,GAAE,MAA6B,EAC1C,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS;IAOxC,WAAW,IAAI,IAAI;cAKT,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;CAYnF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NavigateToUrlEffect, UIEvent } from '@devvit/protos';
|
|
2
|
-
import { ReactiveElement } from 'lit';
|
|
3
|
-
import { ParentWindowInfo } from '../../types/parent-window.js';
|
|
1
|
+
import type { NavigateToUrlEffect, UIEvent } from '@devvit/protos';
|
|
2
|
+
import type { ReactiveElement } from 'lit';
|
|
3
|
+
import type { ParentWindowInfo } from '../../types/parent-window.js';
|
|
4
4
|
import { DevvitEffectHandler } from './devvit-effect-handler.js';
|
|
5
5
|
export declare class NavigateToUrlEffectHandler extends DevvitEffectHandler {
|
|
6
6
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigate-to-url-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/navigate-to-url-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"navigate-to-url-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/navigate-to-url-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AASjE,qBAAa,0BAA2B,SAAQ,mBAAmB;;gBAO/D,IAAI,EAAE,eAAe,EACrB,WAAW,GAAE,MAAyC,EACtD,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS;IAOxC,WAAW,IAAI,IAAI;cAOT,eAAe,CAChC,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACjC,IAAI;CA2CR"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RealtimeSubscriptionsEffect, UIEvent } from '@devvit/protos';
|
|
2
|
-
import { ReactiveElement } from 'lit';
|
|
1
|
+
import type { RealtimeSubscriptionsEffect, UIEvent } from '@devvit/protos';
|
|
2
|
+
import type { ReactiveElement } from 'lit';
|
|
3
3
|
import { DevvitEffectHandler } from './devvit-effect-handler.js';
|
|
4
4
|
export declare abstract class RealtimeEffectHandler extends DevvitEffectHandler {
|
|
5
5
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/realtime-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"realtime-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/realtime-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,8BAAsB,qBAAsB,SAAQ,mBAAmB;;IAGrE,SAAS,aAAa,IAAI,EAAE,eAAe;IAI3C,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI;IAE5C,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAEvE,aAAa,IAAI,IAAI;IAK9B,SAAS,KAAK,OAAO,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAE9D;IAED,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAM5C,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IASrC,uBAAuB,CAC9B,aAAa,EAAE,2BAA2B,EAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,IAAI;CASR"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Toast } from '@devvit/protos';
|
|
2
|
-
import { ReactiveElement } from 'lit';
|
|
3
|
-
import { ParentWindowInfo } from '../../types/parent-window.js';
|
|
1
|
+
import type { Toast } from '@devvit/protos';
|
|
2
|
+
import type { ReactiveElement } from 'lit';
|
|
3
|
+
import type { ParentWindowInfo } from '../../types/parent-window.js';
|
|
4
4
|
import { DevvitEffectHandler } from './devvit-effect-handler.js';
|
|
5
5
|
export declare class ToastEffectHandler extends DevvitEffectHandler {
|
|
6
6
|
#private;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"toast-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/toast-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,qBAAa,kBAAmB,SAAQ,mBAAmB;;gBAG7C,IAAI,EAAE,eAAe,EAAE,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS;IAKzE,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;CAgBzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropertyValues, TemplateResult } from 'lit';
|
|
1
|
+
import type { PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import { InputElement } from '@reddit/faceplate/base-classes/input-element.js';
|
|
3
|
-
import { FormField } from '@devvit/protos';
|
|
3
|
+
import type { FormField } from '@devvit/protos';
|
|
4
4
|
import '@reddit/faceplate-ui/components/faceplate-dropdown-menu.js';
|
|
5
5
|
import '@reddit/faceplate-ui/components/faceplate-menu.js';
|
|
6
6
|
import '@reddit/faceplate-ui/components/faceplate-switch-input.js';
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAS1D,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAG/E,OAAO,KAAK,EAA8B,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK5E,OAAO,4DAA4D,CAAC;AACpE,OAAO,mDAAmD,CAAC;AAC3D,OAAO,2DAA2D,CAAC;AAGnE,qBAAa,2BAA4B,SAAQ,YAAY;;IAE3D,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAG7B,YAAY,UAAS;IAGrB,YAAY,SAAM;IAKlB,WAAoB,MAAM,mCAWzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAwDhD,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAoDrC"}
|
|
@@ -27,7 +27,7 @@ import { dropdownButton } from '@reddit/faceplate-ui/templates/dropdownButton.js
|
|
|
27
27
|
import { listItem } from '@reddit/faceplate-ui/templates/list-item.js';
|
|
28
28
|
import { InputElement } from '@reddit/faceplate/base-classes/input-element.js';
|
|
29
29
|
import { msg } from '@reddit/faceplate/lib/i18n/localize.js';
|
|
30
|
-
import { FieldConfig_Selection, FormFieldValue_SelectionValue
|
|
30
|
+
import { FieldConfig_Selection, FormFieldValue_SelectionValue } from '@devvit/protos';
|
|
31
31
|
import { styles } from '../../../styles.js';
|
|
32
32
|
import '@reddit/faceplate-ui/components/faceplate-dropdown-menu.js';
|
|
33
33
|
import '@reddit/faceplate-ui/components/faceplate-menu.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropertyValues, TemplateResult } from 'lit';
|
|
1
|
+
import type { PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
import { InputElement } from '@reddit/faceplate/base-classes/input-element.js';
|
|
3
|
-
import { FormField } from '@devvit/protos';
|
|
3
|
+
import type { FormField } from '@devvit/protos';
|
|
4
4
|
import '@reddit/faceplate-ui/components/faceplate-checkbox-input.js';
|
|
5
5
|
import '@reddit/faceplate-ui/components/faceplate-radio-input.js';
|
|
6
6
|
export declare class DevvitFormSelectionList extends InputElement {
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1D,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAE/E,OAAO,KAAK,EAA8B,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAO5E,OAAO,6DAA6D,CAAC;AACrE,OAAO,0DAA0D,CAAC;AAElE,qBAAa,uBAAwB,SAAQ,YAAY;;IAEvD,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAK7B,WAAoB,MAAM,mCAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAsBhD,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC;CAgDrC"}
|
|
@@ -22,7 +22,7 @@ var _DevvitFormSelectionList_config, _DevvitFormSelectionList_selection, _Devvit
|
|
|
22
22
|
import { property } from 'lit/decorators.js';
|
|
23
23
|
import { html, repeat } from '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
|
|
24
24
|
import { InputElement } from '@reddit/faceplate/base-classes/input-element.js';
|
|
25
|
-
import { FieldConfig_Selection, FormFieldValue_SelectionValue
|
|
25
|
+
import { FieldConfig_Selection, FormFieldValue_SelectionValue } from '@devvit/protos';
|
|
26
26
|
import { renderFieldLabel } from '../fields/renderFieldLabel.js';
|
|
27
27
|
import { styles } from '../../../styles.js';
|
|
28
28
|
import '@reddit/faceplate-ui/components/faceplate-checkbox-input.js';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TemplateResult } from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
2
3
|
import { FaceplateDialog } from '@reddit/faceplate-ui/components/faceplate-dialog.js';
|
|
3
4
|
import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
|
|
4
5
|
import { FaceplateForm } from '@reddit/faceplate/components/faceplate-form.js';
|
|
5
|
-
import { FaceplateEvent } from '@reddit/faceplate/event-types.js';
|
|
6
|
-
import { Form
|
|
6
|
+
import type { FaceplateEvent } from '@reddit/faceplate/event-types.js';
|
|
7
|
+
import type { Form } from '@devvit/protos';
|
|
8
|
+
import { UIEvent } from '@devvit/protos';
|
|
7
9
|
import '@reddit/faceplate-ui/components/faceplate-dialog';
|
|
8
10
|
import '@reddit/faceplate/components/faceplate-form.js';
|
|
9
11
|
export type DevvitFormDialogEvent = FaceplateEvent<'devvit-form-dialog-event'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devvit-form-dialog.d.ts","sourceRoot":"","sources":["../../../library/src/client/formbuilder/devvit-form-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"devvit-form-dialog.d.ts","sourceRoot":"","sources":["../../../library/src/client/formbuilder/devvit-form-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,kEAAkE,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAwB,MAAM,kCAAkC,CAAC;AAI7F,OAAO,KAAK,EAAE,IAAI,EAAa,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAiC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAKxE,OAAO,kDAAkD,CAAC;AAC1D,OAAO,gDAAgD,CAAC;AAIxD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,0BAA0B,CAAC,GAAG;IAC/E,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,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,GAAG,IAAI;IA0GpD,MAAM;CAuDhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
2
|
import '@reddit/faceplate-ui/components/faceplate-switch-input.js';
|
|
3
|
-
import { TemplateResult } from 'lit';
|
|
3
|
+
import type { TemplateResult } from 'lit';
|
|
4
4
|
export declare const renderBooleanField: (field: FormField) => TemplateResult;
|
|
5
5
|
//# sourceMappingURL=renderBooleanField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"renderBooleanField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderBooleanField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,2DAA2D,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,kBAAkB,UAAW,SAAS,KAAG,cAWrD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
|
+
import type { TemplateResult } from 'lit';
|
|
3
3
|
export declare const renderFieldLabel: (field: FormField) => TemplateResult;
|
|
4
4
|
//# sourceMappingURL=renderFieldLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"renderFieldLabel.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderFieldLabel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1C,eAAO,MAAM,gBAAgB,UAAW,SAAS,KAAG,cAC4B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
2
|
-
import { FormField } from '@devvit/protos';
|
|
1
|
+
import type { TemplateResult } from 'lit';
|
|
2
|
+
import type { FormField } from '@devvit/protos';
|
|
3
3
|
export declare const renderFormFields: (fields: FormField[]) => TemplateResult;
|
|
4
4
|
//# sourceMappingURL=renderFormFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"renderFormFields.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderFormFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAsBhD,eAAO,MAAM,gBAAgB,WAAY,SAAS,EAAE,KAAG,cAEtD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
|
+
import type { TemplateResult } from 'lit';
|
|
3
3
|
export declare const renderGroupField: (field: FormField, renderFormFields: (fields: FormField[]) => TemplateResult) => TemplateResult;
|
|
4
4
|
//# sourceMappingURL=renderGroupField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"renderGroupField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderGroupField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,gBAAgB,UACpB,SAAS,6BACW,SAAS,EAAE,KAAK,cAAc,KACxD,cASF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit';
|
|
1
|
+
import type { TemplateResult } from 'lit';
|
|
2
2
|
import '@reddit/faceplate-ui/components/faceplate-form-helper-text.js';
|
|
3
3
|
export declare const renderHelpText: (helpText?: string | undefined) => TemplateResult;
|
|
4
4
|
//# sourceMappingURL=renderHelpText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"renderHelpText.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderHelpText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,+DAA+D,CAAC;AAEvE,eAAO,MAAM,cAAc,cAAe,MAAM,GAAG,SAAS,KAAG,cAGnD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
2
|
import '@reddit/faceplate-ui/components/faceplate-text-input.js';
|
|
3
|
-
import { TemplateResult } from 'lit';
|
|
3
|
+
import type { TemplateResult } from 'lit';
|
|
4
4
|
export declare const renderNumberField: (field: FormField) => TemplateResult;
|
|
5
5
|
//# sourceMappingURL=renderNumberField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderNumberField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderNumberField.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"renderNumberField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderNumberField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,iBAAiB,UAAW,SAAS,KAAG,cAmBpD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
2
|
import '@reddit/faceplate-ui/components/faceplate-textarea-input.js';
|
|
3
3
|
import '@reddit/faceplate-ui/components/faceplate-form-helper-text.js';
|
|
4
|
-
import { TemplateResult } from 'lit';
|
|
4
|
+
import type { TemplateResult } from 'lit';
|
|
5
5
|
export declare const renderParagraphField: (field: FormField) => TemplateResult;
|
|
6
6
|
//# sourceMappingURL=renderParagraphField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderParagraphField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderParagraphField.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"renderParagraphField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderParagraphField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,6DAA6D,CAAC;AACrE,OAAO,+DAA+D,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,oBAAoB,UAAW,SAAS,KAAG,cAoBvD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
2
|
import '../components/devvit-form-selection-dropdown.js';
|
|
3
3
|
import '../components/devvit-form-selection-list.js';
|
|
4
|
-
import { TemplateResult } from 'lit';
|
|
4
|
+
import type { TemplateResult } from 'lit';
|
|
5
5
|
export declare const renderSelectionField: (field: FormField) => TemplateResult;
|
|
6
6
|
//# sourceMappingURL=renderSelectionField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"renderSelectionField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderSelectionField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,iDAAiD,CAAC;AACzD,OAAO,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,oBAAoB,UAAW,SAAS,KAAG,cAavD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormField } from '@devvit/protos';
|
|
1
|
+
import type { FormField } from '@devvit/protos';
|
|
2
2
|
import '@reddit/faceplate-ui/components/faceplate-text-input.js';
|
|
3
|
-
import { TemplateResult } from 'lit';
|
|
3
|
+
import type { TemplateResult } from 'lit';
|
|
4
4
|
export declare const renderStringField: (field: FormField) => TemplateResult;
|
|
5
5
|
//# sourceMappingURL=renderStringField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderStringField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderStringField.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"renderStringField.d.ts","sourceRoot":"","sources":["../../../../library/src/client/formbuilder/fields/renderStringField.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,eAAO,MAAM,iBAAiB,UAAW,SAAS,KAAG,cAqBpD,CAAC"}
|
package/client/ui-app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomPost, HandleUIEventRequest, HandleUIEventResponse, Metadata, RenderPostRequest, RenderPostResponse, UIEventHandler, UIRequest, UIResponse } from '@devvit/protos';
|
|
2
|
-
import { ActorRef } from '@devvit/runtimes/common/runtime/ActorRef.js';
|
|
1
|
+
import type { CustomPost, HandleUIEventRequest, HandleUIEventResponse, Metadata, RenderPostRequest, RenderPostResponse, UIEventHandler, UIRequest, UIResponse } from '@devvit/protos';
|
|
2
|
+
import type { ActorRef } from '@devvit/runtimes/common/runtime/ActorRef.js';
|
|
3
3
|
/** An app that can render a custom post and respond to events. */
|
|
4
4
|
export type UIApp = CustomPost & UIEventHandler;
|
|
5
5
|
/**
|
package/client/ui-app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-app.d.ts","sourceRoot":"","sources":["../../library/src/client/ui-app.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ui-app.d.ts","sourceRoot":"","sources":["../../library/src/client/ui-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,UAAU,EACX,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAE5E,kEAAkE;AAClE,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,cAAc,CAAC;AAEhD;;;;GAIG;AACH,qBAAa,SAAU,YAAW,KAAK;;gBAIzB,GAAG,EAAE,QAAQ;IAKzB,aAAa,CACX,GAAG,EAAE,oBAAoB,EACzB,IAAI,EAAE,QAAQ,GAAG,SAAS,GACzB,OAAO,CAAC,qBAAqB,CAAC;IAIjC,UAAU,CAAC,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI3F,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC;IAIlF,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC;CAGpF"}
|
package/client/ui-app.js
CHANGED
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _RemoteApp_customPost, _RemoteApp_uiEventHandler;
|
|
13
|
-
import { CustomPostDefinition, UIEventHandlerDefinition
|
|
13
|
+
import { CustomPostDefinition, UIEventHandlerDefinition } from '@devvit/protos';
|
|
14
14
|
/**
|
|
15
15
|
* Adapts an ActorRef (usually provided by the deprecated BrowserRuntime) to the
|
|
16
16
|
* APIs implemented by a UIApp.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/ui-renderer",
|
|
3
|
-
"version": "0.10.17
|
|
3
|
+
"version": "0.10.17",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,13 +26,14 @@
|
|
|
26
26
|
"library:dev:styles-dist": "yarn library:build:styles-dist --watch",
|
|
27
27
|
"library:dev:typescript": "yarn library:build:typescript -w",
|
|
28
28
|
"library:lint": "redlint ./library",
|
|
29
|
-
"library:lint:fix": "yarn lint --fix",
|
|
29
|
+
"library:lint:fix": "yarn library:lint --fix",
|
|
30
30
|
"library:test": "yarn library:test:unit && yarn library:test:types && yarn library:lint",
|
|
31
31
|
"library:test:types": "tsc --noEmit -p library",
|
|
32
32
|
"library:test:unit": "vitest run -r library -c vitest.config.js",
|
|
33
33
|
"library:test:unit-with-coverage": "yarn library:test:unit --coverage",
|
|
34
34
|
"lint": "yarn library:lint && yarn lint:circular-deps",
|
|
35
35
|
"lint:circular-deps": "yarn madge --circular dist/**/*.js",
|
|
36
|
+
"lint:fix": "yarn library:lint:fix",
|
|
36
37
|
"prepublishOnly": "publish-package-json",
|
|
37
38
|
"test": "yarn library:test",
|
|
38
39
|
"test:types": "yarn library:test:types",
|
|
@@ -54,10 +55,10 @@
|
|
|
54
55
|
},
|
|
55
56
|
"types": "./index.d.ts",
|
|
56
57
|
"dependencies": {
|
|
57
|
-
"@devvit/protos": "0.10.17
|
|
58
|
-
"@devvit/runtime-lite": "0.10.17
|
|
59
|
-
"@devvit/runtimes": "0.10.17
|
|
60
|
-
"@devvit/shared-types": "0.10.17
|
|
58
|
+
"@devvit/protos": "0.10.17",
|
|
59
|
+
"@devvit/runtime-lite": "0.10.17",
|
|
60
|
+
"@devvit/runtimes": "0.10.17",
|
|
61
|
+
"@devvit/shared-types": "0.10.17",
|
|
61
62
|
"@dotlottie/player-component": "2.7.2",
|
|
62
63
|
"p-queue": "7.3.4",
|
|
63
64
|
"rxjs": "7.8.1"
|
|
@@ -82,9 +83,9 @@
|
|
|
82
83
|
"lit": "^2.0.0"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
|
-
"@devvit/eslint-config": "0.10.
|
|
86
|
-
"@devvit/repo-tools": "0.10.
|
|
87
|
-
"@devvit/tsconfig": "0.10.17
|
|
86
|
+
"@devvit/eslint-config": "0.10.17",
|
|
87
|
+
"@devvit/repo-tools": "0.10.17",
|
|
88
|
+
"@devvit/tsconfig": "0.10.17",
|
|
88
89
|
"@lit-labs/ssr": "^2.2.3",
|
|
89
90
|
"@lit/localize": "0.11.4",
|
|
90
91
|
"@open-wc/testing-helpers": "2.3.0",
|
|
@@ -117,5 +118,5 @@
|
|
|
117
118
|
"directory": "dist"
|
|
118
119
|
},
|
|
119
120
|
"source": "./src/index.ts",
|
|
120
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "0563739097f90f2a45c8854873a355a79272660e"
|
|
121
122
|
}
|