2
0
mirror of https://github.com/iconify/iconify.git synced 2024-10-24 01:22:04 +00:00
Commit Graph

65 Commits

Author SHA1 Message Date
Joaquín Sánchez Jiménez
20596bef1d chore: remove Object.create + fix vitest cjs tests 2022-03-17 10:26:11 +01:00
Vjacheslav Trushkin
1736308a64 Move browser storage mock to source in core 2022-03-16 23:50:53 +02:00
Vjacheslav Trushkin
32819127dd Do not reuse Promise instance in loadIcon in core 2022-03-16 19:32:27 +02:00
Vjacheslav Trushkin
5feccddcb3 WIP: moving core to unbuild and vitest 2022-03-16 12:12:25 +02:00
Vjacheslav Trushkin
a6d90fd7a9 Make second parameter for buildIcon optional 2022-02-21 18:05:24 +02:00
Vjacheslav Trushkin
1ee0caf216 Do not attempt to load cross-fetch if Fetch API is not available, deprecate JSONP loader 2022-02-21 17:13:27 +02:00
Vjacheslav Trushkin
a76aafa447 Do not store empty icon sets in browser storage, remove not_found property 2022-02-02 09:56:56 +02:00
Vjacheslav Trushkin
2e838b5ff4 Update core package for new redundancy structure 2022-01-25 22:18:52 +02:00
Vjacheslav Trushkin
bf8d17f97a Add loadIcon function 2022-01-13 22:19:49 +02:00
Joaquín Sánchez Jiménez
56894251c6 feat: refactor modern loader 2022-01-10 17:59:56 +02:00
Joaquín Sánchez Jiménez
6af802b9f7 chore: refactor searchForIcon customize callback 2022-01-10 17:59:56 +02:00
Joaquín Sánchez Jiménez
5cab683047 chore: add customize callback on searchForIcon 2022-01-10 17:59:56 +02:00
Joaquín Sánchez Jiménez
def0990a64 chore: build packages done 2022-01-10 17:59:56 +02:00
Joaquín Sánchez Jiménez
609537b7bf chore: add export to utils index 2022-01-10 17:59:56 +02:00
Joaquín Sánchez Jiménez
ffd23fb8ec feat: add external svg loader 2022-01-10 17:59:56 +02:00
Vjacheslav Trushkin
4be4ab87bc Add function to share storage between different instances of components and various components 2022-01-09 10:21:53 +02:00
Vjacheslav Trushkin
c1b22647eb Few more changes to parseIconSet function to make it cleaner 2021-10-12 18:19:46 +03:00
Vjacheslav Trushkin
0691bb6836 Redo function for parsing icon sets, fix bug in parsing icon sets 2021-10-12 17:17:51 +03:00
Vjacheslav Trushkin
c28ad01412 Remove combined exports from core, they make it more difficult to use ES named exports 2021-09-24 18:38:52 +03:00
Vjacheslav Trushkin
e6951fef7c Support ES modules in core package, switch tests to Jest and Jasmine 2021-09-24 00:27:16 +03:00
Vjacheslav Trushkin
e6f69c6901 Merge branch 'dev/reusable-api' into dev/next 2021-09-20 16:33:57 +03:00
Vjacheslav Trushkin
d1b7d76d97 Require resources property in API config 2021-09-20 13:25:36 +03:00
Vjacheslav Trushkin
027a317e4e Create script for building ES and CommonJS libraries, move Utils and Core to new build process, move Redundancy package to monorepo and refactor it 2021-09-20 12:59:16 +03:00
Vjacheslav Trushkin
7143e4abbd Support hosts in mock API module, allow host specific API modules 2021-09-12 21:01:33 +03:00
Vjacheslav Trushkin
6c2eb2392c Add function to list all API providers 2021-09-12 19:35:26 +03:00
Vjacheslav Trushkin
96ced6e5de Rewite API handling and export reusable _api.sendQuery function that can be used without adding API provider first 2021-09-05 19:09:25 +03:00
Vjacheslav Trushkin
a5f8282df2 Redo internal API exports to make API functions reusable 2021-09-01 11:34:58 +03:00
Vjacheslav Trushkin
fbb836d3c0 Split API queries into icons and custom queries 2021-08-30 10:22:53 +03:00
Vjacheslav Trushkin
eebac83a65 Automatically require cross-fetch when running in Node 2021-08-29 21:51:54 +03:00
Vjacheslav Trushkin
dee8562c7f Move few more functions from Core to Utils, update packages 2021-05-26 10:01:23 +03:00
Vjacheslav Trushkin
85a3717618 Move few more functions from Core to Utils 2021-05-24 17:02:00 +03:00
Vjacheslav Trushkin
ebeb8de02c Split common functions from Core to Utils package, remove buble from build process and use spread operator 2021-05-24 13:25:02 +03:00
Vjacheslav Trushkin
46ae993b95 Fix incorrect transformations for negative rotation, for merging icon and customisation rotations, better code for merging customisations 2021-05-11 21:03:10 +03:00
Vjacheslav Trushkin
8da393c816 Ignore undefined when merging objects 2021-05-10 23:34:25 +03:00
Vjacheslav Trushkin
05a6e3d765 Add onLoad callback and export buildIcon in Svelte component 2021-05-10 18:29:30 +03:00
Vjacheslav Trushkin
2282a05bea Move setFetch to API internals in core, publish core and SVG framework as stable versions 2021-05-07 21:01:14 +03:00
Vjacheslav Trushkin
31ceb48b6e Create mock API module in core to allow testing API in components 2021-04-25 11:21:59 +03:00
Vjacheslav Trushkin
44692efcb5 Handle 404 errors in API in core by marking icons as missing 2021-04-24 22:41:54 +03:00
Vjacheslav Trushkin
d1baf4c4c8 Do not use variable 'global' in JSONP module 2021-04-24 16:00:45 +03:00
Vjacheslav Trushkin
ac37225e5e Do not throw error if fetch API is not available, until actual request is sent 2021-04-24 14:21:17 +03:00
Vjacheslav Trushkin
a846dbcc8c Support storage for simple names without provider and prefix 2021-04-23 23:31:36 +03:00
Vjacheslav Trushkin
6b49e93823 Do not attempt to require cross-fetch in core module 2021-04-23 15:59:26 +03:00
Vjacheslav Trushkin
a2a597b6d2 Make SVG framework function (except for functions that require DOM) in Node.js instead of throwing errors 2021-01-12 14:04:19 +02:00
Vjacheslav Trushkin
8903221391 Split type and value imports in core 2020-12-25 21:03:15 +02:00
Vjacheslav Trushkin
d9303423d1 Organize exported functions in reusable modules to make it easier to manage multiple implementations 2020-12-22 14:49:02 +02:00
Vjacheslav Trushkin
1e3ffd7984 Remove getIconName function, add optional validation to stringToIcon 2020-12-21 19:33:08 +02:00
Vjacheslav Trushkin
5f285fcf14 Split common storage functions into separate file with reusable interface 2020-12-21 17:15:45 +02:00
Vjacheslav Trushkin
d2dadd3b2e Update API redundancy, update some dependencies that were bugged with npm 7 2020-12-15 14:23:15 +02:00
Vjacheslav Trushkin
1bcaaf2ce6 Update dependencies for all packages, use npm 7, archive axios module 2020-11-21 13:55:36 +02:00
Vjacheslav Trushkin
cb4ae877e5 Update core dependencies, reverse temporary change in FullIconifyIcon type 2020-11-05 11:38:07 +02:00