From 823134d7629bad2b82875964169340609c0ce2c9 Mon Sep 17 00:00:00 2001 From: Christoph Scholz Date: Mon, 24 Aug 2020 19:05:47 +0200 Subject: [PATCH] add html to converse.env --- CHANGES.md | 1 + src/headless/converse-core.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e3df33abf..75f4b1b36 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,7 @@ Soon we'll deprecate the latter, so prepare now. - #2101: Improve contrast of text in control box - #2187: Avoid merging initial settings with themselves every time settings are extended. - #2199: Fix BOSH session restore. +- #2201: added html to converse.env - Removed the mockups from the project. Recommended to use tests instead. - The API method `api.settings.update` has been deprecated in favor of `api.settings.extend`. - Filter roster contacts via all available information (JID, nickname and VCard full name). diff --git a/src/headless/converse-core.js b/src/headless/converse-core.js index 2383176ec..d011a5ff6 100644 --- a/src/headless/converse-core.js +++ b/src/headless/converse-core.js @@ -22,6 +22,7 @@ import { Model } from '@converse/skeletor/src/model.js'; import { Router } from '@converse/skeletor/src/router.js'; import { __, i18n } from './i18n'; import { assignIn, debounce, invoke, isFunction, isObject, isString, pick } from 'lodash-es'; +import { html } from 'lit-element'; dayjs.extend(advancedFormat); @@ -1633,7 +1634,7 @@ Object.assign(converse, { * @property {function} converse.env.sizzle - [Sizzle](https://sizzlejs.com) CSS selector engine. * @property {object} converse.env.utils - Module containing common utility methods used by Converse. */ - 'env': { $build, $iq, $msg, $pres, Model, Collection, Promise, Strophe, _, dayjs, log, sizzle, stanza_utils, u, 'utils': u } + 'env': { $build, $iq, $msg, $pres, Model, Collection, Promise, Strophe, _, dayjs, log, sizzle, stanza_utils, u, 'utils': u, html } }); /**