Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
eb18a6d
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 2, 2023
1 parent 9695c30 commit 8728d83
Show file tree
Hide file tree
Showing 9 changed files with 646 additions and 255 deletions.
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog for Weavy

## v17.0.3

<time>2023-06-02</time>

* Fixed some issues with HTML attributes in uikit-js using *custom elements*.
* Fixed some issues when configuring uikit-js.
* Fixed some issues with the Message API page in weavy-js-dotnet example app.

## v17.0.2

<time>2023-05-17</time>
Expand Down
264 changes: 129 additions & 135 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weavy/dropin-js",
"version": "17.0.2",
"version": "17.0.3",
"author": "Weavy",
"description": "Javascript library for the Weavy drop-in UI",
"homepage": "https://github.com/weavy/weavy-dropin-js",
Expand Down
10 changes: 6 additions & 4 deletions src/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import WeavyOverlays from "./overlays";
import Weavy from "../weavy";
import WeavyStyles, { applyStyleSheet } from "./styles";
import FileBrowser from "./filebrowser";
import { classNamesConcat } from "../utils/dom";

const console = new WeavyConsole("App");
//console.debug("app.js");
Expand All @@ -31,7 +32,6 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {

attributeChangedCallback(name, oldValue, newValue) {
if (name === "class") {
console.log("Updating class");
this.whenBuilt().then(() => {
this.root.className = newValue;
this.panel.className = newValue;
Expand Down Expand Up @@ -127,6 +127,8 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
* @property {string} type - The kind of app. <br> • posts <br> • files <br> • messenger <br> • notifications <br> • comments <br> • chat
* @property {string} className - Custom className to add to the app.
* @property {string} css - Custom CSS to add to the app.
* @property {boolean} [shadowMode=closed] - Set whether ShadowDOMs should be `closed` (recommended) or `open`.
* @property {string} [filebrowser=https://filebrowser.weavy.io/v14/] - The url to the filebrowser.
*/
options = {};

Expand Down Expand Up @@ -317,7 +319,6 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
// Set id

this.configure();
console.log("constructor")

try {
this.root = new WeavyRoot(this);
Expand Down Expand Up @@ -357,6 +358,7 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
}

connectedCallback() {

this.append(this.root.root);
document.documentElement.append(this.overlayRoot.root);

Expand Down Expand Up @@ -398,8 +400,8 @@ export default class WeavyApp extends MixinWeavyEvents(HTMLElement) {
this.autoLoad = false;
}

if (this.options.className !== undefined) {
this.className = this.options.className;
if (this.options.className !== undefined && this.options.className !== null) {
this.className = classNamesConcat(this.options.className, this.className);
}

if (this.uid === null && this.options.uid) {
Expand Down

0 comments on commit 8728d83

Please sign in to comment.