{"name":"@replit/codemirror-indentation-markers","version":"6.4.0","author":{"name":"Sergei Chestakov","email":"me@sergei.com"},"license":"MIT","_id":"@replit/codemirror-indentation-markers@6.4.0","homepage":"https://github.com/replit/codemirror-indentation-markers#readme","bugs":{"url":"https://github.com/replit/codemirror-indentation-markers/issues"},"dist":{"shasum":"8fc0756cfbd9d9896809558bd2993e112ce8e0c1","tarball":"http://registry-npm.ywwl.com/@replit/codemirror-indentation-markers/download/@replit/codemirror-indentation-markers-6.4.0.tgz","fileCount":17,"integrity":"sha512-iYorMjZnTuxzDceIYYxu2Atgapb+DMbJHlVXIGA+fnwGuvLNsUUtE+pOkpQzozSCubBVHEuAhAk3eaeFqYRw5Q==","signatures":[{"sig":"MEQCIAWshymWKKcJoPxrg2FfsyJ4w42dyTX5aT3OQ1iNj3g7AiBh63LSIIc/54Jc84+GGXfTf93R+amnAu3+a3Ew65X2HA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":130342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG7ETACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Mw/+IC2DRnjZrhoNG9VguxnRhHI8SfCJ5z8+1T0dft7eoXXh5YWU\r\n2j1ttnfBZBfp6alTvBMwxpEf5RYt/5ji/hEYVhR8hVr/3gRtcEv+LqXhiaWS\r\nNwsMTcN3yHVq1SW2jCLAHdJkLUw59oJmVuUc0NzDdW/5Rdi3o0W/d/10IhOY\r\nMgvUx4EbW5HOgyUDgAvc3eQIOBCwz4iGb8avR7bMrHYEsU7VdydlPbZ3z9Jx\r\nqaOtJwLMUoSfi9iq7L77wmolTe03GqT1BUjQRS0NUUdg+w1Q8ZA+iFhDwYJY\r\nkh58A4hpLF2n1xBEPxkqV833ADDw6mn2QmKgE2NzK55O/rh5bh4gcqARNPzO\r\nDyHctBjpioCIQc6cNo3EL33drZU/Ny7lkU6LDTI6WnLaQlfrQv9AZju8vvaj\r\njJ6PkjxARPfrnwbzheA+nMuVYfVI/t2IaXgJ1TaHhTU8vwKbazziLEIqoSdy\r\nJwLPJGA1R8wAuzTr9YLNak3qhf9H3KgcnWm3zRm70wWEJly3bwIXyCXBuDIN\r\nC8ul0glhR6LMTE/pZJHRBcJSX8689CWpMfxK8afNpHdJWrywOuChSx23IT+y\r\nNey0n77C0BwQlkaFeo83coh5GGZsCg/ESYjRbVRptLfayV93TB7euq28uS38\r\ne9odrM+yh+1QzHgz3p8/+JqxSfBMd393QCY=\r\n=lmwv\r\n-----END PGP SIGNATURE-----\r\n","size":86187,"noattachment":false,"key":"/@replit/codemirror-indentation-markers/-/@replit/codemirror-indentation-markers-6.4.0.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"e75f6ee44cd336d28cedeb0c9b8e49d4f540f593","scripts":{"dev":"vite ./dev","test":"cm-runtests","build":"cm-buildhelper src/index.ts","prepare":"npm run build"},"_npmUser":{"name":"schestakov","email":"me@sergei.com"},"repository":{"url":"git+https://github.com/replit/codemirror-indentation-markers.git","type":"git"},"_npmVersion":"7.20.3","description":"Render indentation markers in CodeMirror","directories":{},"sideEffects":false,"_nodeVersion":"16.7.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^2.3.8","codemirror":"^6.0.0","@codemirror/view":"^6.0.0","@codemirror/state":"^6.0.0","@codemirror/commands":"^6.0.0","@codemirror/lang-css":"^6.0.0","@codemirror/language":"^6.0.0","@codemirror/buildhelper":"^0.1.16","@codemirror/lang-python":"^6.1.1"},"peerDependencies":{"@codemirror/view":"^6.0.0","@codemirror/state":"^6.0.0","@codemirror/language":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/codemirror-indentation-markers_6.4.0_1679536403128_0.8176594547201568","host":"s3://npm-registry-packages"},"readme":"# CodeMirror Indentation Markers\n\n<span><a href=\"https://replit.com/@util/codemirror-indentation-markers\" title=\"Run on Replit badge\"><img src=\"https://replit.com/badge/github/replit/codemirror-indentation-markers\" alt=\"Run on Replit badge\" /></a></span>\n<span><a href=\"https://www.npmjs.com/package/@replit/codemirror-indentation-markers\" title=\"NPM version badge\"><img src=\"https://img.shields.io/npm/v/@replit/codemirror-indentation-markers?color=blue\" alt=\"NPM version badge\" /></a></span>\n\nA CodeMirror extension that renders indentation markers using a\nheuristic similar to what other popular editors, like Ace and Monaco, use.\n\n![Example](public/cm-indentation-markers.png)\n\n### Usage\n\n```ts\nimport { basicSetup } from 'codemirror';\nimport { EditorState } from '@codemirror/state';\nimport { EditorView } from '@codemirror/view';\nimport { indentationMarkers } from '@replit/codemirror-indentation-markers';\n\nconst doc = `\ndef max(a, b):\n  if a > b:\n    return a\n  else:\n    return b\n`\n\nnew EditorView({\n  state: EditorState.create({\n    doc,\n    extensions: [basicSetup, indentationMarkers()],\n  }),\n  parent: document.querySelector('#editor'),\n});\n\n```\n\n### Options\n\nYou can provide an options object to `indentationMarkers()` with the following\noptional properties:\n\n- `highlightActiveBlock`\n    \n    Boolean that determines whether the active block marker is styled\n    differently. Setting this to `false` provides a significant performance\n    enhancement because it means that markers do not need to be regenerated\n    when the selection changes. Defaults to `true`.\n \n- `hideFirstIndent`\n\n    Boolean that determines whether markers in the first column are omitted.\n    Defaults to `false`.\n  \n- `markerType`\n  \n    String that determines how far the indentation markers extend. `\"fullScope\"` indicates that the markers extend down the full height of a scope. With the `\"codeOnly\"` option, indentation markers terminate at the last nonempty line in a scope. Defaults to `\"fullScope\"`.\n\n- `thickness`\n\n    Integer that determines the thickness in pixels of the indentation markers. Defaults to `1`.\n\n- `activeThickness`\n\n    Integer that determines the thickness in pixels of the active indentation markers. If `undefined` or `null` then `thickness` will be used. Defaults to `undefined`.\n\n- `colors`\n\n    Object that determines the colors of the indentation markers.\n\n    - `light`\n\n        String that determines the color of the markers when the editor has a light theme. Defaults to `#F0F1F2`.\n\n    - `dark`\n\n        String that determines the color of the markers when the editor has a dark theme. Defaults to `#2B3245`.\n\n    - `activeLight`\n\n        String that determines the color of the active block marker when the editor has a light theme. Only applies if `highlightActiveBlock` is `true`. Defaults to `#E4E5E6`.\n\n    - `activeDark`\n\n        String that determines the color of the active block marker when the editor has a dark theme. Only applies if `highlightActiveBlock` is `true`. Defaults to `#3C445C`.\n\n#### Example\n\n```ts\nnew EditorView({\n  state: EditorState.create({\n    doc,\n    extensions: [\n      basicSetup,\n      indentationMarkers({\n        highlightActiveBlock: false,\n        hideFirstIndent: true,\n        markerType: \"codeOnly\",\n        thickness: 2,\n        colors: {\n          light: 'LightBlue',\n          dark: 'DarkBlue',\n          activeLight: 'LightGreen',\n          activeDark: 'DarkGreen',\n        }\n      })\n    ],\n  }),\n  parent: document.querySelector('#editor'),\n});\n```\n","publish_time":1679536403385,"maintainers":[{"email":"mhsareini@gmail.com","name":"sareini"},{"email":"krish@repl.it","name":"krishatreplit"},{"email":"michaelwesthadley@gmail.com","name":"mikewesthad"},{"email":"motzyball@gmail.com","name":"motzyball"},{"email":"devon.stewart@repl.it","name":"replitdstewart"},{"email":"ryanweingast@repl.it","name":"ryanweingast"},{"email":"devin@devinhalladay.com","name":"theflowingsky"},{"email":"jonesit@repl.it","name":"jonesit-replit"},{"email":"hi@szymonkaliski.com","name":"szymon_k"},{"email":"donnelly.colton@gmail.com","name":"cdmistman"},{"email":"j.zhao2k19@gmail.com","name":"jackyzha0"},{"email":"james@replit.com","name":"jamesaustinreplit"},{"email":"horacio@repl.it","name":"lopezhoracio"},{"email":"brady@repl.it","name":"bradymaddenreplit"},{"email":"ryan@repl.it","name":"ryantm"},{"email":"alexis@repl.it","name":"alexisreplit"},{"email":"kirkpatrickian6@gmail.com","name":"ink404"},{"email":"brian@repl.it","name":"brianpool"},{"email":"toby@repl.it","name":"tobyho"},{"email":"breno.afb@gmail.com","name":"brenoafb"},{"email":"farismasad@gmail.com","name":"masad-frost"},{"email":"lincoln@replit.com","name":"lincolnreplit"},{"email":"stkenned@gmail.com","name":"stkenned"},{"email":"matthew@repl.it","name":"replitmatt"},{"email":"cbrewster@hey.com","name":"cbrewster"},{"email":"laima@repl.it","name":"ltazmin_replit"},{"email":"moudy.elkammash@gmail.com","name":"moudy"},{"email":"lhchavez@lhchavez.com","name":"lhchavez"}],"_cnpm_publish_time":1679536403385,"dist-tags":{"latest":"6.5.3"}}