@contentstack/delivery-sdk 4.11.2 → 5.0.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/README.md +31 -2
- package/dist/{modern/lib → legacy/assets}/asset.cjs +15 -34
- package/dist/legacy/assets/asset.cjs.map +1 -0
- package/dist/legacy/{lib/asset.cjs → assets/asset.js} +13 -34
- package/dist/legacy/assets/asset.js.map +1 -0
- package/dist/{modern/lib/cache.cjs → legacy/cache/index.cjs} +14 -35
- package/dist/legacy/cache/index.cjs.map +1 -0
- package/dist/legacy/{lib/cache.js → cache/index.js} +10 -8
- package/dist/legacy/cache/index.js.map +1 -0
- package/dist/legacy/{lib → common}/error-messages.cjs +8 -34
- package/dist/legacy/common/error-messages.cjs.map +1 -0
- package/dist/legacy/{lib → common}/error-messages.js +6 -9
- package/dist/legacy/common/error-messages.js.map +1 -0
- package/dist/{modern/lib → legacy/common}/pagination.cjs +10 -32
- package/dist/legacy/common/pagination.cjs.map +1 -0
- package/dist/legacy/{lib/pagination.cjs → common/pagination.js} +10 -34
- package/dist/legacy/common/pagination.js.map +1 -0
- package/dist/legacy/common/string-extensions.cjs +11 -0
- package/dist/legacy/common/string-extensions.cjs.map +1 -0
- package/dist/legacy/{lib → common}/string-extensions.js +1 -2
- package/dist/legacy/common/string-extensions.js.map +1 -0
- package/dist/legacy/{lib → common}/types.cjs +17 -55
- package/dist/legacy/common/types.cjs.map +1 -0
- package/dist/legacy/{lib → common}/types.js +3 -18
- package/dist/legacy/common/types.js.map +1 -0
- package/dist/legacy/common/utils.cjs +29 -0
- package/dist/legacy/common/utils.cjs.map +1 -0
- package/dist/legacy/{lib → common}/utils.js +7 -10
- package/dist/legacy/common/utils.js.map +1 -0
- package/dist/legacy/content-type/index.cjs +43 -0
- package/dist/legacy/content-type/index.cjs.map +1 -0
- package/dist/legacy/content-type/index.js +41 -0
- package/dist/legacy/content-type/index.js.map +1 -0
- package/dist/legacy/{lib → entries}/entries.cjs +21 -41
- package/dist/legacy/entries/entries.cjs.map +1 -0
- package/dist/{modern/lib → legacy/entries}/entries.js +15 -12
- package/dist/legacy/entries/entries.js.map +1 -0
- package/dist/{modern/lib → legacy/entries}/entry.cjs +20 -36
- package/dist/legacy/entries/entry.cjs.map +1 -0
- package/dist/legacy/{lib/entry.cjs → entries/entry.js} +18 -36
- package/dist/legacy/entries/entry.js.map +1 -0
- package/dist/{modern/lib/global-field.cjs → legacy/global-field/index.cjs} +15 -34
- package/dist/legacy/global-field/index.cjs.map +1 -0
- package/dist/legacy/{lib/global-field.cjs → global-field/index.js} +13 -34
- package/dist/legacy/global-field/index.js.map +1 -0
- package/dist/legacy/index.cjs +28 -48
- package/dist/legacy/index.cjs.map +1 -1
- package/dist/legacy/index.js +9 -11
- package/dist/legacy/index.js.map +1 -1
- package/dist/legacy/{lib → query}/asset-query.cjs +10 -34
- package/dist/legacy/query/asset-query.cjs.map +1 -0
- package/dist/{modern/lib → legacy/query}/asset-query.js +8 -9
- package/dist/legacy/query/asset-query.js.map +1 -0
- package/dist/{modern/lib → legacy/query}/base-query.cjs +20 -37
- package/dist/legacy/query/base-query.cjs.map +1 -0
- package/dist/legacy/{lib/base-query.cjs → query/base-query.js} +18 -37
- package/dist/legacy/query/base-query.js.map +1 -0
- package/dist/legacy/query/contenttype-query.cjs +51 -0
- package/dist/legacy/query/contenttype-query.cjs.map +1 -0
- package/dist/legacy/query/contenttype-query.js +49 -0
- package/dist/legacy/query/contenttype-query.js.map +1 -0
- package/dist/legacy/query/global-field-query.cjs +30 -0
- package/dist/legacy/query/global-field-query.cjs.map +1 -0
- package/dist/{modern/lib → legacy/query}/global-field-query.js +7 -8
- package/dist/legacy/query/global-field-query.js.map +1 -0
- package/dist/legacy/{lib → query}/query.cjs +46 -66
- package/dist/legacy/query/query.cjs.map +1 -0
- package/dist/{modern/lib → legacy/query}/query.js +15 -12
- package/dist/legacy/query/query.js.map +1 -0
- package/dist/legacy/query/taxonomy-query.cjs +14 -0
- package/dist/legacy/query/taxonomy-query.cjs.map +1 -0
- package/dist/legacy/query/taxonomy-query.js +12 -0
- package/dist/legacy/query/taxonomy-query.js.map +1 -0
- package/dist/{modern/lib → legacy/stack}/contentstack.cjs +44 -56
- package/dist/legacy/stack/contentstack.cjs.map +1 -0
- package/dist/{modern/lib → legacy/stack}/contentstack.js +19 -16
- package/dist/legacy/stack/contentstack.js.map +1 -0
- package/dist/legacy/stack/index.cjs +11 -0
- package/dist/legacy/stack/index.cjs.map +1 -0
- package/dist/legacy/stack/index.js +7 -0
- package/dist/legacy/stack/index.js.map +1 -0
- package/dist/{modern/lib → legacy/stack}/stack.cjs +30 -49
- package/dist/legacy/stack/stack.cjs.map +1 -0
- package/dist/legacy/{lib → stack}/stack.js +20 -16
- package/dist/legacy/stack/stack.js.map +1 -0
- package/dist/legacy/sync/synchronization.cjs +30 -0
- package/dist/legacy/sync/synchronization.cjs.map +1 -0
- package/dist/{modern/lib → legacy/sync}/synchronization.js +11 -13
- package/dist/legacy/sync/synchronization.js.map +1 -0
- package/dist/modern/{lib/asset.js → assets/asset.cjs} +13 -10
- package/dist/modern/assets/asset.cjs.map +1 -0
- package/dist/modern/{lib → assets}/asset.d.ts +2 -4
- package/dist/modern/assets/asset.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/assets}/asset.js +10 -9
- package/dist/modern/assets/asset.js.map +1 -0
- package/dist/modern/{lib/string-extensions.d.ts → assets/image-transform.d.ts} +3 -16
- package/dist/modern/assets/image-transform.d.ts.map +1 -0
- package/dist/modern/assets/index.d.ts +3 -0
- package/dist/modern/assets/index.d.ts.map +1 -0
- package/dist/{legacy/lib/cache.cjs → modern/cache/index.cjs} +14 -35
- package/dist/modern/cache/index.cjs.map +1 -0
- package/dist/{legacy/lib/cache.d.ts → modern/cache/index.d.ts} +3 -10
- package/dist/modern/cache/index.d.ts.map +1 -0
- package/dist/modern/{lib/cache.js → cache/index.js} +10 -8
- package/dist/modern/cache/index.js.map +1 -0
- package/dist/modern/{lib → common}/error-messages.cjs +8 -34
- package/dist/modern/common/error-messages.cjs.map +1 -0
- package/dist/{legacy/lib → modern/common}/error-messages.d.ts +4 -5
- package/dist/modern/common/error-messages.d.ts.map +1 -0
- package/dist/modern/{lib → common}/error-messages.js +6 -9
- package/dist/modern/common/error-messages.js.map +1 -0
- package/dist/{legacy/lib/pagination.js → modern/common/pagination.cjs} +10 -12
- package/dist/modern/common/pagination.cjs.map +1 -0
- package/dist/{legacy/lib → modern/common}/pagination.d.ts +3 -10
- package/dist/modern/common/pagination.d.ts.map +1 -0
- package/dist/modern/{lib → common}/pagination.js +6 -10
- package/dist/modern/common/pagination.js.map +1 -0
- package/dist/modern/common/string-extensions.cjs +11 -0
- package/dist/modern/common/string-extensions.cjs.map +1 -0
- package/dist/modern/common/string-extensions.d.ts +8 -0
- package/dist/modern/common/string-extensions.d.ts.map +1 -0
- package/dist/modern/{lib → common}/string-extensions.js +1 -2
- package/dist/modern/common/string-extensions.js.map +1 -0
- package/dist/modern/{lib → common}/types.cjs +17 -55
- package/dist/modern/common/types.cjs.map +1 -0
- package/dist/{legacy/lib → modern/common}/types.d.ts +60 -41
- package/dist/modern/common/types.d.ts.map +1 -0
- package/dist/modern/{lib → common}/types.js +3 -18
- package/dist/modern/common/types.js.map +1 -0
- package/dist/modern/common/utils.cjs +29 -0
- package/dist/modern/common/utils.cjs.map +1 -0
- package/dist/modern/common/utils.d.ts +14 -0
- package/dist/modern/common/utils.d.ts.map +1 -0
- package/dist/modern/{lib → common}/utils.js +7 -10
- package/dist/modern/common/utils.js.map +1 -0
- package/dist/{legacy/lib/content-type.js → modern/content-type/index.cjs} +18 -14
- package/dist/modern/content-type/index.cjs.map +1 -0
- package/dist/{legacy/lib/content-type.d.ts → modern/content-type/index.d.ts} +4 -13
- package/dist/modern/content-type/index.d.ts.map +1 -0
- package/dist/modern/{lib/content-type.js → content-type/index.js} +13 -11
- package/dist/modern/content-type/index.js.map +1 -0
- package/dist/modern/{lib → entries}/entries.cjs +18 -41
- package/dist/modern/entries/entries.cjs.map +1 -0
- package/dist/modern/{lib → entries}/entries.d.ts +5 -11
- package/dist/modern/entries/entries.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/entries}/entries.js +12 -12
- package/dist/modern/entries/entries.js.map +1 -0
- package/dist/modern/{lib/entry.js → entries/entry.cjs} +18 -12
- package/dist/modern/entries/entry.cjs.map +1 -0
- package/dist/modern/{lib → entries}/entry.d.ts +2 -4
- package/dist/modern/entries/entry.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/entries}/entry.js +14 -10
- package/dist/modern/entries/entry.js.map +1 -0
- package/dist/modern/entries/index.d.ts +3 -0
- package/dist/modern/entries/index.d.ts.map +1 -0
- package/dist/modern/{lib/global-field.js → global-field/index.cjs} +13 -10
- package/dist/modern/global-field/index.cjs.map +1 -0
- package/dist/{legacy/lib/global-field.d.cts → modern/global-field/index.d.ts} +2 -4
- package/dist/modern/global-field/index.d.ts.map +1 -0
- package/dist/{legacy/lib/global-field.js → modern/global-field/index.js} +10 -9
- package/dist/modern/global-field/index.js.map +1 -0
- package/dist/modern/index.cjs +28 -48
- package/dist/modern/index.cjs.map +1 -1
- package/dist/modern/index.d.ts +17 -26
- package/dist/modern/index.d.ts.map +1 -0
- package/dist/modern/index.js +9 -11
- package/dist/modern/index.js.map +1 -1
- package/dist/modern/{lib → query}/asset-query.cjs +10 -34
- package/dist/modern/query/asset-query.cjs.map +1 -0
- package/dist/{legacy/lib → modern/query}/asset-query.d.ts +4 -11
- package/dist/modern/query/asset-query.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/query}/asset-query.js +8 -9
- package/dist/modern/query/asset-query.js.map +1 -0
- package/dist/{legacy/lib/base-query.js → modern/query/base-query.cjs} +18 -16
- package/dist/modern/query/base-query.cjs.map +1 -0
- package/dist/modern/query/base-query.d.ts +174 -0
- package/dist/modern/query/base-query.d.ts.map +1 -0
- package/dist/modern/{lib → query}/base-query.js +14 -14
- package/dist/modern/query/base-query.js.map +1 -0
- package/dist/{legacy/lib/contenttype-query.js → modern/query/contenttype-query.cjs} +13 -10
- package/dist/modern/query/contenttype-query.cjs.map +1 -0
- package/dist/modern/{lib → query}/contenttype-query.d.ts +3 -9
- package/dist/modern/query/contenttype-query.d.ts.map +1 -0
- package/dist/modern/{lib → query}/contenttype-query.js +10 -9
- package/dist/modern/query/contenttype-query.js.map +1 -0
- package/dist/modern/query/entry-queryable.d.ts +4 -0
- package/dist/modern/query/entry-queryable.d.ts.map +1 -0
- package/dist/modern/query/global-field-query.cjs +30 -0
- package/dist/modern/query/global-field-query.cjs.map +1 -0
- package/dist/modern/{lib → query}/global-field-query.d.ts +3 -11
- package/dist/modern/query/global-field-query.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/query}/global-field-query.js +7 -8
- package/dist/modern/query/global-field-query.js.map +1 -0
- package/dist/modern/query/index.d.ts +8 -0
- package/dist/modern/query/index.d.ts.map +1 -0
- package/dist/modern/{lib → query}/query.cjs +43 -66
- package/dist/modern/query/query.cjs.map +1 -0
- package/dist/{legacy/base-query-B4_k3n_p.d.ts → modern/query/query.d.ts} +4 -176
- package/dist/modern/query/query.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/query}/query.js +12 -12
- package/dist/modern/query/query.js.map +1 -0
- package/dist/modern/query/taxonomy-query.cjs +14 -0
- package/dist/modern/query/taxonomy-query.cjs.map +1 -0
- package/dist/modern/query/taxonomy-query.d.ts +6 -0
- package/dist/modern/query/taxonomy-query.d.ts.map +1 -0
- package/dist/modern/query/taxonomy-query.js +12 -0
- package/dist/modern/query/taxonomy-query.js.map +1 -0
- package/dist/{legacy/lib → modern/stack}/contentstack.cjs +51 -66
- package/dist/modern/stack/contentstack.cjs.map +1 -0
- package/dist/modern/{contentstack-BmTB3Y49.d.cts → stack/contentstack.d.ts} +8 -13
- package/dist/modern/stack/contentstack.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/stack}/contentstack.js +26 -26
- package/dist/modern/stack/contentstack.js.map +1 -0
- package/dist/modern/stack/index.cjs +11 -0
- package/dist/modern/stack/index.cjs.map +1 -0
- package/dist/modern/stack/index.d.ts +6 -0
- package/dist/modern/stack/index.d.ts.map +1 -0
- package/dist/modern/stack/index.js +7 -0
- package/dist/modern/stack/index.js.map +1 -0
- package/dist/{legacy/lib → modern/stack}/stack.cjs +27 -49
- package/dist/modern/stack/stack.cjs.map +1 -0
- package/dist/{legacy/lib → modern/stack}/stack.d.ts +11 -21
- package/dist/modern/stack/stack.d.ts.map +1 -0
- package/dist/modern/{lib → stack}/stack.js +17 -16
- package/dist/modern/stack/stack.js.map +1 -0
- package/dist/modern/sync/index.d.ts +3 -0
- package/dist/modern/sync/index.d.ts.map +1 -0
- package/dist/modern/sync/synchronization.cjs +30 -0
- package/dist/modern/sync/synchronization.cjs.map +1 -0
- package/dist/modern/sync/synchronization.d.ts +4 -0
- package/dist/modern/sync/synchronization.d.ts.map +1 -0
- package/dist/{legacy/lib → modern/sync}/synchronization.js +11 -13
- package/dist/modern/sync/synchronization.js.map +1 -0
- package/package.json +19 -21
- package/dist/legacy/base-query-DrXtYoPl.d.cts +0 -548
- package/dist/legacy/contentstack-BmTB3Y49.d.cts +0 -35
- package/dist/legacy/contentstack-DajCqJdu.d.ts +0 -35
- package/dist/legacy/index.d.cts +0 -26
- package/dist/legacy/index.d.ts +0 -26
- package/dist/legacy/lib/asset-query.cjs.map +0 -1
- package/dist/legacy/lib/asset-query.d.cts +0 -110
- package/dist/legacy/lib/asset-query.js.map +0 -1
- package/dist/legacy/lib/asset.cjs.map +0 -1
- package/dist/legacy/lib/asset.d.cts +0 -108
- package/dist/legacy/lib/asset.d.ts +0 -108
- package/dist/legacy/lib/asset.js.map +0 -1
- package/dist/legacy/lib/base-query.cjs.map +0 -1
- package/dist/legacy/lib/base-query.d.cts +0 -8
- package/dist/legacy/lib/base-query.d.ts +0 -8
- package/dist/legacy/lib/base-query.js.map +0 -1
- package/dist/legacy/lib/cache.cjs.map +0 -1
- package/dist/legacy/lib/cache.d.cts +0 -20
- package/dist/legacy/lib/cache.js.map +0 -1
- package/dist/legacy/lib/content-type.cjs +0 -61
- package/dist/legacy/lib/content-type.cjs.map +0 -1
- package/dist/legacy/lib/content-type.d.cts +0 -50
- package/dist/legacy/lib/content-type.js.map +0 -1
- package/dist/legacy/lib/contentstack.cjs.map +0 -1
- package/dist/legacy/lib/contentstack.d.cts +0 -21
- package/dist/legacy/lib/contentstack.d.ts +0 -21
- package/dist/legacy/lib/contentstack.js.map +0 -1
- package/dist/legacy/lib/contenttype-query.cjs +0 -70
- package/dist/legacy/lib/contenttype-query.cjs.map +0 -1
- package/dist/legacy/lib/contenttype-query.d.cts +0 -43
- package/dist/legacy/lib/contenttype-query.d.ts +0 -43
- package/dist/legacy/lib/contenttype-query.js.map +0 -1
- package/dist/legacy/lib/entries.cjs.map +0 -1
- package/dist/legacy/lib/entries.d.cts +0 -191
- package/dist/legacy/lib/entries.d.ts +0 -191
- package/dist/legacy/lib/entries.js.map +0 -1
- package/dist/legacy/lib/entry-queryable.cjs +0 -33
- package/dist/legacy/lib/entry-queryable.cjs.map +0 -1
- package/dist/legacy/lib/entry-queryable.d.cts +0 -13
- package/dist/legacy/lib/entry-queryable.d.ts +0 -13
- package/dist/legacy/lib/entry-queryable.js +0 -8
- package/dist/legacy/lib/entry-queryable.js.map +0 -1
- package/dist/legacy/lib/entry.cjs.map +0 -1
- package/dist/legacy/lib/entry.d.cts +0 -170
- package/dist/legacy/lib/entry.d.ts +0 -170
- package/dist/legacy/lib/entry.js.map +0 -1
- package/dist/legacy/lib/error-messages.cjs.map +0 -1
- package/dist/legacy/lib/error-messages.d.cts +0 -31
- package/dist/legacy/lib/error-messages.js.map +0 -1
- package/dist/legacy/lib/global-field-query.cjs +0 -54
- package/dist/legacy/lib/global-field-query.cjs.map +0 -1
- package/dist/legacy/lib/global-field-query.d.cts +0 -27
- package/dist/legacy/lib/global-field-query.d.ts +0 -27
- package/dist/legacy/lib/global-field-query.js.map +0 -1
- package/dist/legacy/lib/global-field.cjs.map +0 -1
- package/dist/legacy/lib/global-field.d.ts +0 -38
- package/dist/legacy/lib/global-field.js.map +0 -1
- package/dist/legacy/lib/image-transform.cjs +0 -528
- package/dist/legacy/lib/image-transform.cjs.map +0 -1
- package/dist/legacy/lib/image-transform.d.cts +0 -7
- package/dist/legacy/lib/image-transform.d.ts +0 -7
- package/dist/legacy/lib/image-transform.js +0 -506
- package/dist/legacy/lib/image-transform.js.map +0 -1
- package/dist/legacy/lib/pagination.cjs.map +0 -1
- package/dist/legacy/lib/pagination.d.cts +0 -99
- package/dist/legacy/lib/pagination.js.map +0 -1
- package/dist/legacy/lib/query.cjs.map +0 -1
- package/dist/legacy/lib/query.d.cts +0 -8
- package/dist/legacy/lib/query.d.ts +0 -8
- package/dist/legacy/lib/query.js.map +0 -1
- package/dist/legacy/lib/stack.cjs.map +0 -1
- package/dist/legacy/lib/stack.d.cts +0 -170
- package/dist/legacy/lib/stack.js.map +0 -1
- package/dist/legacy/lib/string-extensions.cjs +0 -27
- package/dist/legacy/lib/string-extensions.cjs.map +0 -1
- package/dist/legacy/lib/string-extensions.d.cts +0 -404
- package/dist/legacy/lib/string-extensions.d.ts +0 -404
- package/dist/legacy/lib/string-extensions.js.map +0 -1
- package/dist/legacy/lib/synchronization.cjs +0 -65
- package/dist/legacy/lib/synchronization.cjs.map +0 -1
- package/dist/legacy/lib/synchronization.d.cts +0 -10
- package/dist/legacy/lib/synchronization.d.ts +0 -10
- package/dist/legacy/lib/synchronization.js.map +0 -1
- package/dist/legacy/lib/taxonomy-query.cjs +0 -38
- package/dist/legacy/lib/taxonomy-query.cjs.map +0 -1
- package/dist/legacy/lib/taxonomy-query.d.cts +0 -14
- package/dist/legacy/lib/taxonomy-query.d.ts +0 -14
- package/dist/legacy/lib/taxonomy-query.js +0 -13
- package/dist/legacy/lib/taxonomy-query.js.map +0 -1
- package/dist/legacy/lib/types.cjs.map +0 -1
- package/dist/legacy/lib/types.d.cts +0 -318
- package/dist/legacy/lib/types.js.map +0 -1
- package/dist/legacy/lib/utils.cjs +0 -55
- package/dist/legacy/lib/utils.cjs.map +0 -1
- package/dist/legacy/lib/utils.d.cts +0 -21
- package/dist/legacy/lib/utils.d.ts +0 -21
- package/dist/legacy/lib/utils.js.map +0 -1
- package/dist/legacy/persistance/config/persistance-storage-config.cjs +0 -19
- package/dist/legacy/persistance/config/persistance-storage-config.cjs.map +0 -1
- package/dist/legacy/persistance/config/persistance-storage-config.d.cts +0 -33
- package/dist/legacy/persistance/config/persistance-storage-config.d.ts +0 -33
- package/dist/legacy/persistance/config/persistance-storage-config.js +0 -1
- package/dist/legacy/persistance/config/persistance-storage-config.js.map +0 -1
- package/dist/legacy/persistance/helper/utils.cjs +0 -31
- package/dist/legacy/persistance/helper/utils.cjs.map +0 -1
- package/dist/legacy/persistance/helper/utils.d.cts +0 -4
- package/dist/legacy/persistance/helper/utils.d.ts +0 -4
- package/dist/legacy/persistance/helper/utils.js +0 -6
- package/dist/legacy/persistance/helper/utils.js.map +0 -1
- package/dist/legacy/persistance/index.cjs +0 -31
- package/dist/legacy/persistance/index.cjs.map +0 -1
- package/dist/legacy/persistance/index.d.cts +0 -7
- package/dist/legacy/persistance/index.d.ts +0 -7
- package/dist/legacy/persistance/index.js +0 -6
- package/dist/legacy/persistance/index.js.map +0 -1
- package/dist/legacy/persistance/persistance-store.cjs +0 -162
- package/dist/legacy/persistance/persistance-store.cjs.map +0 -1
- package/dist/legacy/persistance/persistance-store.d.cts +0 -51
- package/dist/legacy/persistance/persistance-store.d.ts +0 -51
- package/dist/legacy/persistance/persistance-store.js +0 -137
- package/dist/legacy/persistance/persistance-store.js.map +0 -1
- package/dist/legacy/persistance/storages/index.cjs +0 -34
- package/dist/legacy/persistance/storages/index.cjs.map +0 -1
- package/dist/legacy/persistance/storages/index.d.cts +0 -4
- package/dist/legacy/persistance/storages/index.d.ts +0 -4
- package/dist/legacy/persistance/storages/index.js +0 -8
- package/dist/legacy/persistance/storages/index.js.map +0 -1
- package/dist/legacy/persistance/storages/local-storage.cjs +0 -66
- package/dist/legacy/persistance/storages/local-storage.cjs.map +0 -1
- package/dist/legacy/persistance/storages/local-storage.d.cts +0 -6
- package/dist/legacy/persistance/storages/local-storage.d.ts +0 -6
- package/dist/legacy/persistance/storages/local-storage.js +0 -41
- package/dist/legacy/persistance/storages/local-storage.js.map +0 -1
- package/dist/legacy/persistance/storages/memory-storage.cjs +0 -60
- package/dist/legacy/persistance/storages/memory-storage.cjs.map +0 -1
- package/dist/legacy/persistance/storages/memory-storage.d.cts +0 -6
- package/dist/legacy/persistance/storages/memory-storage.d.ts +0 -6
- package/dist/legacy/persistance/storages/memory-storage.js +0 -35
- package/dist/legacy/persistance/storages/memory-storage.js.map +0 -1
- package/dist/legacy/persistance/types/index.cjs +0 -19
- package/dist/legacy/persistance/types/index.cjs.map +0 -1
- package/dist/legacy/persistance/types/index.d.cts +0 -3
- package/dist/legacy/persistance/types/index.d.ts +0 -3
- package/dist/legacy/persistance/types/index.js +0 -1
- package/dist/legacy/persistance/types/index.js.map +0 -1
- package/dist/legacy/persistance/types/storage-type.cjs +0 -19
- package/dist/legacy/persistance/types/storage-type.cjs.map +0 -1
- package/dist/legacy/persistance/types/storage-type.d.cts +0 -3
- package/dist/legacy/persistance/types/storage-type.d.ts +0 -3
- package/dist/legacy/persistance/types/storage-type.js +0 -1
- package/dist/legacy/persistance/types/storage-type.js.map +0 -1
- package/dist/legacy/persistance/types/storage.cjs +0 -19
- package/dist/legacy/persistance/types/storage.cjs.map +0 -1
- package/dist/legacy/persistance/types/storage.d.cts +0 -12
- package/dist/legacy/persistance/types/storage.d.ts +0 -12
- package/dist/legacy/persistance/types/storage.js +0 -1
- package/dist/legacy/persistance/types/storage.js.map +0 -1
- package/dist/modern/base-query-B4_k3n_p.d.ts +0 -548
- package/dist/modern/base-query-DrXtYoPl.d.cts +0 -548
- package/dist/modern/contentstack-DajCqJdu.d.ts +0 -35
- package/dist/modern/index.d.cts +0 -26
- package/dist/modern/lib/asset-query.cjs.map +0 -1
- package/dist/modern/lib/asset-query.d.cts +0 -110
- package/dist/modern/lib/asset-query.d.ts +0 -110
- package/dist/modern/lib/asset-query.js.map +0 -1
- package/dist/modern/lib/asset.cjs.map +0 -1
- package/dist/modern/lib/asset.d.cts +0 -108
- package/dist/modern/lib/asset.js.map +0 -1
- package/dist/modern/lib/base-query.cjs.map +0 -1
- package/dist/modern/lib/base-query.d.cts +0 -8
- package/dist/modern/lib/base-query.d.ts +0 -8
- package/dist/modern/lib/base-query.js.map +0 -1
- package/dist/modern/lib/cache.cjs.map +0 -1
- package/dist/modern/lib/cache.d.cts +0 -20
- package/dist/modern/lib/cache.d.ts +0 -20
- package/dist/modern/lib/cache.js.map +0 -1
- package/dist/modern/lib/content-type.cjs +0 -61
- package/dist/modern/lib/content-type.cjs.map +0 -1
- package/dist/modern/lib/content-type.d.cts +0 -50
- package/dist/modern/lib/content-type.d.ts +0 -50
- package/dist/modern/lib/content-type.js.map +0 -1
- package/dist/modern/lib/contentstack.cjs.map +0 -1
- package/dist/modern/lib/contentstack.d.cts +0 -21
- package/dist/modern/lib/contentstack.d.ts +0 -21
- package/dist/modern/lib/contentstack.js.map +0 -1
- package/dist/modern/lib/contenttype-query.cjs +0 -70
- package/dist/modern/lib/contenttype-query.cjs.map +0 -1
- package/dist/modern/lib/contenttype-query.d.cts +0 -43
- package/dist/modern/lib/contenttype-query.js.map +0 -1
- package/dist/modern/lib/entries.cjs.map +0 -1
- package/dist/modern/lib/entries.d.cts +0 -191
- package/dist/modern/lib/entries.js.map +0 -1
- package/dist/modern/lib/entry-queryable.cjs +0 -33
- package/dist/modern/lib/entry-queryable.cjs.map +0 -1
- package/dist/modern/lib/entry-queryable.d.cts +0 -13
- package/dist/modern/lib/entry-queryable.d.ts +0 -13
- package/dist/modern/lib/entry-queryable.js +0 -8
- package/dist/modern/lib/entry-queryable.js.map +0 -1
- package/dist/modern/lib/entry.cjs.map +0 -1
- package/dist/modern/lib/entry.d.cts +0 -170
- package/dist/modern/lib/entry.js.map +0 -1
- package/dist/modern/lib/error-messages.cjs.map +0 -1
- package/dist/modern/lib/error-messages.d.cts +0 -31
- package/dist/modern/lib/error-messages.d.ts +0 -31
- package/dist/modern/lib/error-messages.js.map +0 -1
- package/dist/modern/lib/global-field-query.cjs +0 -54
- package/dist/modern/lib/global-field-query.cjs.map +0 -1
- package/dist/modern/lib/global-field-query.d.cts +0 -27
- package/dist/modern/lib/global-field-query.js.map +0 -1
- package/dist/modern/lib/global-field.cjs.map +0 -1
- package/dist/modern/lib/global-field.d.cts +0 -38
- package/dist/modern/lib/global-field.d.ts +0 -38
- package/dist/modern/lib/global-field.js.map +0 -1
- package/dist/modern/lib/image-transform.cjs +0 -528
- package/dist/modern/lib/image-transform.cjs.map +0 -1
- package/dist/modern/lib/image-transform.d.cts +0 -7
- package/dist/modern/lib/image-transform.d.ts +0 -7
- package/dist/modern/lib/image-transform.js +0 -506
- package/dist/modern/lib/image-transform.js.map +0 -1
- package/dist/modern/lib/pagination.cjs.map +0 -1
- package/dist/modern/lib/pagination.d.cts +0 -99
- package/dist/modern/lib/pagination.d.ts +0 -99
- package/dist/modern/lib/pagination.js.map +0 -1
- package/dist/modern/lib/query.cjs.map +0 -1
- package/dist/modern/lib/query.d.cts +0 -8
- package/dist/modern/lib/query.d.ts +0 -8
- package/dist/modern/lib/query.js.map +0 -1
- package/dist/modern/lib/stack.cjs.map +0 -1
- package/dist/modern/lib/stack.d.cts +0 -170
- package/dist/modern/lib/stack.d.ts +0 -170
- package/dist/modern/lib/stack.js.map +0 -1
- package/dist/modern/lib/string-extensions.cjs +0 -27
- package/dist/modern/lib/string-extensions.cjs.map +0 -1
- package/dist/modern/lib/string-extensions.d.cts +0 -404
- package/dist/modern/lib/string-extensions.js.map +0 -1
- package/dist/modern/lib/synchronization.cjs +0 -65
- package/dist/modern/lib/synchronization.cjs.map +0 -1
- package/dist/modern/lib/synchronization.d.cts +0 -10
- package/dist/modern/lib/synchronization.d.ts +0 -10
- package/dist/modern/lib/synchronization.js.map +0 -1
- package/dist/modern/lib/taxonomy-query.cjs +0 -38
- package/dist/modern/lib/taxonomy-query.cjs.map +0 -1
- package/dist/modern/lib/taxonomy-query.d.cts +0 -14
- package/dist/modern/lib/taxonomy-query.d.ts +0 -14
- package/dist/modern/lib/taxonomy-query.js +0 -13
- package/dist/modern/lib/taxonomy-query.js.map +0 -1
- package/dist/modern/lib/types.cjs.map +0 -1
- package/dist/modern/lib/types.d.cts +0 -318
- package/dist/modern/lib/types.d.ts +0 -318
- package/dist/modern/lib/types.js.map +0 -1
- package/dist/modern/lib/utils.cjs +0 -55
- package/dist/modern/lib/utils.cjs.map +0 -1
- package/dist/modern/lib/utils.d.cts +0 -21
- package/dist/modern/lib/utils.d.ts +0 -21
- package/dist/modern/lib/utils.js.map +0 -1
- package/dist/modern/persistance/config/persistance-storage-config.cjs +0 -19
- package/dist/modern/persistance/config/persistance-storage-config.cjs.map +0 -1
- package/dist/modern/persistance/config/persistance-storage-config.d.cts +0 -33
- package/dist/modern/persistance/config/persistance-storage-config.d.ts +0 -33
- package/dist/modern/persistance/config/persistance-storage-config.js +0 -1
- package/dist/modern/persistance/config/persistance-storage-config.js.map +0 -1
- package/dist/modern/persistance/helper/utils.cjs +0 -31
- package/dist/modern/persistance/helper/utils.cjs.map +0 -1
- package/dist/modern/persistance/helper/utils.d.cts +0 -4
- package/dist/modern/persistance/helper/utils.d.ts +0 -4
- package/dist/modern/persistance/helper/utils.js +0 -6
- package/dist/modern/persistance/helper/utils.js.map +0 -1
- package/dist/modern/persistance/index.cjs +0 -31
- package/dist/modern/persistance/index.cjs.map +0 -1
- package/dist/modern/persistance/index.d.cts +0 -7
- package/dist/modern/persistance/index.d.ts +0 -7
- package/dist/modern/persistance/index.js +0 -6
- package/dist/modern/persistance/index.js.map +0 -1
- package/dist/modern/persistance/persistance-store.cjs +0 -162
- package/dist/modern/persistance/persistance-store.cjs.map +0 -1
- package/dist/modern/persistance/persistance-store.d.cts +0 -51
- package/dist/modern/persistance/persistance-store.d.ts +0 -51
- package/dist/modern/persistance/persistance-store.js +0 -137
- package/dist/modern/persistance/persistance-store.js.map +0 -1
- package/dist/modern/persistance/storages/index.cjs +0 -34
- package/dist/modern/persistance/storages/index.cjs.map +0 -1
- package/dist/modern/persistance/storages/index.d.cts +0 -4
- package/dist/modern/persistance/storages/index.d.ts +0 -4
- package/dist/modern/persistance/storages/index.js +0 -8
- package/dist/modern/persistance/storages/index.js.map +0 -1
- package/dist/modern/persistance/storages/local-storage.cjs +0 -66
- package/dist/modern/persistance/storages/local-storage.cjs.map +0 -1
- package/dist/modern/persistance/storages/local-storage.d.cts +0 -6
- package/dist/modern/persistance/storages/local-storage.d.ts +0 -6
- package/dist/modern/persistance/storages/local-storage.js +0 -41
- package/dist/modern/persistance/storages/local-storage.js.map +0 -1
- package/dist/modern/persistance/storages/memory-storage.cjs +0 -60
- package/dist/modern/persistance/storages/memory-storage.cjs.map +0 -1
- package/dist/modern/persistance/storages/memory-storage.d.cts +0 -6
- package/dist/modern/persistance/storages/memory-storage.d.ts +0 -6
- package/dist/modern/persistance/storages/memory-storage.js +0 -35
- package/dist/modern/persistance/storages/memory-storage.js.map +0 -1
- package/dist/modern/persistance/types/index.cjs +0 -19
- package/dist/modern/persistance/types/index.cjs.map +0 -1
- package/dist/modern/persistance/types/index.d.cts +0 -3
- package/dist/modern/persistance/types/index.d.ts +0 -3
- package/dist/modern/persistance/types/index.js +0 -1
- package/dist/modern/persistance/types/index.js.map +0 -1
- package/dist/modern/persistance/types/storage-type.cjs +0 -19
- package/dist/modern/persistance/types/storage-type.cjs.map +0 -1
- package/dist/modern/persistance/types/storage-type.d.cts +0 -3
- package/dist/modern/persistance/types/storage-type.d.ts +0 -3
- package/dist/modern/persistance/types/storage-type.js +0 -1
- package/dist/modern/persistance/types/storage-type.js.map +0 -1
- package/dist/modern/persistance/types/storage.cjs +0 -19
- package/dist/modern/persistance/types/storage.cjs.map +0 -1
- package/dist/modern/persistance/types/storage.d.cts +0 -12
- package/dist/modern/persistance/types/storage.d.ts +0 -12
- package/dist/modern/persistance/types/storage.js +0 -1
- package/dist/modern/persistance/types/storage.js.map +0 -1
|
@@ -1,528 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/lib/image-transform.ts
|
|
21
|
-
var image_transform_exports = {};
|
|
22
|
-
__export(image_transform_exports, {
|
|
23
|
-
ImageTransform: () => ImageTransform
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(image_transform_exports);
|
|
26
|
-
var import_string_extensions = require("./string-extensions.cjs");
|
|
27
|
-
var import_types = require("./types.cjs");
|
|
28
|
-
var ImageTransform = class {
|
|
29
|
-
constructor() {
|
|
30
|
-
this.obj = {};
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @method auto
|
|
34
|
-
* @memberof ImageTransform
|
|
35
|
-
* @description The auto parameter lets you enable the functionality that automates certain image optimization features.
|
|
36
|
-
* @returns {ImageTransform}
|
|
37
|
-
* @example
|
|
38
|
-
* const url = 'www.example.com';
|
|
39
|
-
* const transformObj = new ImageTransform().auto();
|
|
40
|
-
*
|
|
41
|
-
* const transformURL = url.transform(transformObj);
|
|
42
|
-
*/
|
|
43
|
-
auto() {
|
|
44
|
-
this.obj.auto = "webp";
|
|
45
|
-
return this;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @method quality
|
|
49
|
-
* @memberof ImageTransform
|
|
50
|
-
* @description The quality parameter lets you control the compression level of images that have Lossy file format.
|
|
51
|
-
* @param {number} qualityNum - Quality range: 1-100.
|
|
52
|
-
* @returns {ImageTransform}
|
|
53
|
-
* @example
|
|
54
|
-
* const url = 'www.example.com';
|
|
55
|
-
* const transformObj = new ImageTransform().quality(50);
|
|
56
|
-
*
|
|
57
|
-
* const transformURL = url.transform(transformObj);
|
|
58
|
-
*/
|
|
59
|
-
quality(qualityNum) {
|
|
60
|
-
this.obj.quality = qualityNum.toString();
|
|
61
|
-
return this;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @method format
|
|
65
|
-
* @memberof ImageTransform
|
|
66
|
-
* @description The format parameter lets you convert a given image from one format to another.
|
|
67
|
-
* @param {Format} format - Specifies the format to change to.
|
|
68
|
-
* @returns {ImageTransform}
|
|
69
|
-
* @example
|
|
70
|
-
* const url = 'www.example.com';
|
|
71
|
-
* const transformObj = new ImageTransform().format(Format.PJPG);
|
|
72
|
-
*
|
|
73
|
-
* const transformURL = url.transform(transformObj);
|
|
74
|
-
*/
|
|
75
|
-
format(format) {
|
|
76
|
-
this.obj.format = format;
|
|
77
|
-
return this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @method resize
|
|
81
|
-
* @memberof ImageTransform
|
|
82
|
-
* @description The resize parameter lets you resize the image in terms of width, height, upscaling the image.
|
|
83
|
-
* @param {object} options - Resize options object
|
|
84
|
-
* @param {string | number} [options.width] - Specifies the width to resize the image to.
|
|
85
|
-
* The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')
|
|
86
|
-
* @param {string | number} [options.height] - Specifies the height to resize the image to.
|
|
87
|
-
* The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')
|
|
88
|
-
* @param {string} [options.disable] - The disable parameter disables the functionality that is enabled by default.
|
|
89
|
-
* As of now, there is only one value, i.e., upscale, that you can use with the disable parameter.
|
|
90
|
-
* @returns {ImageTransform}
|
|
91
|
-
* @example
|
|
92
|
-
* const url = 'www.example.com';
|
|
93
|
-
* const transformObj = new ImageTransform().resize({ width: 200, height: 200, disable: 'upscale' });
|
|
94
|
-
*
|
|
95
|
-
* const transformURL = url.transform(transformObj);
|
|
96
|
-
*/
|
|
97
|
-
resize({
|
|
98
|
-
width,
|
|
99
|
-
height,
|
|
100
|
-
disable
|
|
101
|
-
}) {
|
|
102
|
-
if (width) this.obj.width = width.toString();
|
|
103
|
-
if (height) this.obj.height = height.toString();
|
|
104
|
-
if (disable) this.obj.disable = "upscale";
|
|
105
|
-
return this;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* @method crop
|
|
109
|
-
* @memberof ImageTransform
|
|
110
|
-
* @description The crop parameter allows you to remove pixels from an image. You can crop an image by specifying
|
|
111
|
-
* the height and width in pixels or percentage value, or defining height and width in aspect ratio.
|
|
112
|
-
* You can also define a sub region (i.e., define the starting point for crop) before cropping the image,
|
|
113
|
-
* or you can offset the image on its X and Y axis (i.e., define the centre point of the crop) before cropping the image.
|
|
114
|
-
* @param {object} options - Crop options object
|
|
115
|
-
* @param {string | number} options.width - Specifies the width to resize the image to.
|
|
116
|
-
* The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')
|
|
117
|
-
* @param {string | number} options.height - Specifies the height to resize the image to.
|
|
118
|
-
* The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')
|
|
119
|
-
* @param {string | number} [options.xval] - (Optional) For CropBy Region, xval defines the X-axis position
|
|
120
|
-
* of the top left corner of the crop. For CropBy Offset, xval defines the horizontal offset of the crop region.
|
|
121
|
-
* @param {string | number} [options.yval] - (Optional) For CropBy Region, yval defines the Y-axis position
|
|
122
|
-
* of the top left corner of the crop. For CropBy Offset, yval defines the vertical offset of the crop region.
|
|
123
|
-
* @param {CropBy} [options.cropBy] - (Optional) Specifies the CropBy type. Values are DEFAULT, ASPECTRATIO, REGION, OFFSET.
|
|
124
|
-
* @param {boolean} [options.safe] - (Optional) Ensures that the output image never returns an error due to the specified crop area being
|
|
125
|
-
* out of bounds. The output image is returned as an intersection of the source image and the defined crop area.
|
|
126
|
-
* @param {boolean} [options.smart] - (Optional) Ensures crop is done using content-aware algorithms. Content-aware image cropping returns a
|
|
127
|
-
* cropped image that automatically fits the defined dimensions while intelligently including the most important components of the image.
|
|
128
|
-
* @returns {ImageTransform}
|
|
129
|
-
* @example
|
|
130
|
-
* const url = 'www.example.com';
|
|
131
|
-
* const transformObj = new ImageTransform().crop({ width: 100, height: 200 })
|
|
132
|
-
*
|
|
133
|
-
* const transformURL = url.transform(transformObj);
|
|
134
|
-
* @example
|
|
135
|
-
* const url = 'www.example.com';
|
|
136
|
-
* const transformObj = new ImageTransform().crop({ width: 2, height: 3, cropBy: CropBy.ASPECTRATIO })
|
|
137
|
-
*
|
|
138
|
-
* const transformURL = url.transform(transformObj);
|
|
139
|
-
* @example
|
|
140
|
-
* const url = 'www.example.com';
|
|
141
|
-
* const transformObj = new ImageTransform().crop({ width: 200, height: 300, cropBy: CropBy.REGION, xval: 100, yval: 150 })
|
|
142
|
-
*
|
|
143
|
-
* const transformURL = url.transform(transformObj);
|
|
144
|
-
* @example
|
|
145
|
-
* const url = 'www.example.com';
|
|
146
|
-
* const transformObj = new ImageTransform().crop({ width: 200, height: 300, cropBy: CropBy.OFFSET, xval: 100, yval: 150 })
|
|
147
|
-
*
|
|
148
|
-
* const transformURL = url.transform(transformObj);
|
|
149
|
-
*/
|
|
150
|
-
crop({
|
|
151
|
-
width,
|
|
152
|
-
height,
|
|
153
|
-
xval,
|
|
154
|
-
yval,
|
|
155
|
-
cropBy = import_types.CropBy.DEFAULT,
|
|
156
|
-
safe = false,
|
|
157
|
-
smart = false
|
|
158
|
-
}) {
|
|
159
|
-
switch (cropBy) {
|
|
160
|
-
case import_types.CropBy.DEFAULT: {
|
|
161
|
-
this.obj.crop = [width.toString(), height.toString()];
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
case import_types.CropBy.ASPECTRATIO: {
|
|
165
|
-
this.obj.crop = `${width}:${height}`;
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
case import_types.CropBy.REGION: {
|
|
169
|
-
this.obj.crop = [width.toString(), height.toString(), `x${xval}`, `y${yval}`];
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
case import_types.CropBy.OFFSET: {
|
|
173
|
-
this.obj.crop = [width.toString(), height.toString(), `offset-x${xval}`, `offset-y${yval}`];
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
if (Array.isArray(this.obj.crop)) {
|
|
177
|
-
if (safe) this.obj.crop = [...this.obj.crop, "safe"];
|
|
178
|
-
if (smart) this.obj.crop = [...this.obj.crop, "smart"];
|
|
179
|
-
}
|
|
180
|
-
return this;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @method fit
|
|
184
|
-
* @memberof ImageTransform
|
|
185
|
-
* @description The fit parameter enables you to fit the given image properly within the specified height and width.
|
|
186
|
-
* @param {FitBy} type - Specifies fit type (BOUNDS or CROP).
|
|
187
|
-
* @returns {ImageTransform}
|
|
188
|
-
* @example
|
|
189
|
-
* const url = 'www.example.com';
|
|
190
|
-
* const transformObj = new ImageTransform().resize({ width: 200, height: 200 }).fit(FitBy.BOUNDS);
|
|
191
|
-
*
|
|
192
|
-
* const transformURL = url.transform(transformObj);
|
|
193
|
-
*/
|
|
194
|
-
fit(type) {
|
|
195
|
-
this.obj.fit = type;
|
|
196
|
-
return this;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @method trim
|
|
200
|
-
* @memberof ImageTransform
|
|
201
|
-
* @description The trim parameter lets you trim an image from the edges. This is especially useful for removing border or white spaces.
|
|
202
|
-
* @param {number | number[]} trimValues - specifies values for top, right, bottom, and left edges of an image.
|
|
203
|
-
* @returns {ImageTransform}
|
|
204
|
-
* @example
|
|
205
|
-
* const url = 'www.example.com';
|
|
206
|
-
* const transformObj = new ImageTransform().trim([25, 50, 75, 90]);
|
|
207
|
-
*
|
|
208
|
-
* const transformURL = url.transform(transformObj);
|
|
209
|
-
* @example
|
|
210
|
-
* const url = 'www.example.com';
|
|
211
|
-
* const transformObj = new ImageTransform().trim([25, 50, 25]);
|
|
212
|
-
*
|
|
213
|
-
* const transformURL = url.transform(transformObj);
|
|
214
|
-
* @example
|
|
215
|
-
* const url = 'www.example.com';
|
|
216
|
-
* const transformObj = new ImageTransform().trim(50);
|
|
217
|
-
*
|
|
218
|
-
* const transformURL = url.transform(transformObj);
|
|
219
|
-
*/
|
|
220
|
-
trim(trimValues) {
|
|
221
|
-
this.obj.trim = trimValues.toString();
|
|
222
|
-
return this;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @method orient
|
|
226
|
-
* @memberof ImageTransform
|
|
227
|
-
* @description The orient parameter lets you control the cardinal orientation of the given image. Using this parameter,
|
|
228
|
-
* you can orient the image right or left, flip horizontally or vertically or both
|
|
229
|
-
* @param {Orientation} orientType - Type of Orientation. Values are DEFAULT, FLIP_HORIZONTAL, FLIP_HORIZONTAL_VERTICAL,
|
|
230
|
-
* FLIP_VERTICAL, FLIP_HORIZONTAL_LEFT, RIGHT, FLIP_HORIZONTAL_RIGHT, LEFT.
|
|
231
|
-
* @returns {ImageTransform}
|
|
232
|
-
* @example
|
|
233
|
-
* const url = 'www.example.com';
|
|
234
|
-
* const transformObj = new ImageTransform().orient(Orientation.FLIP_HORIZONTAL);
|
|
235
|
-
*
|
|
236
|
-
* const transformURL = url.transform(transformObj);
|
|
237
|
-
*/
|
|
238
|
-
orient(orientType) {
|
|
239
|
-
this.obj.orient = orientType.toString();
|
|
240
|
-
return this;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @method overlay
|
|
244
|
-
* @memberof ImageTransform
|
|
245
|
-
* @description The overlay parameter allows you to put one image on top of another.
|
|
246
|
-
* You need to specify the relative URL of the image as value for this parameter.
|
|
247
|
-
* @param {object} options - Overlay options object
|
|
248
|
-
* @param {string} options.relativeURL - URL of the image to overlay on base image
|
|
249
|
-
* @param {OverlayAlign | OverlayAlign[]} [options.align] - lets you define the position of the overlay image.
|
|
250
|
-
* Accepted values are TOP, BOTTOM, LEFT, RIGHT, MIDDLE, CENTER.
|
|
251
|
-
* @param {OverlayRepeat} [options.repeat] - lets you define how the overlay image will be repeated on the given image.
|
|
252
|
-
* Accepted values are X, Y, BOTH.
|
|
253
|
-
* @param {string | number} [options.width] - lets you define the width of the overlay image.
|
|
254
|
-
* For pixels, use any whole number between 1 and 8192. For percentages, use any decimal number between 0.0 and 0.99.
|
|
255
|
-
* @param {string | number} [options.height] - lets you define the height of the overlay image.
|
|
256
|
-
* For pixels, use any whole number between 1 and 8192. For percentages, use any decimal number between 0.0 and 0.99
|
|
257
|
-
* @param {number | number[]} [options.pad] - lets you add extra pixels to the edges of an image.
|
|
258
|
-
* This is useful if you want to add whitespace or border to an image.
|
|
259
|
-
* @returns {ImageTransform}
|
|
260
|
-
* @example
|
|
261
|
-
* const url = 'www.example.com';
|
|
262
|
-
* const transformObj = new ImageTransform().overlay({ relativeURL: overlayImgURL });
|
|
263
|
-
*
|
|
264
|
-
* const transformURL = url.transform(transformObj);
|
|
265
|
-
* @example
|
|
266
|
-
* const url = 'www.example.com';
|
|
267
|
-
* const transformObj = new ImageTransform().overlay({ relativeURL: overlayImgURL, align: OverlayAlign.BOTTOM });
|
|
268
|
-
*
|
|
269
|
-
* const transformURL = url.transform(transformObj);
|
|
270
|
-
* @example
|
|
271
|
-
* const url = 'www.example.com';
|
|
272
|
-
* const transformObj = new ImageTransform().overlay({
|
|
273
|
-
* relativeURL: overlayImgURL,
|
|
274
|
-
* align: OverlayAlign.BOTTOM,
|
|
275
|
-
* repeat: OverlayRepeat.Y,
|
|
276
|
-
* width: '50p',
|
|
277
|
-
* });
|
|
278
|
-
*
|
|
279
|
-
* const transformURL = url.transform(transformObj);
|
|
280
|
-
*/
|
|
281
|
-
overlay({
|
|
282
|
-
relativeURL,
|
|
283
|
-
align,
|
|
284
|
-
repeat,
|
|
285
|
-
width,
|
|
286
|
-
height
|
|
287
|
-
}) {
|
|
288
|
-
this.obj.overlay = relativeURL;
|
|
289
|
-
if (align) this.obj["overlay-align"] = align.toString();
|
|
290
|
-
if (repeat) this.obj["overlay-repeat"] = repeat.toString();
|
|
291
|
-
if (width) this.obj["overlay-width"] = width.toString();
|
|
292
|
-
if (height) this.obj["overlay-height"] = height.toString();
|
|
293
|
-
return this;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* @method padding
|
|
297
|
-
* @memberof ImageTransform
|
|
298
|
-
* @description The padding parameter lets you add extra pixels to the edges of an image.
|
|
299
|
-
* This is useful if you want to add whitespace or border to an image.
|
|
300
|
-
* @param {number | number[]} padding - padding value in pixels or percentages
|
|
301
|
-
* @returns {ImageTransform}
|
|
302
|
-
* @example
|
|
303
|
-
* const url = 'www.example.com';
|
|
304
|
-
* const transformObj = new ImageTransform().padding([25, 50, 75, 90]);
|
|
305
|
-
*
|
|
306
|
-
* const transformURL = url.transform(transformObj);
|
|
307
|
-
* @example
|
|
308
|
-
* const url = 'www.example.com';
|
|
309
|
-
* const transformObj = new ImageTransform().padding(50);
|
|
310
|
-
*
|
|
311
|
-
* const transformURL = url.transform(transformObj);
|
|
312
|
-
*/
|
|
313
|
-
padding(padding) {
|
|
314
|
-
this.obj.pad = padding.toString();
|
|
315
|
-
return this;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* @method bgColor
|
|
319
|
-
* @memberof ImageTransform
|
|
320
|
-
* @description The bgColor parameter lets you set a background color for the given image.
|
|
321
|
-
* @param {string | number[]} color - color of the background
|
|
322
|
-
* @returns {ImageTransform}
|
|
323
|
-
* @example
|
|
324
|
-
* const url = 'www.example.com';
|
|
325
|
-
* const transformObj = new ImageTransform().bgColor('cccccc');
|
|
326
|
-
*
|
|
327
|
-
* const transformURL = url.transform(transformObj);
|
|
328
|
-
* @example
|
|
329
|
-
* const url = 'www.example.com';
|
|
330
|
-
* const transformObj = new ImageTransform().bgColor([140, 220, 123, 0.5] );
|
|
331
|
-
*
|
|
332
|
-
* const transformURL = url.transform(transformObj);
|
|
333
|
-
*/
|
|
334
|
-
bgColor(color) {
|
|
335
|
-
this.obj["bg-color"] = color.toString();
|
|
336
|
-
return this;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* @method dpr
|
|
340
|
-
* @memberof ImageTransform
|
|
341
|
-
* @description The dpr parameter lets you deliver images with appropriate size to devices that come with a defined device pixel ratio.
|
|
342
|
-
* @param {number} dprValue - value of device pixel ratio 1-10000 or 0.0 to 9999.999
|
|
343
|
-
* @returns {ImageTransform}
|
|
344
|
-
* @example
|
|
345
|
-
* const url = 'www.example.com';
|
|
346
|
-
* const transformObj = new ImageTransform().resize({ width: 300, height: 500 }).dpr(10);
|
|
347
|
-
*
|
|
348
|
-
* const transformURL = url.transform(transformObj);
|
|
349
|
-
*/
|
|
350
|
-
dpr(dprValue) {
|
|
351
|
-
this.obj.dpr = dprValue.toString();
|
|
352
|
-
return this;
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @method blur
|
|
356
|
-
* @memberof ImageTransform
|
|
357
|
-
* @description The blur parameter allows you to decrease the focus and clarity of a given image.
|
|
358
|
-
* @param {number} blurValue - to set the blur intensity between 1-1000.
|
|
359
|
-
* @returns {ImageTransform}
|
|
360
|
-
* @example
|
|
361
|
-
* const url = 'www.example.com';
|
|
362
|
-
* const transformObj = new ImageTransform().blur(10);
|
|
363
|
-
*
|
|
364
|
-
* const transformURL = url.transform(transformObj);
|
|
365
|
-
*/
|
|
366
|
-
blur(blurValue) {
|
|
367
|
-
this.obj.blur = blurValue.toString();
|
|
368
|
-
return this;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* @method frame
|
|
372
|
-
* @memberof ImageTransform
|
|
373
|
-
* @description The frame parameter fetches the first frame from an animated GIF (Graphics Interchange Format)
|
|
374
|
-
* file that comprises a sequence of moving images.
|
|
375
|
-
* @returns {ImageTransform}
|
|
376
|
-
* @example
|
|
377
|
-
* const url = 'www.example.com';
|
|
378
|
-
* const transformObj = new ImageTransform().frame();
|
|
379
|
-
*
|
|
380
|
-
* const transformURL = url.transform(transformObj);
|
|
381
|
-
*/
|
|
382
|
-
frame() {
|
|
383
|
-
this.obj.frame = "1";
|
|
384
|
-
return this;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* @method sharpen
|
|
388
|
-
* @memberof ImageTransform
|
|
389
|
-
* @description The sharpen parameter allows you to increase the definition of the edges of objects in an image.
|
|
390
|
-
* @param {number} amount - [0-10] specifies the amount of contrast to be set for the image edges
|
|
391
|
-
* @param {number} radius - [1-1000] specifies the radius of the image edges
|
|
392
|
-
* @param {number} threshold - [0-255] specifies the range of image edges that need to be ignored while sharpening
|
|
393
|
-
* @returns {ImageTransform}
|
|
394
|
-
* @example
|
|
395
|
-
* const url = 'www.example.com';
|
|
396
|
-
* const transformObj = new ImageTransform().sharpen(5, 1000, 2);
|
|
397
|
-
*
|
|
398
|
-
* const transformURL = url.transform(transformObj);
|
|
399
|
-
*/
|
|
400
|
-
sharpen(amount, radius, threshold) {
|
|
401
|
-
this.obj.sharpen = [`a${amount}`, `r${radius}`, `t${threshold}`].toString();
|
|
402
|
-
return this;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* @method saturation
|
|
406
|
-
* @memberof ImageTransform
|
|
407
|
-
* @description The saturation parameter allows you to increase or decrease the intensity of the colors in a given image.
|
|
408
|
-
* @param {number} saturationValue - to set the saturation of image between -100 to 100
|
|
409
|
-
* @returns {ImageTransform}
|
|
410
|
-
* @example
|
|
411
|
-
* const url = 'www.example.com';
|
|
412
|
-
* const transformObj = new ImageTransform().saturation(-80.99);
|
|
413
|
-
*
|
|
414
|
-
* const transformURL = url.transform(transformObj);
|
|
415
|
-
*/
|
|
416
|
-
saturation(saturationValue) {
|
|
417
|
-
this.obj.saturation = saturationValue.toString();
|
|
418
|
-
return this;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* @method contrast
|
|
422
|
-
* @memberof ImageTransform
|
|
423
|
-
* @description The contrast parameter lets you adjust the contrast level of the image.
|
|
424
|
-
* @param {number} contrastValue - to set the contrast of image between -100 to 100
|
|
425
|
-
* @returns {ImageTransform}
|
|
426
|
-
* @example
|
|
427
|
-
* const url = 'www.example.com';
|
|
428
|
-
* const transformObj = new ImageTransform().contrast(-80.99);
|
|
429
|
-
*
|
|
430
|
-
* const transformURL = url.transform(transformObj);
|
|
431
|
-
*/
|
|
432
|
-
contrast(contrastValue) {
|
|
433
|
-
this.obj.contrast = contrastValue.toString();
|
|
434
|
-
return this;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* @method brightness
|
|
438
|
-
* @memberof ImageTransform
|
|
439
|
-
* @description The brightness parameter lets you adjust the brightness level of the image.
|
|
440
|
-
* @param {number} brightnessValue - to set the brightness of image between -100 to 100
|
|
441
|
-
* @returns {ImageTransform}
|
|
442
|
-
* @example
|
|
443
|
-
* const url = 'www.example.com';
|
|
444
|
-
* const transformObj = new ImageTransform().brightness(80.50);
|
|
445
|
-
*
|
|
446
|
-
* const transformURL = url.transform(transformObj);
|
|
447
|
-
*/
|
|
448
|
-
brightness(brightnessValue) {
|
|
449
|
-
this.obj.brightness = brightnessValue.toString();
|
|
450
|
-
return this;
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* @method resizeFilter
|
|
454
|
-
* @memberof ImageTransform
|
|
455
|
-
* @description The resizeFilter parameter allows you to use the resizing filter to increase or
|
|
456
|
-
* decrease the number of pixels in a given image.
|
|
457
|
-
* @param {ResizeFilter} type - type of Filter to apply
|
|
458
|
-
* Values are NEAREST, BILINEAR, BICUBIC, LANCZOS2, LANCZOS3.
|
|
459
|
-
* @returns {ImageTransform}
|
|
460
|
-
* @example
|
|
461
|
-
* const url = 'www.example.com';
|
|
462
|
-
* const transformObj = new ImageTransform().resize({ width: 500, height: 550 }).resizeFilter(ResizeFilter.NEAREST);
|
|
463
|
-
*
|
|
464
|
-
* const transformURL = url.transform(transformObj);
|
|
465
|
-
*/
|
|
466
|
-
resizeFilter(type) {
|
|
467
|
-
this.obj["resize-filter"] = type;
|
|
468
|
-
return this;
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* @method canvas
|
|
472
|
-
* @memberof ImageTransform
|
|
473
|
-
* @description The canvas parameter allows you to increase the size of the canvas that surrounds an image.
|
|
474
|
-
* You can specify the height and width of the canvas area in pixels or percentage or define the height and width
|
|
475
|
-
* of the aspect ratio of the canvas. You can also define the starting point for the canvas area or offset the canvas on its X and Y axis.
|
|
476
|
-
* @param {string | number} width - sets width of the canvas
|
|
477
|
-
* @param {string | number} height - sets height of the canvas
|
|
478
|
-
* @param {string | number} xval - defines the X-axis position of the top left corner or horizontal offset
|
|
479
|
-
* @param {string | number} yval - defines the Y-axis position of the top left corner or vertical offset
|
|
480
|
-
* @param {CanvasBy} canvasBy - Specifies the canvasBy type. Accepted values are DEFAULT, ASPECTRATIO, REGION, OFFSET.
|
|
481
|
-
* @returns {ImageTransform}
|
|
482
|
-
* @example
|
|
483
|
-
* const url = 'www.example.com';
|
|
484
|
-
* const transformObj = new ImageTransform().canvas({ width: 100, height: 200 });
|
|
485
|
-
*
|
|
486
|
-
* const transformURL = url.transform(transformObj);
|
|
487
|
-
* @example
|
|
488
|
-
* const url = 'www.example.com';
|
|
489
|
-
* const transformObj = new ImageTransform().canvas({ width: 200, height: 300, canvasBy: CanvasBy.OFFSET, xval: 100, yval: 150 });
|
|
490
|
-
*
|
|
491
|
-
* const transformURL = url.transform(transformObj);
|
|
492
|
-
*/
|
|
493
|
-
canvas({
|
|
494
|
-
width,
|
|
495
|
-
height,
|
|
496
|
-
xval,
|
|
497
|
-
yval,
|
|
498
|
-
canvasBy = import_types.CanvasBy.DEFAULT
|
|
499
|
-
}) {
|
|
500
|
-
switch (canvasBy) {
|
|
501
|
-
case import_types.CanvasBy.DEFAULT: {
|
|
502
|
-
this.obj.canvas = [width.toString(), height.toString()];
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
case import_types.CanvasBy.ASPECTRATIO: {
|
|
506
|
-
this.obj.canvas = `${width}:${height}`;
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
case import_types.CanvasBy.REGION: {
|
|
510
|
-
this.obj.canvas = [width.toString(), height.toString()];
|
|
511
|
-
if (xval) this.obj.canvas.push(`x${xval}`);
|
|
512
|
-
if (yval) this.obj.canvas.push(`y${yval}`);
|
|
513
|
-
break;
|
|
514
|
-
}
|
|
515
|
-
case import_types.CanvasBy.OFFSET: {
|
|
516
|
-
this.obj.canvas = [width.toString(), height.toString()];
|
|
517
|
-
if (xval) this.obj.canvas.push(`offset-x${xval}`);
|
|
518
|
-
if (yval) this.obj.canvas.push(`offset-y${yval}`);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
return this;
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
525
|
-
0 && (module.exports = {
|
|
526
|
-
ImageTransform
|
|
527
|
-
});
|
|
528
|
-
//# sourceMappingURL=image-transform.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/image-transform.ts"],"sourcesContent":["/* eslint-disable @cspell/spellchecker */\nimport './string-extensions';\nimport {\n CanvasBy,\n CropBy,\n FitBy,\n Format,\n Orientation,\n OverlayAlign,\n OverlayRepeat,\n ResizeFilter,\n TransformData,\n} from './types';\n\nexport class ImageTransform {\n obj: TransformData = {};\n\n /**\n * @method auto\n * @memberof ImageTransform\n * @description The auto parameter lets you enable the functionality that automates certain image optimization features.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().auto();\n *\n * const transformURL = url.transform(transformObj);\n */\n auto(): ImageTransform {\n this.obj.auto = 'webp';\n\n return this;\n }\n\n /**\n * @method quality\n * @memberof ImageTransform\n * @description The quality parameter lets you control the compression level of images that have Lossy file format.\n * @param {number} qualityNum - Quality range: 1-100.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().quality(50);\n *\n * const transformURL = url.transform(transformObj);\n */\n quality(qualityNum: number): ImageTransform {\n this.obj.quality = qualityNum.toString();\n\n return this;\n }\n\n /**\n * @method format\n * @memberof ImageTransform\n * @description The format parameter lets you convert a given image from one format to another.\n * @param {Format} format - Specifies the format to change to.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().format(Format.PJPG);\n *\n * const transformURL = url.transform(transformObj);\n */\n format(format: Format): ImageTransform {\n this.obj.format = format;\n\n return this;\n }\n\n /**\n * @method resize\n * @memberof ImageTransform\n * @description The resize parameter lets you resize the image in terms of width, height, upscaling the image.\n * @param {object} options - Resize options object\n * @param {string | number} [options.width] - Specifies the width to resize the image to.\n * The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')\n * @param {string | number} [options.height] - Specifies the height to resize the image to.\n * The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')\n * @param {string} [options.disable] - The disable parameter disables the functionality that is enabled by default.\n * As of now, there is only one value, i.e., upscale, that you can use with the disable parameter.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().resize({ width: 200, height: 200, disable: 'upscale' });\n *\n * const transformURL = url.transform(transformObj);\n */\n resize({\n width,\n height,\n disable,\n }: {\n width?: string | number;\n height?: string | number;\n disable?: string;\n }): ImageTransform {\n if (width) this.obj.width = width.toString();\n if (height) this.obj.height = height.toString();\n if (disable) this.obj.disable = 'upscale';\n\n return this;\n }\n\n /**\n * @method crop\n * @memberof ImageTransform\n * @description The crop parameter allows you to remove pixels from an image. You can crop an image by specifying\n * the height and width in pixels or percentage value, or defining height and width in aspect ratio.\n * You can also define a sub region (i.e., define the starting point for crop) before cropping the image,\n * or you can offset the image on its X and Y axis (i.e., define the centre point of the crop) before cropping the image.\n * @param {object} options - Crop options object\n * @param {string | number} options.width - Specifies the width to resize the image to.\n * The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')\n * @param {string | number} options.height - Specifies the height to resize the image to.\n * The value can be in pixels (for example, 400) or in percentage (for example, 0.60 OR '60p')\n * @param {string | number} [options.xval] - (Optional) For CropBy Region, xval defines the X-axis position\n * of the top left corner of the crop. For CropBy Offset, xval defines the horizontal offset of the crop region.\n * @param {string | number} [options.yval] - (Optional) For CropBy Region, yval defines the Y-axis position\n * of the top left corner of the crop. For CropBy Offset, yval defines the vertical offset of the crop region.\n * @param {CropBy} [options.cropBy] - (Optional) Specifies the CropBy type. Values are DEFAULT, ASPECTRATIO, REGION, OFFSET.\n * @param {boolean} [options.safe] - (Optional) Ensures that the output image never returns an error due to the specified crop area being\n * out of bounds. The output image is returned as an intersection of the source image and the defined crop area.\n * @param {boolean} [options.smart] - (Optional) Ensures crop is done using content-aware algorithms. Content-aware image cropping returns a\n * cropped image that automatically fits the defined dimensions while intelligently including the most important components of the image.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().crop({ width: 100, height: 200 })\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().crop({ width: 2, height: 3, cropBy: CropBy.ASPECTRATIO })\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().crop({ width: 200, height: 300, cropBy: CropBy.REGION, xval: 100, yval: 150 })\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().crop({ width: 200, height: 300, cropBy: CropBy.OFFSET, xval: 100, yval: 150 })\n *\n * const transformURL = url.transform(transformObj);\n */\n crop({\n width,\n height,\n xval,\n yval,\n cropBy = CropBy.DEFAULT,\n safe = false,\n smart = false,\n }: {\n width: string | number;\n height: string | number;\n xval?: string | number;\n yval?: string | number;\n cropBy?: CropBy;\n safe?: boolean;\n smart?: boolean;\n }): ImageTransform {\n switch (cropBy) {\n case CropBy.DEFAULT: {\n this.obj.crop = [width.toString(), height.toString()];\n break;\n }\n case CropBy.ASPECTRATIO: {\n this.obj.crop = `${width}:${height}`;\n break;\n }\n case CropBy.REGION: {\n this.obj.crop = [width.toString(), height.toString(), `x${xval}`, `y${yval}`];\n break;\n }\n case CropBy.OFFSET: {\n this.obj.crop = [width.toString(), height.toString(), `offset-x${xval}`, `offset-y${yval}`];\n }\n }\n // Only add safe/smart when crop is an array (not for ASPECTRATIO which is a string)\n if (Array.isArray(this.obj.crop)) {\n if (safe) this.obj.crop = [...this.obj.crop, 'safe'];\n if (smart) this.obj.crop = [...this.obj.crop, 'smart'];\n }\n\n return this;\n }\n\n /**\n * @method fit\n * @memberof ImageTransform\n * @description The fit parameter enables you to fit the given image properly within the specified height and width.\n * @param {FitBy} type - Specifies fit type (BOUNDS or CROP).\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().resize({ width: 200, height: 200 }).fit(FitBy.BOUNDS);\n *\n * const transformURL = url.transform(transformObj);\n */\n fit(type: FitBy): ImageTransform {\n this.obj.fit = type;\n\n return this;\n }\n\n /**\n * @method trim\n * @memberof ImageTransform\n * @description The trim parameter lets you trim an image from the edges. This is especially useful for removing border or white spaces.\n * @param {number | number[]} trimValues - specifies values for top, right, bottom, and left edges of an image.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().trim([25, 50, 75, 90]);\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().trim([25, 50, 25]);\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().trim(50);\n *\n * const transformURL = url.transform(transformObj);\n */\n trim(trimValues: number | number[]): ImageTransform {\n this.obj.trim = trimValues.toString();\n\n return this;\n }\n\n /**\n * @method orient\n * @memberof ImageTransform\n * @description The orient parameter lets you control the cardinal orientation of the given image. Using this parameter,\n * you can orient the image right or left, flip horizontally or vertically or both\n * @param {Orientation} orientType - Type of Orientation. Values are DEFAULT, FLIP_HORIZONTAL, FLIP_HORIZONTAL_VERTICAL,\n * FLIP_VERTICAL, FLIP_HORIZONTAL_LEFT, RIGHT, FLIP_HORIZONTAL_RIGHT, LEFT.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().orient(Orientation.FLIP_HORIZONTAL);\n *\n * const transformURL = url.transform(transformObj);\n */\n orient(orientType: Orientation): ImageTransform {\n this.obj.orient = orientType.toString();\n\n return this;\n }\n\n /**\n * @method overlay\n * @memberof ImageTransform\n * @description The overlay parameter allows you to put one image on top of another.\n * You need to specify the relative URL of the image as value for this parameter.\n * @param {object} options - Overlay options object\n * @param {string} options.relativeURL - URL of the image to overlay on base image\n * @param {OverlayAlign | OverlayAlign[]} [options.align] - lets you define the position of the overlay image.\n * Accepted values are TOP, BOTTOM, LEFT, RIGHT, MIDDLE, CENTER.\n * @param {OverlayRepeat} [options.repeat] - lets you define how the overlay image will be repeated on the given image.\n * Accepted values are X, Y, BOTH.\n * @param {string | number} [options.width] - lets you define the width of the overlay image.\n * For pixels, use any whole number between 1 and 8192. For percentages, use any decimal number between 0.0 and 0.99.\n * @param {string | number} [options.height] - lets you define the height of the overlay image.\n * For pixels, use any whole number between 1 and 8192. For percentages, use any decimal number between 0.0 and 0.99\n * @param {number | number[]} [options.pad] - lets you add extra pixels to the edges of an image. \n * This is useful if you want to add whitespace or border to an image.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().overlay({ relativeURL: overlayImgURL });\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().overlay({ relativeURL: overlayImgURL, align: OverlayAlign.BOTTOM });\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().overlay({\n * relativeURL: overlayImgURL,\n * align: OverlayAlign.BOTTOM,\n * repeat: OverlayRepeat.Y,\n * width: '50p',\n * });\n *\n * const transformURL = url.transform(transformObj);\n */\n overlay({\n relativeURL,\n align,\n repeat,\n width,\n height,\n }: {\n relativeURL: string;\n align?: OverlayAlign | OverlayAlign[];\n repeat?: OverlayRepeat;\n width?: string | number;\n height?: string | number;\n pad?: number | number[];\n }): ImageTransform {\n this.obj.overlay = relativeURL;\n if (align) this.obj['overlay-align'] = align.toString();\n if (repeat) this.obj['overlay-repeat'] = repeat.toString();\n if (width) this.obj['overlay-width'] = width.toString();\n if (height) this.obj['overlay-height'] = height.toString();\n\n return this;\n }\n\n /**\n * @method padding\n * @memberof ImageTransform\n * @description The padding parameter lets you add extra pixels to the edges of an image. \n * This is useful if you want to add whitespace or border to an image.\n * @param {number | number[]} padding - padding value in pixels or percentages\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().padding([25, 50, 75, 90]);\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().padding(50);\n *\n * const transformURL = url.transform(transformObj);\n */\n padding(padding: number | number[]): ImageTransform {\n this.obj.pad = padding.toString();\n\n return this;\n }\n\n /**\n * @method bgColor\n * @memberof ImageTransform\n * @description The bgColor parameter lets you set a background color for the given image.\n * @param {string | number[]} color - color of the background\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().bgColor('cccccc');\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().bgColor([140, 220, 123, 0.5] );\n *\n * const transformURL = url.transform(transformObj);\n */\n bgColor(color: string | number[]): ImageTransform {\n this.obj['bg-color'] = color.toString();\n\n return this;\n }\n\n /**\n * @method dpr\n * @memberof ImageTransform\n * @description The dpr parameter lets you deliver images with appropriate size to devices that come with a defined device pixel ratio.\n * @param {number} dprValue - value of device pixel ratio 1-10000 or 0.0 to 9999.999\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().resize({ width: 300, height: 500 }).dpr(10);\n *\n * const transformURL = url.transform(transformObj);\n */\n dpr(dprValue: number): ImageTransform {\n this.obj.dpr = dprValue.toString();\n\n return this;\n }\n\n /**\n * @method blur\n * @memberof ImageTransform\n * @description The blur parameter allows you to decrease the focus and clarity of a given image.\n * @param {number} blurValue - to set the blur intensity between 1-1000.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().blur(10);\n *\n * const transformURL = url.transform(transformObj);\n */\n blur(blurValue: number): ImageTransform {\n this.obj.blur = blurValue.toString();\n\n return this;\n }\n\n /**\n * @method frame\n * @memberof ImageTransform\n * @description The frame parameter fetches the first frame from an animated GIF (Graphics Interchange Format)\n * file that comprises a sequence of moving images.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().frame();\n *\n * const transformURL = url.transform(transformObj);\n */\n frame(): ImageTransform {\n this.obj.frame = '1';\n\n return this;\n }\n\n /**\n * @method sharpen\n * @memberof ImageTransform\n * @description The sharpen parameter allows you to increase the definition of the edges of objects in an image.\n * @param {number} amount - [0-10] specifies the amount of contrast to be set for the image edges\n * @param {number} radius - [1-1000] specifies the radius of the image edges\n * @param {number} threshold - [0-255] specifies the range of image edges that need to be ignored while sharpening\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().sharpen(5, 1000, 2);\n *\n * const transformURL = url.transform(transformObj);\n */\n sharpen(amount: number, radius: number, threshold: number): ImageTransform {\n this.obj.sharpen = [`a${amount}`, `r${radius}`, `t${threshold}`].toString();\n\n return this;\n }\n\n /**\n * @method saturation\n * @memberof ImageTransform\n * @description The saturation parameter allows you to increase or decrease the intensity of the colors in a given image.\n * @param {number} saturationValue - to set the saturation of image between -100 to 100\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().saturation(-80.99);\n *\n * const transformURL = url.transform(transformObj);\n */\n saturation(saturationValue: number): ImageTransform {\n this.obj.saturation = saturationValue.toString();\n\n return this;\n }\n\n /**\n * @method contrast\n * @memberof ImageTransform\n * @description The contrast parameter lets you adjust the contrast level of the image.\n * @param {number} contrastValue - to set the contrast of image between -100 to 100\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().contrast(-80.99);\n *\n * const transformURL = url.transform(transformObj);\n */\n contrast(contrastValue: number): ImageTransform {\n this.obj.contrast = contrastValue.toString();\n\n return this;\n }\n\n /**\n * @method brightness\n * @memberof ImageTransform\n * @description The brightness parameter lets you adjust the brightness level of the image.\n * @param {number} brightnessValue - to set the brightness of image between -100 to 100\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().brightness(80.50);\n *\n * const transformURL = url.transform(transformObj);\n */\n brightness(brightnessValue: number): ImageTransform {\n this.obj.brightness = brightnessValue.toString();\n\n return this;\n }\n\n /**\n * @method resizeFilter\n * @memberof ImageTransform\n * @description The resizeFilter parameter allows you to use the resizing filter to increase or\n * decrease the number of pixels in a given image.\n * @param {ResizeFilter} type - type of Filter to apply\n * Values are NEAREST, BILINEAR, BICUBIC, LANCZOS2, LANCZOS3.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().resize({ width: 500, height: 550 }).resizeFilter(ResizeFilter.NEAREST);\n *\n * const transformURL = url.transform(transformObj);\n */\n resizeFilter(type: ResizeFilter): ImageTransform {\n this.obj['resize-filter'] = type;\n\n return this;\n }\n\n /**\n * @method canvas\n * @memberof ImageTransform\n * @description The canvas parameter allows you to increase the size of the canvas that surrounds an image.\n * You can specify the height and width of the canvas area in pixels or percentage or define the height and width\n * of the aspect ratio of the canvas. You can also define the starting point for the canvas area or offset the canvas on its X and Y axis.\n * @param {string | number} width - sets width of the canvas\n * @param {string | number} height - sets height of the canvas\n * @param {string | number} xval - defines the X-axis position of the top left corner or horizontal offset\n * @param {string | number} yval - defines the Y-axis position of the top left corner or vertical offset\n * @param {CanvasBy} canvasBy - Specifies the canvasBy type. Accepted values are DEFAULT, ASPECTRATIO, REGION, OFFSET.\n * @returns {ImageTransform}\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().canvas({ width: 100, height: 200 });\n *\n * const transformURL = url.transform(transformObj);\n * @example\n * const url = 'www.example.com';\n * const transformObj = new ImageTransform().canvas({ width: 200, height: 300, canvasBy: CanvasBy.OFFSET, xval: 100, yval: 150 });\n *\n * const transformURL = url.transform(transformObj);\n */\n canvas({\n width,\n height,\n xval,\n yval,\n canvasBy = CanvasBy.DEFAULT,\n }: {\n width: string | number;\n height: string | number;\n xval?: string | number;\n yval?: string | number;\n canvasBy?: CanvasBy;\n }): ImageTransform {\n switch (canvasBy) {\n case CanvasBy.DEFAULT: {\n this.obj.canvas = [width.toString(), height.toString()];\n break;\n }\n case CanvasBy.ASPECTRATIO: {\n this.obj.canvas = `${width}:${height}`;\n break;\n }\n case CanvasBy.REGION: {\n this.obj.canvas = [width.toString(), height.toString()];\n if (xval) this.obj.canvas.push(`x${xval}`);\n if (yval) this.obj.canvas.push(`y${yval}`);\n break;\n }\n case CanvasBy.OFFSET: {\n this.obj.canvas = [width.toString(), height.toString()];\n if (xval) this.obj.canvas.push(`offset-x${xval}`);\n if (yval) this.obj.canvas.push(`offset-y${yval}`);\n }\n }\n\n return this;\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { I as ImageTransform } from './string-extensions.cjs';
|
|
2
|
-
import './types.cjs';
|
|
3
|
-
import '@contentstack/core';
|
|
4
|
-
import '../persistance/types/storage-type.cjs';
|
|
5
|
-
import '../persistance/config/persistance-storage-config.cjs';
|
|
6
|
-
import '../persistance/types/storage.cjs';
|
|
7
|
-
import '../persistance/helper/utils.cjs';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { I as ImageTransform } from './string-extensions.js';
|
|
2
|
-
import './types.js';
|
|
3
|
-
import '@contentstack/core';
|
|
4
|
-
import '../persistance/types/storage-type.js';
|
|
5
|
-
import '../persistance/config/persistance-storage-config.js';
|
|
6
|
-
import '../persistance/types/storage.js';
|
|
7
|
-
import '../persistance/helper/utils.js';
|