New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@deckdeckgo/core

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deckdeckgo/core - npm Package Compare versions

Comparing version

to
8.4.0

dist/deckdeckgo/p-85415102.entry.js

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 8.4.0 (2021-08-19)
### Features
- `deleteActiveSlide` make removal of DOM child optional
# 8.3.0 (2021-08-19)

@@ -2,0 +8,0 @@

9

dist/cjs/deckgo-deck.cjs.entry.js

@@ -851,11 +851,10 @@ 'use strict';

}
async deleteActiveSlide() {
async deleteActiveSlide(removeChild = true) {
if (this.activeIndex > this.length || this.activeIndex < 0) {
return;
}
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
if (!slide) {
return;
if (removeChild) {
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
slide === null || slide === void 0 ? void 0 : slide.parentElement.removeChild(slide);
}
slide.parentElement.removeChild(slide);
this.activeIndex = this.activeIndex > 0 ? this.activeIndex - 1 : 0;

@@ -862,0 +861,0 @@ this.length = this.length > 0 ? this.length - 1 : 0;

@@ -682,11 +682,10 @@ import { Component, Element, Listen, Method, Prop, State, Event, h, Watch, Host } from '@stencil/core';

}
async deleteActiveSlide() {
async deleteActiveSlide(removeChild = true) {
if (this.activeIndex > this.length || this.activeIndex < 0) {
return;
}
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
if (!slide) {
return;
if (removeChild) {
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
slide === null || slide === void 0 ? void 0 : slide.parentElement.removeChild(slide);
}
slide.parentElement.removeChild(slide);
this.activeIndex = this.activeIndex > 0 ? this.activeIndex - 1 : 0;

@@ -1540,4 +1539,7 @@ this.length = this.length > 0 ? this.length - 1 : 0;

"complexType": {
"signature": "() => Promise<void>",
"parameters": [],
"signature": "(removeChild?: boolean) => Promise<void>",
"parameters": [{
"tags": [],
"text": ""
}],
"references": {

@@ -1544,0 +1546,0 @@ "Promise": {

@@ -850,11 +850,10 @@ import { h as h$1, attachShadow, createEvent, Host, proxyCustomElement } from '@stencil/core/internal/client';

}
async deleteActiveSlide() {
async deleteActiveSlide(removeChild = true) {
if (this.activeIndex > this.length || this.activeIndex < 0) {
return;
}
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
if (!slide) {
return;
if (removeChild) {
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
slide === null || slide === void 0 ? void 0 : slide.parentElement.removeChild(slide);
}
slide.parentElement.removeChild(slide);
this.activeIndex = this.activeIndex > 0 ? this.activeIndex - 1 : 0;

@@ -861,0 +860,0 @@ this.length = this.length > 0 ? this.length - 1 : 0;

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-9eee8309.js";(()=>{const o=import.meta.url,i={};return""!==o&&(i.resourcesUrl=new URL(".",o).href),e(i)})().then((e=>o([["p-dddad230",[[1,"deckgo-deck",{keyboard:[4],embedded:[4],cloneBackground:[4,"clone-background"],reveal:[4],revealOnMobile:[4,"reveal-on-mobile"],animation:[513],direction:[513],directionMobile:[513,"direction-mobile"],autoSlide:[1,"auto-slide"],autoSlideInterval:[2,"auto-slide-interval"],rtl:[32],activeIndex:[32],dir:[32],initSlideSize:[64],toggleKeyboardAssist:[64],getDeckDefinition:[64],getSlideDefinition:[64],loadBackground:[64],loadHeader:[64],loadFooter:[64],isBeginning:[64],isEnd:[64],getActiveIndex:[64],getLength:[64],slideNext:[64],slidePrev:[64],slideTo:[64],deleteActiveSlide:[64],blockSlide:[64],toggleFullScreen:[64],doPrint:[64],lazyLoadAllContent:[64]},[[1,"mousedown","mousedown"],[1,"touchstart","touchstart"],[1,"mouseup","mouseup"],[1,"touchend","touchend"],[1,"mousemove","mousemove"],[1,"touchmove","touchmove"],[1,"dblclick","dblclick"],[1,"contextmenu","contextMenu"],[0,"scrolling","scrolling"],[0,"keypress","keypress"],[0,"slideDidLoad","slideDidLoad"]]]]]],e)));
import{p as e,b as o}from"./p-9eee8309.js";(()=>{const o=import.meta.url,i={};return""!==o&&(i.resourcesUrl=new URL(".",o).href),e(i)})().then((e=>o([["p-85415102",[[1,"deckgo-deck",{keyboard:[4],embedded:[4],cloneBackground:[4,"clone-background"],reveal:[4],revealOnMobile:[4,"reveal-on-mobile"],animation:[513],direction:[513],directionMobile:[513,"direction-mobile"],autoSlide:[1,"auto-slide"],autoSlideInterval:[2,"auto-slide-interval"],rtl:[32],activeIndex:[32],dir:[32],initSlideSize:[64],toggleKeyboardAssist:[64],getDeckDefinition:[64],getSlideDefinition:[64],loadBackground:[64],loadHeader:[64],loadFooter:[64],isBeginning:[64],isEnd:[64],getActiveIndex:[64],getLength:[64],slideNext:[64],slidePrev:[64],slideTo:[64],deleteActiveSlide:[64],blockSlide:[64],toggleFullScreen:[64],doPrint:[64],lazyLoadAllContent:[64]},[[1,"mousedown","mousedown"],[1,"touchstart","touchstart"],[1,"mouseup","mouseup"],[1,"touchend","touchend"],[1,"mousemove","mousemove"],[1,"touchmove","touchmove"],[1,"dblclick","dblclick"],[1,"contextmenu","contextMenu"],[0,"scrolling","scrolling"],[0,"keypress","keypress"],[0,"slideDidLoad","slideDidLoad"]]]]]],e)));

@@ -847,11 +847,10 @@ import { h as h$1, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-998c833e.js';

}
async deleteActiveSlide() {
async deleteActiveSlide(removeChild = true) {
if (this.activeIndex > this.length || this.activeIndex < 0) {
return;
}
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
if (!slide) {
return;
if (removeChild) {
const slide = this.el.querySelector('.deckgo-slide-container:nth-child(' + (this.activeIndex + 1) + ')');
slide === null || slide === void 0 ? void 0 : slide.parentElement.removeChild(slide);
}
slide.parentElement.removeChild(slide);
this.activeIndex = this.activeIndex > 0 ? this.activeIndex - 1 : 0;

@@ -858,0 +857,0 @@ this.length = this.length > 0 ? this.length - 1 : 0;

@@ -16,3 +16,3 @@ /* eslint-disable */

"cloneBackground": boolean;
"deleteActiveSlide": () => Promise<void>;
"deleteActiveSlide": (removeChild?: boolean) => Promise<void>;
"direction": 'horizontal' | 'vertical' | 'papyrus';

@@ -19,0 +19,0 @@ "directionMobile": 'horizontal' | 'vertical' | 'papyrus';

@@ -105,3 +105,3 @@ import { EventEmitter } from '../../../stencil-public-runtime';

slideTo(index: number, speed?: number | undefined, emitEvent?: boolean): Promise<void>;
deleteActiveSlide(): Promise<void>;
deleteActiveSlide(removeChild?: boolean): Promise<void>;
blockSlide(block: boolean): Promise<void>;

@@ -108,0 +108,0 @@ toggleFullScreen(): Promise<void>;

{
"name": "@deckdeckgo/core",
"version": "8.3.0",
"version": "8.4.0",
"description": "Add a presentation to your web application using HTML and Web Components",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",