Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Dev #1055

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Dev #1055

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archive/figma-paperclip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"husky": "^4.2.5",
"p-limit": "^2.3.0",
"pretty-quick": "^2.0.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"dependencies": {
"chalk": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lerna": "^4.0.0",
"prettier": "2.5.1",
"pretty-quick": "^3.1.3",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"resolutions": {
"vscode-languageserver-protocol": "3.15.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/avocode-paperclip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"gitHead": "28439bfc22f88290b1a12e4f364bdd19667d715a"
}
2 changes: 1 addition & 1 deletion packages/jest-paperclip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@paperclip-ui/builder": "^18.5.6",
"@paperclip-ui/core": "^18.5.6",
"resolve": "^1.17.0",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"gitHead": "28439bfc22f88290b1a12e4f364bdd19667d715a"
}
2 changes: 1 addition & 1 deletion packages/paperclip-autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"chai": "^4.2.0",
"eslint": "^7.4.0",
"mocha": "^8.0.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"gitHead": "28439bfc22f88290b1a12e4f364bdd19667d715a"
}
2 changes: 1 addition & 1 deletion packages/paperclip-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"chai": "^4.3.4",
"lodash": "^4.17.21",
"mocha": "^9.1.3",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"gitHead": "28439bfc22f88290b1a12e4f364bdd19667d715a"
}
2 changes: 1 addition & 1 deletion packages/paperclip-cli-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"@typescript-eslint/parser": "^3.6.1",
"eslint": "^7.4.0",
"mocha": "^8.0.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/paperclip-cli-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"eslint": "^7.4.0",
"lodash": "^4.17.19",
"mocha": "^8.0.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/paperclip-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"@typescript-eslint/parser": "^3.6.1",
"eslint": "^7.4.0",
"mocha": "^8.0.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/paperclip-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"gitHead": "28439bfc22f88290b1a12e4f364bdd19667d715a"
}
2 changes: 1 addition & 1 deletion packages/paperclip-compiler-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"mocha": "^8.0.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/paperclip-coverage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"chalk": "2.0.0",
"cli-table": "^0.3.11",
"html-entities": "^1.2.1",
"typescript": "^4.2.3"
"typescript": "^4.6.2"
},
"devDependencies": {
"@paperclip-ui/cli-minimal": "^18.5.6",
Expand Down
22 changes: 11 additions & 11 deletions packages/paperclip-coverage/src/generate/html/ui/atoms.pc.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
const encode = value =>
value.replace(/['\u00A0-香<>\&]/gim, function(i) {
const encode = (value) =>
value.replace(/['<>\u00A0-香<>\&]/gim, function (i) {
return "&#" + i.charCodeAt(0) + ";";
});

const flatten = v =>
const flatten = (v) =>
v.reduce((ary, v) => {
if (Array.isArray(v)) {
ary.push(...flatten(v));
Expand All @@ -14,9 +14,9 @@ const flatten = v =>
return ary;
}, []);

const VOID_TAGS = ["br", "img"];
const VOID_TAGS = ["br", "img", "hr"];

const isVoid = v => VOID_TAGS.includes(v);
const isVoid = (v) => VOID_TAGS.includes(v);

const createElement = (tag, attributes, ...children) => {
if (typeof tag === "function") {
Expand Down Expand Up @@ -49,7 +49,7 @@ const createElement = (tag, attributes, ...children) => {

buffer.push(
flatten(children)
.filter(v => v !== false && v != null)
.filter((v) => v !== false && v != null)
.join("")
);

Expand All @@ -58,18 +58,18 @@ const createElement = (tag, attributes, ...children) => {
return buffer.join("");
};

const stringifyStyle = value =>
const stringifyStyle = (value) =>
Object.entries(value)
.map(([key, value]) => key + ":" + value)
.join(";");

const Fragment = props => flatten(props.children).join("");
const Fragment = (props) => flatten(props.children).join("");

const _vanilla = {
createElement,
Fragment,
forwardRef: v => v,
memo: v => v
forwardRef: (v) => v,
memo: (v) => v,
};
function getDefault(module) {
return module.default || module;
Expand All @@ -81,7 +81,7 @@ function castStyle(value) {
return value
.trim()
.split(";")
.reduce(function(obj, keyValue) {
.reduce(function (obj, keyValue) {
var kvp = keyValue.split(":");
var key = kvp[0];
var value = kvp[1];
Expand Down
30 changes: 15 additions & 15 deletions packages/paperclip-coverage/src/generate/html/ui/page.pc.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
const encode = value =>
value.replace(/['\u00A0-香<>\&]/gim, function(i) {
const encode = (value) =>
value.replace(/['<>\u00A0-香<>\&]/gim, function (i) {
return "&#" + i.charCodeAt(0) + ";";
});

const flatten = v =>
const flatten = (v) =>
v.reduce((ary, v) => {
if (Array.isArray(v)) {
ary.push(...flatten(v));
Expand All @@ -14,9 +14,9 @@ const flatten = v =>
return ary;
}, []);

const VOID_TAGS = ["br", "img"];
const VOID_TAGS = ["br", "img", "hr"];

const isVoid = v => VOID_TAGS.includes(v);
const isVoid = (v) => VOID_TAGS.includes(v);

const createElement = (tag, attributes, ...children) => {
if (typeof tag === "function") {
Expand Down Expand Up @@ -49,7 +49,7 @@ const createElement = (tag, attributes, ...children) => {

buffer.push(
flatten(children)
.filter(v => v !== false && v != null)
.filter((v) => v !== false && v != null)
.join("")
);

Expand All @@ -58,18 +58,18 @@ const createElement = (tag, attributes, ...children) => {
return buffer.join("");
};

const stringifyStyle = value =>
const stringifyStyle = (value) =>
Object.entries(value)
.map(([key, value]) => key + ":" + value)
.join(";");

const Fragment = props => flatten(props.children).join("");
const Fragment = (props) => flatten(props.children).join("");

const _vanilla = {
createElement,
Fragment,
forwardRef: v => v,
memo: v => v
forwardRef: (v) => v,
memo: (v) => v,
};
function getDefault(module) {
return module.default || module;
Expand All @@ -81,7 +81,7 @@ function castStyle(value) {
return value
.trim()
.split(";")
.reduce(function(obj, keyValue) {
.reduce(function (obj, keyValue) {
var kvp = keyValue.split(":");
var key = kvp[0];
var value = kvp[1];
Expand All @@ -101,19 +101,19 @@ var $$Default = _vanilla.memo(
"html",
{
className: "_cee54446 _3ef4ccdc _pub-3ef4ccdc",
ref: ref
ref: ref,
},
_vanilla.createElement(
"head",
{
className: "_90b8db53 _3ef4ccdc _pub-3ef4ccdc"
className: "_90b8db53 _3ef4ccdc _pub-3ef4ccdc",
},
null
props["head"]
),
_vanilla.createElement(
"body",
{
className: "_e7bfebc5 _3ef4ccdc _pub-3ef4ccdc"
className: "_e7bfebc5 _3ef4ccdc _pub-3ef4ccdc",
},
props["children"]
)
Expand Down
Loading