Skip to content

Commit

Permalink
Update build exports
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis committed Mar 18, 2023
1 parent 9d6bd7c commit 4de28f2
Show file tree
Hide file tree
Showing 24 changed files with 83 additions and 84 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG.md

## 6.0.1
## 6.0.2

- Use vite for serving app and building library
- Remove rollup
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ If you're importing directly in the browser, use the following instead:
</head>
<body>
<div class="custom-file-container" data-upload-id="my-unique-id"></div>
<script src="https://unpkg.com/file-upload-with-preview"></script>
<script src="https://unpkg.com/file-upload-with-preview/dist/file-upload-with-preview.iife.js"></script>
</body>
</html>
```
Expand Down
42 changes: 21 additions & 21 deletions docs/typedoc/classes/FileUploadWithPreview.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/typedoc/enums/Events.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="Events.html">Events</a></li></ul>
<h1>Enumeration Events</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/constants/events.ts#L1">constants/events.ts:1</a></li></ul></aside>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/constants/events.ts#L1">constants/events.ts:1</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -35,22 +35,22 @@ <h2>Enumeration Members</h2>
<h3 class="tsd-anchor-link"><span>CLEAR_<wbr/>BUTTON_<wbr/>CLICKED</span><a href="#CLEAR_BUTTON_CLICKED" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
<div class="tsd-signature">CLEAR_<wbr/>BUTTON_<wbr/>CLICKED<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;fileUploadWithPreview:clearButtonClicked&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/constants/events.ts#L4">constants/events.ts:4</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/constants/events.ts#L4">constants/events.ts:4</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="IMAGE_ADDED" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>IMAGE_<wbr/>ADDED</span><a href="#IMAGE_ADDED" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">IMAGE_<wbr/>ADDED<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;fileUploadWithPreview:imagesAdded&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/constants/events.ts#L2">constants/events.ts:2</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/constants/events.ts#L2">constants/events.ts:2</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="IMAGE_DELETED" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>IMAGE_<wbr/>DELETED</span><a href="#IMAGE_DELETED" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">IMAGE_<wbr/>DELETED<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;fileUploadWithPreview:imageDeleted&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/constants/events.ts#L3">constants/events.ts:3</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/constants/events.ts#L3">constants/events.ts:3</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="IMAGE_MULTI_ITEM_CLICKED" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>IMAGE_<wbr/>MULTI_<wbr/>ITEM_<wbr/>CLICKED</span><a href="#IMAGE_MULTI_ITEM_CLICKED" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">IMAGE_<wbr/>MULTI_<wbr/>ITEM_<wbr/>CLICKED<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;fileUploadWithPreview:imageMultiItemClicked&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/constants/events.ts#L5">constants/events.ts:5</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/constants/events.ts#L5">constants/events.ts:5</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
2 changes: 1 addition & 1 deletion docs/typedoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2>Usage</h2>
<pre><code class="language-javascript"><span class="hl-7">import</span><span class="hl-0"> { </span><span class="hl-8">FileUploadWithPreview</span><span class="hl-0"> } </span><span class="hl-7">from</span><span class="hl-0"> </span><span class="hl-1">&#39;file-upload-with-preview&#39;</span><span class="hl-0">;</span><br/><span class="hl-7">import</span><span class="hl-0"> </span><span class="hl-1">&#39;file-upload-with-preview/dist/style.css&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-9">const</span><span class="hl-0"> </span><span class="hl-10">upload</span><span class="hl-0"> = </span><span class="hl-9">new</span><span class="hl-0"> </span><span class="hl-11">FileUploadWithPreview</span><span class="hl-0">(</span><span class="hl-1">&#39;my-unique-id&#39;</span><span class="hl-0">);</span>
</code></pre>
<p>If you&#39;re importing directly in the browser, use the following instead:</p>
<pre><code class="language-html"><span class="hl-2">&lt;!</span><span class="hl-3">DOCTYPE</span><span class="hl-0"> </span><span class="hl-4">html</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">html</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">meta</span><span class="hl-0"> </span><span class="hl-4">charset</span><span class="hl-0">=</span><span class="hl-5">&quot;UTF-8&quot;</span><span class="hl-0"> </span><span class="hl-2">/&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">link</span><br/><span class="hl-0"> </span><span class="hl-4">rel</span><span class="hl-0">=</span><span class="hl-5">&quot;stylesheet&quot;</span><br/><span class="hl-0"> </span><span class="hl-4">type</span><span class="hl-0">=</span><span class="hl-5">&quot;text/css&quot;</span><br/><span class="hl-0"> </span><span class="hl-4">href</span><span class="hl-0">=</span><span class="hl-5">&quot;https://unpkg.com/file-upload-with-preview/dist/style.css&quot;</span><br/><span class="hl-0"> </span><span class="hl-2">/&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;/</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">div</span><span class="hl-0"> </span><span class="hl-4">class</span><span class="hl-0">=</span><span class="hl-5">&quot;custom-file-container&quot;</span><span class="hl-0"> </span><span class="hl-4">data-upload-id</span><span class="hl-0">=</span><span class="hl-5">&quot;my-unique-id&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">div</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-6"> </span><span class="hl-4">src</span><span class="hl-6">=</span><span class="hl-5">&quot;https://unpkg.com/file-upload-with-preview&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;/</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">html</span><span class="hl-2">&gt;</span>
<pre><code class="language-html"><span class="hl-2">&lt;!</span><span class="hl-3">DOCTYPE</span><span class="hl-0"> </span><span class="hl-4">html</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">html</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">meta</span><span class="hl-0"> </span><span class="hl-4">charset</span><span class="hl-0">=</span><span class="hl-5">&quot;UTF-8&quot;</span><span class="hl-0"> </span><span class="hl-2">/&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">link</span><br/><span class="hl-0"> </span><span class="hl-4">rel</span><span class="hl-0">=</span><span class="hl-5">&quot;stylesheet&quot;</span><br/><span class="hl-0"> </span><span class="hl-4">type</span><span class="hl-0">=</span><span class="hl-5">&quot;text/css&quot;</span><br/><span class="hl-0"> </span><span class="hl-4">href</span><span class="hl-0">=</span><span class="hl-5">&quot;https://unpkg.com/file-upload-with-preview/dist/style.css&quot;</span><br/><span class="hl-0"> </span><span class="hl-2">/&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;/</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">div</span><span class="hl-0"> </span><span class="hl-4">class</span><span class="hl-0">=</span><span class="hl-5">&quot;custom-file-container&quot;</span><span class="hl-0"> </span><span class="hl-4">data-upload-id</span><span class="hl-0">=</span><span class="hl-5">&quot;my-unique-id&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">div</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-6"> </span><span class="hl-4">src</span><span class="hl-6">=</span><span class="hl-5">&quot;https://unpkg.com/file-upload-with-preview/dist/file-upload-with-preview.iife.js&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-0"> </span><span class="hl-2">&lt;/</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">html</span><span class="hl-2">&gt;</span>
</code></pre>
<p>Then initialize like this:</p>
<pre><code class="language-javascript"><span class="hl-9">const</span><span class="hl-0"> </span><span class="hl-10">upload</span><span class="hl-0"> = </span><span class="hl-9">new</span><span class="hl-0"> </span><span class="hl-8">FileUploadWithPreview</span><span class="hl-0">.</span><span class="hl-11">FileUploadWithPreview</span><span class="hl-0">(</span><span class="hl-1">&#39;my-unique-id&#39;</span><span class="hl-0">);</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/typedoc/interfaces/ClearButtonClickedEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ClearButtonClickedEvent</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/types/events.ts#L24">types/events.ts:24</a></li></ul></aside>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/types/events.ts#L24">types/events.ts:24</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -36,7 +36,7 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><span>detail</span><a href="#detail" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
<div class="tsd-signature">detail<span class="tsd-signature-symbol">:</span> <a href="ClearButtonClickedEventDetail.html" class="tsd-signature-type" data-tsd-kind="Interface">ClearButtonClickedEventDetail</a></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/types/events.ts#L25">types/events.ts:25</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/types/events.ts#L25">types/events.ts:25</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
4 changes: 2 additions & 2 deletions docs/typedoc/interfaces/ClearButtonClickedEventDetail.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ClearButtonClickedEventDetail</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/types/events.ts#L21">types/events.ts:21</a></li></ul></aside>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/types/events.ts#L21">types/events.ts:21</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -36,7 +36,7 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><span>upload<wbr/>Id</span><a href="#uploadId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
<div class="tsd-signature">upload<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/types/events.ts#L22">types/events.ts:22</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/types/events.ts#L22">types/events.ts:22</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
4 changes: 2 additions & 2 deletions docs/typedoc/interfaces/ImageAddedEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ImageAddedEvent</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/types/events.ts#L7">types/events.ts:7</a></li></ul></aside>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/types/events.ts#L7">types/events.ts:7</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -36,7 +36,7 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><span>detail</span><a href="#detail" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
<div class="tsd-signature">detail<span class="tsd-signature-symbol">:</span> <a href="ImageAddedEventDetail.html" class="tsd-signature-type" data-tsd-kind="Interface">ImageAddedEventDetail</a></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/2d0239c/src/types/events.ts#L8">types/events.ts:8</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/johndatserakis/file-upload-with-preview/blob/9d6bd7c/src/types/events.ts#L8">types/events.ts:8</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
Loading

0 comments on commit 4de28f2

Please sign in to comment.