import { h } from 'preact';
import { Button } from './common';

function NotificationItem({ type, label, children }) {
	var strongTag;
	if (type === 'bug') {
		strongTag = <strong>🔧 {label || 'Bugfix'}</strong>;
	} else if (type === 'a11y') {
		strongTag = <strong>♿️ {label || 'Accessibility'}</strong>;
	} else if (type === 'ui') {
		strongTag = <strong>🖥 {label || 'Interface'}</strong>;
	}
	return (
		<li>
			{strongTag}: {children}
		</li>
	);
}

function ThanksTo({ name, url }) {
	return (
		<a href={url} target="_blank" rel="noopener noreferrer">
			{' '}
			{name}
		</a>
	);
}

function Notification({ version, isLatest, ...props }) {
	return (
		<div class="notification">
			<span class="notification__version">{version}</span>
			<ul>{props.children}</ul>
			{isLatest ? (
				<div class="mt-2">
					<p>
						<strong>🎉 New Product!</strong> If you like Web Maker, you'll
						probably also like a new product I launched. It's the first ever
						code-golfing game for CSS -&gt;{' '}
						<a href="https://cssbattle.dev" target="_blank">
							CSSBattle
						</a>
						.
					</p>
					{/*<p>
						<strong>🚀 Announcement</strong>: Hi! I am Kushagra Gour (creator of
						Web Maker) and I have launched a
						<a
							href="https://patreon.com/kushagra"
							target="_blank"
							rel="noopener noreferrer"
						>
							{' '}
							Patreon campaign
						</a>
						. If you love Web Maker, consider pledging to
						<a
							href="https://patreon.com/kushagra"
							target="_blank"
							rel="noopener noreferrer"
						>
							{' '}
							support me
						</a>{' '}
						:)
						</p>*/}
					<p>
						<a
							href="https://github.com/chinchang/web-maker/issues"
							target="_blank"
							rel="noopener noreferrer"
						>
							Suggest features or report bugs.
						</a>
					</p>
					<p>
						Web Maker now has more than 70K weekly active users! Thank you for
						being a part of this community of awesome developers. If you find
						Web Maker helpful,{' '}
						<a
							href="https://chromewebstore.google.com/detail/web-maker/lkfkkhfhhdkiemehlpkgjeojomhpccnh/reviews"
							target="_blank"
							rel="noopener noreferrer"
							class="btn"
						>
							Please rate Web Maker &nbsp;
							<span class="star" />
						</a>
						&nbsp;
						<a
							class="btn"
							href="http://twitter.com/share?url=https://webmaker.app/&text=Web Maker - A blazing fast %26 offline frontend playground! via @webmakerApp&related=webmakerApp&hashtags=web,editor,chrome,extension"
							target="_blank"
							rel="noopener noreferrer"
						>
							Share it
						</a>
					</p>
				</div>
			) : null}
		</div>
	);
}
export function Changelog(props) {
	return (
		<div>
			<h1>Whats new?</h1>

			<Notification version="6.4.0" {...props} isLatest={true}>
				<li>
					<strong>Assets inlining in "Save as HTML"</strong>: You now have an
					option to inline all the external assets (images, audios,videos) in
					the HTML file when you save the creation as HTML. This is useful when
					you want to share the HTML file with someone and want it to work
					offline. Currently supports assets defined in HTML file only.
				</li>
			</Notification>
			<Notification version="6.3.7" {...props}>
				<NotificationItem type="bug">
					Setting changes not saving to database is fixed.
				</NotificationItem>
			</Notification>

			<Notification version="6.3.6" {...props}>
				<NotificationItem type="bug">
					Import of creations (in logged in state) now always works even if the
					same creations have been imported to some other account.
				</NotificationItem>
			</Notification>

			<Notification version="6.3.4" {...props}>
				<NotificationItem type="bug">
					Public creations are now working.
				</NotificationItem>
			</Notification>

			<Notification version="6.3.0" {...props}>
				<NotificationItem type="bug">
					Extension Only: JavaScript is NOW WORKING, again! 🎉 The extension is
					now migrated to MV3 which means its much more secure, and of course,
					JavaScript now works again! 🥳
				</NotificationItem>
				<NotificationItem type="ui">
					Tailwind CSS 2 template has been removed since Extension now supports
					the lateat Tailwind CSS 3 template.
				</NotificationItem>
			</Notification>

			<Notification version="6.2.0" {...props}>
				<li>Preact template updated to latest version with hooks.</li>
				<li>Mail option added in help modal.</li>
				<li>
					JS error checks updated to latest version. No more red errors on
					latest syntax.
				</li>
				<NotificationItem type="bug">
					Localstorage/Cookies not being available to creations is now fixed.
				</NotificationItem>
				<NotificationItem type="bug">
					Bugs related to light-weight mode and creation not opening on page
					refresh in logged out state are fixed.
				</NotificationItem>
				<NotificationItem type="bug">
					Code auto-format for JS is fixed.
				</NotificationItem>
			</Notification>
			<Notification version="6.1.0" {...props}>
				<li>
					<strong>🕹️ Kaboom game engine</strong>: Kaboom.js is now available in
					quick-add library list. Also, a new template to quick-start in Kaboom
					has been added.
				</li>
				<NotificationItem type="bug">
					Incorrect/old preview rendering bug is fixed.
				</NotificationItem>
			</Notification>

			<Notification version="6.0.0" {...props}>
				<li>
					<strong>🎁 PRO plan 🎉</strong>: Today I introduce to you - Web
					Maker's PRO plan! A set of additional super-features which you can
					buy. The PRO plan is available as monthly/annual subscription as well
					as a one-time lifetime price! Let's see what you get as a PRO.
				</li>
				<li>
					<strong>🔓 Share your creations</strong>: Web Maker has always been a
					privacy-first app. Continuing that culture, today we introduce "Share
					your creation" feature. Your creations are still created as private
					but now you can securely make them public to share with the world. As
					a free user you can have 1 creation public at a time. Upgrading to PRO
					gives you unlimited public creations.
				</li>
				<li>
					<strong>🗄️ Asset hosting</strong>: No more going to other places in
					order to host your images, CSS or JS files. Web Maker PRO gives you
					the ability to host your assets right inside Web Maker. You can upload
					images, CSS and JS files and use them in your creations.
				</li>
				<li>
					<strong>📁 Files mode</strong>: As a free user you could always create
					2 creations in Files mode. With PRO, you can create unlimited
					creations in Files mode.
				</li>
				<NotificationItem type="ui">
					Web app is now available on webmaker.app/create (Previously available
					on webmaker.app/app)
				</NotificationItem>
				<NotificationItem type="ui">
					Fork button is now available in the header too
				</NotificationItem>
			</Notification>
			<Notification version="5.3.0" {...props}>
				<li>
					<strong>Tailwind CSS templates</strong>: Tailwind CSS template is now
					available! If you are on the Chrome extension, use the Tailwind CSS 2
					template which is old but works without JavaScript (since JavaScript
					is disabled currently in Chrome extension). That said, JavaScript is
					coming back soon to the Chrome extension! 😃
				</li>
				<li>⬆️ Popular libraries updated to latest versions.</li>
			</Notification>

			<Notification version="5.2.0" {...props}>
				<li>
					<strong>Improvement</strong>: Atomic CSS (Atomizer) has been updated
					to latest version. Now you can do things like Grid and more!
				</li>
				<li>
					<strong>Improvement</strong>: Atomic CSS config can now be written
					with unquoted keys too. No need to have a valid JSON syntax.
				</li>
			</Notification>
			<Notification version="5.1.1" {...props}>
				<NotificationItem type="bug">
					Detached preview now renders correctly.
				</NotificationItem>
			</Notification>
			<Notification version="5.1.0" {...props}>
				<NotificationItem type="interface">
					Console's open state is preserved across refreshes.
				</NotificationItem>
				<NotificationItem type="bug">
					Error highlighting fixed in JS pane when using Codemirror editor.
					Thanks
					<ThanksTo url="https://github.com/nhogle" name="@nhogle" />
				</NotificationItem>
				<NotificationItem type="bug">
					Tab key not working in JS pane is fixed. Thanks
					<ThanksTo url="https://github.com/nhogle" name="@nhogle" />
				</NotificationItem>
				<NotificationItem type="bug">
					3rd party libraries not updating sometimes is fixed.
				</NotificationItem>
			</Notification>
			<Notification version="5.0.3" {...props}>
				<li>
					⬆️ Popular libraries updated to latest versions. Thanks
					<ThanksTo url="https://github.com/diomed" name="@diomed" />
				</li>
			</Notification>
			<Notification version="5.0.1" {...props}>
				<NotificationItem type="bug">
					Add library feature is fixed.
				</NotificationItem>
			</Notification>
			<Notification version="5.0.0" {...props}>
				<li>
					<strong>We are Back! 😎</strong>: After almost 2 years of nothing
					being shipped, we are back in action. That too with a bang! We have a
					small team of amazing developers working on Web Maker now. So expect
					some crazy useful features coming soon!
				</li>
				<NotificationItem type="ui">
					First up, is local language support! We have added Hindi and Spanish
					to start with! Thanks{' '}
					<ThanksTo
						url="https://github.com/leninalbertolp"
						name="@leninalbertolp"
					/>{' '}
					for the Spanish translation. It was long due!
				</NotificationItem>
			</Notification>
			<Notification version="4.2.0" {...props}>
				<li>
					Tailwind CSS now added to popular libraries list. Thanks
					<a href="https://github.com/LoganDark"> @LoganDark</a>
				</li>
			</Notification>
			<Notification version="4.0.3" {...props}>
				<NotificationItem type="bug">
					Broken syntax highlighting in non-default Preprocessors.
				</NotificationItem>
			</Notification>

			<Notification version="4.0.2" {...props}>
				<li>
					You can now override settings through query parameters. Currently only{' '}
					<strong>autoPreview</strong> and <strong>isMonacoEditorOn</strong> are
					supported. Example:{' '}
					<code>
						https://webmaker.app/create?settings=autoPreview:false,isMonacoEditorOn:true
					</code>
				</li>
				<NotificationItem type="bug">
					"Settings" and "Create New" modals breaking on mobile.
				</NotificationItem>
			</Notification>

			<Notification version="4.0.1" {...props}>
				<NotificationItem type="bug">
					Buggy full-screen option in Files mode. The option is removed till it
					works correctly with Files mode
				</NotificationItem>
				<NotificationItem type="bug">
					File explorer sidebar taking too much width in Files mode.
				</NotificationItem>
				<NotificationItem type="bug">
					SASS/SCSS compiler updated to version 3.6.3 of Libsass.
				</NotificationItem>
				<NotificationItem type="bug">
					JavaScript evaluation failing randomly with errors like const cannot
					be reassigned.
				</NotificationItem>
				<NotificationItem type="bug">
					Command palette now opens with <code>F1</code> key instead of{' '}
					<code>Cmd/Ctrl + shift + P</code>
				</NotificationItem>
				<li>
					⬆️ Popular libraries updated to latest versions. Thanks
					<ThanksTo url="https://github.com/diomed" name="@diomed" />
				</li>
			</Notification>

			<Notification version="4.0.0" {...props}>
				<p>
					Sit tight, because this is going to be some amazing set on updates for
					you! Read{' '}
					<a
						href="https://medium.com/web-maker/web-maker-4-0-e8e442b5a2db"
						target="_blank"
						rel="noopener noreferrer"
					>
						blog post about Web Maker 4.0
					</a>
					.
				</p>
				<ul>
					<li>
						<strong>🏠</strong>: First of all, Web Maker has a new home -{' '}
						<a href="https://webmaker.app">https://webmaker.app</a> 😀 The old
						website will continue to run for a month or so, but will eventually
						start redirecting to the new website. If you have an online account
						in Web Maker, you need not worry. But if you have some locally saved
						creations, you should{' '}
						<a
							href="https://medium.com/web-maker/importing-exporting-your-creations-d92e7de5c3dc"
							target="_blank"
							rel="noopener noreferrer"
						>
							export them and import
						</a>{' '}
						here.
					</li>
					<li>
						<strong>📁 Files Mode</strong>: Hear this - you can now work with
						files just like you do in your local environment! No more working in
						just 3 panes. Try creating a new creation. "Files Mode" is in beta
						and you can currently only save 2 creations in this mode.
					</li>
					<li>
						<strong>🎨 Command Palette</strong>: We all love this, don't we?
						Taking frequent actions is now much quicker with the all new Command
						Palette. Hit Ctrl/Command+Shift+P, and give it a spin.
					</li>
					<li>
						<strong>🔥 Improved Console</strong>: Console inspection becomes
						more powerful. You can view nested objects, arrays and even DOM
						Elements!
					</li>
					<li>
						<strong>✏️ Monaco Editor</strong>: You can choose to use Monaco
						instead of CodeMirror editor from the settings. Though this is still
						an experimental feature and might contain bugs.
					</li>
					<li>
						<strong>💄 Prettier</strong>: Format your code with everybody's
						favourite{' '}
						<a
							href="https://prettier.io/"
							target="_blank"
							rel="noopener noreferrer"
						>
							Prettier
						</a>
						.
					</li>
					<NotificationItem type="ui" label="Preview dimensions">
						You can see the preview frame dimensions when resizing.
					</NotificationItem>
					<NotificationItem type="ui" label="Settings">
						Settings screen got a complete makeover and now it's much easier to
						find what you are looking for.
					</NotificationItem>
					<NotificationItem type="a11y">
						The app is now more accessible than ever. There are significant
						improvements mainly in the area of keyboard navigation.
					</NotificationItem>
				</ul>
			</Notification>

			<Notification version="3.6.2" {...props}>
				<NotificationItem type="bug">
					"404 Page not found" showing up in preview window when in detached
					mode.
				</NotificationItem>
			</Notification>

			<Notification version="3.6.1" {...props}>
				<NotificationItem type="bug">
					Failing to import local creations when logging in.
				</NotificationItem>
			</Notification>

			<Notification version="3.6.0" {...props}>
				<li>
					<strong>New Setting</strong>: Configure if you want to auto-close the
					tags in HTML. (#347)
				</li>
				<li>
					<strong>Prettier</strong>: Prettier now works on HTML also! Also the
					keyboard shortcut has been changed to <kbd>Ctrl</kbd> +{' '}
					<kbd>Shift</kbd> + <kbd>F</kbd>.
				</li>

				<li>
					No more anonying alert on opening Web Maker in multiple tabs. Thanks
					team Firebase :) (#340)
				</li>

				<li>
					<strong>🔥 Web Maker 4.0 is coming!</strong> Follow{' '}
					<a
						href="https://twitter.com/webmakerApp"
						target="_blank"
						rel="noopener"
					>
						Web Maker on Twitter
					</a>{' '}
					to keep up with all the exciting updates.
				</li>
			</Notification>

			<Notification version="3.5.1" {...props}>
				<li>
					<strong>Hidden Prettier</strong>: Selecting code and pressing
					Shift+Tab now uses Prettier to auto-format. This will improve UX wise
					in coming versions.
				</li>
			</Notification>

			<Notification version="3.5.0" {...props}>
				<li>
					<strong>New Template</strong>: Template for Vue.js is available when
					you start a new creation. Thanks{' '}
					<ThanksTo url="https://github.com/khamer" name="@khamer" />
				</li>

				<li>
					⬆️ Popular libraries updated to latest versions. Thanks
					<ThanksTo url="https://github.com/diomed" name="@diomed" />
				</li>
			</Notification>

			<Notification version="3.4.2" {...props}>
				<li>
					🚀 RxJS added to popular libraries list. Thanks
					<ThanksTo url="https://github.com/jpsc" name="@jpsc" />
				</li>

				<NotificationItem type="bug">
					Not able to select libraries twice with mouse click in Add Library
					modal.
				</NotificationItem>
				<NotificationItem type="bug">
					Console going outside the viewport on huge logs.
				</NotificationItem>

				<NotificationItem type="bug">
					Console dissapearing in detached mode on changing layouts.
				</NotificationItem>

				<li>
					<strong>[Dev]</strong>: Improve{' '}
					<a
						href="https://github.com/chinchang/web-maker/blob/master/CONTRIBUTING.md"
						target="_blank"
						rel="noopener"
					>
						contribution guide
					</a>{' '}
					and add issue template on Github.
				</li>
			</Notification>

			<Notification version="3.4.1" {...props}>
				<li>
					<strong>Js13kGames Mode</strong>: Add image upload option using
					Pasteboard.co.{' '}
					<a
						href="https://medium.com/web-maker/js13kgames-jam-with-web-maker-a3389cf2cbb"
						target="_blank"
						rel="noopener"
					>
						Read more about it here.
					</a>
				</li>
				<li>
					<strong>Kontra.js template</strong>: Update to latest 4.0.0.
				</li>
				<NotificationItem type="a11y">
					Fix color contrast for various texts.
				</NotificationItem>

				<NotificationItem type="bug">
					Fix external script paths in downloaded zip in Js13KGame mode.
				</NotificationItem>
			</Notification>

			<Notification version="3.4.0" {...props}>
				<li>
					<strong>🎉 Js13kGames Mode</strong>: For all you Js13kGames compo
					participants out there. Turn it on from Settings.{' '}
					<a
						href="https://medium.com/web-maker/js13kgames-jam-with-web-maker-a3389cf2cbb"
						target="_blank"
						rel="noopener"
					>
						Read more about it here.
					</a>
				</li>
				<li>
					<strong>🎉 Templates</strong>: Presenting, templates for major
					libraries and frameworks. Hit the "New" button to explore.
				</li>
				<NotificationItem type="a11y">
					Add missing focus rings around focusable element.
				</NotificationItem>
				<NotificationItem type="ui">
					Migrate remaining interface elements to dark theme. Now complete app
					is in dark theme.
				</NotificationItem>
				<NotificationItem type="bug">
					Fix "Save as HTML" and "Take Screenshot" features in Chrome extension.
				</NotificationItem>
			</Notification>

			<Notification version="3.3.2" {...props}>
				<NotificationItem type="a11y">
					Improper links are now buttons with proper focus indication and
					screen-reader support. Thanks{' '}
					<ThanksTo url="https://github.com/jpsc" name="@jpsc" />
				</NotificationItem>
				<NotificationItem type="bug">
					Auto-complete suggestions are now working.
				</NotificationItem>
				<NotificationItem type="bug">
					Fixes resetting pane sizes when opening any popup or console.
				</NotificationItem>
				<li>
					<strong>[Dev] Tests</strong>: We now have one running automated test
					:) More to come. Thanks{' '}
					<ThanksTo url="https://github.com/DanielRuf" name="@DanielRuf" />
				</li>
			</Notification>

			<Notification version="3.3.0" {...props}>
				<li>
					<strong>🔥 [Dev] Code Refactor</strong>: I rewrote Web Maker. Yes, Web
					Maker's codebase has been ported from plain JS to{' '}
					<a
						href="https://preactjs.com/"
						target="_blank"
						rel="noopener noreferrer"
					>
						Preact
					</a>
					. What does this mean for you as a end-user? This means that now that
					the code is much smaller, more modular and maintainable. Hence, future
					features can be developed more rapidly. So fasten your seat belts, and
					get ready to use loads of new features coming your way in next
					releases!
					<br />
					<a
						href="https://medium.com/web-maker/web-maker-is-now-in-preact-85af98be8683"
						target="_blank"
						rel="noopener noreferrer"
					>
						Read more about this big code refactor
					</a>
					.
				</li>
				<li>
					<a href="https://p5js.org/" target="_blank" rel="noopener noreferrer">
						p5.js
					</a>{' '}
					added to popular JS libraries list. Thanks{' '}
					<ThanksTo url="https://github.com/nucliweb" name="@nucliweb" />.
				</li>
			</Notification>

			<Notification version="3.2.0" {...props}>
				<li>
					<strong>🚀 Loop timeout setting</strong>: You now have a setting to
					tweak the maximum timeout of a loop iteration before it's marked as
					infinite loop.
				</li>
				<NotificationItem type="a11y">
					Modals now have proper keyboard navigation integrated.
				</NotificationItem>
				<NotificationItem type="a11y">
					Color contrast improvements.
				</NotificationItem>
				<li>
					🚀 Popular libraries list updated. Thanks
					<ThanksTo url="https://github.com/diomed" name="@diomed" /> &{' '}
					<ThanksTo
						url="https://github.com/leninalbertolp"
						name="@leninalbertolp"
					/>
				</li>
				<NotificationItem type="bug">
					Modal take up appropriate width instead of spanning full width.
				</NotificationItem>
			</Notification>

			<Notification version="3.1.1" {...props}>
				<NotificationItem type="bug">
					Fix the "Run" button not refreshing the preview after release 3.0.4.
				</NotificationItem>
			</Notification>

			<Notification version="3.1.0" {...props}>
				<li>
					<strong>Mobile Support (app only).</strong>: Make the Web Maker app
					usable on mobile. This is only for web app as Chrome extensions don't
					run on mobile.
				</li>
			</Notification>

			<Notification version="3.0.4" {...props}>
				<NotificationItem type="bug">
					Guarantee code doesn't execute when "auto preview" is off.
				</NotificationItem>
				<li>
					Add link to our new
					<a
						href="https://web-maker.slack.com"
						target="_blank"
						rel="noopener noreferrer"
					>
						Slack channel
					</a>{' '}
					🤗.
				</li>
			</Notification>

			<Notification version="3.0.3" {...props}>
				<li>
					<strong>Bugfix (extension)</strong>: "Save as HTML" file saves with
					correct extension.
				</li>
			</Notification>

			<div class="notification">
				<span class="notification__version">3.0.1</span>
				<ul>
					<li>
						After months of work, here is Web Maker 3.0.
						<a
							href="https://medium.com/web-maker/web-maker-3-0-is-here-f158a40eeaee"
							target="_blank"
							rel="noopener noreferrer"
						>
							{' '}
							Read the blog post about it
						</a>
						.
					</li>
					<li>
						Web Maker is no more just a Chrome extension, it is also available
						as web app that runs offline just like the extension! Checkout it
						out -&gt;
						<a
							href="https://webmaker.app/create/"
							target="_blank"
							rel="noopener noreferrer"
						>
							https://webmaker.app/create/
						</a>
						.
					</li>
					<li>
						Now use Web Maker web app on any modern browser (tested with Chrome
						and Firefox).
					</li>
					<li>
						<strong>User Accounts</strong> - The much requested user accounts
						are here. Now maintain your account and store all your creations in
						the cloud and access them anywhere anytime.
					</li>
					<li>
						<strong>New layout mode</strong> - One more layout mode, that lets
						you align all the panes vertically.
					</li>
					<li>
						<strong>No more restriction on scripts (Web app only)</strong> - If
						you are using the web app, there is no more a restriction to load
						scripts from only specific domains. Load any script!
					</li>
					<li>
						<strong>Inline scripts (Web app only)</strong> - The restriction of
						writing JavaScript only in JS pane is also removed.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.7</span>
				<ul>
					<li>
						<a
							href="https://tailwindcss.com/"
							target="_blank"
							rel="noopener noreferrer"
						>
							Tailwind CSS
						</a>{' '}
						added to popular CSS libraries list. Thanks{' '}
						<ThanksTo url="https://github.com/diomed" name="diomed" />.
					</li>
					<li>
						Popular libraries list updated. Thanks{' '}
						<ThanksTo url="https://github.com/diomed" name="diomed" />.
					</li>
					<li>
						<strong>Dev</strong>: Bug fixes and code refactoring to make things
						simple.{' '}
						<ThanksTo
							url="https://github.com/iamandrewluca"
							name="iamandrewluca"
						/>{' '}
						.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.6</span>
				<ul>
					<li>
						<strong>Bugfix</strong>: Fix close buttons not working in
						notifications and keyboard shortcuts modal.
					</li>
					<li>
						<strong>Bugfix</strong>: Fix keyboard shortcut to see keyboard
						shortcuts :) Thanks
						<a
							href="https://github.com/ClassicOldSong"
							target="_blank"
							rel="noopener noreferrer"
						>
							ClassicOldSong
						</a>
						.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.5</span>
				<ul>
					<li>
						<a
							href="https://medium.com/web-maker/release-2-9-5-add-library-search-pane-collapsing-ux-improvements-more-1085216c1301"
							target="_blank"
							rel="noopener noreferrer"
						>
							Read blog post about this release.
						</a>
					</li>
					<li>
						<strong>Keyboard shortcuts panel</strong>: Add a list of all
						keyboard shotcuts. Access with
						<code> Ctrl/⌘ + Shift + ?</code> or click keyboard button in footer.
					</li>
					<li>
						<strong>Add external library</strong>: Better UX for searching third
						party libraries.
					</li>
					<li>
						<strong>Improvement</strong>: Code panes now go fullscreen when
						double-clicked on their headers - which is much more intuitive
						behavior based on feedback from lot of developers.
					</li>
					<li>
						<strong>Improvement</strong>: Add
						<code>allowfullscreen</code> attribute on iframes. Thanks
						<a
							href="https://github.com/ClassicOldSong"
							target="_blank"
							rel="noopener noreferrer"
						>
							ClassicOldSong
						</a>
						.
					</li>
					<li>
						<strong>Bugfix</strong> - Stop screenlog.js from showing up in the
						exported HTML.
					</li>
					<li>
						Popular external libraries list updated. Thanks
						<a
							href="https://github.com/jlapitan"
							target="_blank"
							rel="noopener noreferrer"
						>
							jlapitan
						</a>
						.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.4</span>
				<ul>
					<li>
						<strong>Improvement</strong>: Atomic CSS (Atomizer) has been updated
						to latest version. Now you can do things like psuedo elements. Learn
						More.
					</li>
					<li>
						<strong>Bugfix</strong> - Logging circular objects is now possible.
						It won't show in the Web Maker console, but will show fine in
						browser's console.
					</li>
					<li>
						<strong>Bugfix</strong> - Console's z-index issue has been fixed.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.3</span>
				<ul>
					<li>
						Choose the save location while exporting your saved creations. Now
						easily sync them to your Dropbox or any cloud storage.
					</li>
					<li>All modals inside the app now have a close button.</li>
					<li>
						Checkbox that showed on clicking a boolean value is now removed.
						Thanks
						<a
							href="https://github.com/gauravmuk"
							target="_blank"
							rel="noopener noreferrer"
						>
							Gaurav Nanda
						</a>
						.
					</li>
					<li>
						<strong>Bugfix</strong> - Screenshots on retina device are now
						correct. Thanks
						<a
							href="https://github.com/AshBardhan"
							target="_blank"
							rel="noopener noreferrer"
						>
							Ashish Bardhan
						</a>
						.
					</li>
					<li>
						<strong>Bugfix</strong> - Double console log in detached mode fixed.
					</li>
					<li>
						<strong>Bugfix</strong> - Console.clear now works in detached mode
						too.
					</li>
					<li>
						<strong>Bugfix</strong> - DOCTYPE added in preview.
					</li>
					<li>
						<strong>Bugfix</strong> - Typo correction in README. Thanks
						<a
							href="https://github.com/AdilMah"
							target="_blank"
							rel="noopener noreferrer"
						>
							Adil Mahmood
						</a>
						.
					</li>
					<li>gstatic.com is available to load external JavaScripts from.</li>
					<li>
						Popular libraries list updated. Thanks
						<a
							href="https://github.com/diomed"
							target="_blank"
							rel="noopener noreferrer"
						>
							diomed
						</a>
						.
					</li>
					<li>
						Added
						<a
							href="https://github.com/chinchang/web-maker/blob/master/CONTRIBUTING.md"
							target="_blank"
							rel="noopener noreferrer"
						>
							contribution guidelines
						</a>{' '}
						in the Github repository.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.2</span>
				<ul>
					<li>Minor bug fixes.</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.1</span>
				<ul>
					<li>
						<a
							href="https://medium.com/web-maker/v2-9-lots-of-goodies-bd1e939571f6"
							target="_blank"
							rel="noopener noreferrer"
						>
							Read blog post about last release.
						</a>
					</li>
					<li>
						Use Ctrl/Cmd+D to select next occurence of matching selection.
					</li>
					<li>Improve onboard experience.</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.9.0</span>
				<ul>
					<li>
						<a
							href="https://medium.com/web-maker/v2-9-lots-of-goodies-bd1e939571f6"
							target="_blank"
							rel="noopener noreferrer"
						>
							Read blog post about this release.
						</a>
					</li>
					<li>
						<strong>Detached Preview</strong> - Yes, you read that correct! You
						can now detach your preview and send it to your secondary monitor.
					</li>
					<li>
						<strong>Find & Replace</strong> - Long awaited, now its there.
						Ctrl/Cmd+f to find and add Alt to replace.
					</li>
					<li>
						<strong>Atomic CSS (Atomizer) configurations</strong> - Add custom
						config for Atomic CSS.
						<a
							href="https://github.com/acss-io/atomizer#api"
							target="_blank"
							rel="noopener noreferrer"
						>
							Read more
						</a>
						.
					</li>
					<li>
						<strong>Light mode</strong> - This new setting makes Web Maker drop
						some heavy effects like blur etc to gain more performance. Thanks
						<a
							href="https://github.com/iamandrewluca"
							target="_blank"
							rel="noopener noreferrer"
						>
							Andrew
						</a>
						.
					</li>
					<li>
						<strong>Preserve logs setting</strong> - Choose whether or not to
						preserve logs across preview refreshes. Thanks
						<a
							href="https://github.com/BasitAli"
							target="_blank"
							rel="noopener noreferrer"
						>
							Basit
						</a>
						.
					</li>
					<li>
						<strong>Line wrap setting</strong> - As the name says.
					</li>
					<li>Semantic UI added to popular libraries.</li>
					<li>
						Bootstrap, Vue, UI-Kit and more updated to latest versions in
						popular libraries.
					</li>
					<li>UX improvements in settings UI</li>

					<li>
						<strong>Bugfix</strong> - Trigger preview refresh anytime with
						Ctrl/⌘ + Shift + 5. Even with auto-preview on.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.8.1</span>
				<ul>
					<li>
						Vue.js & UIKit version updated to latest version in 'Add Library'
						list.
					</li>
					<li>
						UTF-8 charset added to preview HTML to support universal characters.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.8.0</span>
				<ul>
					<li>
						<a
							href="https://medium.com/web-maker/release-v2-8-is-out-f44e6ea5d9c4"
							target="_blank"
							rel="noopener noreferrer"
						>
							Read blog post about this release.
						</a>
					</li>
					<li>
						<strong>Auto Save</strong> - Your creations now auto-save after your
						first manual save. This is configurable from settings.
					</li>
					<li>
						<strong>Base2Tone-Meadow Editor Theme</strong> - First user
						contributed theme. Thanks to Diomed.
					</li>
					<li>
						<strong>Use System Fonts</strong> - You can now use any of your
						existing system fonts in the editor!
					</li>
					<li>
						<strong>Matching Tag Highlight</strong> - Cursor over any HTML tag
						would highlight the matching pair tag.
					</li>
					<li>
						Auto-completion suggestion can now be switched off from settings.
					</li>
					<li>
						<strong>Improvement</strong> - Stop white flicker in editor when the
						app opens.
					</li>
					<li>
						<strong>Bugfix</strong> - Add Babel Polyfill to enable use of
						next-gen built-ins like Promise or WeakMap.
					</li>
					<li>Vue.js version updated to 2.4.0 in popular library list.</li>
					<li>
						Downloads permission is optional. Asked only when you take
						screenshot.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.7.2</span>
				<ul>
					<li>
						<strong>External Libraries</strong> - Add Foundation.js and update
						UIKit 3 to latest beta.
					</li>
					<li>
						<strong>rawgit.com</strong> &<strong>wzrd.in</strong> domains are
						now allowed for loading external libraries from.
					</li>
					<li>Minor booting speed improvements</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.7.1</span>
				<ul>
					<li>
						<strong>Framer.js support</strong> - You can now load the latest
						framer.js library from
						<a
							href="https://builds.framerjs.com/"
							target="_blank"
							rel="noopener noreferrer"
						>
							framer builds page
						</a>{' '}
						and start coding framer prototypes.
					</li>
					<li>
						<strong>Bugfix</strong>: Edit on CodePen is back in action.
					</li>
					<li>
						<strong>Bugfix</strong>: Autocompletion menu doesn't show on cut and
						paste now.
					</li>
					<li>
						<strong>Bugfix</strong>: Updated & fixed urls of some common
						external libraries to latest versions. UIKit3 & Bootstrap 4α are now
						in the list.
					</li>
					<li>Preprocessor selector are now more accessible.</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.7.0</span>
				<ul>
					<li>
						<strong>Fork any creation!</strong>: Now you can fork any existing
						creation of yours to start a new work based on it. One big use case
						of this feature is "Templates"!
						<a
							target="_blank"
							rel="noopener noreferrer"
							href="https://kushagragour.in/blog/2017/05/web-maker-fork-templates/?utm_source=webmakerapp&utm_medium=referral"
						>
							Read more about it
						</a>
						.
					</li>
					<li>
						<strong>Fonts 😍 </strong>: Super-awesome 4 fonts (mostly with
						ligature support) now available to choose from. Fira Code is the
						default font now.
					</li>
					<li>Updated most used external libraries to latest versions.</li>
					<li>
						<strong>Bugfix</strong>: Add missing Bootstrap JS file to most used
						external libraries list.
					</li>
					<li>
						Several other minor bugfixes and improvements to make Web Maker
						awesome!
					</li>

					<li>
						Great news to share with you - Web Maker has been featured on the
						Chrome Webstore homepage! Thanks for all the love :)
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.6.1</span>
				<ul>
					<li>
						<strong>Bugfix</strong>: Emojis vanishing while exporting to Codepen
						has been fixed.
					</li>
					<li>
						<strong>Bugfix</strong>:<code>console.clear()</code> now doesn't
						error and clears the inbuilt console.
					</li>
					<li>
						<strong>Bugfix</strong>: External libraries added to the creation
						are exported as well to Codepen.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.6.0</span>
				<ul>
					<li>
						<strong>The "Console"</strong>: The most awaited feature is here!
						There is now an inbuilt console to see your logs, errors and for
						quickly evaluating JavaScript code inside your preview. Enjoy! I
						also a
						<a
							href="https://kushagragour.in/blog/2017/05/web-maker-console-is-here/?utm_source=webmakerapp&utm_medium=referral"
							target="_blank"
							rel="noopener noreferrer"
						>
							blog post about it
						</a>
						.
					</li>
					<li>
						Number slider which popped on clicking any number in the code has
						been removed due to poor user experience.
					</li>
					<li>Minor usability improvements.</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.5.0</span>
				<ul>
					<li>
						<strong>Atomic CSS</strong>: Use can now use Atomic CSS(ACSS) in
						your work!
						<a
							href="https://acss.io/"
							target="_blank"
							rel="noopener noreferrer"
						>
							Read more about it here
						</a>
						.
					</li>
					<li>
						<strong>Search your saved creations</strong>: Easily search through
						all your saved creations by title.
					</li>
					<li>
						<strong>Configurable Auto-preview</strong> - You can turn off the
						auto preview in settings if you don't want the preview to update as
						you type.
					</li>
					<li>
						<strong>Configurable refresh on resize</strong> - You can configure
						whether you want the preview to refresh when you resize the preview
						panel.
					</li>
					<li>
						<strong>Bugfix</strong> - Fix indentation
						<a
							href="https://github.com/chinchang/web-maker/issues/104"
							target="_blank"
							rel="noopener noreferrer"
						>
							issue
						</a>{' '}
						with custom indentation size.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.4.2</span>
				<ul>
					<li>
						<strong>Improved infinite loop protection</strong>: Infinite loop
						protection is now faster and more reliable. And works without the
						need of Escodegen. Thanks to Ariya Hidayat!
					</li>
					<li>
						<strong>Bugfix</strong> - Default parameters not working in
						JavaScript is fixed.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.4.0</span>
				<ul>
					<li>
						<strong>Import/Export</strong>: Your creations are most important.
						Now export all your creations into a single file as a backup that
						can be imported anytime & anywhere.
					</li>
					<li>
						<strong>Editor themes</strong>: You have been heard. Now you can
						choose from a huge list of wonderful editor themes!
					</li>
					<li>
						<strong>Identation settings</strong>: Not a spaces fan? Switch to
						tabs and set your indentation size.
					</li>
					<li>
						<strong>Vim key bindings</strong>: Rejoice Vim lovers!
					</li>
					<li>
						<strong>Code blast</strong>: Why don't you try coding with this
						switched on from the settings? Go on...
					</li>
					<li>
						<strong>Important</strong>: Due to security policy changes from
						Chrome 57 onwards, Web Maker now allows loading external JavaScript
						libraries only from certain whitelisted domains (localhost,
						https://ajax.googleapis.com, https://code.jquery.com,
						https://cdnjs.cloudflare.com, https://unpkg.com, https://maxcdn.com,
						https://cdn77.com, https://maxcdn.bootstrapcdn.com,
						https://cdn.jsdelivr.net/)
					</li>
					<li>Save button now highlights when you have unsaved changes.</li>
					<li>Jade is now called Pug. Just a name change.</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.3.2</span>
				<ul>
					<li>Update Babel to support latest and coolest ES6 features.</li>
					<li>Improve onboarding experience at first install.</li>
				</ul>
			</div>
			<div class="notification">
				<span class="notification__version">2.3.1</span>
				<ul>
					<li>
						<strong>Bugfix</strong> - Splitting of code and preview panes is
						remembered by the editor.
					</li>
					<li>
						Title of the creation is used for the file name when saving as HTML.
					</li>
				</ul>
			</div>
			<div class="notification">
				<span class="notification__version">2.3.0</span>
				<ul>
					<li>
						<strong>Add Library Autocompletion</strong> - Just start typing the
						name of library and you'll be shown matching libraries from cdnjs.
					</li>
					<li>
						<strong>Preview Screenshot Capture</strong> - Want to grab a nice
						screenshot of your creation. You have it! Click and capture.
					</li>
					<li>
						<strong>Auto Indent Code</strong> - Select your code and hit
						Shift-Tab to auto-indent it!
					</li>
					<li>
						<strong>Keyboard Navigation in Saved List</strong> - Now select your
						creation using arrow keys and hit ENTER to open it.
					</li>
					<li>Highlight active line in code panes.</li>
					<li>
						<strong>Bugfix</strong> - Fix in generated title of new creation.
					</li>
					<li>
						<strong>Bugfix</strong> - HTML autocompletion is manual triggered
						now with Ctrl+Space.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.2.0</span>
				<ul>
					<li>
						<strong>Code Autocompletion</strong> - See code suggestions while
						you type!
					</li>
					<li>
						<strong>Full Screen Preview</strong> - Checkout your creation in a
						full-screen layout.
					</li>
					<li>
						<strong>SASS</strong> - SASS support added for CSS.
					</li>
					<li>
						<strong>Faster CSS update</strong> - Preview updates instantly
						without refresh when just CSS is changed.
					</li>
					<li>
						<strong>Bugfix</strong> - Indentation fixed while going on new line.
					</li>
					<li>
						<strong>Bugfix</strong> - Works even in Chrome Canary now. Though
						libraries can be added only through CDNs.
					</li>
				</ul>
			</div>

			<div class="notification">
				<span class="notification__version">2.1.0</span>
				<ul>
					<li>
						<strong>TypeScript</strong> - Now you can code in TypeScript too!
					</li>
					<li>
						<strong>Stylus Preprocessor</strong> - Stylus supported adding for
						CSS.
					</li>
					<li>
						<strong>Code Folding</strong> - Collapse large code blocks for easy
						editing.
					</li>
					<li>
						<strong>Bugfix</strong> - Support JSX in JavaScript.
					</li>
					<li>Better onboarding for first time users.</li>
				</ul>
			</div>
			<div class="notification">
				<span class="notification__version">2.0.0</span>
				<ul>
					<li>
						<strong>Save and Load</strong> - Long pending and super-useful, now
						you can save your creations and resume them anytime later.
					</li>
					<li>
						<strong>Insert JS & CSS</strong> - Load popular JavaScript & CSS
						libraries in your work without writing any code.
					</li>
					<li>
						<strong>Collapsed Panes</strong> - Collapse/uncollapse code panes
						with a single click. Your pane configuration is even saved with
						every creation!
					</li>
					<li>
						<strong>Quick color & number change</strong> - Click on any color or
						number and experiment with quick values using a slider.
					</li>
					<li>
						<strong>Linting</strong> - See your code errors right where you are
						coding.
					</li>
					<li>No more browser hang due to infinite loops!</li>
				</ul>
			</div>
			<div class="notification">
				<span class="notification__version">1.7.0</span>
				<ul>
					<li>
						<strong>Preprocessors!</strong> - Enjoy a whole list of
						preprocessors for HTML(Jade & markdown), CSS(SCSS & LESS) and
						JavaScript(CoffeeScript & Babel).
					</li>
					<li>More awesome font for code.</li>
				</ul>
			</div>
			<div class="notification">
				<span class="notification__version">1.6.0</span>
				<ul>
					<li>
						You can now configure Web-Maker to not replace new tab page from the
						settings. It is always accessible from the icon in the top-right.
					</li>
					<li>
						Download current code as HTML file with Ctrl/⌘ + S keyboard
						shortcut.
					</li>
					<li>
						New notifications panel added so you are always aware of the new
						changes in Web-Maker.
					</li>
				</ul>
			</div>
		</div>
	);
}
