@indra.ai/deva.feecting 0.0.40 → 0.0.42
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/_parse.js +6 -4
- package/package.json +2 -2
package/_parse.js
CHANGED
|
@@ -98,10 +98,10 @@ class Parser {
|
|
|
98
98
|
.replace(/(\n\s*)thumb:\s?(.+)/g, `$1<div class="thumbnail"><img src="$2" /></div>`)
|
|
99
99
|
.replace(/(\n\s*)(button)\[(.+)\]:\s?(.+)/g, '$1<button class="btn $2" title="$3" data-button="$4">$3</button>')
|
|
100
100
|
|
|
101
|
-
// cmd/tty tag parser
|
|
102
|
-
.replace(/(\n\s*)(cmd|tty):\s?(.+)\r?/g, `$1<div class="item $2"><span class="label">$2</span><span class="value"><button class="btn $2" alt="$2" data-$2="$3"></button>$3</span></div>`)
|
|
103
|
-
|
|
104
|
-
.replace(/(\s\n*)(cmd|tty)\[(.+)\]:(.+)\r?/g, `$1<div class="item $2"><span class="label">$2</span><span class="value"><button class="btn $2" alt="$2 $4" data-$2="$4">$3</button></span></div>`)
|
|
101
|
+
// // cmd/tty tag parser
|
|
102
|
+
// .replace(/(\n\s*)(cmd|tty):\s?(.+)\r?/g, `$1<div class="item $2"><span class="label">$2</span><span class="value"><button class="btn $2" alt="$2" data-$2="$3"></button>$3</span></div>`)
|
|
103
|
+
//
|
|
104
|
+
// .replace(/(\s\n*)(cmd|tty)\[(.+)\]:(.+)\r?/g, `$1<div class="item $2"><span class="label">$2</span><span class="value"><button class="btn $2" alt="$2 $4" data-$2="$4">$3</button></span></div>`)
|
|
105
105
|
|
|
106
106
|
// .replace(/(\s\n*)(law):(.+)\r?/g, `$1<div class="item $2"><button class="label" data-$2="#legal add $3">$2</button><span class="value">$3</span></div>`)
|
|
107
107
|
// .replace(/(\s\n*)(law)\[(.+)\]:(.+)\r?/g, `$1<div class="item $2"><button class="label" data-$2="#legal add:$3 $4">$2</button><span class="value">$4</span></div>`)
|
|
@@ -162,6 +162,8 @@ class Parser {
|
|
|
162
162
|
if (this.vars.bgcolor) cssStyle.push(`--browser-item-bgcolor:${this.vars.bgcolor.value}`);
|
|
163
163
|
if (this.vars.bg) cssStyle.push(`--browser-item-background: url(${this.vars.bg.value})`);
|
|
164
164
|
if (this.vars.color) cssStyle.push(`--browser-item-color: ${this.vars.color.value}`);
|
|
165
|
+
if (this.vars.highlight) cssStyle.push(`--browser-item-highlight: ${this.vars.highlight.value}`);
|
|
166
|
+
if (this.vars.shadow) cssStyle.push(`--browser-item-shadow: ${this.vars.shadow.value}`);
|
|
165
167
|
if (this.vars.size) cssStyle.push(`--browser-item-size: ${this.vars.size.value}`);
|
|
166
168
|
|
|
167
169
|
if (cssStyle.length) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": 5461868899003,
|
|
3
3
|
"name": "@indra.ai/deva.feecting",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.42",
|
|
5
5
|
"author": "Quinn Michaels",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "The Feecting Deva manages all the parsing of feecting language in deva.world.",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://deva.space/devas/feecting",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@indra.ai/deva": "^1.5.
|
|
31
|
+
"@indra.ai/deva": "^1.5.41",
|
|
32
32
|
"needle": "^3.2.0"
|
|
33
33
|
},
|
|
34
34
|
"data": {
|