yummies 5.4.5 → 5.4.7
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/assets/logo.png +0 -0
- package/assets/logo.pxz +0 -0
- package/{dist/common.d.ts → common.d.ts} +1 -1
- package/common.d.ts.map +1 -0
- package/{dist/complex → complex}/global-config.d.ts +1 -1
- package/complex/global-config.d.ts.map +1 -0
- package/complex/index.d.ts +4 -0
- package/complex/index.d.ts.map +1 -0
- package/complex/index.js +3 -0
- package/{dist/complex → complex}/modules-factory.d.ts +1 -1
- package/complex/modules-factory.d.ts.map +1 -0
- package/cookie.d.ts +3 -0
- package/{dist/cookie.d.ts.map → cookie.d.ts.map} +1 -1
- package/{dist/date-time.d.ts → date-time.d.ts} +1 -1
- package/date-time.d.ts.map +1 -0
- package/{dist/date-time.js → date-time.js} +4 -4
- package/{dist/errors.d.ts → errors.d.ts} +1 -1
- package/errors.d.ts.map +1 -0
- package/{dist/errors.js → errors.js} +1 -1
- package/format/_exports.d.ts +5 -0
- package/format/_exports.d.ts.map +1 -0
- package/format/_exports.js +4 -0
- package/format/index.d.ts +3 -0
- package/{dist/format → format}/index.d.ts.map +1 -1
- package/{dist/format → format}/index.js +1 -1
- package/{dist/format → format}/number.d.ts +1 -1
- package/format/number.d.ts.map +1 -0
- package/{dist/format → format}/number.js +3 -3
- package/{dist/format → format}/percent.d.ts +2 -2
- package/format/percent.d.ts.map +1 -0
- package/{dist/format → format}/percent.js +3 -3
- package/{dist/html.d.ts → html.d.ts} +1 -1
- package/html.d.ts.map +1 -0
- package/{dist/html.js → html.js} +1 -1
- package/{dist/imports.js → imports.js} +1 -1
- package/{dist/math.d.ts → math.d.ts} +1 -1
- package/math.d.ts.map +1 -0
- package/{dist/media.js → media.js} +1 -1
- package/{dist/mobx → mobx}/apply-observable.d.ts +1 -1
- package/mobx/apply-observable.d.ts.map +1 -0
- package/{dist/mobx → mobx}/create-enhanced-atom.d.ts +1 -1
- package/mobx/create-enhanced-atom.d.ts.map +1 -0
- package/{dist/mobx → mobx}/deep-observable-struct.d.ts +1 -1
- package/mobx/deep-observable-struct.d.ts.map +1 -0
- package/{dist/mobx → mobx}/deep-observable-struct.js +1 -1
- package/{dist/mobx → mobx}/get-mobx-administration.d.ts +1 -1
- package/mobx/get-mobx-administration.d.ts.map +1 -0
- package/mobx/index.d.ts +6 -0
- package/mobx/index.d.ts.map +1 -0
- package/mobx/index.js +5 -0
- package/package.json +350 -340
- package/parser/_exports.d.ts +4 -0
- package/parser/_exports.d.ts.map +1 -0
- package/parser/_exports.js +3 -0
- package/parser/index.d.ts +3 -0
- package/{dist/parser → parser}/index.d.ts.map +1 -1
- package/{dist/parser → parser}/index.js +1 -1
- package/{dist/parser → parser}/number.d.ts +1 -1
- package/parser/number.d.ts.map +1 -0
- package/{dist/parser → parser}/number.js +2 -2
- package/{dist/parser → parser}/percent.d.ts +2 -2
- package/parser/percent.d.ts.map +1 -0
- package/{dist/parser → parser}/percent.js +1 -1
- package/{dist/parser → parser}/string.d.ts +1 -1
- package/parser/string.d.ts.map +1 -0
- package/{dist/parser → parser}/string.js +1 -1
- package/react/hooks/index.d.ts +22 -0
- package/react/hooks/index.d.ts.map +1 -0
- package/react/hooks/index.js +21 -0
- package/{dist/react → react}/hooks/use-abort-controller.js +1 -1
- package/{dist/react → react}/hooks/use-abort-signal.js +1 -1
- package/{dist/react → react}/hooks/use-click-outside.js +1 -1
- package/{dist/react → react}/hooks/use-event-listener.js +1 -1
- package/react/hooks/use-event.d.ts +3 -0
- package/{dist/react → react}/hooks/use-event.d.ts.map +1 -1
- package/{dist/react → react}/hooks/use-instance.js +2 -2
- package/{dist/react → react}/hooks/use-life-cycle.js +1 -1
- package/{dist/react → react}/hooks/use-resize-observer.js +1 -1
- package/react/index.d.ts +2 -0
- package/react/index.d.ts.map +1 -0
- package/react/index.js +1 -0
- package/{dist/type-guard → type-guard}/_exports.d.ts +1 -1
- package/type-guard/_exports.d.ts.map +1 -0
- package/type-guard/index.d.ts +3 -0
- package/{dist/type-guard → type-guard}/index.d.ts.map +1 -1
- package/{dist/type-guard → type-guard}/index.js +1 -1
- package/dist/async.cjs +0 -70
- package/dist/async.d.cts +0 -28
- package/dist/async.d.cts.map +0 -1
- package/dist/common.cjs +0 -18
- package/dist/common.d.cts +0 -15
- package/dist/common.d.cts.map +0 -1
- package/dist/common.d.ts.map +0 -1
- package/dist/complex/counter.cjs +0 -21
- package/dist/complex/counter.d.cts +0 -15
- package/dist/complex/counter.d.cts.map +0 -1
- package/dist/complex/global-config.cjs +0 -46
- package/dist/complex/global-config.d.cts +0 -11
- package/dist/complex/global-config.d.cts.map +0 -1
- package/dist/complex/global-config.d.ts.map +0 -1
- package/dist/complex/index.cjs +0 -19
- package/dist/complex/index.d.cts +0 -4
- package/dist/complex/index.d.cts.map +0 -1
- package/dist/complex/index.d.ts +0 -4
- package/dist/complex/index.d.ts.map +0 -1
- package/dist/complex/index.js +0 -3
- package/dist/complex/modules-factory.cjs +0 -50
- package/dist/complex/modules-factory.d.cts +0 -49
- package/dist/complex/modules-factory.d.cts.map +0 -1
- package/dist/complex/modules-factory.d.ts.map +0 -1
- package/dist/cookie.cjs +0 -13
- package/dist/cookie.d.cts +0 -3
- package/dist/cookie.d.cts.map +0 -1
- package/dist/cookie.d.ts +0 -3
- package/dist/css.cjs +0 -28
- package/dist/css.d.cts +0 -36
- package/dist/css.d.cts.map +0 -1
- package/dist/data.cjs +0 -58
- package/dist/data.d.cts +0 -4
- package/dist/data.d.cts.map +0 -1
- package/dist/date-time.cjs +0 -171
- package/dist/date-time.d.cts +0 -28
- package/dist/date-time.d.cts.map +0 -1
- package/dist/date-time.d.ts.map +0 -1
- package/dist/device.cjs +0 -28
- package/dist/device.d.cts +0 -8
- package/dist/device.d.cts.map +0 -1
- package/dist/encodings.cjs +0 -270
- package/dist/encodings.d.cts +0 -2
- package/dist/encodings.d.cts.map +0 -1
- package/dist/errors.cjs +0 -34
- package/dist/errors.d.cts +0 -19
- package/dist/errors.d.cts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/file.cjs +0 -29
- package/dist/file.d.cts +0 -3
- package/dist/file.d.cts.map +0 -1
- package/dist/format/_exports.cjs +0 -20
- package/dist/format/_exports.d.cts +0 -5
- package/dist/format/_exports.d.cts.map +0 -1
- package/dist/format/_exports.d.ts +0 -5
- package/dist/format/_exports.d.ts.map +0 -1
- package/dist/format/_exports.js +0 -4
- package/dist/format/constants.cjs +0 -6
- package/dist/format/constants.d.cts +0 -4
- package/dist/format/constants.d.cts.map +0 -1
- package/dist/format/index.cjs +0 -40
- package/dist/format/index.d.cts +0 -3
- package/dist/format/index.d.cts.map +0 -1
- package/dist/format/index.d.ts +0 -3
- package/dist/format/number.cjs +0 -48
- package/dist/format/number.d.cts +0 -36
- package/dist/format/number.d.cts.map +0 -1
- package/dist/format/number.d.ts.map +0 -1
- package/dist/format/percent.cjs +0 -27
- package/dist/format/percent.d.cts +0 -15
- package/dist/format/percent.d.cts.map +0 -1
- package/dist/format/percent.d.ts.map +0 -1
- package/dist/format/skip-spaces.cjs +0 -8
- package/dist/format/skip-spaces.d.cts +0 -5
- package/dist/format/skip-spaces.d.cts.map +0 -1
- package/dist/html.cjs +0 -202
- package/dist/html.d.cts +0 -44
- package/dist/html.d.cts.map +0 -1
- package/dist/html.d.ts.map +0 -1
- package/dist/id.cjs +0 -76
- package/dist/id.d.cts +0 -63
- package/dist/id.d.cts.map +0 -1
- package/dist/imports.cjs +0 -45
- package/dist/imports.d.cts +0 -15
- package/dist/imports.d.cts.map +0 -1
- package/dist/math.cjs +0 -23
- package/dist/math.d.cts +0 -13
- package/dist/math.d.cts.map +0 -1
- package/dist/math.d.ts.map +0 -1
- package/dist/media.cjs +0 -115
- package/dist/media.d.cts +0 -20
- package/dist/media.d.cts.map +0 -1
- package/dist/mobx/apply-observable.cjs +0 -16
- package/dist/mobx/apply-observable.d.cts +0 -4
- package/dist/mobx/apply-observable.d.cts.map +0 -1
- package/dist/mobx/apply-observable.d.ts.map +0 -1
- package/dist/mobx/create-enhanced-atom.cjs +0 -16
- package/dist/mobx/create-enhanced-atom.d.cts +0 -11
- package/dist/mobx/create-enhanced-atom.d.cts.map +0 -1
- package/dist/mobx/create-enhanced-atom.d.ts.map +0 -1
- package/dist/mobx/deep-observable-struct.cjs +0 -61
- package/dist/mobx/deep-observable-struct.d.cts +0 -7
- package/dist/mobx/deep-observable-struct.d.cts.map +0 -1
- package/dist/mobx/deep-observable-struct.d.ts.map +0 -1
- package/dist/mobx/get-mobx-administration.cjs +0 -6
- package/dist/mobx/get-mobx-administration.d.cts +0 -6
- package/dist/mobx/get-mobx-administration.d.cts.map +0 -1
- package/dist/mobx/get-mobx-administration.d.ts.map +0 -1
- package/dist/mobx/index.cjs +0 -21
- package/dist/mobx/index.d.cts +0 -6
- package/dist/mobx/index.d.cts.map +0 -1
- package/dist/mobx/index.d.ts +0 -6
- package/dist/mobx/index.d.ts.map +0 -1
- package/dist/mobx/index.js +0 -5
- package/dist/mobx/lazy-observe.cjs +0 -47
- package/dist/mobx/lazy-observe.d.cts +0 -8
- package/dist/mobx/lazy-observe.d.cts.map +0 -1
- package/dist/ms.cjs +0 -22
- package/dist/ms.d.cts +0 -19
- package/dist/ms.d.cts.map +0 -1
- package/dist/number.cjs +0 -16
- package/dist/number.d.cts +0 -8
- package/dist/number.d.cts.map +0 -1
- package/dist/parser/_exports.cjs +0 -19
- package/dist/parser/_exports.d.cts +0 -4
- package/dist/parser/_exports.d.cts.map +0 -1
- package/dist/parser/_exports.d.ts +0 -4
- package/dist/parser/_exports.d.ts.map +0 -1
- package/dist/parser/_exports.js +0 -3
- package/dist/parser/index.cjs +0 -40
- package/dist/parser/index.d.cts +0 -3
- package/dist/parser/index.d.cts.map +0 -1
- package/dist/parser/index.d.ts +0 -3
- package/dist/parser/number.cjs +0 -48
- package/dist/parser/number.d.cts +0 -21
- package/dist/parser/number.d.cts.map +0 -1
- package/dist/parser/number.d.ts.map +0 -1
- package/dist/parser/percent.cjs +0 -8
- package/dist/parser/percent.d.cts +0 -4
- package/dist/parser/percent.d.cts.map +0 -1
- package/dist/parser/percent.d.ts.map +0 -1
- package/dist/parser/string.cjs +0 -18
- package/dist/parser/string.d.cts +0 -7
- package/dist/parser/string.d.cts.map +0 -1
- package/dist/parser/string.d.ts.map +0 -1
- package/dist/price.cjs +0 -21
- package/dist/price.d.cts +0 -6
- package/dist/price.d.cts.map +0 -1
- package/dist/random.cjs +0 -25
- package/dist/random.d.cts +0 -9
- package/dist/random.d.cts.map +0 -1
- package/dist/react/hooks/index.cjs +0 -37
- package/dist/react/hooks/index.d.cts +0 -22
- package/dist/react/hooks/index.d.cts.map +0 -1
- package/dist/react/hooks/index.d.ts +0 -22
- package/dist/react/hooks/index.d.ts.map +0 -1
- package/dist/react/hooks/index.js +0 -21
- package/dist/react/hooks/use-abort-controller.cjs +0 -15
- package/dist/react/hooks/use-abort-controller.d.cts +0 -2
- package/dist/react/hooks/use-abort-controller.d.cts.map +0 -1
- package/dist/react/hooks/use-abort-signal.cjs +0 -8
- package/dist/react/hooks/use-abort-signal.d.cts +0 -2
- package/dist/react/hooks/use-abort-signal.d.cts.map +0 -1
- package/dist/react/hooks/use-click-outside.cjs +0 -17
- package/dist/react/hooks/use-click-outside.d.cts +0 -9
- package/dist/react/hooks/use-click-outside.d.cts.map +0 -1
- package/dist/react/hooks/use-constant.cjs +0 -19
- package/dist/react/hooks/use-constant.d.cts +0 -9
- package/dist/react/hooks/use-constant.d.cts.map +0 -1
- package/dist/react/hooks/use-define-ref.cjs +0 -19
- package/dist/react/hooks/use-define-ref.d.cts +0 -10
- package/dist/react/hooks/use-define-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-element-ref.cjs +0 -12
- package/dist/react/hooks/use-element-ref.d.cts +0 -2
- package/dist/react/hooks/use-element-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-event-listener.cjs +0 -17
- package/dist/react/hooks/use-event-listener.d.cts +0 -8
- package/dist/react/hooks/use-event-listener.d.cts.map +0 -1
- package/dist/react/hooks/use-event.cjs +0 -23
- package/dist/react/hooks/use-event.d.cts +0 -3
- package/dist/react/hooks/use-event.d.cts.map +0 -1
- package/dist/react/hooks/use-event.d.ts +0 -3
- package/dist/react/hooks/use-flag.cjs +0 -19
- package/dist/react/hooks/use-flag.d.cts +0 -8
- package/dist/react/hooks/use-flag.d.cts.map +0 -1
- package/dist/react/hooks/use-force-update.cjs +0 -11
- package/dist/react/hooks/use-force-update.d.cts +0 -2
- package/dist/react/hooks/use-force-update.d.cts.map +0 -1
- package/dist/react/hooks/use-initial-height.cjs +0 -15
- package/dist/react/hooks/use-initial-height.d.cts +0 -5
- package/dist/react/hooks/use-initial-height.d.cts.map +0 -1
- package/dist/react/hooks/use-instance.cjs +0 -31
- package/dist/react/hooks/use-instance.d.cts +0 -27
- package/dist/react/hooks/use-instance.d.cts.map +0 -1
- package/dist/react/hooks/use-intersection-observer.cjs +0 -14
- package/dist/react/hooks/use-intersection-observer.d.cts +0 -2
- package/dist/react/hooks/use-intersection-observer.d.cts.map +0 -1
- package/dist/react/hooks/use-last-defined-value.cjs +0 -12
- package/dist/react/hooks/use-last-defined-value.d.cts +0 -2
- package/dist/react/hooks/use-last-defined-value.d.cts.map +0 -1
- package/dist/react/hooks/use-last-value-ref.cjs +0 -12
- package/dist/react/hooks/use-last-value-ref.d.cts +0 -2
- package/dist/react/hooks/use-last-value-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-life-cycle.cjs +0 -14
- package/dist/react/hooks/use-life-cycle.d.cts +0 -5
- package/dist/react/hooks/use-life-cycle.d.cts.map +0 -1
- package/dist/react/hooks/use-resize-observer.cjs +0 -15
- package/dist/react/hooks/use-resize-observer.d.cts +0 -2
- package/dist/react/hooks/use-resize-observer.d.cts.map +0 -1
- package/dist/react/hooks/use-sync-ref.cjs +0 -10
- package/dist/react/hooks/use-sync-ref.d.cts +0 -2
- package/dist/react/hooks/use-sync-ref.d.cts.map +0 -1
- package/dist/react/hooks/use-toggle.cjs +0 -10
- package/dist/react/hooks/use-toggle.d.cts +0 -2
- package/dist/react/hooks/use-toggle.d.cts.map +0 -1
- package/dist/react/hooks/use-value.cjs +0 -12
- package/dist/react/hooks/use-value.d.cts +0 -5
- package/dist/react/hooks/use-value.d.cts.map +0 -1
- package/dist/react/hooks/use-visibility-state.cjs +0 -18
- package/dist/react/hooks/use-visibility-state.d.cts +0 -2
- package/dist/react/hooks/use-visibility-state.d.cts.map +0 -1
- package/dist/react/index.cjs +0 -17
- package/dist/react/index.d.cts +0 -2
- package/dist/react/index.d.cts.map +0 -1
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js +0 -1
- package/dist/sound.cjs +0 -16
- package/dist/sound.d.cts +0 -7
- package/dist/sound.d.cts.map +0 -1
- package/dist/storage.cjs +0 -48
- package/dist/storage.d.cts +0 -39
- package/dist/storage.d.cts.map +0 -1
- package/dist/text.cjs +0 -53
- package/dist/text.d.cts +0 -15
- package/dist/text.d.cts.map +0 -1
- package/dist/type-guard/_exports.cjs +0 -129
- package/dist/type-guard/_exports.d.cts +0 -86
- package/dist/type-guard/_exports.d.cts.map +0 -1
- package/dist/type-guard/_exports.d.ts.map +0 -1
- package/dist/type-guard/index.cjs +0 -40
- package/dist/type-guard/index.d.cts +0 -3
- package/dist/type-guard/index.d.cts.map +0 -1
- package/dist/type-guard/index.d.ts +0 -3
- package/dist/utils/types.cjs +0 -2
- package/dist/utils/types.d.cts +0 -395
- package/dist/utils/types.d.cts.map +0 -1
- package/dist/utils/types.d.ts +0 -395
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -1
- package/dist/vibrate.cjs +0 -12
- package/dist/vibrate.d.cts +0 -5
- package/dist/vibrate.d.cts.map +0 -1
- package/utils/types.cjs +0 -2
- package/utils/types.d.cts +0 -395
- package/utils/types.d.cts.map +0 -1
- /package/{dist/async.d.ts → async.d.ts} +0 -0
- /package/{dist/async.d.ts.map → async.d.ts.map} +0 -0
- /package/{dist/async.js → async.js} +0 -0
- /package/{dist/common.js → common.js} +0 -0
- /package/{dist/complex → complex}/counter.d.ts +0 -0
- /package/{dist/complex → complex}/counter.d.ts.map +0 -0
- /package/{dist/complex → complex}/counter.js +0 -0
- /package/{dist/complex → complex}/global-config.js +0 -0
- /package/{dist/complex → complex}/modules-factory.js +0 -0
- /package/{dist/cookie.js → cookie.js} +0 -0
- /package/{dist/css.d.ts → css.d.ts} +0 -0
- /package/{dist/css.d.ts.map → css.d.ts.map} +0 -0
- /package/{dist/css.js → css.js} +0 -0
- /package/{dist/data.d.ts → data.d.ts} +0 -0
- /package/{dist/data.d.ts.map → data.d.ts.map} +0 -0
- /package/{dist/data.js → data.js} +0 -0
- /package/{dist/device.d.ts → device.d.ts} +0 -0
- /package/{dist/device.d.ts.map → device.d.ts.map} +0 -0
- /package/{dist/device.js → device.js} +0 -0
- /package/{dist/encodings.d.ts → encodings.d.ts} +0 -0
- /package/{dist/encodings.d.ts.map → encodings.d.ts.map} +0 -0
- /package/{dist/encodings.js → encodings.js} +0 -0
- /package/{dist/file.d.ts → file.d.ts} +0 -0
- /package/{dist/file.d.ts.map → file.d.ts.map} +0 -0
- /package/{dist/file.js → file.js} +0 -0
- /package/{dist/format → format}/constants.d.ts +0 -0
- /package/{dist/format → format}/constants.d.ts.map +0 -0
- /package/{dist/format → format}/constants.js +0 -0
- /package/{dist/format → format}/skip-spaces.d.ts +0 -0
- /package/{dist/format → format}/skip-spaces.d.ts.map +0 -0
- /package/{dist/format → format}/skip-spaces.js +0 -0
- /package/{dist/id.d.ts → id.d.ts} +0 -0
- /package/{dist/id.d.ts.map → id.d.ts.map} +0 -0
- /package/{dist/id.js → id.js} +0 -0
- /package/{dist/imports.d.ts → imports.d.ts} +0 -0
- /package/{dist/imports.d.ts.map → imports.d.ts.map} +0 -0
- /package/{dist/math.js → math.js} +0 -0
- /package/{dist/media.d.ts → media.d.ts} +0 -0
- /package/{dist/media.d.ts.map → media.d.ts.map} +0 -0
- /package/{dist/mobx → mobx}/apply-observable.js +0 -0
- /package/{dist/mobx → mobx}/create-enhanced-atom.js +0 -0
- /package/{dist/mobx → mobx}/get-mobx-administration.js +0 -0
- /package/{dist/mobx → mobx}/lazy-observe.d.ts +0 -0
- /package/{dist/mobx → mobx}/lazy-observe.d.ts.map +0 -0
- /package/{dist/mobx → mobx}/lazy-observe.js +0 -0
- /package/{dist/ms.d.ts → ms.d.ts} +0 -0
- /package/{dist/ms.d.ts.map → ms.d.ts.map} +0 -0
- /package/{dist/ms.js → ms.js} +0 -0
- /package/{dist/number.d.ts → number.d.ts} +0 -0
- /package/{dist/number.d.ts.map → number.d.ts.map} +0 -0
- /package/{dist/number.js → number.js} +0 -0
- /package/{dist/price.d.ts → price.d.ts} +0 -0
- /package/{dist/price.d.ts.map → price.d.ts.map} +0 -0
- /package/{dist/price.js → price.js} +0 -0
- /package/{dist/random.d.ts → random.d.ts} +0 -0
- /package/{dist/random.d.ts.map → random.d.ts.map} +0 -0
- /package/{dist/random.js → random.js} +0 -0
- /package/{dist/react → react}/hooks/use-abort-controller.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-abort-controller.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-abort-signal.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-abort-signal.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-click-outside.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-click-outside.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-constant.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-constant.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-constant.js +0 -0
- /package/{dist/react → react}/hooks/use-define-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-define-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-define-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-element-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-element-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-element-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-event-listener.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-event-listener.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-event.js +0 -0
- /package/{dist/react → react}/hooks/use-flag.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-flag.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-flag.js +0 -0
- /package/{dist/react → react}/hooks/use-force-update.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-force-update.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-force-update.js +0 -0
- /package/{dist/react → react}/hooks/use-initial-height.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-initial-height.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-initial-height.js +0 -0
- /package/{dist/react → react}/hooks/use-instance.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-instance.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-intersection-observer.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-intersection-observer.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-intersection-observer.js +0 -0
- /package/{dist/react → react}/hooks/use-last-defined-value.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-last-defined-value.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-last-defined-value.js +0 -0
- /package/{dist/react → react}/hooks/use-last-value-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-last-value-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-last-value-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-life-cycle.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-life-cycle.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-resize-observer.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-resize-observer.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-sync-ref.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-sync-ref.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-sync-ref.js +0 -0
- /package/{dist/react → react}/hooks/use-toggle.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-toggle.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-toggle.js +0 -0
- /package/{dist/react → react}/hooks/use-value.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-value.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-value.js +0 -0
- /package/{dist/react → react}/hooks/use-visibility-state.d.ts +0 -0
- /package/{dist/react → react}/hooks/use-visibility-state.d.ts.map +0 -0
- /package/{dist/react → react}/hooks/use-visibility-state.js +0 -0
- /package/{dist/sound.d.ts → sound.d.ts} +0 -0
- /package/{dist/sound.d.ts.map → sound.d.ts.map} +0 -0
- /package/{dist/sound.js → sound.js} +0 -0
- /package/{dist/storage.d.ts → storage.d.ts} +0 -0
- /package/{dist/storage.d.ts.map → storage.d.ts.map} +0 -0
- /package/{dist/storage.js → storage.js} +0 -0
- /package/{dist/text.d.ts → text.d.ts} +0 -0
- /package/{dist/text.d.ts.map → text.d.ts.map} +0 -0
- /package/{dist/text.js → text.js} +0 -0
- /package/{dist/type-guard → type-guard}/_exports.js +0 -0
- /package/{dist/vibrate.d.ts → vibrate.d.ts} +0 -0
- /package/{dist/vibrate.d.ts.map → vibrate.d.ts.map} +0 -0
- /package/{dist/vibrate.js → vibrate.js} +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { AnyObject, Class, EmptyObject, IsPartial } from "../utils/types.cjs";
|
|
2
|
-
type ModuleLoaderConfig<TPredefinedDeps extends AnyObject = EmptyObject> = {
|
|
3
|
-
factory<TInstance, TDeps extends TPredefinedDeps>(moduleClass: Class<TInstance, [TDeps]>, deps: TDeps): TInstance;
|
|
4
|
-
} & (TPredefinedDeps extends EmptyObject ? {
|
|
5
|
-
deps?: TPredefinedDeps;
|
|
6
|
-
} : {
|
|
7
|
-
deps: TPredefinedDeps;
|
|
8
|
-
});
|
|
9
|
-
/**
|
|
10
|
-
* Класс `ModulesFactory` является универсальной фабрикой для создания экземпляров указанного класса с зависимостями.
|
|
11
|
-
* Он использует объект конфигурации для определения того, как эти экземпляры создаются.
|
|
12
|
-
*
|
|
13
|
-
* Важное примечание - эта сущность работает только с классами конструктор которых имеет один параметр
|
|
14
|
-
*
|
|
15
|
-
* @template TPredefinedDeps - Тип, расширяющий `AnyObject`, представляющий предопределенные зависимости, которые использует фабрика.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```
|
|
19
|
-
* const factory = new ModulesFactory({
|
|
20
|
-
* factory: (MyClass, deps) => new MyClass(deps),
|
|
21
|
-
* deps: { someDependency: new Dependency() }
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* const instance = factory.create(MyClass, { extraDependency: new ExtraDependency() });
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare class ModulesFactory<TPredefinedDeps extends AnyObject = EmptyObject> {
|
|
28
|
-
private config;
|
|
29
|
-
/**
|
|
30
|
-
* Создает новый экземпляр `ModulesFactory`.
|
|
31
|
-
*
|
|
32
|
-
* @param config - Объект конфигурации для фабрики, включающий функцию фабрики и необязательные зависимости.
|
|
33
|
-
*/
|
|
34
|
-
constructor(config: ModuleLoaderConfig<TPredefinedDeps>);
|
|
35
|
-
/**
|
|
36
|
-
* Создает экземпляр указанного класса, внедряя необходимые зависимости.
|
|
37
|
-
*
|
|
38
|
-
* @template TInstance - Тип создаваемого экземпляра.
|
|
39
|
-
* @template TDeps - Тип зависимостей, необходимых для экземпляра.
|
|
40
|
-
*
|
|
41
|
-
* @param Constructor - Конструктор класса для создаваемого экземпляра.
|
|
42
|
-
* @param args - Необязательные дополнительные зависимости для объединения с предопределенными зависимостями.
|
|
43
|
-
*
|
|
44
|
-
* @returns Экземпляр указанного класса с внедренными зависимостями.
|
|
45
|
-
*/
|
|
46
|
-
create<TInstance, TDeps extends TPredefinedDeps = TPredefinedDeps>(Constructor: Class<TInstance, [TDeps]>, ...args: IsPartial<Omit<TDeps, keyof TPredefinedDeps>> extends true ? [extraDeps?: Omit<TDeps, keyof TPredefinedDeps>] : [extraDeps: Omit<TDeps, keyof TPredefinedDeps>]): TInstance;
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
49
|
-
//# sourceMappingURL=modules-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules-factory.d.ts","sourceRoot":"","sources":["../../src/complex/modules-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,EACV,2BAA0B;AAE3B,KAAK,kBAAkB,CAAC,eAAe,SAAS,SAAS,GAAG,WAAW,IAAI;IACzE,OAAO,CAAC,SAAS,EAAE,KAAK,SAAS,eAAe,EAC9C,WAAW,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EACtC,IAAI,EAAE,KAAK,GACV,SAAS,CAAC;CACd,GAAG,CAAC,eAAe,SAAS,WAAW,GACpC;IAAE,IAAI,CAAC,EAAE,eAAe,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc,CAAC,eAAe,SAAS,SAAS,GAAG,WAAW;IAM7D,OAAO,CAAC,MAAM;IAL1B;;;;OAIG;gBACiB,MAAM,EAAE,kBAAkB,CAAC,eAAe,CAAC;IAE/D;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,KAAK,SAAS,eAAe,GAAG,eAAe,EAC/D,WAAW,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EACtC,GAAG,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC,SAAS,IAAI,GAC/D,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC,GAChD,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC;CAOtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules-factory.d.ts","sourceRoot":"","sources":["../../src/complex/modules-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,EACV,0BAA0B;AAE3B,KAAK,kBAAkB,CAAC,eAAe,SAAS,SAAS,GAAG,WAAW,IAAI;IACzE,OAAO,CAAC,SAAS,EAAE,KAAK,SAAS,eAAe,EAC9C,WAAW,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EACtC,IAAI,EAAE,KAAK,GACV,SAAS,CAAC;CACd,GAAG,CAAC,eAAe,SAAS,WAAW,GACpC;IAAE,IAAI,CAAC,EAAE,eAAe,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc,CAAC,eAAe,SAAS,SAAS,GAAG,WAAW;IAM7D,OAAO,CAAC,MAAM;IAL1B;;;;OAIG;gBACiB,MAAM,EAAE,kBAAkB,CAAC,eAAe,CAAC;IAE/D;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,KAAK,SAAS,eAAe,GAAG,eAAe,EAC/D,WAAW,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EACtC,GAAG,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC,SAAS,IAAI,GAC/D,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC,GAChD,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,eAAe,CAAC,CAAC;CAOtD"}
|
package/dist/cookie.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseCookie = void 0;
|
|
4
|
-
const parseCookie = (cookiesString = document.cookie) => {
|
|
5
|
-
return cookiesString
|
|
6
|
-
.split(';')
|
|
7
|
-
.map((cookieString) => cookieString.trim().split('='))
|
|
8
|
-
.reduce((acc, current) => {
|
|
9
|
-
acc[current[0]] = current[1];
|
|
10
|
-
return acc;
|
|
11
|
-
}, {});
|
|
12
|
-
};
|
|
13
|
-
exports.parseCookie = parseCookie;
|
package/dist/cookie.d.cts
DELETED
package/dist/cookie.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../src/cookie.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAyB;AAElD,eAAO,MAAM,WAAW,GAAI,sBAA+B,cAQ1D,CAAC"}
|
package/dist/cookie.d.ts
DELETED
package/dist/css.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.cva = exports.cx = exports.toRem = void 0;
|
|
7
|
-
const class_variance_authority_1 = require("class-variance-authority");
|
|
8
|
-
const clsx_1 = __importDefault(require("clsx"));
|
|
9
|
-
const tailwind_merge_1 = require("tailwind-merge");
|
|
10
|
-
/**
|
|
11
|
-
* Перевод значения в пикселях в rem строковое
|
|
12
|
-
*/
|
|
13
|
-
const toRem = (px, remValue = 16) => `${px / remValue}rem`;
|
|
14
|
-
exports.toRem = toRem;
|
|
15
|
-
/**
|
|
16
|
-
* classNames/clsx но с примесями tailwind-merge
|
|
17
|
-
*/
|
|
18
|
-
const cx = (...args) => (0, tailwind_merge_1.twMerge)((0, clsx_1.default)(...args));
|
|
19
|
-
exports.cx = cx;
|
|
20
|
-
/**
|
|
21
|
-
* Class Variance Authority но с примесями tailwind-merge
|
|
22
|
-
*
|
|
23
|
-
* https://cva.style/docs
|
|
24
|
-
*/
|
|
25
|
-
exports.cva = ((...args) => {
|
|
26
|
-
const schema = (0, class_variance_authority_1.cva)(...args);
|
|
27
|
-
return (...inputArgs) => (0, tailwind_merge_1.twMerge)(schema(...inputArgs));
|
|
28
|
-
});
|
package/dist/css.d.cts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import clsx, { type ClassValue } from 'clsx';
|
|
2
|
-
type ClassProp = {
|
|
3
|
-
class?: ClassValue;
|
|
4
|
-
className?: ClassValue;
|
|
5
|
-
};
|
|
6
|
-
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T;
|
|
7
|
-
/**
|
|
8
|
-
* Перевод значения в пикселях в rem строковое
|
|
9
|
-
*/
|
|
10
|
-
export declare const toRem: (px: number, remValue?: number) => string;
|
|
11
|
-
/**
|
|
12
|
-
* classNames/clsx но с примесями tailwind-merge
|
|
13
|
-
*/
|
|
14
|
-
export declare const cx: (...args: Parameters<typeof clsx>) => string;
|
|
15
|
-
type ConfigSchema = Record<string, Record<string, ClassValue>>;
|
|
16
|
-
type ConfigVariants<T extends ConfigSchema> = {
|
|
17
|
-
[Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | null | undefined;
|
|
18
|
-
};
|
|
19
|
-
type ConfigVariantsMulti<T extends ConfigSchema> = {
|
|
20
|
-
[Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | StringToBoolean<keyof T[Variant]>[] | undefined;
|
|
21
|
-
};
|
|
22
|
-
type Config<T> = T extends ConfigSchema ? {
|
|
23
|
-
variants?: T;
|
|
24
|
-
defaultVariants?: ConfigVariants<T>;
|
|
25
|
-
compoundVariants?: (T extends ConfigSchema ? (ConfigVariants<T> | ConfigVariantsMulti<T>) & ClassProp : ClassProp)[];
|
|
26
|
-
} : never;
|
|
27
|
-
type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
|
|
28
|
-
/**
|
|
29
|
-
* Class Variance Authority но с примесями tailwind-merge
|
|
30
|
-
*
|
|
31
|
-
* https://cva.style/docs
|
|
32
|
-
*/
|
|
33
|
-
export declare const cva: <T>(base?: ClassValue, config?: Config<T>) => (props?: Props<T>) => string;
|
|
34
|
-
export type { VariantProps } from 'class-variance-authority';
|
|
35
|
-
export type { ClassValue } from 'clsx';
|
|
36
|
-
//# sourceMappingURL=css.d.ts.map
|
package/dist/css.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../src/css.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,KAAK,SAAS,GAAG;IACf,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,KAAK,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,EAAE,iBAAa,WAA0B,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,MAAM,UAAU,CAAC,OAAO,IAAI,CAAC,WAA2B,CAAC;AAE/E,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAC/D,KAAK,cAAc,CAAC,CAAC,SAAS,YAAY,IAAI;KAC3C,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAC5E,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,SAAS,YAAY,IAAI;KAChD,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EACjB,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GACjC,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GACnC,SAAS;CACd,CAAC;AACF,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,GACnC;IACE,QAAQ,CAAC,EAAE,CAAC,CAAC;IACb,eAAe,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,CAAC,CAAC,SAAS,YAAY,GACtC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GACxD,SAAS,CAAC,EAAE,CAAC;CAClB,GACD,KAAK,CAAC;AAEV,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,GAClC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAC7B,SAAS,CAAC;AAEd;;;;GAIG;AACH,eAAO,MAAM,GAAG,EAGH,CAAC,CAAC,EACb,IAAI,CAAC,EAAE,UAAU,EACjB,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,KACf,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAElC,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC"}
|
package/dist/data.cjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.safeJsonParse = exports.flatMapDeep = exports.isShallowEqual = void 0;
|
|
4
|
-
const isShallowEqual = (a, b) => {
|
|
5
|
-
if (a === b)
|
|
6
|
-
return true;
|
|
7
|
-
if (typeof a !== 'object' ||
|
|
8
|
-
typeof b !== 'object' ||
|
|
9
|
-
a === null ||
|
|
10
|
-
b === null) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
if (a.constructor !== b.constructor)
|
|
14
|
-
return false;
|
|
15
|
-
const isArrayA = Array.isArray(a);
|
|
16
|
-
if (isArrayA !== Array.isArray(b))
|
|
17
|
-
return false;
|
|
18
|
-
if (isArrayA) {
|
|
19
|
-
const arrA = a;
|
|
20
|
-
const arrB = b;
|
|
21
|
-
if (arrA.length !== arrB.length)
|
|
22
|
-
return false;
|
|
23
|
-
for (const [i, element] of arrA.entries()) {
|
|
24
|
-
if (element !== arrB[i])
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
if (a instanceof Date)
|
|
30
|
-
return a.getTime() === b.getTime();
|
|
31
|
-
if (a instanceof RegExp)
|
|
32
|
-
return a.toString() === b.toString();
|
|
33
|
-
const aKeys = Object.keys(a);
|
|
34
|
-
const bKeys = Object.keys(b);
|
|
35
|
-
if (aKeys.length !== bKeys.length)
|
|
36
|
-
return false;
|
|
37
|
-
const bObj = b;
|
|
38
|
-
for (const key of aKeys) {
|
|
39
|
-
if (!Object.hasOwn(bObj, key) || a[key] !== bObj[key]) {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return true;
|
|
44
|
-
};
|
|
45
|
-
exports.isShallowEqual = isShallowEqual;
|
|
46
|
-
const flatMapDeep = (arr, fn) => Array.isArray(arr)
|
|
47
|
-
? arr.flatMap((c) => (0, exports.flatMapDeep)(c, fn))
|
|
48
|
-
: [fn(arr, 0, [arr])];
|
|
49
|
-
exports.flatMapDeep = flatMapDeep;
|
|
50
|
-
const safeJsonParse = (json) => {
|
|
51
|
-
try {
|
|
52
|
-
return JSON.parse(json);
|
|
53
|
-
}
|
|
54
|
-
catch {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
exports.safeJsonParse = safeJsonParse;
|
package/dist/data.d.cts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const isShallowEqual: (a: unknown, b: unknown) => boolean;
|
|
2
|
-
export declare const flatMapDeep: <TSource, TNewValue>(arr: TSource | TSource[], fn: (value: TSource, i: number, arr: TSource[]) => TNewValue) => TNewValue[];
|
|
3
|
-
export declare const safeJsonParse: (json: string) => any;
|
|
4
|
-
//# sourceMappingURL=data.d.ts.map
|
package/dist/data.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,GAAG,OAAO,EAAE,GAAG,OAAO,KAAG,OA8CvD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,EAAE,SAAS,EAC5C,KAAK,OAAO,GAAG,OAAO,EAAE,EACxB,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,SAAS,KAC3D,SAAS,EAGa,CAAC;AAE1B,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,QAMzC,CAAC"}
|
package/dist/date-time.cjs
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.timeDuration = exports.changeDate = exports.dayTimeDuration = exports.formatDate = void 0;
|
|
7
|
-
exports.getFormatDuration = getFormatDuration;
|
|
8
|
-
const dayjs_1 = __importDefault(require("dayjs"));
|
|
9
|
-
const duration_js_1 = __importDefault(require("dayjs/plugin/duration.js"));
|
|
10
|
-
const relativeTime_js_1 = __importDefault(require("dayjs/plugin/relativeTime.js"));
|
|
11
|
-
const index_js_1 = require("./format/index.cjs");
|
|
12
|
-
const ms_js_1 = require("./ms.cjs");
|
|
13
|
-
const text_js_1 = require("./text.cjs");
|
|
14
|
-
const index_js_2 = require("./type-guard/index.cjs");
|
|
15
|
-
require("dayjs/locale/ru.js");
|
|
16
|
-
dayjs_1.default.extend(relativeTime_js_1.default);
|
|
17
|
-
dayjs_1.default.extend(duration_js_1.default);
|
|
18
|
-
dayjs_1.default.locale('ru');
|
|
19
|
-
const toLibFormat = (value, asTime) => {
|
|
20
|
-
if (index_js_2.typeGuard.isNumber(value)) {
|
|
21
|
-
if (asTime) {
|
|
22
|
-
return dayjs_1.default.duration(value);
|
|
23
|
-
}
|
|
24
|
-
return (0, dayjs_1.default)(value);
|
|
25
|
-
}
|
|
26
|
-
else if (dayjs_1.default.isDayjs(value)) {
|
|
27
|
-
return value;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return (0, dayjs_1.default)(value);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const formatDate = (value, settings) => {
|
|
34
|
-
const dateFormat = settings?.format;
|
|
35
|
-
const datePattern = settings?.pattern;
|
|
36
|
-
const asTime = settings?.asTime;
|
|
37
|
-
value = toLibFormat(value, asTime);
|
|
38
|
-
if (index_js_2.typeGuard.isUndefined(value) || !value.isValid()) {
|
|
39
|
-
return index_js_1.format.NO_VALUE;
|
|
40
|
-
}
|
|
41
|
-
if (datePattern) {
|
|
42
|
-
return value.format(datePattern);
|
|
43
|
-
}
|
|
44
|
-
switch (dateFormat) {
|
|
45
|
-
case 'human': {
|
|
46
|
-
return value.fromNow();
|
|
47
|
-
}
|
|
48
|
-
case 'spent-time': {
|
|
49
|
-
return value.fromNow(true);
|
|
50
|
-
}
|
|
51
|
-
case 'full': {
|
|
52
|
-
return value.format('DD MMM YYYY HH:mm:ss');
|
|
53
|
-
}
|
|
54
|
-
case 'short': {
|
|
55
|
-
return value.format('DD MMM HH:mm');
|
|
56
|
-
}
|
|
57
|
-
case 'time': {
|
|
58
|
-
return value.format('HH:mm:ss');
|
|
59
|
-
}
|
|
60
|
-
case 'time-short': {
|
|
61
|
-
return value.format('HH:mm');
|
|
62
|
-
}
|
|
63
|
-
case 'day': {
|
|
64
|
-
return value.format('DD MMM YYYY');
|
|
65
|
-
}
|
|
66
|
-
case 'month': {
|
|
67
|
-
return value.format('MMMM YYYY');
|
|
68
|
-
}
|
|
69
|
-
default: {
|
|
70
|
-
return value.format('DD.MM.YYYY');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
exports.formatDate = formatDate;
|
|
75
|
-
const dayTimeDuration = (timeInMs) => {
|
|
76
|
-
let left = Math.max(timeInMs, 0);
|
|
77
|
-
const days = Math.floor(left / ms_js_1.unitsToMs.day);
|
|
78
|
-
left = left % ms_js_1.unitsToMs.day;
|
|
79
|
-
const hours = Math.floor(left / ms_js_1.unitsToMs.hour);
|
|
80
|
-
left = left % ms_js_1.unitsToMs.hour;
|
|
81
|
-
const minutes = Math.floor(left / ms_js_1.unitsToMs.min);
|
|
82
|
-
left = left % ms_js_1.unitsToMs.min;
|
|
83
|
-
const seconds = Math.floor(left / ms_js_1.unitsToMs.sec);
|
|
84
|
-
left = left % ms_js_1.unitsToMs.sec;
|
|
85
|
-
const milliseconds = Math.floor(left);
|
|
86
|
-
return {
|
|
87
|
-
days,
|
|
88
|
-
hours,
|
|
89
|
-
minutes,
|
|
90
|
-
seconds,
|
|
91
|
-
milliseconds,
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
exports.dayTimeDuration = dayTimeDuration;
|
|
95
|
-
const changeDate = (date, ...args) => {
|
|
96
|
-
let wrappedDate = toLibFormat(date);
|
|
97
|
-
for (let i = 0; i < args.length; i += 2) {
|
|
98
|
-
const amount = args[i];
|
|
99
|
-
const unit = args[i + 1];
|
|
100
|
-
if (unit != null) {
|
|
101
|
-
wrappedDate = wrappedDate.add(amount, unit);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return wrappedDate.toDate();
|
|
105
|
-
};
|
|
106
|
-
exports.changeDate = changeDate;
|
|
107
|
-
const timeDuration = (timeInMs) => {
|
|
108
|
-
const { days, hours, milliseconds, minutes, seconds } = (0, exports.dayTimeDuration)(timeInMs);
|
|
109
|
-
return {
|
|
110
|
-
hours: hours + ms_js_1.unitsToMs.day * days,
|
|
111
|
-
milliseconds,
|
|
112
|
-
minutes,
|
|
113
|
-
seconds,
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
exports.timeDuration = timeDuration;
|
|
117
|
-
const durationFormatLabels = {
|
|
118
|
-
days: { compact: 'д', full: ['день', 'дня', 'дней'] },
|
|
119
|
-
hours: { compact: 'ч', full: ['час', 'часа', 'часов'] },
|
|
120
|
-
minutes: { compact: 'мин', full: ['минута', 'минуты', 'минут'] },
|
|
121
|
-
seconds: { compact: 'сек', full: ['секунда', 'секунды', 'секунд'] },
|
|
122
|
-
};
|
|
123
|
-
function getFormatDuration(...args) {
|
|
124
|
-
let compact = false;
|
|
125
|
-
let diff = 0;
|
|
126
|
-
if (args[0] instanceof Date) {
|
|
127
|
-
const startedDate = (0, dayjs_1.default)(args[0]);
|
|
128
|
-
const endedDate = (0, dayjs_1.default)(args[1]);
|
|
129
|
-
diff = endedDate.diff(startedDate, 'ms');
|
|
130
|
-
compact = args[2] === true;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
diff = args[0];
|
|
134
|
-
compact = args[1] === true;
|
|
135
|
-
}
|
|
136
|
-
const { days, hours, minutes, seconds } = (0, exports.dayTimeDuration)(diff);
|
|
137
|
-
const formattedParts = [];
|
|
138
|
-
if (days) {
|
|
139
|
-
if (compact) {
|
|
140
|
-
formattedParts.push(`${days} ${durationFormatLabels.days.compact}`);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
formattedParts.push(`${days} ${(0, text_js_1.declension)(days, durationFormatLabels.days.full)}`);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if (hours) {
|
|
147
|
-
if (compact) {
|
|
148
|
-
formattedParts.push(`${hours} ${durationFormatLabels.hours.compact}`);
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
formattedParts.push(`${hours} ${(0, text_js_1.declension)(hours, durationFormatLabels.hours.full)}`);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
if (minutes) {
|
|
155
|
-
if (compact) {
|
|
156
|
-
formattedParts.push(`${minutes} ${durationFormatLabels.minutes.compact}`);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
formattedParts.push(`${minutes} ${(0, text_js_1.declension)(minutes, durationFormatLabels.minutes.full)}`);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
if (seconds) {
|
|
163
|
-
if (compact) {
|
|
164
|
-
formattedParts.push(`${seconds} ${durationFormatLabels.seconds.compact}`);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
formattedParts.push(`${seconds} ${(0, text_js_1.declension)(seconds, durationFormatLabels.seconds.full)}`);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return formattedParts.join(' ');
|
|
171
|
-
}
|
package/dist/date-time.d.cts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type Dayjs, type ManipulateType } from 'dayjs';
|
|
2
|
-
import type { Maybe } from "./utils/types.cjs";
|
|
3
|
-
import 'dayjs/locale/ru.js';
|
|
4
|
-
export type RawDateToFormat = Date | string | number | Dayjs;
|
|
5
|
-
export declare const formatDate: (value: Maybe<RawDateToFormat>, settings?: Maybe<{
|
|
6
|
-
format?: "human" | "full" | "short" | "day" | "day-only" | "date" | "month" | "spent-time" | "time" | "time-short";
|
|
7
|
-
pattern?: string;
|
|
8
|
-
asTime?: boolean;
|
|
9
|
-
}>) => string;
|
|
10
|
-
export declare const dayTimeDuration: (timeInMs: number) => {
|
|
11
|
-
days: number;
|
|
12
|
-
hours: number;
|
|
13
|
-
minutes: number;
|
|
14
|
-
seconds: number;
|
|
15
|
-
milliseconds: number;
|
|
16
|
-
};
|
|
17
|
-
type DateChangeParam = [amount: number, unit?: Maybe<ManipulateType>];
|
|
18
|
-
export declare const changeDate: (date: Maybe<RawDateToFormat>, ...args: [...DateChangeParam, ...Partial<DateChangeParam>, ...Partial<DateChangeParam>, ...Partial<DateChangeParam>, ...Partial<DateChangeParam>, ...Partial<DateChangeParam>]) => Date;
|
|
19
|
-
export declare const timeDuration: (timeInMs: number) => {
|
|
20
|
-
hours: number;
|
|
21
|
-
milliseconds: number;
|
|
22
|
-
minutes: number;
|
|
23
|
-
seconds: number;
|
|
24
|
-
};
|
|
25
|
-
export declare function getFormatDuration(dateA: Date, dateB: Date, compact?: boolean): string;
|
|
26
|
-
export declare function getFormatDuration(ms: number, compact?: boolean): string;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=date-time.d.ts.map
|
package/dist/date-time.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../src/date-time.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ/D,OAAO,KAAK,EAAE,KAAK,EAAE,0BAAyB;AAE9C,OAAO,oBAAoB,CAAC;AAsB5B,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,eAAO,MAAM,UAAU,GACrB,OAAO,KAAK,CAAC,eAAe,CAAC,EAC7B,WAAW,KAAK,CAAC;IACf,MAAM,CAAC,EACH,OAAO,GACP,MAAM,GACN,OAAO,GACP,KAAK,GACL,UAAU,GACV,MAAM,GACN,OAAO,GACP,YAAY,GACZ,MAAM,GACN,YAAY,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,WA6CH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM;;;;;;CAwB/C,CAAC;AAEF,KAAK,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAEtE,eAAO,MAAM,UAAU,GACrB,MAAM,KAAK,CAAC,eAAe,CAAC,EAC5B,GAAG,MAAM,CACP,GAAG,eAAe,EAClB,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,CAC5B,SAaF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM;;;;;CAU5C,CAAC;AASF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,CAAC;AACV,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC"}
|
package/dist/date-time.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../src/date-time.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ/D,OAAO,KAAK,EAAE,KAAK,EAAE,yBAAyB;AAE9C,OAAO,oBAAoB,CAAC;AAsB5B,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,eAAO,MAAM,UAAU,GACrB,OAAO,KAAK,CAAC,eAAe,CAAC,EAC7B,WAAW,KAAK,CAAC;IACf,MAAM,CAAC,EACH,OAAO,GACP,MAAM,GACN,OAAO,GACP,KAAK,GACL,UAAU,GACV,MAAM,GACN,OAAO,GACP,YAAY,GACZ,MAAM,GACN,YAAY,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,WA6CH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM;;;;;;CAwB/C,CAAC;AAEF,KAAK,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAEtE,eAAO,MAAM,UAAU,GACrB,MAAM,KAAK,CAAC,eAAe,CAAC,EAC5B,GAAG,MAAM,CACP,GAAG,eAAe,EAClB,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,EAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,CAC5B,SAaF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM;;;;;CAU5C,CAAC;AASF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,CAAC;AACV,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC"}
|
package/dist/device.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTouchDevice = exports.isTabletDevice = exports.isMobileDevice = exports.checkIsTouchDevice = exports.checkIsTabletDevice = exports.checkIsMobileDevice = exports.getUserAgent = void 0;
|
|
4
|
-
const getUserAgent = () => (navigator.userAgent ||
|
|
5
|
-
navigator.vendor ||
|
|
6
|
-
// @ts-expect-error skip opera
|
|
7
|
-
globalThis.opera ||
|
|
8
|
-
'').toLowerCase();
|
|
9
|
-
exports.getUserAgent = getUserAgent;
|
|
10
|
-
const checkIsMobileDevice = () => {
|
|
11
|
-
const userAgent = (0, exports.getUserAgent)();
|
|
12
|
-
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent || '') ||
|
|
13
|
-
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test((userAgent || '').slice(0, 4))) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
return false;
|
|
17
|
-
};
|
|
18
|
-
exports.checkIsMobileDevice = checkIsMobileDevice;
|
|
19
|
-
const checkIsTabletDevice = () => {
|
|
20
|
-
const userAgent = (0, exports.getUserAgent)();
|
|
21
|
-
return /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(userAgent);
|
|
22
|
-
};
|
|
23
|
-
exports.checkIsTabletDevice = checkIsTabletDevice;
|
|
24
|
-
const checkIsTouchDevice = () => (0, exports.checkIsMobileDevice)() || (0, exports.checkIsTabletDevice)();
|
|
25
|
-
exports.checkIsTouchDevice = checkIsTouchDevice;
|
|
26
|
-
exports.isMobileDevice = (0, exports.checkIsMobileDevice)();
|
|
27
|
-
exports.isTabletDevice = (0, exports.checkIsTabletDevice)();
|
|
28
|
-
exports.isTouchDevice = exports.isMobileDevice || exports.isTabletDevice;
|
package/dist/device.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const getUserAgent: () => any;
|
|
2
|
-
export declare const checkIsMobileDevice: () => boolean;
|
|
3
|
-
export declare const checkIsTabletDevice: () => boolean;
|
|
4
|
-
export declare const checkIsTouchDevice: () => boolean;
|
|
5
|
-
export declare const isMobileDevice: boolean;
|
|
6
|
-
export declare const isTabletDevice: boolean;
|
|
7
|
-
export declare const isTouchDevice: boolean;
|
|
8
|
-
//# sourceMappingURL=device.d.ts.map
|
package/dist/device.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,WAOR,CAAC;AAElB,eAAO,MAAM,mBAAmB,eAe/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAM/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,eACiB,CAAC;AAEjD,eAAO,MAAM,cAAc,SAAwB,CAAC;AAEpD,eAAO,MAAM,cAAc,SAAwB,CAAC;AAEpD,eAAO,MAAM,aAAa,SAAmC,CAAC"}
|