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

@iiif/iiif-tree-component

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iiif/iiif-tree-component - npm Package Compare versions

Comparing version

to
2.0.4

0

dist-commonjs/index.d.ts

@@ -0,0 +0,0 @@ import { TreeNode } from "manifesto.js";

14

dist-commonjs/index.js

@@ -39,3 +39,3 @@ "use strict";

{{/for}}",
treeTemplate: '<li>\
treeTemplate: '<li dir={{>dir}}>\
{^{if nodes && nodes.length}}\

@@ -83,4 +83,9 @@ <div class="toggle" data-link="class{merge:expanded toggle=\'expanded\'}"></div>\

init: function (tagCtx, _linkCtx, _ctx) {
this.data = tagCtx.view.data;
//this.data.text = this.data.label;
var data = tagCtx.view.data;
this.data = data;
var lang = data.data.__jsonld.label['@language'];
data.dir = "ltr";
if (lang && that._data.rtlLanguageCodes.includes(lang.trim())) {
data.dir = "rtl";
}
},

@@ -171,3 +176,4 @@ onAfterLink: function () {

topRangeIndex: 0,
treeSortType: manifold_1.TreeSortType.NONE
treeSortType: manifold_1.TreeSortType.NONE,
rtlLanguageCodes: "ar, ara, dv, div, he, heb, ur, urd",
};

@@ -174,0 +180,0 @@ };

@@ -0,0 +0,0 @@ import { TreeNode } from "manifesto.js";

@@ -37,3 +37,3 @@ var __extends = (this && this.__extends) || (function () {

{{/for}}",
treeTemplate: '<li>\
treeTemplate: '<li dir={{>dir}}>\
{^{if nodes && nodes.length}}\

@@ -81,4 +81,9 @@ <div class="toggle" data-link="class{merge:expanded toggle=\'expanded\'}"></div>\

init: function (tagCtx, _linkCtx, _ctx) {
this.data = tagCtx.view.data;
//this.data.text = this.data.label;
var data = tagCtx.view.data;
this.data = data;
var lang = data.data.__jsonld.label['@language'];
data.dir = "ltr";
if (lang && that._data.rtlLanguageCodes.includes(lang.trim())) {
data.dir = "rtl";
}
},

@@ -169,3 +174,4 @@ onAfterLink: function () {

topRangeIndex: 0,
treeSortType: TreeSortType.NONE
treeSortType: TreeSortType.NONE,
rtlLanguageCodes: "ar, ara, dv, div, he, heb, ur, urd",
};

@@ -172,0 +178,0 @@ };

{
"name": "@iiif/iiif-tree-component",
"version": "2.0.3",
"version": "2.0.4",
"description": "",

@@ -20,3 +20,4 @@ "main": "./dist-commonjs/index.js",

"prepublishOnly": "npm run build && npm run test",
"start": "npx serve"
"start": "npx serve",
"test": ""
},

@@ -35,2 +36,3 @@ "repository": {

"@types/node": "^8.10.52",
"@types/jquery": "2.0.34",
"awesome-typescript-loader": "^5.2.1",

@@ -48,7 +50,6 @@ "cross-env": "^5.2.1",

"dependencies": {
"@iiif/base-component": "2.0.1",
"@iiif/manifold": "2.0.2",
"@types/jquery": "2.0.34",
"manifesto.js": "4.0.1"
"@iiif/base-component": "2.*",
"@iiif/manifold": "2.*",
"manifesto.js": "4.*"
}
}

@@ -19,3 +19,2 @@ {

"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"target": "es5"

@@ -22,0 +21,0 @@ },

@@ -0,0 +0,0 @@ import { BaseComponent, IBaseComponentOptions } from '@iiif/base-component';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display