Compare commits

...
Author SHA1 Message Date
StandardNotes CI b042326301 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].6
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-29 19:38:02 +00:00
StandardNotes CI db066b2693 chore(release): components 2022-06-29 19:37:50 +00:00
Aman Harwara 5cd449fe80 fix(web): navigation styles (#1177) 2022-06-29 14:33:25 -05:00
StandardNotes CI 92360aaf66 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-29 19:23:23 +00:00
StandardNotes CI 931c66dc16 chore(release): components 2022-06-29 19:23:11 +00:00
Johnny AandJohnny Almonte 6c19adba19 fix(advanced checklist): style and layout improvements (#1182)
* fix: reorder icon color

* fix: change reorder icon design

* feat: useResize hook

* feat: responsive task item

* fix: adjust padding for mobile devices

* fix: checkbox size should be proportional to text size

Co-authored-by: Johnny Almonte <[email protected]>
2022-06-29 15:18:54 -04:00
StandardNotes CI 38dc61a80e chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
2022-06-29 17:34:07 +00:00
StandardNotes CI b03409c2a0 chore(release): components 2022-06-29 17:33:54 +00:00
Mo 26585c0e1f chore: plus editor files alert copy 2022-06-29 12:29:33 -05:00
StandardNotes CI de3b27d563 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].5
 - @standardnotes/[email protected]
2022-06-29 16:09:24 +00:00
StandardNotes CI fd5c4f44ce chore(release): components 2022-06-29 16:09:10 +00:00
Mo 0ecaabd859 chore: undeprecate advanced md editor (#1181) 2022-06-29 11:02:46 -05:00
StandardNotes CI a4379a3e43 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].4
2022-06-29 14:05:36 +00:00
Mo b8efd823ac fix: desktop backups directory change (#1178)
* fix: only move backup related files when changing file backups location

* fix: remove presently recursive error handling for third party component installation
2022-06-29 09:03:09 -05:00
StandardNotes CI a3a654f381 chore(release): publish
- @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected]
 - @standardnotes/[email protected].3
2022-06-28 17:47:55 +00:00
Mo d198625cfa fix(mobile): turn native textview into uncontrolled component (#1176)
Switching from non-plain type to plain type renders initial state.text, which wasn't being properly updated on all changes.
2022-06-28 12:45:57 -05:00
168 changed files with 827 additions and 8751 deletions
Binary file not shown.
+1 -1
View File
@@ -47,7 +47,7 @@
"@types/hoist-non-react-statics/@types/react": "17.0.2"
},
"dependencies": {
"@standardnotes/snjs": "^2.118.1"
"@standardnotes/snjs": "^2.118.3"
},
"devDependencies": {
"@commitlint/cli": "^17.0.2",
+20
View File
@@ -3,6 +3,26 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.5.6](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-29)
### Bug Fixes
* **web:** navigation styles ([#1177](https://github.com/standardnotes/app/issues/1177)) ([5cd449f](https://github.com/standardnotes/app/commit/5cd449fe800b8950fab2599968933b120222d5fc))
## [2.5.5](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-29)
### Bug Fixes
* **advanced checklist:** style and layout improvements ([#1182](https://github.com/standardnotes/app/issues/1182)) ([6c19adb](https://github.com/standardnotes/app/commit/6c19adba1902ef054f501d57f6e284fbf44ca28b))
## [2.5.4](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-29)
**Note:** Version bump only for package @standardnotes/components-meta
## [2.5.3](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-29)
**Note:** Version bump only for package @standardnotes/components-meta
## [2.5.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-28)
### Bug Fixes
+3 -3
View File
@@ -48,13 +48,13 @@ var Editors = [
path: 'Editors/org.standardnotes.simple-task-editor',
static_files: __spreadArray([], BaseEditorStaticFiles, true),
},
];
var DeprecatedEditors = [
{
identifier: 'org.standardnotes.advanced-markdown-editor',
path: 'Deprecated/org.standardnotes.advanced-markdown-editor',
path: 'Editors/org.standardnotes.advanced-markdown-editor',
static_files: __spreadArray([], BaseEditorStaticFiles, true),
},
];
var DeprecatedEditors = [
{
identifier: 'org.standardnotes.bold-editor',
path: 'Deprecated/org.standardnotes.bold-editor',
@@ -1,13 +1,13 @@
{
"files": {
"main.js": "./static/js/main.js",
"main.css": "./static/css/main.0a94b5ff.css",
"main.css": "./static/css/main.611ba1bf.css",
"index.html": "./index.html",
"main.js.map": "./static/js/main.js.map",
"main.0a94b5ff.css.map": "./static/css/main.0a94b5ff.css.map"
"main.611ba1bf.css.map": "./static/css/main.611ba1bf.css.map"
},
"entrypoints": [
"static/js/main.js",
"static/css/main.0a94b5ff.css"
"static/css/main.611ba1bf.css"
]
}
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A great way to manage short-term and long-term to-do's. You can mark tasks as completed, change their order, and edit the text naturally in place."/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Advanced Checklist</title><script defer="defer" src="./static/js/main.js"></script><link href="./static/css/main.0a94b5ff.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div class="sn-component" id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A great way to manage short-term and long-term to-do's. You can mark tasks as completed, change their order, and edit the text naturally in place."/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Advanced Checklist</title><script defer="defer" src="./static/js/main.js"></script><link href="./static/css/main.611ba1bf.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div class="sn-component" id="root"></div></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
{
"files": {
"main.js": "./static/js/main.js",
"main.css": "./static/css/main.a482786a.css",
"main.css": "./static/css/main.3ab9f5ab.css",
"static/media/material-icons-two-tone.woff": "./static/media/material-icons-two-tone..woff",
"static/media/material-icons-two-tone.woff2": "./static/media/material-icons-two-tone..woff2",
"static/media/material-icons-round.woff": "./static/media/material-icons-round..woff",
@@ -74,10 +74,10 @@
"static/media/KaTeX_Size3-Regular.woff2": "./static/media/KaTeX_Size3-Regular..woff2",
"index.html": "./index.html",
"main.js.map": "./static/js/main.js.map",
"main.a482786a.css.map": "./static/css/main.a482786a.css.map"
"main.3ab9f5ab.css.map": "./static/css/main.3ab9f5ab.css.map"
},
"entrypoints": [
"static/js/main.js",
"static/css/main.a482786a.css"
"static/css/main.3ab9f5ab.css"
]
}
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A lightweight WYSIWYG markdown editor, derivated from Milkdown editor"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Markdown Visual</title><script defer="defer" src="./static/js/main.js"></script><link href="./static/css/main.a482786a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A lightweight WYSIWYG markdown editor, derivated from Milkdown editor"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Markdown Visual</title><script defer="defer" src="./static/js/main.js"></script><link href="./static/css/main.3ab9f5ab.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
document.addEventListener("DOMContentLoaded",(function(){let e,t,n,o,i,a=!1,r=!0,s=!1;const l=["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"].join(", ");function c(){if(t){const i=t;e.saveItemWithPresave(i,(()=>{o=$("#summernote").summernote("code"),i.clientData=n,i.content.text=o,i.content.preview_plain=function(e,t=90){return e.length<=t?e:e.substring(0,t)+"..."}(function(e){const t=document.implementation.createHTMLDocument("New").body;return t.innerHTML=e,t.textContent||t.innerText||""}(o)),i.content.preview_html=null}))}}function u(){return e.getComponentDataValueForKey("notes")||{}}$("#summernote").summernote({height:500,minHeight:null,maxHeight:null,focus:!0,tabDisable:!0,showDomainOnlyForAutolink:!1,toolbar:[["para",["style"]],["style",["bold","italic","underline","strikethrough","clear"]],["fontsize",["fontsize","fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["height",["height"]],["insert",["table","link","hr","picture","video"]],["misc",["codeview","help"]]],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Monospace","Roboto","system-ui","Tahoma","Times New Roman","Verdana"],callbacks:{onInit:function(){},onImageUpload:function(){alert("Until we can encrypt image files, uploads are not currently supported. We recommend using the Image button in the toolbar and copying an image URL instead.")}}}),$("#summernote").on("summernote.change",(function(){document.querySelectorAll(l).forEach((e=>e.setAttribute("dir","auto"))),a||c()})),$("textarea.note-codable").on("input",(()=>{c()})),e=new ComponentRelay({initialPermissions:[{name:"stream-context-item"}],targetWindow:window,onReady:()=>{const t=e.platform;t&&document.body.classList.add(t)}}),e.streamContextItem((l=>{!function(l){if(l.uuid!==i&&(o=null,r=!0,i=l.uuid),t=l,l.isMetadataUpdate)return;n=l.clientData;let c=l.content.text;if($(".note-editable").attr("spellcheck",JSON.stringify(l.content.spellcheck)),c==o)return;const m=$("#summernote");if(m){a=!0;const t=/<[a-z][\s\S]*>/i.test(c);s||(m.summernote("fullscreen.toggle"),s=!0),r&&!t&&(c=((c||"")+"").replace(/\t/g," ").replace(/\r\n|\r|\n/g,"<br />"));let n=!1;if(function(e){const t=(new DOMParser).parseFromString(`<body>${e}</body>`,"text/html");return Array.from(t.body.childNodes).some((e=>"SCRIPT"==e.nodeName))}(c)){const t=u()[i];t?n=t.trustUnsafeContent||!1:new Promise((e=>{new Stylekit.SKAlert({title:null,text:"Weve detected that this note contains a script or code snippet which may be unsafe to execute. Scripts executed in the editor have the ability to impersonate as the editor to Standard Notes. Press Continue to mark this script as safe and proceed, or Cancel to avoid rendering this note.",buttons:[{text:"Cancel",style:"neutral",action:function(){e(!1)}},{text:"Continue",style:"danger",action:function(){e(!0)}}]}).present()})).then((t=>{t&&(function(t,n){const o=u();o[i]={trustUnsafeContent:n},e.setComponentDataValueForKey("notes",o)}(0,t),n=t)}))}else n=!0;if(!n)return m.summernote("code",""),void m.summernote("disable");m.summernote("enable"),m.summernote("code",c),r&&(m.summernote("commit"),r=!1),a=!1}}(l)}))}));
document.addEventListener("DOMContentLoaded",(function(){let e,t,n,o,i,a=!1,r=!0,s=!1;const l=["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"].join(", ");function c(){if(t){const i=t;e.saveItemWithPresave(i,(()=>{o=$("#summernote").summernote("code"),i.clientData=n,i.content.text=o,i.content.preview_plain=function(e,t=90){return e.length<=t?e:e.substring(0,t)+"..."}(function(e){const t=document.implementation.createHTMLDocument("New").body;return t.innerHTML=e,t.textContent||t.innerText||""}(o)),i.content.preview_html=null}))}}function d(){return e.getComponentDataValueForKey("notes")||{}}$("#summernote").summernote({height:500,minHeight:null,maxHeight:null,focus:!0,tabDisable:!0,showDomainOnlyForAutolink:!1,toolbar:[["para",["style"]],["style",["bold","italic","underline","strikethrough","clear"]],["fontsize",["fontsize","fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["height",["height"]],["insert",["table","link","hr","picture","video"]],["misc",["codeview","help"]]],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Monospace","Roboto","system-ui","Tahoma","Times New Roman","Verdana"],callbacks:{onInit:function(){},onImageUpload:function(){alert("Embedding encrypted images directly inside the editor is not presently supported. You can attach files to be outside the editor instead. For embedding images directly inside this note, use the Image button in the toolbar and insert the URL of an image hosted externally (outside of Standard Notes). For more information, visit https://standardnotes.com/help/36/how-do-i-attach-encrypted-files-to-my-notes.")}}}),$("#summernote").on("summernote.change",(function(){document.querySelectorAll(l).forEach((e=>e.setAttribute("dir","auto"))),a||c()})),$("textarea.note-codable").on("input",(()=>{c()})),e=new ComponentRelay({initialPermissions:[{name:"stream-context-item"}],targetWindow:window,onReady:()=>{const t=e.platform;t&&document.body.classList.add(t)}}),e.streamContextItem((l=>{!function(l){if(l.uuid!==i&&(o=null,r=!0,i=l.uuid),t=l,l.isMetadataUpdate)return;n=l.clientData;let c=l.content.text;if($(".note-editable").attr("spellcheck",JSON.stringify(l.content.spellcheck)),c==o)return;const u=$("#summernote");if(u){a=!0;const t=/<[a-z][\s\S]*>/i.test(c);s||(u.summernote("fullscreen.toggle"),s=!0),r&&!t&&(c=((c||"")+"").replace(/\t/g," ").replace(/\r\n|\r|\n/g,"<br />"));let n=!1;if(function(e){const t=(new DOMParser).parseFromString(`<body>${e}</body>`,"text/html");return Array.from(t.body.childNodes).some((e=>"SCRIPT"==e.nodeName))}(c)){const t=d()[i];t?n=t.trustUnsafeContent||!1:new Promise((e=>{new Stylekit.SKAlert({title:null,text:"Weve detected that this note contains a script or code snippet which may be unsafe to execute. Scripts executed in the editor have the ability to impersonate as the editor to Standard Notes. Press Continue to mark this script as safe and proceed, or Cancel to avoid rendering this note.",buttons:[{text:"Cancel",style:"neutral",action:function(){e(!1)}},{text:"Continue",style:"danger",action:function(){e(!0)}}]}).present()})).then((t=>{t&&(function(t,n){const o=d();o[i]={trustUnsafeContent:n},e.setComponentDataValueForKey("notes",o)}(0,t),n=t)}))}else n=!0;if(!n)return u.summernote("code",""),void u.summernote("disable");u.summernote("enable"),u.summernote("code",c),r&&(u.summernote("commit"),r=!1),a=!1}}(l)}))}));
//# sourceMappingURL=dist.js.map
File diff suppressed because one or more lines are too long
@@ -5,6 +5,12 @@
--border-color: #d9c6b1;
--highlight-color: #d68420;
--highlight-contrast: #e3ae74;
--sn-stylekit-passive-color-0: #7e582a;
--sn-stylekit-passive-color-1: #a37337;
--sn-stylekit-passive-color-3: #d9c6b1;
--sn-stylekit-passive-color-4: #e3d5c4;
--sn-stylekit-passive-color-4-opacity-variant: #c9995e3d;
--sn-stylekit-passive-color-5: #e9d9c7;
--sn-stylekit-info-color: #a37337;
--sn-stylekit-info-contrast-color: #ebcdaa;
--sn-stylekit-neutral-color: #a47c5b;
@@ -23,7 +29,7 @@
--sn-stylekit-contrast-background-color: var(--background-2);
--sn-stylekit-contrast-foreground-color: var(--foreground-color);
--sn-stylekit-contrast-border-color: var(--border-color);
--sn-stylekit-secondary-background-color: var(--background-1);
--sn-stylekit-secondary-background-color: var(--sn-stylekit-passive-color-4);
--sn-stylekit-secondary-foreground-color: var(--foreground-color);
--sn-stylekit-secondary-border-color: var(--border-color);
--sn-stylekit-secondary-contrast-background-color: var(--background-2);
@@ -37,10 +43,6 @@
--sn-desktop-titlebar-border-color: var(--border-color);
--sn-desktop-titlebar-ui-color: var(--foreground-color);
--sn-desktop-titlebar-ui-hover-color: var(--highlight-color);
--sn-stylekit-passive-color-0: #7e582a;
--sn-stylekit-passive-color-1: #a37337;
--sn-stylekit-passive-color-4-opacity-variant: #c9995e3d;
--sn-stylekit-passive-color-5: #e9d9c7;
}
#notes-column .note.selected,
@@ -8,6 +8,10 @@
--sn-component-foreground-highlight-color: var(--highlight-color);
--sn-component-outer-border-color: transparent;
--sn-component-inner-border-color: var(--foreground-color);
--sn-stylekit-passive-color-0: #999999;
--sn-stylekit-passive-color-3: #28292b;
--sn-stylekit-passive-color-4: #1c1d1e;
--sn-stylekit-passive-color-5: #1d1f20;
--sn-stylekit-shadow-color: #000000;
--sn-stylekit-info-color: var(--highlight-color);
--sn-stylekit-info-contrast-color: var(--foreground-color);
@@ -27,7 +31,7 @@
--sn-stylekit-contrast-background-color: #000000;
--sn-stylekit-contrast-foreground-color: #ffffff;
--sn-stylekit-contrast-border-color: #000000;
--sn-stylekit-secondary-background-color: #0f1011;
--sn-stylekit-secondary-background-color: var(--sn-stylekit-passive-color-4);
--sn-stylekit-secondary-foreground-color: #ffffff;
--sn-stylekit-secondary-border-color: #000000;
--sn-stylekit-secondary-contrast-background-color: #000000;
@@ -41,8 +45,4 @@
--sn-stylekit-scrollbar-track-border-color: var(--border-color);
--sn-stylekit-scrollbar-thumb-color: var(--sn-stylekit-info-color);
--sn-stylekit-menu-border: 1px solid #424242;
--sn-stylekit-passive-color-0: #999999;
--sn-stylekit-passive-color-3: #28292b;
--sn-stylekit-passive-color-4: #1c1d1e;
--sn-stylekit-passive-color-5: #1d1f20;
}
@@ -3,6 +3,11 @@
--background-color: #20202b;
--highlight-color: #fca429;
--border-color: #20222c;
--sn-stylekit-passive-color-0: #a4a5b3;
--sn-stylekit-passive-color-3: #3a3a48;
--sn-stylekit-passive-color-4: #2c2c39;
--sn-stylekit-passive-color-4-opacity-variant: #292937;
--sn-stylekit-passive-color-5: #2e2e3e;
--sn-stylekit-shadow-color: var(--border-color);
--sn-stylekit-info-color: var(--highlight-color);
--sn-stylekit-info-contrast-color: var(--background-color);
@@ -22,7 +27,7 @@
--sn-stylekit-contrast-background-color: #272734;
--sn-stylekit-contrast-foreground-color: #a9aabe;
--sn-stylekit-contrast-border-color: #0f1116;
--sn-stylekit-secondary-background-color: #20202b;
--sn-stylekit-secondary-background-color: var(--sn-stylekit-passive-color-4);
--sn-stylekit-secondary-foreground-color: #a9aabe;
--sn-stylekit-secondary-border-color: #20222c;
--sn-stylekit-secondary-contrast-background-color: #272734;
@@ -36,9 +41,4 @@
--sn-desktop-titlebar-ui-color: var(--foreground-color);
--sn-desktop-titlebar-ui-hover-color: var(--highlight-color);
--sn-stylekit-menu-border: 1px solid #434b60;
--sn-stylekit-passive-color-0: #a4a5b3;
--sn-stylekit-passive-color-3: #3a3a48;
--sn-stylekit-passive-color-4: #2c2c39;
--sn-stylekit-passive-color-4-opacity-variant: #292937;
--sn-stylekit-passive-color-5: #2e2e3e;
}
@@ -18,6 +18,11 @@
--sn-desktop-titlebar-border-color: var(--border-color);
--sn-desktop-titlebar-ui-color: var(--ui-text-color);
--sn-desktop-titlebar-ui-hover-color: var(--sn-stylekit-info-color);
--sn-stylekit-passive-color-0: #94979e;
--sn-stylekit-passive-color-3: #2c2c39;
--sn-stylekit-passive-color-4: #313142;
--sn-stylekit-passive-color-4-opacity-variant: #292937;
--sn-stylekit-passive-color-5: #313142;
--sn-stylekit-shadow-color: #20202b;
--sn-stylekit-background-color: #20202b;
--sn-stylekit-border-color: var(--border-color);
@@ -25,7 +30,7 @@
--sn-stylekit-contrast-background-color: var(--secondary-bg-color);
--sn-stylekit-contrast-foreground-color: var(--ui-text-color);
--sn-stylekit-contrast-border-color: var(--border-color);
--sn-stylekit-secondary-background-color: #292937;
--sn-stylekit-secondary-background-color: var(--sn-stylekit-passive-color-4);
--sn-stylekit-secondary-foreground-color: var(--ui-text-color);
--sn-stylekit-secondary-border-color: var(--border-color);
--sn-stylekit-secondary-contrast-background-color: #45445a;
@@ -37,9 +42,4 @@
--sn-stylekit-scrollbar-track-border-color: var(--border-color);
--sn-stylekit-scrollbar-thumb-color: var(--sn-stylekit-info-color);
--sn-stylekit-menu-border: 1px solid #494965;
--sn-stylekit-passive-color-0: #94979e;
--sn-stylekit-passive-color-3: #2c2c39;
--sn-stylekit-passive-color-4: #313142;
--sn-stylekit-passive-color-4-opacity-variant: #292937;
--sn-stylekit-passive-color-5: #313142;
}
@@ -18,6 +18,12 @@
--sn-component-foreground-highlight-color: var(--highlight-color);
--sn-component-outer-border-color: transparent;
--sn-component-inner-border-color: var(--highlight-color);
--sn-stylekit-passive-color-0: #a8bdbd;
--sn-stylekit-passive-color-1: #93a1a1;
--sn-stylekit-passive-color-3: #0d4f60;
--sn-stylekit-passive-color-4: #083642;
--sn-stylekit-passive-color-4-opacity-variant: #2aa1983d;
--sn-stylekit-passive-color-5: #003542;
--sn-stylekit-info-color: var(--highlight-color);
--sn-stylekit-info-contrast-color: var(--foreground-color);
--sn-stylekit-neutral-color: #7c7c7c;
@@ -36,7 +42,7 @@
--sn-stylekit-contrast-background-color: var(--background-2);
--sn-stylekit-contrast-foreground-color: var(--foreground-color);
--sn-stylekit-contrast-border-color: var(--border-color);
--sn-stylekit-secondary-background-color: var(--background-1);
--sn-stylekit-secondary-background-color: var(--sn-stylekit-passive-color-4);
--sn-stylekit-secondary-foreground-color: var(--foreground-color);
--sn-stylekit-secondary-border-color: var(--border-color);
--sn-stylekit-secondary-contrast-background-color: var(--background-2);
@@ -51,10 +57,4 @@
--sn-desktop-titlebar-ui-color: var(--foreground-color);
--sn-desktop-titlebar-ui-hover-color: var(--highlight-color);
--sn-stylekit-menu-border: 1px solid #1f5461;
--sn-stylekit-passive-color-0: #a8bdbd;
--sn-stylekit-passive-color-1: #93a1a1;
--sn-stylekit-passive-color-3: #0d4f60;
--sn-stylekit-passive-color-4: #083642;
--sn-stylekit-passive-color-4-opacity-variant: #2aa1983d;
--sn-stylekit-passive-color-5: #003542;
}
@@ -3,6 +3,8 @@
--background-color: #663399;
--highlight-color: #c9cccf;
--border-color: var(--highlight-color);
--sn-stylekit-passive-color-0: #626166;
--sn-stylekit-passive-color-4-opacity-variant: #e9e9e9;
--sn-stylekit-shadow-color: var(--highlight-color);
--sn-stylekit-info-color: var(--background-color);
--sn-stylekit-info-contrast-color: #e6e6e6;
@@ -14,13 +16,13 @@
--sn-stylekit-warning-contrast-color: #ffffff;
--sn-stylekit-danger-color: #f80324;
--sn-stylekit-danger-contrast-color: #ffffff;
--sn-stylekit-background-color: #d9dbde;
--sn-stylekit-background-color: var(--sn-stylekit-passive-color-4);
--sn-stylekit-foreground-color: #3d3c40;
--sn-stylekit-border-color: #c9cccf;
--sn-stylekit-contrast-background-color: #e7e7e7;
--sn-stylekit-contrast-foreground-color: #3d3c40;
--sn-stylekit-contrast-border-color: #c9cccf;
--sn-stylekit-secondary-background-color: #d8d9de;
--sn-stylekit-secondary-background-color: #d9dbde;
--sn-stylekit-secondary-foreground-color: #3d3c40;
--sn-stylekit-secondary-border-color: #c9cccf;
--sn-stylekit-secondary-contrast-background-color: #e7e7e7;
@@ -36,6 +38,4 @@
--sn-desktop-titlebar-ui-color: var(--foreground-color);
--sn-desktop-titlebar-ui-hover-color: var(--background-color);
--sn-stylekit-menu-border: 1px solid #b2b2b3;
--sn-stylekit-passive-color-0: #626166;
--sn-stylekit-passive-color-4-opacity-variant: #e9e9e9;
}
File diff suppressed because one or more lines are too long
+33 -33
View File
@@ -1,33 +1,33 @@
{
"org.standardnotes.theme-midnight": {
"version": "1.2.12",
"base64": "2f64c6dd1dcabb8fa4544a59ef1b212dea367d711eb3ea268470499019efb838",
"binary": "e0e46a652f56e22a0a9dd9821e6e097c22446a161b8682bf0bab230236864b51"
"version": "1.3.0",
"base64": "ee8c54fab0f246df7e48731d3bbbae3172beab970f23c2affbe924fdf716a2c0",
"binary": "ba5d0ea27243caa3e5cacac34f72506f3a38fa5dbea6a25abed40f87b0eda5d8"
},
"org.standardnotes.theme-futura": {
"version": "1.2.13",
"base64": "fafb94b96b770d0a6717e4d4bed998ef7578d418ce8895609cca906f9837f3f3",
"binary": "1d2d2f8b1334a9baeefab4c8e775b793b642dbc35901e40e08927ba288b13351"
"version": "1.3.0",
"base64": "830d9e11fb65841a8c4b3bbe7bf270d6b24415e76f25d8be63ea09ddfc4d1259",
"binary": "721257df2867cbd923c5416f77c9f74f47422b8f4859b031c8f6160d88c77b81"
},
"org.standardnotes.theme-solarized-dark": {
"version": "1.3.0",
"base64": "f6cd638640f4cfc77c6685196c38fb71b5defb705f3450488b04afb20d062a75",
"binary": "4807f2ad91ce558796c64385f618cd6d28bd296e8b6693bbe3695702356212c6"
"version": "1.3.1",
"base64": "a1b84e13ef2a5119eda201d7c6056ace39efd6c8f66b2c4c10018ab50c62f97b",
"binary": "01416940806e1e845deed7f0a2ce5e7c48260600322fae06b0fc23f1e3988c4d"
},
"org.standardnotes.theme-autobiography": {
"version": "1.0.8",
"base64": "37a81f0ed59b600ba8a1aafba5cfe786fa47ce75c3737377e0893a7b70b6c617",
"binary": "e6e7d60576a7df0a45b96c495a2a82d945c54811fafef5a51f61152f64d89136"
"version": "1.1.0",
"base64": "737ddf632dfd7735d1a0676ad37f65bfdb55022af93c799ecf84317aac84b699",
"binary": "1c0e751b65f635123bb8bcd8d14c7b55f8aa53f66864b7ce035b2c18c3ab3c21"
},
"org.standardnotes.theme-focus": {
"version": "1.2.13",
"base64": "52dcd28207d198a8bc7f6bdbd5ba32909f83a32c1aac4196100a2403836936a2",
"binary": "c88f43457f859c628e3823a7598bf4ad0b57944bd239650ea914281a71bb11c7"
"version": "1.3.0",
"base64": "bb9d4487b2711e5586f21525bf9dab28153c1fa48d81f98cd8a3243d4c8583e2",
"binary": "96ac81ed5cfc571ff7b178ddbbfcb766070114d74a396e3a37df932de8209575"
},
"org.standardnotes.theme-titanium": {
"version": "1.2.12",
"base64": "a08938b6e0f4a7bd4d3021463d9b03e37518b31540e50a4de572d0c9357be4e4",
"binary": "bab1d4ae2cb1e92ca99c8fc0d91b119b30f714e946a5b31b06942aee1612f233"
"version": "1.3.0",
"base64": "b544844d42a74fe992917f167d987c72c4efbbe9b1c608b9af73fe7db92a1990",
"binary": "c846fae7cd7d75b239a0395b8cb70349cec8cc0d5742db027ce18bb2e72a0c6c"
},
"org.standardnotes.theme-dynamic": {
"version": "1.0.8",
@@ -45,9 +45,9 @@
"binary": "deaece4cd37801f796eca2bf37fcccabfc6ddc43581630aa9ed04b9b0f7a7762"
},
"org.standardnotes.plus-editor": {
"version": "1.6.6",
"base64": "89cceec289f023b68fc5a76832730a145ebac612da9b33610de48c2f0353da0e",
"binary": "a728c207ccf79c41852f00afeda2ed3384485bbd616c2abaca06ab317ea1ec79"
"version": "1.7.0",
"base64": "a63f79a3b6398ab13f8a4e106bbfc06312d31336967bbc5d2aa16c0c94ee08bb",
"binary": "fd258ce43577024cbe297904963b1beabe239d053b7666b7e469cf1aaf0abd8d"
},
"org.standardnotes.simple-markdown-editor": {
"version": "1.4.7",
@@ -55,9 +55,9 @@
"binary": "1bd2863239e5ce41c56e3ccebe2cbd29c259abbe7124aed656e92d17b5428226"
},
"org.standardnotes.advanced-markdown-editor": {
"version": "1.6.0",
"base64": "038c2ab266872fa89cfc5e2fba60d2afcb0118b1e4fe924b7625b6403eb53050",
"binary": "bcdd12ec957f6ace504931068f87135403758887719ebc0405b49fdcef147724"
"version": "1.6.1",
"base64": "51a2dc528ac2a6b1b853fa63e4b2c6082a651c7b7ff63baf47befaae5f4ec8f7",
"binary": "b6a6a99420bc449dc2798ee292573f6f923b3e03cea022e8c7a5204f061eea58"
},
"org.standardnotes.minimal-markdown-editor": {
"version": "1.3.13",
@@ -70,9 +70,9 @@
"binary": "b621bfd81829a205f2f02e85d446e277ad20e367b92676ec20b3ee59b1bfab3f"
},
"org.standardnotes.markdown-visual-editor": {
"version": "1.0.12",
"base64": "df80a28f825d74d49a5277450fd331428842b3dc4c63fa411d62cf964a58971e",
"binary": "a067179688b65ab64516b330661009854ea7522fcdd601c01a683a10c900fce1"
"version": "1.1.0",
"base64": "56809db83837f4965effe5d79d378863a87cb3c41f8b347bb969d06667ed2cbe",
"binary": "b935f7f4c35bf602777816dfca859a85f769ee58a75fbe883799cc010e5e58b3"
},
"org.standardnotes.simple-task-editor": {
"version": "1.4.0",
@@ -80,9 +80,9 @@
"binary": "a1a6b97e1f761747dbf721857deed04370a3950dcb3e1bb4c4d4baa3680959b3"
},
"org.standardnotes.token-vault": {
"version": "2.1.2",
"base64": "10b62746635c1dc547568b614298f23187a6bf6cef748f8a9baf0c698dc17dd4",
"binary": "30684c4bef2c8f6bbc5ad98a936d58cf080baa1a84848ec90144aff3dd2a0ffd"
"version": "2.2.0",
"base64": "a8e381ea3198bc10a3205f6780cb1e5960aa2f448d5c011c4c05526a1efc2773",
"binary": "38f46ebb09dc18ae456422532f537a2fbfd8ed8316f67c923f71b76ca727c3f8"
},
"org.standardnotes.standard-sheets": {
"version": "1.4.9",
@@ -90,9 +90,9 @@
"binary": "5c8ec3876eef0ff3058fd1b2804fa01b53a869a281a0ff3430f4ddd08abc824d"
},
"org.standardnotes.advanced-checklist": {
"version": "0.1.1",
"base64": "1a3b02288a073742d2d9fb6e00f3c563eb1cc611e0f16920aed2b5fb78d3ee40",
"binary": "6c6d9c8b9f6edab3d698bab48fda7e5a8f03d77dbf437a2b160d1ffba63b31a7"
"version": "0.1.2",
"base64": "224996cc2218868d7cc24026f15cadd866e1fc9fddec120a026f4767b20c6310",
"binary": "aafe7e8c1753fb3ae65a38d703ec3491096f24106826da51911333f859266fb6"
},
"org.standardnotes.file-safe": {
"version": "2.0.16",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/components-meta",
"version": "2.5.2",
"version": "2.5.6",
"private": true,
"author": "Standard Notes.",
"main": "dist",
+5 -7
View File
@@ -27,26 +27,24 @@ const Editors = [
path: 'Editors/org.standardnotes.standard-sheets',
static_files: [...BaseEditorStaticFiles],
},
{
identifier: 'org.standardnotes.token-vault',
path: 'Editors/org.standardnotes.token-vault',
static_files: [...BaseEditorStaticFiles],
},
{
identifier: 'org.standardnotes.simple-task-editor',
path: 'Editors/org.standardnotes.simple-task-editor',
static_files: [...BaseEditorStaticFiles],
},
{
identifier: 'org.standardnotes.advanced-markdown-editor',
path: 'Editors/org.standardnotes.advanced-markdown-editor',
static_files: [...BaseEditorStaticFiles],
},
]
const DeprecatedEditors = [
{
identifier: 'org.standardnotes.advanced-markdown-editor',
path: 'Deprecated/org.standardnotes.advanced-markdown-editor',
static_files: [...BaseEditorStaticFiles],
},
{
identifier: 'org.standardnotes.bold-editor',
path: 'Deprecated/org.standardnotes.bold-editor',
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
/*! @license DOMPurify 2.3.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.8/LICENSE */
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 434 KiB

@@ -1 +0,0 @@
<!doctype html><html><head><base target="_blank"><meta charset="UTF-8"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1"><script src="lib/component-relay.js"></script><script src="vendor/highlightjs/highlightjs.js"></script><link rel="stylesheet" media="all" href="vendor/easymd/easymde.css"><script src="vendor/easymd/easymd.js"></script><link rel="stylesheet" media="all" href="stylekit.css"><title>Markdown Pro</title><script defer="defer" src="dist.js"></script><link href="dist.css" rel="stylesheet"></head><body class="sn-component" id="sn-advanced-markdown-editor"><textarea dir="auto" id="editor" hidden></textarea></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,6 +0,0 @@
/**
* easymde v2.16.1
* Copyright Jeroen Akkerman
* @link https://github.com/ionaru/easy-markdown-editor
* @license MIT
*/
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
/*! highlight.js v9.16.2 | BSD3 License | git.io/hljslicense */
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.1.2](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-29)
### Bug Fixes
* **advanced checklist:** style and layout improvements ([#1182](https://github.com/standardnotes/app/issues/1182)) ([6c19adb](https://github.com/standardnotes/app/commit/6c19adba1902ef054f501d57f6e284fbf44ca28b))
## [0.1.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-28)
**Note:** Version bump only for package @standardnotes/advanced-checklist
@@ -1,6 +1,6 @@
{
"name": "@standardnotes/advanced-checklist",
"version": "0.1.1",
"version": "0.1.2",
"description": "A task editor with grouping functionality.",
"author": "Standard Notes.",
"keywords": [
@@ -83,6 +83,7 @@
"@reach/alert-dialog": "0.16.2",
"@reach/menu-button": "0.16.2",
"@reach/visually-hidden": "0.16.0",
"@react-hook/resize-observer": "^1.2.5",
"@reduxjs/toolkit": "1.8.0",
"@standardnotes/editor-kit": "2.2.5",
"@standardnotes/stylekit": "5.23.0",
@@ -1,4 +1,5 @@
import React, { useEffect, useState } from 'react'
import useResizeObserver from '@react-hook/resize-observer'
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'
import type { AppDispatch, RootState } from './store'
@@ -16,3 +17,18 @@ export const useDidMount = (effect: React.EffectCallback, deps?: React.Dependenc
}
}, [deps, didMount, effect])
}
export const useResize = (ref: React.RefObject<HTMLElement>, effect: (target: HTMLElement) => void) => {
const [size, setSize] = useState<DOMRect>()
function isDeepEqual(prevSize?: DOMRect, nextSize?: DOMRect) {
return JSON.stringify(prevSize) === JSON.stringify(nextSize)
}
useResizeObserver(ref, ({ contentRect, target }) => {
if (!isDeepEqual(size, contentRect)) {
setSize(contentRect)
effect(target as HTMLElement)
}
})
}
@@ -5,7 +5,7 @@ const StyledTextArea = styled.textarea`
background-color: transparent;
border: none;
color: inherit;
font-size: var(--sn-stylekit-font-size-h3);
font-size: 1rem;
font-weight: 400;
margin-left: 6px;
outline: none;
@@ -5,13 +5,13 @@ type ReorderIconProps = {
export const ReorderIcon: React.FC<ReorderIconProps> = ({ highlight = false }) => {
return (
<svg
viewBox="0 0 24 24"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={`sn-icon block ${highlight ? 'info' : ''}`}
className={`sn-icon block ${highlight ? 'info' : 'neutral'}`}
data-testid="reorder-icon"
>
<path d="M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z" />
<path d="M17 5V6.66667H3V5H17ZM3 15H17V13.3333H3V15ZM3 10.8333H17V9.16667H3V10.8333Z" />
</svg>
)
}
@@ -35,6 +35,12 @@ $transition-duration: 750ms;
width: 22px;
}
.align-baseline {
.checkbox-button {
top: -10px !important;
}
}
.checkbox-square,
.checkbox-mark {
cursor: pointer;
@@ -20,6 +20,10 @@ const TaskGroupContainer = styled.div<{ isLast?: boolean }>`
box-sizing: border-box;
padding: 16px;
margin-bottom: ${({ isLast }) => (!isLast ? '9px' : '0px')};
@media only screen and (max-width: 600px) {
padding: 8px 10px;
}
`
type CollapsableContainerProps = {
@@ -1,9 +1,9 @@
import './TaskItem.scss'
import { ChangeEvent, createRef, KeyboardEvent, useEffect, useState } from 'react'
import { ChangeEvent, createRef, KeyboardEvent, useState } from 'react'
import styled from 'styled-components'
import { useAppDispatch, useAppSelector, useDidMount } from '../../app/hooks'
import { useAppDispatch, useAppSelector, useDidMount, useResize } from '../../app/hooks'
import { taskDeleted, TaskModel, taskModified, taskToggled } from './tasks-slice'
import { CheckBoxInput, TextAreaInput } from '../../common/components'
@@ -33,7 +33,7 @@ const Container = styled.div<{ completed?: boolean }>`
`}
min-width: 10%;
max-width: 85%;
max-width: 90%;
`
export type TaskItemProps = {
@@ -53,22 +53,29 @@ const TaskItem: React.FC<TaskItemProps> = ({ task, groupName, innerRef, ...props
const [completed, setCompleted] = useState(!!task.completed)
const [description, setDescription] = useState(task.description)
function resizeTextArea(textarea: HTMLTextAreaElement | null): void {
function resizeTextArea(textarea: HTMLElement): void {
if (!textarea) {
return
}
const heightOffset = 4
/**
* Set to 1px first to reset scroll height in case it shrunk.
*/
const heightOffset = 4
textarea.style.height = '1px'
textarea.style.height = textarea.scrollHeight - heightOffset + 'px'
}
useEffect(() => {
resizeTextArea(textAreaRef.current)
})
const singleLineHeight = 20
const currentHeight = parseFloat(textarea.style.height)
if (currentHeight > singleLineHeight) {
textarea.parentElement?.classList.add('align-baseline')
textarea.parentElement?.classList.remove('align-center')
} else {
textarea.parentElement?.classList.add('align-center')
textarea.parentElement?.classList.remove('align-baseline')
}
}
function onCheckBoxToggle() {
const newCompletedState = !completed
@@ -122,6 +129,8 @@ const TaskItem: React.FC<TaskItemProps> = ({ task, groupName, innerRef, ...props
return () => clearTimeout(timeoutId)
}, [description, groupName])
useResize(textAreaRef, resizeTextArea)
return (
<Container data-testid="task-item" completed={completed} ref={innerRef} {...props}>
<CheckBoxInput testId="check-box-input" checked={completed} disabled={!canEdit} onChange={onCheckBoxToggle} />
@@ -26,7 +26,7 @@ const InnerTasksContainer = styled.div<{ collapsed: boolean }>`
flex-direction: column;
& > *:not(:last-child) {
margin-bottom: 5px;
margin-bottom: 7px;
}
`
@@ -94,72 +94,70 @@ const TasksSection: React.FC<TasksSectionProps> = ({ groupName, tasks, section,
ref={provided.innerRef}
>
<TransitionGroup component={null} childFactory={(child) => React.cloneElement(child)}>
{tasks.map((task, index) => {
return (
<CSSTransition
key={`${task.id}-${!!task.completed}`}
classNames={{
enter: 'fade-in',
enterActive: 'fade-in',
enterDone: 'fade-in',
exit: 'fade-out',
exitActive: 'fade-out',
exitDone: 'fade-out',
}}
timeout={{
enter: 1_500,
exit: 1_250,
}}
onEnter={(node: HTMLElement) => {
node.classList.remove('explode')
}}
onEntered={(node: HTMLElement) => {
node.classList.remove('fade-in')
{tasks.map((task, index) => (
<CSSTransition
key={`${task.id}-${!!task.completed}`}
classNames={{
enter: 'fade-in',
enterActive: 'fade-in',
enterDone: 'fade-in',
exit: 'fade-out',
exitActive: 'fade-out',
exitDone: 'fade-out',
}}
timeout={{
enter: 1_500,
exit: 1_250,
}}
onEnter={(node: HTMLElement) => {
node.classList.remove('explode')
}}
onEntered={(node: HTMLElement) => {
node.classList.remove('fade-in')
const completed = !!task.completed
completed && node.classList.add('explode')
const completed = !!task.completed
completed && node.classList.add('explode')
node.addEventListener(
'animationend',
() => {
node.classList.remove('explode')
},
false,
node.addEventListener(
'animationend',
() => {
node.classList.remove('explode')
},
false,
)
}}
onExited={(node: HTMLElement) => {
node.classList.remove('fade-out')
}}
addEndListener={(node, done) => {
done()
}}
mountOnEnter
unmountOnExit
>
<Draggable
key={`draggable-${task.id}`}
draggableId={`draggable-${task.id}`}
index={index}
isDragDisabled={!canEdit}
>
{({ innerRef, draggableProps, dragHandleProps }, { isDragging }) => {
const { style, ...restDraggableProps } = draggableProps
return (
<div className="task-item" style={getItemStyle(isDragging, style)} {...restDraggableProps}>
<TaskItem
key={`task-item-${task.id}`}
task={task}
groupName={groupName}
innerRef={innerRef}
{...dragHandleProps}
/>
</div>
)
}}
onExited={(node: HTMLElement) => {
node.classList.remove('fade-out')
}}
addEndListener={(node, done) => {
done()
}}
mountOnEnter
unmountOnExit
>
<Draggable
key={`draggable-${task.id}`}
draggableId={`draggable-${task.id}`}
index={index}
isDragDisabled={!canEdit}
>
{({ innerRef, draggableProps, dragHandleProps }, { isDragging }) => {
const { style, ...restDraggableProps } = draggableProps
return (
<div className="task-item" style={getItemStyle(isDragging, style)} {...restDraggableProps}>
<TaskItem
key={`task-item-${task.id}`}
task={task}
groupName={groupName}
innerRef={innerRef}
{...dragHandleProps}
/>
</div>
)
}}
</Draggable>
</CSSTransition>
)
})}
</Draggable>
</CSSTransition>
))}
</TransitionGroup>
{provided.placeholder}
</InnerTasksContainer>
@@ -23,6 +23,10 @@ import { getPlainPreview } from './common/utils'
const MainContainer = styled.div`
margin: 16px;
padding-bottom: 60px;
@media only screen and (max-width: 600px) {
margin: 8px;
}
`
const FloatingContainer = styled.div`
@@ -67,6 +67,14 @@ html {
.pt-1px {
padding-top: 1px;
}
.align-baseline {
align-items: baseline;
}
.align-center {
align-items: center;
}
}
:root {
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.6.1](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-29)
**Note:** Version bump only for package @standardnotes/markdown-hybrid
# [1.6.0](https://github.com/standardnotes/app/compare/@standardnotes/[email protected]...@standardnotes/[email protected]) (2022-06-28)
### Bug Fixes
@@ -1,7 +1,7 @@
{
"name": "@standardnotes/markdown-hybrid",
"private": true,
"version": "1.6.0",
"version": "1.6.1",
"description": "A Standard Notes derived editor that offers full support for Markdown editing.",
"main": "dist/dist.js",
"author": "Standard Notes <[email protected]>",
@@ -11,11 +11,11 @@
},
"scripts": {
"start": "webpack serve --config webpack.dev.js --progress --hot",
"deprecated:compile": "webpack --config webpack.prod.js",
"deprecated:lint": "eslint src --ext .js",
"deprecated:lint:fix": "eslint src --ext .js --fix",
"deprecated:test": "echo \"Error: no test specified\" && exit 0",
"deprecated:format": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
"components:compile": "webpack --config webpack.prod.js",
"skip:lint": "eslint src --ext .js",
"skip:lint:fix": "eslint src --ext .js --fix",
"skip:test": "echo \"Error: no test specified\" && exit 0",
"skip:format": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
},
"devDependencies": {
"@babel/cli": "^7.13.10",

Some files were not shown because too many files have changed in this diff Show More