joplin-plugin-theme-studio 1.0.4 → 1.1.0

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/dist/index.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={998(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default="undefined"!=typeof joplin?joplin:global.joplin},143(t,e){var o,i;e.SettingItemType=e.ContentScriptType=void 0,function(t){t.MarkdownItPlugin="markdownItPlugin",t.CodeMirrorPlugin="codeMirrorPlugin"}(o||(e.ContentScriptType=o={})),function(t){t[t.Int=1]="Int",t[t.String=2]="String",t[t.Bool=3]="Bool",t[t.Array=4]="Array",t[t.Object=5]="Object",t[t.Button=6]="Button"}(i||(e.SettingItemType=i={}))},156(t,e,o){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const n=i(o(998)),r=o(143);n.default.plugins.register({onStart:async function(){await n.default.settings.registerSection("themeStudioSection",{label:"Theme Studio",iconName:"fas fa-palette"}),await n.default.settings.registerSettings({theme:{value:"atom-one-dark",type:r.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Color Theme",description:"Choose your preferred color scheme.",options:{"atom-one-dark":"Atom One Dark","atom-one-light":"Atom One Light","tokyo-night":"Tokyo Night","tokyo-night-storm":"Tokyo Night Storm","everforest-dark":"Everforest Dark","everforest-light":"Everforest Light","catppuccin-mocha":"Catppuccin Mocha","catppuccin-latte":"Catppuccin Latte",nord:"Nord",dracula:"Dracula","gruvbox-dark":"Gruvbox Dark","gruvbox-light":"Gruvbox Light"}},direction:{value:"rtl",type:r.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Layout Direction",description:'Choose primary orientation (RTL includes automatic [dir="ltr"] isolation).',options:{rtl:"Right-to-Left (Persian / Arabic / Hebrew)",ltr:"Left-to-Right (English / Latin)"}},fontFamily:{value:"'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",type:r.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Primary Font Stack",description:"Main font for reading and note view."},codeFont:{value:"'Cascadia Code', 'Fira Code', 'Consolas', monospace",type:r.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Monospace Code Font",description:"Used for inline code and code blocks."},fontSize:{value:"16px",type:r.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Base Font Size",description:"Standard font size (e.g., 15px, 16px, 17px)."},lineHeight:{value:"1.8",type:r.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Line Height",description:"Reading line height (e.g., 1.7, 1.8)."}}),await n.default.contentScripts.register(r.ContentScriptType.MarkdownItPlugin,"themeStudioMarkdownIt","./markdownTheme.js")}})}};const e={};let o=function o(i){const n=e[i];if(void 0!==n)return n.exports;const r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,o),r.exports}(156);const i=exports;for(var n in o)i[n]=o[n];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={998(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default="undefined"!=typeof joplin?joplin:global.joplin},143(e,t){var o,i;t.SettingItemType=t.ContentScriptType=void 0,function(e){e.MarkdownItPlugin="markdownItPlugin",e.CodeMirrorPlugin="codeMirrorPlugin"}(o||(t.ContentScriptType=o={})),function(e){e[e.Int=1]="Int",e[e.String=2]="String",e[e.Bool=3]="Bool",e[e.Array=4]="Array",e[e.Object=5]="Object",e[e.Button=6]="Button"}(i||(t.SettingItemType=i={}))},156(e,t,o){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(o(998)),a=o(143);n.default.plugins.register({onStart:async function(){let e="ltr",t="inter";try{const o=await n.default.settings.globalValue("locale");o&&["fa","ar","he","ur","ug","ps","yi"].some(e=>o.toLowerCase().startsWith(e))&&(e="rtl",t="vazirmatn")}catch(o){e="ltr",t="inter"}await n.default.settings.registerSection("themeStudioSection",{label:"Theme Studio",iconName:"fas fa-palette"}),await n.default.settings.registerSettings({theme:{value:"atom-one-dark",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Color Theme",description:"Choose your desired color scheme.",options:{"atom-one-dark":"Atom One Dark","atom-one-light":"Atom One Light","tokyo-night":"Tokyo Night","tokyo-night-storm":"Tokyo Night Storm","everforest-dark":"Everforest Dark","everforest-light":"Everforest Light","catppuccin-mocha":"Catppuccin Mocha","catppuccin-latte":"Catppuccin Latte",nord:"Nord",dracula:"Dracula","gruvbox-dark":"Gruvbox Dark","gruvbox-light":"Gruvbox Light"}},direction:{value:e,type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Layout Direction",description:"Primary text orientation. LTR is standard; Auto adjusts per paragraph.",options:{ltr:"Left-to-Right (LTR - English / Latin / CJK / Global)",auto:"Auto-Detect (Per-Paragraph BiDi)",rtl:"Right-to-Left (RTL - Persian / Arabic / Hebrew)"}},fontPreset:{value:t,type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"International Font Preset",description:"Web fonts loaded on the fly (ideal for Mobile without local font installs).",options:{inter:"Inter (Global English, Latin, European, Cyrillic)",roboto:"Roboto (Modern Clean Sans)",system:"System Default (OS Native, Zero Network Overhead)",vazirmatn:"Vazirmatn (Persian, Arabic, Kurdish, Urdu)","noto-arabic":"Noto Sans Arabic (Modern Arabic)","noto-cjk-sc":"Noto Sans SC (Simplified Chinese)","noto-cjk-jp":"Noto Sans JP (Japanese)",heebo:"Heebo (Hebrew & Latin)","noto-devanagari":"Noto Sans Devanagari (Hindi, Sanskrit)",lora:"Lora (Editorial Serif for Books & Long Articles)",custom:"Custom Font Stack (use field below)"}},fontFamily:{value:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Font Stack",description:'Active only when "Custom Font Stack" is selected above.'},codeFontPreset:{value:"fira-code",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Code Font Preset",description:"Monospace font for inline code and code blocks.",options:{"fira-code":"Fira Code (Modern Tech Monospace)","jetbrains-mono":"JetBrains Mono (Developer Favorite)","system-mono":"System Monospace (Cascadia/Consolas/Courier)",custom:"Custom Code Font (use field below)"}},codeFont:{value:"'Cascadia Code', 'Fira Code', 'Consolas', monospace",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Custom Code Font Stack",description:'Active only when "Custom Code Font" is selected above.'},fontSize:{value:"16px",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Font Size",description:"Base font size (e.g., 14px, 16px, 18px, 20px). Works across Desktop & Mobile."},lineHeight:{value:"1.75",type:a.SettingItemType.String,section:"themeStudioSection",public:!0,label:"Line Height",description:"Reading line spacing (e.g., 1.6, 1.75, 1.9)."},contentMaxWidth:{value:"full",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"Reading Width (Focus Mode)",description:"Constrain line length on wide desktop monitors for comfortable reading.",options:{full:"Full Width (100%)",comfortable:"Comfortable Reading (920px Centered)",compact:"Compact Focus (760px Centered)"}},pdfExportStyle:{value:"exact",type:a.SettingItemType.String,section:"themeStudioSection",isEnum:!0,public:!0,label:"PDF Export Appearance",description:"Controls layout and background fidelity when exporting to PDF.",options:{exact:"Exact Match (100% Identical to Screen Layout & Theme)",paper:"Paper Friendly (White Page Background with Themed Accents)"}}}),await n.default.contentScripts.register(a.ContentScriptType.MarkdownItPlugin,"themeStudioMarkdownIt","./markdownTheme.js")}})}};const t={};let o=function o(i){const n=t[i];if(void 0!==n)return n.exports;const a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,o),a.exports}(156);const i=exports;for(var n in o)i[n]=o[n];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joplin-plugin-theme-studio",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "All-in-one multi-palette engine with native RTL/LTR typography for Joplin",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -3,7 +3,7 @@
3
3
  "id": "org.joplin.plugin.theme-studio",
4
4
  "app_min_version": "2.8.0",
5
5
  "name": "Theme Studio",
6
- "version": "1.0.4",
6
+ "version": "1.1.0",
7
7
  "description": "All-in-one multi-palette engine (Tokyo Night, Everforest, Catppuccin, Nord, Dracula, Gruvbox, Atom One) with native RTL/LTR typography & mobile support.",
8
8
  "author": "Yashar",
9
9
  "homepage_url": "https://github.com/xyasharx/joplin-plugin-theme-studio",
@@ -33,6 +33,6 @@
33
33
  "mobile",
34
34
  "mermaid"
35
35
  ],
36
- "_publish_hash": "sha256:9a5d804f4dd12ca8a2237a4dc2f1e43614f77d63a401383b811dde3dc5146214",
37
- "_publish_commit": "9bb9197b16306c9c6c6c3a2795de8d7377be5f65"
36
+ "_publish_hash": "sha256:656e747fa8c8e81fb11d8e50940fedfbf645e2acf2df2d9905d6b2db34dba409",
37
+ "_publish_commit": "bf0a00d0da918f87ac3575311184b50b214fb917"
38
38
  }