@contember/utilities 2.0.0-alpha.6 → 2.0.0-alpha.8
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/api-extractor.json +3 -0
- package/dist/development/index.cjs +18 -18
- package/dist/development/index.js +18 -18
- package/dist/development/src/assert-types/AssertionError.cjs.map +1 -0
- package/dist/development/src/assert-types/AssertionError.js.map +1 -0
- package/dist/development/src/assert-types/Predicates.cjs.map +1 -0
- package/dist/development/src/assert-types/Predicates.js.map +1 -0
- package/dist/development/src/assert-types/assert.cjs.map +1 -0
- package/dist/development/src/assert-types/assert.js.map +1 -0
- package/dist/development/src/assert-types/assertNever.cjs.map +1 -0
- package/dist/development/src/assert-types/assertNever.js.map +1 -0
- package/dist/development/src/css-utilities/px.cjs.map +1 -0
- package/dist/development/src/css-utilities/px.js.map +1 -0
- package/dist/development/src/data-utilities/dateToStringWithoutTimezone.cjs.map +1 -0
- package/dist/development/src/data-utilities/dateToStringWithoutTimezone.js.map +1 -0
- package/dist/development/{deprecate → src/deprecate}/deprecate.cjs +1 -1
- package/dist/development/src/deprecate/deprecate.cjs.map +1 -0
- package/dist/development/{deprecate → src/deprecate}/deprecate.js +1 -1
- package/dist/development/src/deprecate/deprecate.js.map +1 -0
- package/dist/development/src/dom/dataAttribute.cjs.map +1 -0
- package/dist/development/src/dom/dataAttribute.js.map +1 -0
- package/dist/development/src/dom/getElementDimensions.cjs.map +1 -0
- package/dist/development/src/dom/getElementDimensions.js.map +1 -0
- package/dist/development/src/dom/getSizeFromResizeObserverEntry.cjs.map +1 -0
- package/dist/development/src/dom/getSizeFromResizeObserverEntry.js.map +1 -0
- package/dist/development/src/dom/shouldCancelStart.cjs.map +1 -0
- package/dist/development/src/dom/shouldCancelStart.js.map +1 -0
- package/dist/development/src/dom/stateDataAttributes.cjs.map +1 -0
- package/dist/development/src/dom/stateDataAttributes.js.map +1 -0
- package/dist/development/src/dom/svgSizeProps.cjs.map +1 -0
- package/dist/development/src/dom/svgSizeProps.js.map +1 -0
- package/dist/development/src/events/isSpecialLinkClick.cjs.map +1 -0
- package/dist/development/src/events/isSpecialLinkClick.js.map +1 -0
- package/dist/development/src/functional/omit.cjs.map +1 -0
- package/dist/development/src/functional/omit.js.map +1 -0
- package/dist/development/src/functional/pick.cjs.map +1 -0
- package/dist/development/src/functional/pick.js.map +1 -0
- package/dist/development/src/functional/range.cjs.map +1 -0
- package/dist/development/src/functional/range.js.map +1 -0
- package/dist/development/src/string-utilities/kebabCase.cjs.map +1 -0
- package/dist/development/src/string-utilities/kebabCase.js.map +1 -0
- package/dist/production/index.cjs +18 -18
- package/dist/production/index.js +18 -18
- package/dist/production/src/assert-types/AssertionError.cjs.map +1 -0
- package/dist/production/src/assert-types/AssertionError.js.map +1 -0
- package/dist/production/src/assert-types/Predicates.cjs.map +1 -0
- package/dist/production/src/assert-types/Predicates.js.map +1 -0
- package/dist/production/src/assert-types/assert.cjs.map +1 -0
- package/dist/production/src/assert-types/assert.js.map +1 -0
- package/dist/production/src/assert-types/assertNever.cjs.map +1 -0
- package/dist/production/src/assert-types/assertNever.js.map +1 -0
- package/dist/production/src/css-utilities/px.cjs.map +1 -0
- package/dist/production/src/css-utilities/px.js.map +1 -0
- package/dist/production/src/data-utilities/dateToStringWithoutTimezone.cjs.map +1 -0
- package/dist/production/src/data-utilities/dateToStringWithoutTimezone.js.map +1 -0
- package/dist/production/src/deprecate/deprecate.cjs.map +1 -0
- package/dist/production/src/deprecate/deprecate.js.map +1 -0
- package/dist/production/src/dom/dataAttribute.cjs.map +1 -0
- package/dist/production/src/dom/dataAttribute.js.map +1 -0
- package/dist/production/src/dom/getElementDimensions.cjs.map +1 -0
- package/dist/production/src/dom/getElementDimensions.js.map +1 -0
- package/dist/production/src/dom/getSizeFromResizeObserverEntry.cjs.map +1 -0
- package/dist/production/src/dom/getSizeFromResizeObserverEntry.js.map +1 -0
- package/dist/production/src/dom/shouldCancelStart.cjs.map +1 -0
- package/dist/production/src/dom/shouldCancelStart.js.map +1 -0
- package/dist/production/src/dom/stateDataAttributes.cjs.map +1 -0
- package/dist/production/src/dom/stateDataAttributes.js.map +1 -0
- package/dist/production/src/dom/svgSizeProps.cjs.map +1 -0
- package/dist/production/src/dom/svgSizeProps.js.map +1 -0
- package/dist/production/src/events/isSpecialLinkClick.cjs.map +1 -0
- package/dist/production/src/events/isSpecialLinkClick.js.map +1 -0
- package/dist/production/src/functional/omit.cjs.map +1 -0
- package/dist/production/src/functional/omit.js.map +1 -0
- package/dist/production/src/functional/pick.cjs.map +1 -0
- package/dist/production/src/functional/pick.js.map +1 -0
- package/dist/production/src/functional/range.cjs.map +1 -0
- package/dist/production/src/functional/range.js.map +1 -0
- package/dist/production/src/string-utilities/kebabCase.cjs.map +1 -0
- package/dist/production/src/string-utilities/kebabCase.js.map +1 -0
- package/dist/types/assert-types/assert.d.ts.map +1 -1
- package/dist/types/dom/svgSizeProps.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -12
- package/src/dom/getSizeFromResizeObserverEntry.ts +1 -1
- package/src/dom/svgSizeProps.ts +3 -3
- package/src/functional/omit.ts +9 -9
- package/src/tsconfig.json +4 -1
- package/tests/css-utilities/px.test.ts +12 -0
- package/tests/deprecate/deprecate.test.ts +53 -0
- package/tests/dom/dataAttribute.test.ts +13 -0
- package/tests/dom/svgSizeProps.test.ts +22 -0
- package/tests/functional/omit.test.ts +20 -0
- package/tests/functional/pick.test.ts +12 -0
- package/tests/functional/range.test.ts +12 -0
- package/tests/tsconfig.json +10 -0
- package/tsconfig.json +8 -0
- package/tsdoc.json +6 -0
- package/vitest.config.ts +3 -0
- package/dist/development/assert-types/AssertionError.cjs.map +0 -1
- package/dist/development/assert-types/AssertionError.js.map +0 -1
- package/dist/development/assert-types/Predicates.cjs.map +0 -1
- package/dist/development/assert-types/Predicates.js.map +0 -1
- package/dist/development/assert-types/assert.cjs.map +0 -1
- package/dist/development/assert-types/assert.js.map +0 -1
- package/dist/development/assert-types/assertNever.cjs.map +0 -1
- package/dist/development/assert-types/assertNever.js.map +0 -1
- package/dist/development/css-utilities/px.cjs.map +0 -1
- package/dist/development/css-utilities/px.js.map +0 -1
- package/dist/development/data-utilities/dateToStringWithoutTimezone.cjs.map +0 -1
- package/dist/development/data-utilities/dateToStringWithoutTimezone.js.map +0 -1
- package/dist/development/deprecate/deprecate.cjs.map +0 -1
- package/dist/development/deprecate/deprecate.js.map +0 -1
- package/dist/development/dom/dataAttribute.cjs.map +0 -1
- package/dist/development/dom/dataAttribute.js.map +0 -1
- package/dist/development/dom/getElementDimensions.cjs.map +0 -1
- package/dist/development/dom/getElementDimensions.js.map +0 -1
- package/dist/development/dom/getSizeFromResizeObserverEntry.cjs.map +0 -1
- package/dist/development/dom/getSizeFromResizeObserverEntry.js.map +0 -1
- package/dist/development/dom/shouldCancelStart.cjs.map +0 -1
- package/dist/development/dom/shouldCancelStart.js.map +0 -1
- package/dist/development/dom/stateDataAttributes.cjs.map +0 -1
- package/dist/development/dom/stateDataAttributes.js.map +0 -1
- package/dist/development/dom/svgSizeProps.cjs.map +0 -1
- package/dist/development/dom/svgSizeProps.js.map +0 -1
- package/dist/development/events/isSpecialLinkClick.cjs.map +0 -1
- package/dist/development/events/isSpecialLinkClick.js.map +0 -1
- package/dist/development/functional/omit.cjs.map +0 -1
- package/dist/development/functional/omit.js.map +0 -1
- package/dist/development/functional/pick.cjs.map +0 -1
- package/dist/development/functional/pick.js.map +0 -1
- package/dist/development/functional/range.cjs.map +0 -1
- package/dist/development/functional/range.js.map +0 -1
- package/dist/development/string-utilities/kebabCase.cjs.map +0 -1
- package/dist/development/string-utilities/kebabCase.js.map +0 -1
- package/dist/production/assert-types/AssertionError.cjs.map +0 -1
- package/dist/production/assert-types/AssertionError.js.map +0 -1
- package/dist/production/assert-types/Predicates.cjs.map +0 -1
- package/dist/production/assert-types/Predicates.js.map +0 -1
- package/dist/production/assert-types/assert.cjs.map +0 -1
- package/dist/production/assert-types/assert.js.map +0 -1
- package/dist/production/assert-types/assertNever.cjs.map +0 -1
- package/dist/production/assert-types/assertNever.js.map +0 -1
- package/dist/production/css-utilities/px.cjs.map +0 -1
- package/dist/production/css-utilities/px.js.map +0 -1
- package/dist/production/data-utilities/dateToStringWithoutTimezone.cjs.map +0 -1
- package/dist/production/data-utilities/dateToStringWithoutTimezone.js.map +0 -1
- package/dist/production/deprecate/deprecate.cjs.map +0 -1
- package/dist/production/deprecate/deprecate.js.map +0 -1
- package/dist/production/dom/dataAttribute.cjs.map +0 -1
- package/dist/production/dom/dataAttribute.js.map +0 -1
- package/dist/production/dom/getElementDimensions.cjs.map +0 -1
- package/dist/production/dom/getElementDimensions.js.map +0 -1
- package/dist/production/dom/getSizeFromResizeObserverEntry.cjs.map +0 -1
- package/dist/production/dom/getSizeFromResizeObserverEntry.js.map +0 -1
- package/dist/production/dom/shouldCancelStart.cjs.map +0 -1
- package/dist/production/dom/shouldCancelStart.js.map +0 -1
- package/dist/production/dom/stateDataAttributes.cjs.map +0 -1
- package/dist/production/dom/stateDataAttributes.js.map +0 -1
- package/dist/production/dom/svgSizeProps.cjs.map +0 -1
- package/dist/production/dom/svgSizeProps.js.map +0 -1
- package/dist/production/events/isSpecialLinkClick.cjs.map +0 -1
- package/dist/production/events/isSpecialLinkClick.js.map +0 -1
- package/dist/production/functional/omit.cjs.map +0 -1
- package/dist/production/functional/omit.js.map +0 -1
- package/dist/production/functional/pick.cjs.map +0 -1
- package/dist/production/functional/pick.js.map +0 -1
- package/dist/production/functional/range.cjs.map +0 -1
- package/dist/production/functional/range.js.map +0 -1
- package/dist/production/string-utilities/kebabCase.cjs.map +0 -1
- package/dist/production/string-utilities/kebabCase.js.map +0 -1
- /package/dist/development/{assert-types → src/assert-types}/AssertionError.cjs +0 -0
- /package/dist/development/{assert-types → src/assert-types}/AssertionError.js +0 -0
- /package/dist/development/{assert-types → src/assert-types}/Predicates.cjs +0 -0
- /package/dist/development/{assert-types → src/assert-types}/Predicates.js +0 -0
- /package/dist/development/{assert-types → src/assert-types}/assert.cjs +0 -0
- /package/dist/development/{assert-types → src/assert-types}/assert.js +0 -0
- /package/dist/development/{assert-types → src/assert-types}/assertNever.cjs +0 -0
- /package/dist/development/{assert-types → src/assert-types}/assertNever.js +0 -0
- /package/dist/development/{css-utilities → src/css-utilities}/px.cjs +0 -0
- /package/dist/development/{css-utilities → src/css-utilities}/px.js +0 -0
- /package/dist/development/{data-utilities → src/data-utilities}/dateToStringWithoutTimezone.cjs +0 -0
- /package/dist/development/{data-utilities → src/data-utilities}/dateToStringWithoutTimezone.js +0 -0
- /package/dist/development/{dom → src/dom}/dataAttribute.cjs +0 -0
- /package/dist/development/{dom → src/dom}/dataAttribute.js +0 -0
- /package/dist/development/{dom → src/dom}/getElementDimensions.cjs +0 -0
- /package/dist/development/{dom → src/dom}/getElementDimensions.js +0 -0
- /package/dist/development/{dom → src/dom}/getSizeFromResizeObserverEntry.cjs +0 -0
- /package/dist/development/{dom → src/dom}/getSizeFromResizeObserverEntry.js +0 -0
- /package/dist/development/{dom → src/dom}/shouldCancelStart.cjs +0 -0
- /package/dist/development/{dom → src/dom}/shouldCancelStart.js +0 -0
- /package/dist/development/{dom → src/dom}/stateDataAttributes.cjs +0 -0
- /package/dist/development/{dom → src/dom}/stateDataAttributes.js +0 -0
- /package/dist/development/{dom → src/dom}/svgSizeProps.cjs +0 -0
- /package/dist/development/{dom → src/dom}/svgSizeProps.js +0 -0
- /package/dist/development/{events → src/events}/isSpecialLinkClick.cjs +0 -0
- /package/dist/development/{events → src/events}/isSpecialLinkClick.js +0 -0
- /package/dist/development/{functional → src/functional}/omit.cjs +0 -0
- /package/dist/development/{functional → src/functional}/omit.js +0 -0
- /package/dist/development/{functional → src/functional}/pick.cjs +0 -0
- /package/dist/development/{functional → src/functional}/pick.js +0 -0
- /package/dist/development/{functional → src/functional}/range.cjs +0 -0
- /package/dist/development/{functional → src/functional}/range.js +0 -0
- /package/dist/development/{string-utilities → src/string-utilities}/kebabCase.cjs +0 -0
- /package/dist/development/{string-utilities → src/string-utilities}/kebabCase.js +0 -0
- /package/dist/production/{assert-types → src/assert-types}/AssertionError.cjs +0 -0
- /package/dist/production/{assert-types → src/assert-types}/AssertionError.js +0 -0
- /package/dist/production/{assert-types → src/assert-types}/Predicates.cjs +0 -0
- /package/dist/production/{assert-types → src/assert-types}/Predicates.js +0 -0
- /package/dist/production/{assert-types → src/assert-types}/assert.cjs +0 -0
- /package/dist/production/{assert-types → src/assert-types}/assert.js +0 -0
- /package/dist/production/{assert-types → src/assert-types}/assertNever.cjs +0 -0
- /package/dist/production/{assert-types → src/assert-types}/assertNever.js +0 -0
- /package/dist/production/{css-utilities → src/css-utilities}/px.cjs +0 -0
- /package/dist/production/{css-utilities → src/css-utilities}/px.js +0 -0
- /package/dist/production/{data-utilities → src/data-utilities}/dateToStringWithoutTimezone.cjs +0 -0
- /package/dist/production/{data-utilities → src/data-utilities}/dateToStringWithoutTimezone.js +0 -0
- /package/dist/production/{deprecate → src/deprecate}/deprecate.cjs +0 -0
- /package/dist/production/{deprecate → src/deprecate}/deprecate.js +0 -0
- /package/dist/production/{dom → src/dom}/dataAttribute.cjs +0 -0
- /package/dist/production/{dom → src/dom}/dataAttribute.js +0 -0
- /package/dist/production/{dom → src/dom}/getElementDimensions.cjs +0 -0
- /package/dist/production/{dom → src/dom}/getElementDimensions.js +0 -0
- /package/dist/production/{dom → src/dom}/getSizeFromResizeObserverEntry.cjs +0 -0
- /package/dist/production/{dom → src/dom}/getSizeFromResizeObserverEntry.js +0 -0
- /package/dist/production/{dom → src/dom}/shouldCancelStart.cjs +0 -0
- /package/dist/production/{dom → src/dom}/shouldCancelStart.js +0 -0
- /package/dist/production/{dom → src/dom}/stateDataAttributes.cjs +0 -0
- /package/dist/production/{dom → src/dom}/stateDataAttributes.js +0 -0
- /package/dist/production/{dom → src/dom}/svgSizeProps.cjs +0 -0
- /package/dist/production/{dom → src/dom}/svgSizeProps.js +0 -0
- /package/dist/production/{events → src/events}/isSpecialLinkClick.cjs +0 -0
- /package/dist/production/{events → src/events}/isSpecialLinkClick.js +0 -0
- /package/dist/production/{functional → src/functional}/omit.cjs +0 -0
- /package/dist/production/{functional → src/functional}/omit.js +0 -0
- /package/dist/production/{functional → src/functional}/pick.cjs +0 -0
- /package/dist/production/{functional → src/functional}/pick.js +0 -0
- /package/dist/production/{functional → src/functional}/range.cjs +0 -0
- /package/dist/production/{functional → src/functional}/range.js +0 -0
- /package/dist/production/{string-utilities → src/string-utilities}/kebabCase.cjs +0 -0
- /package/dist/production/{string-utilities → src/string-utilities}/kebabCase.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.cjs","sources":["../../../../../packages/utilities/src/functional/range.ts"],"sourcesContent":["\n/**\n * Get a list of numbers between start and end, inclusive, with the given step size (defaulting to 1)\n * @param start - The starting number.\n * @param end - The ending number.\n * @param step - The step size, optional, defaults to 1.\n * @returns A list of numbers between start and end, inclusive, with the given step size (defaulting to 1)\n */\nexport function range(start: number, end: number, step = 1): number[] {\n\treturn Array.from({ length: Math.floor(Math.abs(end - start) / step) + 1 }, (_, i) => start + i * (end > start ? 1 : -1) * Math.abs(step))\n}\n"],"names":[],"mappings":";;AAQO,SAAS,MAAM,OAAe,KAAa,OAAO,GAAa;AAC9D,SAAA,MAAM,KAAK,EAAE,QAAQ,KAAK,MAAM,KAAK,IAAI,MAAM,KAAK,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,GAAG,MAAM,QAAQ,KAAK,MAAM,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC;AAC1I;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.js","sources":["../../../../../packages/utilities/src/functional/range.ts"],"sourcesContent":["\n/**\n * Get a list of numbers between start and end, inclusive, with the given step size (defaulting to 1)\n * @param start - The starting number.\n * @param end - The ending number.\n * @param step - The step size, optional, defaults to 1.\n * @returns A list of numbers between start and end, inclusive, with the given step size (defaulting to 1)\n */\nexport function range(start: number, end: number, step = 1): number[] {\n\treturn Array.from({ length: Math.floor(Math.abs(end - start) / step) + 1 }, (_, i) => start + i * (end > start ? 1 : -1) * Math.abs(step))\n}\n"],"names":[],"mappings":"AAQO,SAAS,MAAM,OAAe,KAAa,OAAO,GAAa;AAC9D,SAAA,MAAM,KAAK,EAAE,QAAQ,KAAK,MAAM,KAAK,IAAI,MAAM,KAAK,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,GAAG,MAAM,QAAQ,KAAK,MAAM,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC;AAC1I;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kebabCase.cjs","sources":["../../../../../packages/utilities/src/string-utilities/kebabCase.ts"],"sourcesContent":["const UPPER_CASE_REG_EXP = /([A-Z])/g\n\nexport function toKebabCase(value: string) {\n\treturn value.replace(UPPER_CASE_REG_EXP, '-$1').toLowerCase()\n}\n"],"names":[],"mappings":";;AAAA,MAAM,qBAAqB;AAEpB,SAAS,YAAY,OAAe;AAC1C,SAAO,MAAM,QAAQ,oBAAoB,KAAK,EAAE,YAAY;AAC7D;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kebabCase.js","sources":["../../../../../packages/utilities/src/string-utilities/kebabCase.ts"],"sourcesContent":["const UPPER_CASE_REG_EXP = /([A-Z])/g\n\nexport function toKebabCase(value: string) {\n\treturn value.replace(UPPER_CASE_REG_EXP, '-$1').toLowerCase()\n}\n"],"names":[],"mappings":"AAAA,MAAM,qBAAqB;AAEpB,SAAS,YAAY,OAAe;AAC1C,SAAO,MAAM,QAAQ,oBAAoB,KAAK,EAAE,YAAY;AAC7D;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../src/assert-types/assert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,wBAAgB,MAAM,CACrB,EAAE,EACF,GAAG,SAAS,EAAE,EAEd,IAAI,
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../src/assert-types/assert.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,wBAAgB,MAAM,CACrB,EAAE,EACF,GAAG,SAAS,EAAE,EAEd,IAAI,EAAE,MAAM,GAAG,SAAqB,EACpC,KAAK,EAAE,EAAE,EACT,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE,GAAG,CAAC,GAC3B,OAAO,CAAC,KAAK,IAAI,GAAG,CAItB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svgSizeProps.d.ts","sourceRoot":"","sources":["../../../src/dom/svgSizeProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"svgSizeProps.d.ts","sourceRoot":"","sources":["../../../src/dom/svgSizeProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,YAAY,CAC3B,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,GAAE,MAAU,GACd,YAAY,CAUd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/assert-types/AssertionError.ts","../../src/assert-types/Predicates.ts","../../src/assert-types/types.ts","../../src/assert-types/assert.ts","../../src/assert-types/assertNever.ts","../../src/assert-types/index.ts","../../src/css-utilities/px.ts","../../src/css-utilities/index.ts","../../src/data-utilities/dateToStringWithoutTimezone.ts","../../src/data-utilities/index.ts","../../src/deprecate/types.ts","../../src/deprecate/deprecate.ts","../../src/deprecate/index.ts","../../src/dom/dataAttribute.ts","../../src/dom/getElementDimensions.ts","../../src/dom/getSizeFromResizeObserverEntry.ts","../../src/dom/shouldCancelStart.ts","../../src/string-utilities/kebabCase.ts","../../src/string-utilities/index.ts","../../src/dom/stateDataAttributes.ts","../../src/dom/svgSizeProps.ts","../../src/dom/index.ts","../../src/events/isSpecialLinkClick.ts","../../src/events/index.ts","../../src/functional/omit.ts","../../src/functional/pick.ts","../../src/functional/range.ts","../../src/functional/index.ts","../../src/types/Narrow.ts","../../src/types/Partial.ts","../../src/types/NonOptional.ts","../../src/types/PolymorphicRefs.ts","../../src/types/index.ts","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","886e50ef125efb7878f744e86908884c0133e7a6d9d80013f421b0cd8fb2af94",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"76f838d5d49b65de83bc345c04aa54c62a3cfdb72a477dc0c0fce89a30596c30","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"55461596dc873b866911ef4e640fae4c39da7ac1fbc7ef5e649cb2f2fb42c349","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea",{"version":"8ca4709dbd22a34bcc1ebf93e1877645bdb02ebd3f3d9a211a299a8db2ee4ba1","affectsGlobalScope":true},"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3",{"version":"13f2427f34067116c49878ad494e92c56b52463c77c4c55819e9b0730025965b","signature":"f341c93fefe964ea97c5106e3d93c4271bb3951a06a34e08da704c6faf871380"},{"version":"2fb1d296bbef53f90a34bece5277a2a9e465c8996022bfd7666778b666a62a4f","signature":"e6cd10db13b47959e26122d816abc1d1c01bb53137ad620f73f8076dd963b652"},{"version":"50e3cbf471f1f98c4ca87541ecf0668f0aaec286bae63ade4401887d1e93ff23","signature":"c55bf39638366450edc9cb028ae72bd2c915e4bbc740dbf27a4d7dde00cf55d6"},{"version":"d23f9ba47fddb8c11d1420f97b13b95e7da9b66cbedaea6d0ace57c900e66621","signature":"684fa42e4c7c6505105e948825329b720a388b7bf7624bfe2f51087a15d04445"},{"version":"7be88c2404537cbdca4832137d03286f8c84851efaf83a1f340fabdd3003dc2c","signature":"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804"},{"version":"f55020f9b5464406f2e101c807f5214791f7fbecd1395ef7a290e88178e9f99c","signature":"a98b93132fb74f455547d25af7e524e942504d265c037e235aaa38718083958f"},{"version":"bd136c3a029808c5a82ed6f09f97f4e44fd0534678bc3be7a1a82f0c66f6eb92","signature":"11dffd4e2a87837317cbb9e53560b5fa7fedecdfe3750e5bdc9def88c7bef662"},{"version":"405f3a410f0c1cdb8126c8409ef7f218dbba2af35f9f53778e0a60734cb23f46","signature":"f3c9d693e0597f6b1b5dd49bd0beaaa237bd491508991ea3c72b47d3c7d20fdb"},{"version":"eb50ec3572a55b0f9f4e0833efd114201073475e908deff8aa2f7c43254b78b0","signature":"1a5b73425c108e9938380def901fab186bb0e18104ecbf2696c16643d6c3ba58"},{"version":"eb70a8c20517f2bf9968815c59002ca03529a6fdc62c63c5d564a3fde129d949","signature":"b0511508476b9bf80ad623b1c7aa0b4c336eda1788c385973dc282d53ff7aed8"},{"version":"7c1ef2858023d458381a39fc942913615059ce65be3c3438312c8032b44a9003","signature":"624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9"},{"version":"11548231d2005e6247817053a59ac02d30af6258d7a179b53e5a5658d2e2ad2b","signature":"f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25"},{"version":"f035dfc7958d57f735fde87661307862a05a071093db6d53fd3bbdacf1832a89","signature":"1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a"},{"version":"9a8f09ac5f7d5b195462bc612e7f71031cc6a8f2bb919453c4f486af525fdac2","signature":"1c84b348bb07619f2123fddd01c20184c6212540909bd98fdc450f7d4e234717"},{"version":"71d81f0cf188bad8c1e514c66890af2182574a1b14385c574d3d8b47f73a4138","signature":"8bb29538074d6a78d49562f391bbe4a2b9b5ae028734d83e6601fe2741db7f6e"},{"version":"c2ac220afabd9933ec7b6751c9c37fb6f1839585b8081f92925950a0e3afea0d","signature":"cc9bdde4319a73448db9e4dd8dc256d04f0060b90383b4563c3a32a3b67780d5"},{"version":"470c96064ff781111e6c45d7ed94b96c28a54cd04fe1546498b63c1091545ee1","signature":"a4f90adab6e997a1a70c61ebe2080fc895e5c7cc6f4f125ada537f6eaa5eb780"},{"version":"3f50c3afbd0ef1ac11f16c6ac969d67ae4b7533aa4492dc11257cf3eb37ecde4","signature":"0c6ae7360c8f7de225172914d960a5947b0a8f5e9e0a045a5f03c870fc98b1f5"},{"version":"6809d356ab7417611b3d2bf7512d31862590d224897274fea13446707b2f4e6d","signature":"5efac8d930c281e4cbbea8c1165a60d020bd549f9997e541bb3e59eb84d5af61"},{"version":"8dafffe92126f49b66a4676923ec4d982caff5f909e552758f121b638ec56d06","signature":"f08668998295cdfe38a1db2bcd024341362cb20159dd8baa498064e560d0254b"},{"version":"59d8a85ec1b7c3ca61ac318eff674f31cc8278c3eb167c4b29b8d14e4fe265da","signature":"dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5"},{"version":"d43f42217dd3289828198e48c7dc37726d73c42e062840c41bd4cd6140b4c979","signature":"f438b724a11131ee7a6f4501b159dee3a03ba689517d54cdbd2bebb5d6b66106"},{"version":"36f1863bb3652e7a15ad24382771df0696bd11f10aa88835ace92d3bfbdee4be","signature":"7ded9f0d899ffe1a25c259d0afdaa51e8e7c3e819c6bdfd6e16613778a1fad60"},{"version":"6e63426e0a311e6f08de435761dbbe083459a810fe1caebab656b82ad48cc401","signature":"defe4bc30515b98744137a9938fd9039689da3a409ade4f632fcdedcab288375"},{"version":"ddafd3c37312e71334b94afbdafbca899b4db514644fc50a3e86b8cc9d25df78","signature":"9ecd8f32f134677d4134ee1178bedab19a51f1cb2ac468da4043f81c14ebd3ac"},{"version":"09e27c4210337841ff70bd87248a609985c468c2d9292d12e0f953a55c59f044","signature":"7c9ea735d5a29405896bf2e56d9f3afe0f5d1576736c54c4d5d879f08976d4db"},{"version":"180742924ac8679e31fa4abc0a75e8871789369b09dc8058c9fd68cbcd18c15f","signature":"203243c89d2ba33af45ffb13b75cbc6df13f49e937ff8b13bda460a68c19aa3c"},{"version":"d9e3b01c54221bbaa879177d50488679cdcd3c4af08eb764295f901066364045","signature":"ff0302b8dd06ec92107a56f081b7c7d3753bdb35a942a1c753f943553b0f00ae"},{"version":"a4e528eee9a2b45a402b4d6b119133fd76284ae7db4fece35f55ba782789bb8b","signature":"2530e26913543800e9f329fcaefbffe2904036d62aef1cf97e9738f070295ee7"},{"version":"d10333dba53eed78f299c62c1c10ca6ce894c42008de73f2760312423bc5b20e","signature":"2ed3dabf6725944e4a6aada55ce34ec864b8f593c7669cab66e690c5dad92077"},{"version":"9b463ec2af65d63c90bada0a7af2bd34e4e04d0170e6561aaeb30447ec9f8751","signature":"c921746b36842e21243970c5ed44b488e842afe99843da3cb7f197242f4f2c9e"},{"version":"c1534e5ef94ba68ff6917df208e3f114e60ce5bc8b6d24959dfa6181efe4648f","signature":"4b030016676aa17add8651d5f461d37a95ad981d417e5a4ae3c359ae24d3da10"},{"version":"7f2ed2b7ff4066454ac31e3f841fe783edcbdb7e6757266fd1dd2d097229406b","signature":"5361132ff033a3d80d06317c3ac7f5616ec9792dd706f6040f737049a3debc31"},{"version":"5d3f80dffa775d638c7c328673ae68c3fef0fd6b4f6ec6d6839a39eb64409ef2","signature":"da31389b57ef0fc478111a2e97fdb0a0ad868f4a939feb706126794313c625ff"},"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","80d02a787d4aa00e2e22dcf3ea9d40390f38dfb0c3497bc6855978974a63e20c","cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea",{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true},{"version":"c4baf2c38b00f29adfb4e60554de4152ebf4c17f3365c0f2ff34af7f3b35ef1d","affectsGlobalScope":true}],"root":[[75,108]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"fileIdsList":[[70,71,72],[73],[113],[109],[110],[111,112],[74],[74,75,77],[74,75,76,77,78,79],[74,81],[74,83],[74,85],[74,85,86],[74,88,89,90,91,94,95],[74,88,93],[74,97],[74,99,100,101],[74,80,82,84,87,93,96,98,102,107],[74,92],[73,74],[74,103,104,105,106],[77],[75,76,77,78,79],[81],[83],[85],[85,86],[88,89,90,91,94,95],[97],[99,100,101],[80,82,84,87,93,96,98,102,107],[92],[103,104,105,106]],"referencedMap":[[73,1],[74,2],[114,3],[110,4],[111,5],[113,6],[75,7],[76,7],[78,8],[79,7],[80,9],[77,7],[82,10],[81,7],[83,7],[84,11],[86,12],[87,13],[85,7],[88,7],[89,7],[90,7],[96,14],[91,7],[94,15],[95,7],[98,16],[97,7],[102,17],[99,7],[100,7],[101,7],[108,18],[93,19],[92,7],[103,7],[105,7],[104,7],[106,20],[107,21]],"exportedModulesMap":[[73,1],[74,2],[114,3],[110,4],[111,5],[113,6],[78,22],[80,23],[82,24],[84,25],[86,26],[87,27],[96,28],[98,29],[102,30],[108,31],[93,32],[106,2],[107,33]],"semanticDiagnosticsPerFile":[72,70,73,74,71,68,69,12,13,15,14,2,16,17,18,19,20,21,22,23,3,24,4,25,29,26,27,28,30,31,32,5,33,34,35,36,6,40,37,38,39,41,7,42,47,48,43,44,45,46,8,52,49,50,51,53,9,54,55,56,59,57,58,60,61,10,1,62,11,66,64,63,67,65,114,110,109,111,112,113,75,76,78,79,80,77,82,81,83,84,86,87,85,88,89,90,96,91,94,95,98,97,102,99,100,101,108,93,92,103,105,104,106,107],"latestChangedDtsFile":"./index.d.ts"},"version":"5.4.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/assert-types/AssertionError.ts","../../src/assert-types/Predicates.ts","../../src/assert-types/types.ts","../../src/assert-types/assert.ts","../../src/assert-types/assertNever.ts","../../src/assert-types/index.ts","../../src/css-utilities/px.ts","../../src/css-utilities/index.ts","../../src/data-utilities/dateToStringWithoutTimezone.ts","../../src/data-utilities/index.ts","../../src/deprecate/types.ts","../../src/deprecate/deprecate.ts","../../src/deprecate/index.ts","../../src/dom/dataAttribute.ts","../../src/dom/getElementDimensions.ts","../../src/dom/getSizeFromResizeObserverEntry.ts","../../src/dom/shouldCancelStart.ts","../../src/string-utilities/kebabCase.ts","../../src/string-utilities/index.ts","../../src/dom/stateDataAttributes.ts","../../src/dom/svgSizeProps.ts","../../src/dom/index.ts","../../src/events/isSpecialLinkClick.ts","../../src/events/index.ts","../../src/functional/omit.ts","../../src/functional/pick.ts","../../src/functional/range.ts","../../src/functional/index.ts","../../src/types/Narrow.ts","../../src/types/Partial.ts","../../src/types/NonOptional.ts","../../src/types/PolymorphicRefs.ts","../../src/types/index.ts","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","247a952efd811d780e5630f8cfd76f495196f5fa74f6f0fee39ac8ba4a3c9800",{"version":"8ca4709dbd22a34bcc1ebf93e1877645bdb02ebd3f3d9a211a299a8db2ee4ba1","affectsGlobalScope":true},"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3",{"version":"13f2427f34067116c49878ad494e92c56b52463c77c4c55819e9b0730025965b","signature":"f341c93fefe964ea97c5106e3d93c4271bb3951a06a34e08da704c6faf871380"},{"version":"2fb1d296bbef53f90a34bece5277a2a9e465c8996022bfd7666778b666a62a4f","signature":"e6cd10db13b47959e26122d816abc1d1c01bb53137ad620f73f8076dd963b652"},{"version":"50e3cbf471f1f98c4ca87541ecf0668f0aaec286bae63ade4401887d1e93ff23","signature":"c55bf39638366450edc9cb028ae72bd2c915e4bbc740dbf27a4d7dde00cf55d6"},{"version":"d23f9ba47fddb8c11d1420f97b13b95e7da9b66cbedaea6d0ace57c900e66621","signature":"684fa42e4c7c6505105e948825329b720a388b7bf7624bfe2f51087a15d04445"},{"version":"7be88c2404537cbdca4832137d03286f8c84851efaf83a1f340fabdd3003dc2c","signature":"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804"},{"version":"f55020f9b5464406f2e101c807f5214791f7fbecd1395ef7a290e88178e9f99c","signature":"a98b93132fb74f455547d25af7e524e942504d265c037e235aaa38718083958f"},{"version":"bd136c3a029808c5a82ed6f09f97f4e44fd0534678bc3be7a1a82f0c66f6eb92","signature":"11dffd4e2a87837317cbb9e53560b5fa7fedecdfe3750e5bdc9def88c7bef662"},{"version":"405f3a410f0c1cdb8126c8409ef7f218dbba2af35f9f53778e0a60734cb23f46","signature":"f3c9d693e0597f6b1b5dd49bd0beaaa237bd491508991ea3c72b47d3c7d20fdb"},{"version":"eb50ec3572a55b0f9f4e0833efd114201073475e908deff8aa2f7c43254b78b0","signature":"1a5b73425c108e9938380def901fab186bb0e18104ecbf2696c16643d6c3ba58"},{"version":"eb70a8c20517f2bf9968815c59002ca03529a6fdc62c63c5d564a3fde129d949","signature":"b0511508476b9bf80ad623b1c7aa0b4c336eda1788c385973dc282d53ff7aed8"},{"version":"7c1ef2858023d458381a39fc942913615059ce65be3c3438312c8032b44a9003","signature":"624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9"},{"version":"11548231d2005e6247817053a59ac02d30af6258d7a179b53e5a5658d2e2ad2b","signature":"f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25"},{"version":"f035dfc7958d57f735fde87661307862a05a071093db6d53fd3bbdacf1832a89","signature":"1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a"},{"version":"9a8f09ac5f7d5b195462bc612e7f71031cc6a8f2bb919453c4f486af525fdac2","signature":"1c84b348bb07619f2123fddd01c20184c6212540909bd98fdc450f7d4e234717"},{"version":"71d81f0cf188bad8c1e514c66890af2182574a1b14385c574d3d8b47f73a4138","signature":"8bb29538074d6a78d49562f391bbe4a2b9b5ae028734d83e6601fe2741db7f6e"},{"version":"84d2b21001da3912561667563d9665b0c85f60d6959058dfc59135102f2626a2","signature":"cc9bdde4319a73448db9e4dd8dc256d04f0060b90383b4563c3a32a3b67780d5"},{"version":"470c96064ff781111e6c45d7ed94b96c28a54cd04fe1546498b63c1091545ee1","signature":"a4f90adab6e997a1a70c61ebe2080fc895e5c7cc6f4f125ada537f6eaa5eb780"},{"version":"3f50c3afbd0ef1ac11f16c6ac969d67ae4b7533aa4492dc11257cf3eb37ecde4","signature":"0c6ae7360c8f7de225172914d960a5947b0a8f5e9e0a045a5f03c870fc98b1f5"},{"version":"6809d356ab7417611b3d2bf7512d31862590d224897274fea13446707b2f4e6d","signature":"5efac8d930c281e4cbbea8c1165a60d020bd549f9997e541bb3e59eb84d5af61"},{"version":"8dafffe92126f49b66a4676923ec4d982caff5f909e552758f121b638ec56d06","signature":"f08668998295cdfe38a1db2bcd024341362cb20159dd8baa498064e560d0254b"},{"version":"d4be883c6198341aaa9a7b9d4f90b9ae099e22752e438862e3afcf8533f1a07c","signature":"dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5"},{"version":"d43f42217dd3289828198e48c7dc37726d73c42e062840c41bd4cd6140b4c979","signature":"f438b724a11131ee7a6f4501b159dee3a03ba689517d54cdbd2bebb5d6b66106"},{"version":"36f1863bb3652e7a15ad24382771df0696bd11f10aa88835ace92d3bfbdee4be","signature":"7ded9f0d899ffe1a25c259d0afdaa51e8e7c3e819c6bdfd6e16613778a1fad60"},{"version":"6e63426e0a311e6f08de435761dbbe083459a810fe1caebab656b82ad48cc401","signature":"defe4bc30515b98744137a9938fd9039689da3a409ade4f632fcdedcab288375"},{"version":"e91633abac0ff53ff28030807603471a1a5219de5b5302c258928f28e145b1e6","signature":"9ecd8f32f134677d4134ee1178bedab19a51f1cb2ac468da4043f81c14ebd3ac"},{"version":"09e27c4210337841ff70bd87248a609985c468c2d9292d12e0f953a55c59f044","signature":"7c9ea735d5a29405896bf2e56d9f3afe0f5d1576736c54c4d5d879f08976d4db"},{"version":"180742924ac8679e31fa4abc0a75e8871789369b09dc8058c9fd68cbcd18c15f","signature":"203243c89d2ba33af45ffb13b75cbc6df13f49e937ff8b13bda460a68c19aa3c"},{"version":"d9e3b01c54221bbaa879177d50488679cdcd3c4af08eb764295f901066364045","signature":"ff0302b8dd06ec92107a56f081b7c7d3753bdb35a942a1c753f943553b0f00ae"},{"version":"a4e528eee9a2b45a402b4d6b119133fd76284ae7db4fece35f55ba782789bb8b","signature":"2530e26913543800e9f329fcaefbffe2904036d62aef1cf97e9738f070295ee7"},{"version":"d10333dba53eed78f299c62c1c10ca6ce894c42008de73f2760312423bc5b20e","signature":"2ed3dabf6725944e4a6aada55ce34ec864b8f593c7669cab66e690c5dad92077"},{"version":"9b463ec2af65d63c90bada0a7af2bd34e4e04d0170e6561aaeb30447ec9f8751","signature":"c921746b36842e21243970c5ed44b488e842afe99843da3cb7f197242f4f2c9e"},{"version":"c1534e5ef94ba68ff6917df208e3f114e60ce5bc8b6d24959dfa6181efe4648f","signature":"4b030016676aa17add8651d5f461d37a95ad981d417e5a4ae3c359ae24d3da10"},{"version":"7f2ed2b7ff4066454ac31e3f841fe783edcbdb7e6757266fd1dd2d097229406b","signature":"5361132ff033a3d80d06317c3ac7f5616ec9792dd706f6040f737049a3debc31"},{"version":"5d3f80dffa775d638c7c328673ae68c3fef0fd6b4f6ec6d6839a39eb64409ef2","signature":"da31389b57ef0fc478111a2e97fdb0a0ad868f4a939feb706126794313c625ff"},"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea",{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true},{"version":"2f6a75013df4f3c55c838db3cbcf415a062435f2cd65318cf2d1864d2b5d5ab7","affectsGlobalScope":true}],"root":[[79,112]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"fileIdsList":[[74,75,76],[77],[117],[113],[114],[115,116],[78],[78,79,81],[78,79,80,81,82,83],[78,85],[78,87],[78,89],[78,89,90],[78,92,93,94,95,98,99],[78,92,97],[78,101],[78,103,104,105],[78,84,86,88,91,97,100,102,106,111],[78,96],[77,78],[78,107,108,109,110]],"referencedMap":[[77,1],[78,2],[118,3],[114,4],[115,5],[117,6],[79,7],[80,7],[82,8],[83,7],[84,9],[81,7],[86,10],[85,7],[87,7],[88,11],[90,12],[91,13],[89,7],[92,7],[93,7],[94,7],[100,14],[95,7],[98,15],[99,7],[102,16],[101,7],[106,17],[103,7],[104,7],[105,7],[112,18],[97,19],[96,7],[107,7],[109,7],[108,7],[110,20],[111,21]],"latestChangedDtsFile":"./index.d.ts"},"version":"5.5.3"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/utilities",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/production/index.js",
|
|
@@ -17,22 +17,15 @@
|
|
|
17
17
|
"types": "./dist/types/index.d.ts",
|
|
18
18
|
"development": "./dist/development/index.cjs",
|
|
19
19
|
"production": "./dist/production/index.cjs",
|
|
20
|
+
"typescript": "./src/index.ts",
|
|
20
21
|
"default": "./dist/production/index.cjs"
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist/",
|
|
26
|
-
"src/"
|
|
27
|
-
],
|
|
28
25
|
"typings": "./dist/types/index.d.ts",
|
|
29
26
|
"scripts": {
|
|
30
|
-
"build": "yarn build:js:dev && yarn build:js:prod",
|
|
31
|
-
"build:js:dev": "NODE_ENV=development vite build --mode development",
|
|
32
|
-
"build:js:prod": "vite build --mode production",
|
|
33
27
|
"ae:build": "api-extractor run --local",
|
|
34
|
-
"ae:test": "api-extractor run"
|
|
35
|
-
"test": "vitest"
|
|
28
|
+
"ae:test": "api-extractor run"
|
|
36
29
|
},
|
|
37
30
|
"repository": {
|
|
38
31
|
"type": "git",
|
|
@@ -41,6 +34,5 @@
|
|
|
41
34
|
},
|
|
42
35
|
"peerDependencies": {
|
|
43
36
|
"react": "^18 || ^19"
|
|
44
|
-
}
|
|
45
|
-
"stableVersion": "0.0.0"
|
|
37
|
+
}
|
|
46
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function getSizeFromResizeObserverEntryFactory(box: ResizeObserverOptions['box']) {
|
|
2
|
-
return function getSizeFromResizeObserverEntry(entry: ResizeObserverEntry): { height: number
|
|
2
|
+
return function getSizeFromResizeObserverEntry(entry: ResizeObserverEntry): { height: number; width: number } {
|
|
3
3
|
const boxSize = box === 'border-box'
|
|
4
4
|
? entry.borderBoxSize
|
|
5
5
|
: box === 'content-box'
|
package/src/dom/svgSizeProps.ts
CHANGED
package/src/functional/omit.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function omit<T extends Object, K extends keyof T>(object: T, properties: ReadonlyArray<K>, strict: boolean = false): Omit<T, K> {
|
|
2
|
-
|
|
2
|
+
const next: Partial<T> = { ...object }
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
for (let key of properties) {
|
|
5
|
+
if (key in object) {
|
|
6
|
+
delete next[key]
|
|
7
|
+
} else if (strict) {
|
|
8
|
+
throw new Error(`Key "${String(key)}" does not exist in object ${JSON.stringify(object)}`)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
return next as Omit<T, K>
|
|
13
13
|
}
|
package/src/tsconfig.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { px } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities', function () {
|
|
5
|
+
test('@contember/utilities.px', function () {
|
|
6
|
+
expect(px(100)).equals('100px')
|
|
7
|
+
expect(px(false)).equals('')
|
|
8
|
+
expect(px(null)).equals('')
|
|
9
|
+
expect(px(undefined)).equals('')
|
|
10
|
+
expect(px(NaN)).equals('')
|
|
11
|
+
})
|
|
12
|
+
})
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { describe, expect, it, vitest } from 'vitest'
|
|
2
|
+
import { deprecate } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities.deprecate', () => {
|
|
5
|
+
it('logs a warning if the condition is true', () => {
|
|
6
|
+
const spy = vitest.spyOn(console, 'warn').mockImplementation(() => { })
|
|
7
|
+
deprecate('2.0.0', true, 'oldFeature', 'newFeature')
|
|
8
|
+
expect(spy).toHaveBeenCalledWith('Use of oldFeature is deprecated and might be removed in the next release. Use newFeature instead.')
|
|
9
|
+
spy.mockRestore()
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
it('throws an error if strict deprecations are enabled and the condition is true', () => {
|
|
13
|
+
const originalEnv = process.env
|
|
14
|
+
process.env = { ...originalEnv, VITE_CONTEMBER_ADMIN_STRICT_DEPRECATIONS: 'true' }
|
|
15
|
+
expect(() => {
|
|
16
|
+
deprecate('2.0.0', true, 'oldFeature', 'newFeature')
|
|
17
|
+
}).toThrow('Support for oldFeature was planned to be removed in the 2.0.0 release. Replace it with newFeature instead.')
|
|
18
|
+
process.env = originalEnv
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
it('does not log a warning if the condition is false', () => {
|
|
22
|
+
const spy = vitest.spyOn(console, 'warn').mockImplementation(() => { })
|
|
23
|
+
deprecate('2.0.0', false, 'oldFeature', 'newFeature')
|
|
24
|
+
expect(spy).not.toHaveBeenCalled()
|
|
25
|
+
spy.mockRestore()
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
it('does not throw an error if strict deprecations are enabled and the condition is false', () => {
|
|
29
|
+
const originalEnv = process.env
|
|
30
|
+
process.env = { ...originalEnv, VITE_CONTEMBER_ADMIN_STRICT_DEPRECATIONS: 'true' }
|
|
31
|
+
expect(() => {
|
|
32
|
+
deprecate('2.0.0', false, 'oldFeature', 'newFeature')
|
|
33
|
+
}).not.toThrow()
|
|
34
|
+
process.env = originalEnv
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
it('does not log a warning if the condition is true but the environment is not development', () => {
|
|
38
|
+
const originalEnv = process.env
|
|
39
|
+
process.env = { ...originalEnv, DEV: '' }
|
|
40
|
+
const spy = vitest.spyOn(console, 'warn').mockImplementation(() => { })
|
|
41
|
+
deprecate('2.0.0', true, 'oldFeature', 'newFeature')
|
|
42
|
+
expect(spy).not.toHaveBeenCalled()
|
|
43
|
+
spy.mockRestore()
|
|
44
|
+
process.env = originalEnv
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
it('logs a warning if the condition is true and replacement is null', () => {
|
|
48
|
+
const spy = vitest.spyOn(console, 'warn').mockImplementation(() => { })
|
|
49
|
+
deprecate('2.0.0', true, 'oldFeature', null)
|
|
50
|
+
expect(spy).toHaveBeenCalledWith('Use of oldFeature is deprecated and might be removed in the next release. There is no replacement.')
|
|
51
|
+
spy.mockRestore()
|
|
52
|
+
})
|
|
53
|
+
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { dataAttribute } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities', function () {
|
|
5
|
+
test('@contember/utilities.dataAttribute', function () {
|
|
6
|
+
|
|
7
|
+
expect(dataAttribute(false)).toBe(undefined)
|
|
8
|
+
expect(dataAttribute(true)).toBe('')
|
|
9
|
+
expect(dataAttribute('string')).toBe('string')
|
|
10
|
+
expect(dataAttribute(0)).toBe('0')
|
|
11
|
+
expect(dataAttribute('')).toBe('')
|
|
12
|
+
})
|
|
13
|
+
})
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { svgSizeProps } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities', function () {
|
|
5
|
+
test('@contember/utilities.svgViewBox', function () {
|
|
6
|
+
expect(svgSizeProps(100)).toEqual({
|
|
7
|
+
width: 100,
|
|
8
|
+
height: 100,
|
|
9
|
+
viewBox: '0 0 100 100',
|
|
10
|
+
})
|
|
11
|
+
expect(svgSizeProps(100, 100)).toEqual({
|
|
12
|
+
width: 100,
|
|
13
|
+
height: 100,
|
|
14
|
+
viewBox: '0 0 100 100',
|
|
15
|
+
})
|
|
16
|
+
expect(svgSizeProps(70, 70, 10)).toEqual({
|
|
17
|
+
width: 50,
|
|
18
|
+
height: 50,
|
|
19
|
+
viewBox: '10 10 50 50',
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { omit } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities', function() {
|
|
5
|
+
test('@contember/utilities.omit', function() {
|
|
6
|
+
let obj = {
|
|
7
|
+
a: 1,
|
|
8
|
+
b: 2,
|
|
9
|
+
c: 3,
|
|
10
|
+
d: 4,
|
|
11
|
+
e: 5,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
expect(omit(obj, ['a'])).toEqual({ b: 2, c: 3, d: 4, e: 5 })
|
|
15
|
+
expect(omit(obj, ['a', 'b'])).toEqual({ c: 3, d: 4, e: 5 })
|
|
16
|
+
expect(omit(obj, ['a', 'b', 'c'])).toEqual({ d: 4, e: 5 })
|
|
17
|
+
expect(omit(obj, ['a', 'b', 'c', 'd'])).toEqual({ e: 5 })
|
|
18
|
+
expect(omit(obj, ['a', 'b', 'c', 'd', 'e'])).toEqual({})
|
|
19
|
+
})
|
|
20
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { pick } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities', function () {
|
|
5
|
+
test('@contember/utilities.pick', function () {
|
|
6
|
+
const from = { a: 1, b: 2 }
|
|
7
|
+
|
|
8
|
+
expect(pick(from, ['a'])).toEqual({ a: 1 })
|
|
9
|
+
// @ts-expect-error - 'c' does not exist in { a: 1, b: 2 }
|
|
10
|
+
expect(() => pick(from, ['c'])).throws('Key "c" does not exist in object {"a":1,"b":2}')
|
|
11
|
+
})
|
|
12
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest'
|
|
2
|
+
import { range } from '../../src'
|
|
3
|
+
|
|
4
|
+
describe('@contember/utilities', function () {
|
|
5
|
+
test('@contember/utilities.range', function () {
|
|
6
|
+
expect(range(1, 1)).toEqual([1])
|
|
7
|
+
expect(range(1, 4)).toEqual([1, 2, 3, 4])
|
|
8
|
+
expect(range(0, 4, 2)).toEqual([0, 2, 4])
|
|
9
|
+
expect(range(5, 2)).toEqual([5, 4, 3, 2])
|
|
10
|
+
expect(range(5, 2, 2)).toEqual([5, 3])
|
|
11
|
+
})
|
|
12
|
+
})
|
package/tsconfig.json
ADDED
package/tsdoc.json
ADDED
package/vitest.config.ts
ADDED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssertionError.cjs","sources":["../../../src/assert-types/AssertionError.ts"],"sourcesContent":["export class AssertionError extends Error {\n\tconstructor(value: unknown, that: string = 'value to pass assertion') {\n\t\tsuper(`Expecting ${that}, ${JSON.stringify(value)} given`)\n\t}\n}\n"],"names":[],"mappings":";;AAAO,MAAM,uBAAuB,MAAM;AAAA,EACzC,YAAY,OAAgB,OAAe,2BAA2B;AACrE,UAAM,aAAa,IAAI,KAAK,KAAK,UAAU,KAAK,CAAC,QAAQ;AAAA,EAC1D;AACD;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssertionError.js","sources":["../../../src/assert-types/AssertionError.ts"],"sourcesContent":["export class AssertionError extends Error {\n\tconstructor(value: unknown, that: string = 'value to pass assertion') {\n\t\tsuper(`Expecting ${that}, ${JSON.stringify(value)} given`)\n\t}\n}\n"],"names":[],"mappings":"AAAO,MAAM,uBAAuB,MAAM;AAAA,EACzC,YAAY,OAAgB,OAAe,2BAA2B;AACrE,UAAM,aAAa,IAAI,KAAK,KAAK,UAAU,KAAK,CAAC,QAAQ;AAAA,EAC1D;AACD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Predicates.cjs","sources":["../../../src/assert-types/Predicates.ts"],"sourcesContent":["export function isNonNegativeNumber(value: unknown): value is number {\n\treturn typeof value === 'number' && value >= 0\n}\n"],"names":[],"mappings":";;AAAO,SAAS,oBAAoB,OAAiC;AAC7D,SAAA,OAAO,UAAU,YAAY,SAAS;AAC9C;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Predicates.js","sources":["../../../src/assert-types/Predicates.ts"],"sourcesContent":["export function isNonNegativeNumber(value: unknown): value is number {\n\treturn typeof value === 'number' && value >= 0\n}\n"],"names":[],"mappings":"AAAO,SAAS,oBAAoB,OAAiC;AAC7D,SAAA,OAAO,UAAU,YAAY,SAAS;AAC9C;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert.cjs","sources":["../../../src/assert-types/assert.ts"],"sourcesContent":["import { AssertionError } from './AssertionError'\nimport { Predicate } from './types'\n\nexport function assert<\n\tIn,\n\tOut extends In\n>(\n\tthat: string | undefined = undefined,\n\tvalue: In,\n\tpredicate: Predicate<In, Out>, // (value: In) => value is Out,\n): asserts value is Out {\n\tif (!predicate(value)) {\n\t\tthrow new AssertionError(value, that)\n\t}\n}\n"],"names":["AssertionError"],"mappings":";;;AAGO,SAAS,OAIf,OAA2B,QAC3B,OACA,WACuB;AACnB,MAAA,CAAC,UAAU,KAAK,GAAG;AAChB,UAAA,IAAIA,eAAe,eAAA,OAAO,IAAI;AAAA,EACrC;AACD;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert.js","sources":["../../../src/assert-types/assert.ts"],"sourcesContent":["import { AssertionError } from './AssertionError'\nimport { Predicate } from './types'\n\nexport function assert<\n\tIn,\n\tOut extends In\n>(\n\tthat: string | undefined = undefined,\n\tvalue: In,\n\tpredicate: Predicate<In, Out>, // (value: In) => value is Out,\n): asserts value is Out {\n\tif (!predicate(value)) {\n\t\tthrow new AssertionError(value, that)\n\t}\n}\n"],"names":[],"mappings":";AAGO,SAAS,OAIf,OAA2B,QAC3B,OACA,WACuB;AACnB,MAAA,CAAC,UAAU,KAAK,GAAG;AAChB,UAAA,IAAI,eAAe,OAAO,IAAI;AAAA,EACrC;AACD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertNever.cjs","sources":["../../../src/assert-types/assertNever.ts"],"sourcesContent":["export function assertNever(_: never): never {\n\tthrow new Error('Exhaustive Error: This line should never be reached.')\n}\n"],"names":[],"mappings":";;AAAO,SAAS,YAAY,GAAiB;AACtC,QAAA,IAAI,MAAM,sDAAsD;AACvE;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertNever.js","sources":["../../../src/assert-types/assertNever.ts"],"sourcesContent":["export function assertNever(_: never): never {\n\tthrow new Error('Exhaustive Error: This line should never be reached.')\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAiB;AACtC,QAAA,IAAI,MAAM,sDAAsD;AACvE;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"px.cjs","sources":["../../../src/css-utilities/px.ts"],"sourcesContent":["/**\n * Converts a value to a string in the format '10px'\n *\n * @param value - The value to convert to a string.\n * @returns Returns a string in the format '10px' or '' when value is falsy.\n */\nexport function px<V extends number | false | null | undefined>(value?: V): string {\n\treturn typeof value === 'number' && !(isNaN(value) || value === Infinity || value === -Infinity) ? value + 'px' : ''\n}\n"],"names":[],"mappings":";;AAMO,SAAS,GAAgD,OAAmB;AAClF,SAAO,OAAO,UAAU,YAAY,EAAE,MAAM,KAAK,KAAK,UAAU,YAAY,UAAU,aAAa,QAAQ,OAAO;AACnH;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"px.js","sources":["../../../src/css-utilities/px.ts"],"sourcesContent":["/**\n * Converts a value to a string in the format '10px'\n *\n * @param value - The value to convert to a string.\n * @returns Returns a string in the format '10px' or '' when value is falsy.\n */\nexport function px<V extends number | false | null | undefined>(value?: V): string {\n\treturn typeof value === 'number' && !(isNaN(value) || value === Infinity || value === -Infinity) ? value + 'px' : ''\n}\n"],"names":[],"mappings":"AAMO,SAAS,GAAgD,OAAmB;AAClF,SAAO,OAAO,UAAU,YAAY,EAAE,MAAM,KAAK,KAAK,UAAU,YAAY,UAAU,aAAa,QAAQ,OAAO;AACnH;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dateToStringWithoutTimezone.cjs","sources":["../../../src/data-utilities/dateToStringWithoutTimezone.ts"],"sourcesContent":["export const dateToStringWithoutTimezone = (date: Date, { includeTime }: { includeTime?: boolean } = {}): string => {\n\tconst [year, month, day] = [\n\t\tdate.getFullYear(),\n\t\t(date.getMonth() + 1).toFixed(0).padStart(2, '0'),\n\t\tdate.getDate().toFixed(0).padStart(2, '0'),\n\t]\n\tlet serialized = `${year}-${month}-${day}`\n\n\tif (includeTime) {\n\t\tconst [hours, minutes] = [\n\t\t\tdate.getHours().toFixed(0).padStart(2, '0'),\n\t\t\tdate.getMinutes().toFixed(0).padStart(2, '0'),\n\t\t]\n\t\tserialized += ` ${hours}:${minutes}`\n\t}\n\n\treturn serialized\n}\n"],"names":[],"mappings":";;AAAO,MAAM,8BAA8B,CAAC,MAAY,EAAE,YAAY,IAA+B,CAAA,MAAe;AACnH,QAAM,CAAC,MAAM,OAAO,GAAG,IAAI;AAAA,IAC1B,KAAK,YAAY;AAAA,KAChB,KAAK,SAAa,IAAA,GAAG,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAChD,KAAK,UAAU,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,EAAA;AAE1C,MAAI,aAAa,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG;AAExC,MAAI,aAAa;AACV,UAAA,CAAC,OAAO,OAAO,IAAI;AAAA,MACxB,KAAK,WAAW,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,MAC1C,KAAK,aAAa,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAAA;AAE/B,kBAAA,IAAI,KAAK,IAAI,OAAO;AAAA,EACnC;AAEO,SAAA;AACR;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dateToStringWithoutTimezone.js","sources":["../../../src/data-utilities/dateToStringWithoutTimezone.ts"],"sourcesContent":["export const dateToStringWithoutTimezone = (date: Date, { includeTime }: { includeTime?: boolean } = {}): string => {\n\tconst [year, month, day] = [\n\t\tdate.getFullYear(),\n\t\t(date.getMonth() + 1).toFixed(0).padStart(2, '0'),\n\t\tdate.getDate().toFixed(0).padStart(2, '0'),\n\t]\n\tlet serialized = `${year}-${month}-${day}`\n\n\tif (includeTime) {\n\t\tconst [hours, minutes] = [\n\t\t\tdate.getHours().toFixed(0).padStart(2, '0'),\n\t\t\tdate.getMinutes().toFixed(0).padStart(2, '0'),\n\t\t]\n\t\tserialized += ` ${hours}:${minutes}`\n\t}\n\n\treturn serialized\n}\n"],"names":[],"mappings":"AAAO,MAAM,8BAA8B,CAAC,MAAY,EAAE,YAAY,IAA+B,CAAA,MAAe;AACnH,QAAM,CAAC,MAAM,OAAO,GAAG,IAAI;AAAA,IAC1B,KAAK,YAAY;AAAA,KAChB,KAAK,SAAa,IAAA,GAAG,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAChD,KAAK,UAAU,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,EAAA;AAE1C,MAAI,aAAa,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG;AAExC,MAAI,aAAa;AACV,UAAA,CAAC,OAAO,OAAO,IAAI;AAAA,MACxB,KAAK,WAAW,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,MAC1C,KAAK,aAAa,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAAA;AAE/B,kBAAA,IAAI,KAAK,IAAI,OAAO;AAAA,EACnC;AAEO,SAAA;AACR;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecate.cjs","sources":["../../../src/deprecate/deprecate.ts"],"sourcesContent":["import { SemverString } from './types'\n\n/**\n * Logs a deprecation warning if the assertion is `false`.\n * @internal\n *\n * @param removal - Version when the deprecated feature will be removed\n * @param condition - Condition under which the deprecation warning will be logged\n * @param deprecated - Name of the deprecated feature\n * @param replacement - Name of the feature that replaces the deprecated feature\n *\n * @example\n * ```ts\n * const { visible } = props\n * deprecate(visible !== 'default', '1.3.0', '\"default\"', '\"hidden\"')\n * // Logs: Use of \"default\" is deprecated and might be removed in the next release. Use \"hidden\" instead.\n * ```\n */\nexport function deprecate(removal: SemverString, condition: boolean, deprecated: string, replacement: string | null): void {\n\tif (condition === true) {\n\t\tif (import.meta.env.DEV) {\n\t\t\tconst shouldThrow = Boolean(import.meta.env.VITE_CONTEMBER_ADMIN_STRICT_DEPRECATIONS)\n\n\t\t\tif (shouldThrow) {\n\t\t\t\tthrow new Error(`Support for ${deprecated} was planned to be removed in the ${removal} release.${replacement ? ` Replace it with ${replacement} instead.` : 'Remove it.'}`)\n\t\t\t} else {\n\t\t\t\tconsole.warn(`Use of ${deprecated} is deprecated and might be removed in the next release.${replacement ? ` Use ${replacement} instead.` : ' There is no replacement.'}`)\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;AAkBO,SAAS,UAAU,SAAuB,WAAoB,YAAoB,aAAkC;AAC1H,MAAI,cAAc,MAAM;AACE;AAClB,YAAA,cAAc,QAAQ,+BAAgB,wCAAwC;AAEpF,UAAI,aAAa;AAChB,cAAM,IAAI,MAAM,eAAe,UAAU,qCAAqC,OAAO,YAAY,cAAc,oBAAoB,WAAW,cAAc,YAAY,EAAE;AAAA,MAAA,OACpK;AACE,gBAAA,KAAK,UAAU,UAAU,2DAA2D,cAAc,QAAQ,WAAW,cAAc,2BAA2B,EAAE;AAAA,MACzK;AAAA,IACD;AAAA,EACD;AACD;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecate.js","sources":["../../../src/deprecate/deprecate.ts"],"sourcesContent":["import { SemverString } from './types'\n\n/**\n * Logs a deprecation warning if the assertion is `false`.\n * @internal\n *\n * @param removal - Version when the deprecated feature will be removed\n * @param condition - Condition under which the deprecation warning will be logged\n * @param deprecated - Name of the deprecated feature\n * @param replacement - Name of the feature that replaces the deprecated feature\n *\n * @example\n * ```ts\n * const { visible } = props\n * deprecate(visible !== 'default', '1.3.0', '\"default\"', '\"hidden\"')\n * // Logs: Use of \"default\" is deprecated and might be removed in the next release. Use \"hidden\" instead.\n * ```\n */\nexport function deprecate(removal: SemverString, condition: boolean, deprecated: string, replacement: string | null): void {\n\tif (condition === true) {\n\t\tif (import.meta.env.DEV) {\n\t\t\tconst shouldThrow = Boolean(import.meta.env.VITE_CONTEMBER_ADMIN_STRICT_DEPRECATIONS)\n\n\t\t\tif (shouldThrow) {\n\t\t\t\tthrow new Error(`Support for ${deprecated} was planned to be removed in the ${removal} release.${replacement ? ` Replace it with ${replacement} instead.` : 'Remove it.'}`)\n\t\t\t} else {\n\t\t\t\tconsole.warn(`Use of ${deprecated} is deprecated and might be removed in the next release.${replacement ? ` Use ${replacement} instead.` : ' There is no replacement.'}`)\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";AAkBO,SAAS,UAAU,SAAuB,WAAoB,YAAoB,aAAkC;AAC1H,MAAI,cAAc,MAAM;AACE;AAClB,YAAA,cAAc,QAAQ,+BAAgB,wCAAwC;AAEpF,UAAI,aAAa;AAChB,cAAM,IAAI,MAAM,eAAe,UAAU,qCAAqC,OAAO,YAAY,cAAc,oBAAoB,WAAW,cAAc,YAAY,EAAE;AAAA,MAAA,OACpK;AACE,gBAAA,KAAK,UAAU,UAAU,2DAA2D,cAAc,QAAQ,WAAW,cAAc,2BAA2B,EAAE;AAAA,MACzK;AAAA,IACD;AAAA,EACD;AACD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataAttribute.cjs","sources":["../../../src/dom/dataAttribute.ts"],"sourcesContent":["export function dataAttribute(value: unknown): string | true | undefined {\n\tif (value === false || value === undefined || value === null) {\n\t\treturn undefined\n\t} else if (value === true) {\n\t\t// Closest to HTML: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes\n\t\t// React issue: https://github.com/facebook/react/issues/24812\n\t\treturn ''\n\t} else {\n\t\treturn String(value)\n\t}\n}\n"],"names":[],"mappings":";;AAAO,SAAS,cAAc,OAA2C;AACxE,MAAI,UAAU,SAAS,UAAU,UAAa,UAAU,MAAM;AACtD,WAAA;AAAA,EAAA,WACG,UAAU,MAAM;AAGnB,WAAA;AAAA,EAAA,OACD;AACN,WAAO,OAAO,KAAK;AAAA,EACpB;AACD;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataAttribute.js","sources":["../../../src/dom/dataAttribute.ts"],"sourcesContent":["export function dataAttribute(value: unknown): string | true | undefined {\n\tif (value === false || value === undefined || value === null) {\n\t\treturn undefined\n\t} else if (value === true) {\n\t\t// Closest to HTML: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes\n\t\t// React issue: https://github.com/facebook/react/issues/24812\n\t\treturn ''\n\t} else {\n\t\treturn String(value)\n\t}\n}\n"],"names":[],"mappings":"AAAO,SAAS,cAAc,OAA2C;AACxE,MAAI,UAAU,SAAS,UAAU,UAAa,UAAU,MAAM;AACtD,WAAA;AAAA,EAAA,WACG,UAAU,MAAM;AAGnB,WAAA;AAAA,EAAA,OACD;AACN,WAAO,OAAO,KAAK;AAAA,EACpB;AACD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElementDimensions.cjs","sources":["../../../src/dom/getElementDimensions.ts"],"sourcesContent":["/**\n * Calls the callback with the element's dimensions.\n *\n * @param element - The element to observe for dimensions\n * @param callback - The callback to call with the element's dimensions\n */\nexport function getElementDimensionsCallback(\n\telement: HTMLElement,\n\tcallback: (dimensions: DOMRectReadOnly) => void,\n) {\n\tconst observer = new IntersectionObserver((entries, observer) => {\n\t\tif (entries.length === 1) {\n\t\t\tcallback(entries[0].boundingClientRect)\n\t\t} else {\n\t\t\tconst entry = entries.find(entry => entry.boundingClientRect.width > 0 || entry.boundingClientRect.height > 0) || entries[0]\n\t\t\tcallback(entry.boundingClientRect)\n\t\t}\n\n\t\tobserver.disconnect()\n\t})\n\n\tobserver.observe(element)\n}\n\n/**\n * Returns a promise that resolves with the element's dimensions.\n * @param element - The element to observe for dimensions\n * @returns A promise that resolves with the element's dimensions\n */\nexport function getElementDimensions(\n\telement: HTMLElement,\n): Promise<DOMRectReadOnly> {\n\treturn new Promise(resolve => {\n\t\tgetElementDimensionsCallback(element, resolve)\n\t})\n}\n"],"names":["observer","entry"],"mappings":";;AAMgB,SAAA,6BACf,SACA,UACC;AACD,QAAM,WAAW,IAAI,qBAAqB,CAAC,SAASA,cAAa;AAC5D,QAAA,QAAQ,WAAW,GAAG;AAChB,eAAA,QAAQ,CAAC,EAAE,kBAAkB;AAAA,IAAA,OAChC;AACN,YAAM,QAAQ,QAAQ,KAAK,CAAAC,WAASA,OAAM,mBAAmB,QAAQ,KAAKA,OAAM,mBAAmB,SAAS,CAAC,KAAK,QAAQ,CAAC;AAC3H,eAAS,MAAM,kBAAkB;AAAA,IAClC;AAEAD,cAAS,WAAW;AAAA,EAAA,CACpB;AAED,WAAS,QAAQ,OAAO;AACzB;AAOO,SAAS,qBACf,SAC2B;AACpB,SAAA,IAAI,QAAQ,CAAW,YAAA;AAC7B,iCAA6B,SAAS,OAAO;AAAA,EAAA,CAC7C;AACF;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getElementDimensions.js","sources":["../../../src/dom/getElementDimensions.ts"],"sourcesContent":["/**\n * Calls the callback with the element's dimensions.\n *\n * @param element - The element to observe for dimensions\n * @param callback - The callback to call with the element's dimensions\n */\nexport function getElementDimensionsCallback(\n\telement: HTMLElement,\n\tcallback: (dimensions: DOMRectReadOnly) => void,\n) {\n\tconst observer = new IntersectionObserver((entries, observer) => {\n\t\tif (entries.length === 1) {\n\t\t\tcallback(entries[0].boundingClientRect)\n\t\t} else {\n\t\t\tconst entry = entries.find(entry => entry.boundingClientRect.width > 0 || entry.boundingClientRect.height > 0) || entries[0]\n\t\t\tcallback(entry.boundingClientRect)\n\t\t}\n\n\t\tobserver.disconnect()\n\t})\n\n\tobserver.observe(element)\n}\n\n/**\n * Returns a promise that resolves with the element's dimensions.\n * @param element - The element to observe for dimensions\n * @returns A promise that resolves with the element's dimensions\n */\nexport function getElementDimensions(\n\telement: HTMLElement,\n): Promise<DOMRectReadOnly> {\n\treturn new Promise(resolve => {\n\t\tgetElementDimensionsCallback(element, resolve)\n\t})\n}\n"],"names":["observer","entry"],"mappings":"AAMgB,SAAA,6BACf,SACA,UACC;AACD,QAAM,WAAW,IAAI,qBAAqB,CAAC,SAASA,cAAa;AAC5D,QAAA,QAAQ,WAAW,GAAG;AAChB,eAAA,QAAQ,CAAC,EAAE,kBAAkB;AAAA,IAAA,OAChC;AACN,YAAM,QAAQ,QAAQ,KAAK,CAAAC,WAASA,OAAM,mBAAmB,QAAQ,KAAKA,OAAM,mBAAmB,SAAS,CAAC,KAAK,QAAQ,CAAC;AAC3H,eAAS,MAAM,kBAAkB;AAAA,IAClC;AAEAD,cAAS,WAAW;AAAA,EAAA,CACpB;AAED,WAAS,QAAQ,OAAO;AACzB;AAOO,SAAS,qBACf,SAC2B;AACpB,SAAA,IAAI,QAAQ,CAAW,YAAA;AAC7B,iCAA6B,SAAS,OAAO;AAAA,EAAA,CAC7C;AACF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSizeFromResizeObserverEntry.cjs","sources":["../../../src/dom/getSizeFromResizeObserverEntry.ts"],"sourcesContent":["export function getSizeFromResizeObserverEntryFactory(box: ResizeObserverOptions['box']) {\n\treturn function getSizeFromResizeObserverEntry(entry: ResizeObserverEntry): { height: number, width: number } {\n\t\tconst boxSize = box === 'border-box'\n\t\t\t? entry.borderBoxSize\n\t\t\t: box === 'content-box'\n\t\t\t\t? entry.contentBoxSize\n\t\t\t\t: entry.devicePixelContentBoxSize\n\n\t\tif (boxSize) {\n\t\t\tconst formatBoxSize: ResizeObserverSize[] = Array.isArray(boxSize) ? boxSize : [boxSize]\n\n\t\t\treturn formatBoxSize.reduce(\n\t\t\t\t(previous, { inlineSize, blockSize }) => ({\n\t\t\t\t\twidth: previous.width + inlineSize,\n\t\t\t\t\theight: previous.height + blockSize,\n\t\t\t\t}),\n\t\t\t\t{ height: 0, width: 0 },\n\t\t\t)\n\t\t} else {\n\t\t\treturn {\n\t\t\t\twidth: entry.contentRect.width,\n\t\t\t\theight: entry.contentRect.height,\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;AAAO,SAAS,sCAAsC,KAAmC;AACjF,SAAA,SAAS,+BAA+B,OAA+D;AACvG,UAAA,UAAU,QAAQ,eACrB,MAAM,gBACN,QAAQ,gBACP,MAAM,iBACN,MAAM;AAEV,QAAI,SAAS;AACZ,YAAM,gBAAsC,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO;AAEvF,aAAO,cAAc;AAAA,QACpB,CAAC,UAAU,EAAE,YAAY,iBAAiB;AAAA,UACzC,OAAO,SAAS,QAAQ;AAAA,UACxB,QAAQ,SAAS,SAAS;AAAA,QAAA;AAAA,QAE3B,EAAE,QAAQ,GAAG,OAAO,EAAE;AAAA,MAAA;AAAA,IACvB,OACM;AACC,aAAA;AAAA,QACN,OAAO,MAAM,YAAY;AAAA,QACzB,QAAQ,MAAM,YAAY;AAAA,MAAA;AAAA,IAE5B;AAAA,EAAA;AAEF;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSizeFromResizeObserverEntry.js","sources":["../../../src/dom/getSizeFromResizeObserverEntry.ts"],"sourcesContent":["export function getSizeFromResizeObserverEntryFactory(box: ResizeObserverOptions['box']) {\n\treturn function getSizeFromResizeObserverEntry(entry: ResizeObserverEntry): { height: number, width: number } {\n\t\tconst boxSize = box === 'border-box'\n\t\t\t? entry.borderBoxSize\n\t\t\t: box === 'content-box'\n\t\t\t\t? entry.contentBoxSize\n\t\t\t\t: entry.devicePixelContentBoxSize\n\n\t\tif (boxSize) {\n\t\t\tconst formatBoxSize: ResizeObserverSize[] = Array.isArray(boxSize) ? boxSize : [boxSize]\n\n\t\t\treturn formatBoxSize.reduce(\n\t\t\t\t(previous, { inlineSize, blockSize }) => ({\n\t\t\t\t\twidth: previous.width + inlineSize,\n\t\t\t\t\theight: previous.height + blockSize,\n\t\t\t\t}),\n\t\t\t\t{ height: 0, width: 0 },\n\t\t\t)\n\t\t} else {\n\t\t\treturn {\n\t\t\t\twidth: entry.contentRect.width,\n\t\t\t\theight: entry.contentRect.height,\n\t\t\t}\n\t\t}\n\t}\n}\n"],"names":[],"mappings":"AAAO,SAAS,sCAAsC,KAAmC;AACjF,SAAA,SAAS,+BAA+B,OAA+D;AACvG,UAAA,UAAU,QAAQ,eACrB,MAAM,gBACN,QAAQ,gBACP,MAAM,iBACN,MAAM;AAEV,QAAI,SAAS;AACZ,YAAM,gBAAsC,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO;AAEvF,aAAO,cAAc;AAAA,QACpB,CAAC,UAAU,EAAE,YAAY,iBAAiB;AAAA,UACzC,OAAO,SAAS,QAAQ;AAAA,UACxB,QAAQ,SAAS,SAAS;AAAA,QAAA;AAAA,QAE3B,EAAE,QAAQ,GAAG,OAAO,EAAE;AAAA,MAAA;AAAA,IACvB,OACM;AACC,aAAA;AAAA,QACN,OAAO,MAAM,YAAY;AAAA,QACzB,QAAQ,MAAM,YAAY;AAAA,MAAA;AAAA,IAE5B;AAAA,EAAA;AAEF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shouldCancelStart.cjs","sources":["../../../src/dom/shouldCancelStart.ts"],"sourcesContent":["const interactiveElements = new Set(['INPUT', 'TEXTAREA', 'SELECT', 'OPTION', 'BUTTON'])\n\n// This is almost completely copied from the defaultShouldCancelStart.js from react-sortable-hoc.\n// We just needed to add support for slate void elements as well as some additional checks.\nexport const shouldCancelStart = (event: {target?: unknown}): boolean => {\n\t// Cancel sorting if the event target is an `input`, `textarea`, `select` or `option`\n\tif (!(event.target instanceof Element)) {\n\t\treturn true\n\t}\n\n\tlet el: Node | null = event.target\n\n\twhile (el) {\n\t\tif (el instanceof Element) {\n\t\t\tif (interactiveElements.has(el.tagName)) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t\tif ((el as any).sortableHandle === true) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif (el.getAttribute('data-slate-void') === 'true') {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif (el instanceof HTMLElement && el.contentEditable === 'true') {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\tel = el.parentNode\n\t}\n\n\treturn false\n}\n"],"names":[],"mappings":";;AAAA,MAAM,0CAA0B,IAAI,CAAC,SAAS,YAAY,UAAU,UAAU,QAAQ,CAAC;AAI1E,MAAA,oBAAoB,CAAC,UAAuC;AAEpE,MAAA,EAAE,MAAM,kBAAkB,UAAU;AAChC,WAAA;AAAA,EACR;AAEA,MAAI,KAAkB,MAAM;AAE5B,SAAO,IAAI;AACV,QAAI,cAAc,SAAS;AAC1B,UAAI,oBAAoB,IAAI,GAAG,OAAO,GAAG;AACjC,eAAA;AAAA,MACR;AACK,UAAA,GAAW,mBAAmB,MAAM;AACjC,eAAA;AAAA,MACR;AACA,UAAI,GAAG,aAAa,iBAAiB,MAAM,QAAQ;AAC3C,eAAA;AAAA,MACR;AACA,UAAI,cAAc,eAAe,GAAG,oBAAoB,QAAQ;AACxD,eAAA;AAAA,MACR;AAAA,IACD;AACA,SAAK,GAAG;AAAA,EACT;AAEO,SAAA;AACR;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shouldCancelStart.js","sources":["../../../src/dom/shouldCancelStart.ts"],"sourcesContent":["const interactiveElements = new Set(['INPUT', 'TEXTAREA', 'SELECT', 'OPTION', 'BUTTON'])\n\n// This is almost completely copied from the defaultShouldCancelStart.js from react-sortable-hoc.\n// We just needed to add support for slate void elements as well as some additional checks.\nexport const shouldCancelStart = (event: {target?: unknown}): boolean => {\n\t// Cancel sorting if the event target is an `input`, `textarea`, `select` or `option`\n\tif (!(event.target instanceof Element)) {\n\t\treturn true\n\t}\n\n\tlet el: Node | null = event.target\n\n\twhile (el) {\n\t\tif (el instanceof Element) {\n\t\t\tif (interactiveElements.has(el.tagName)) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t\tif ((el as any).sortableHandle === true) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif (el.getAttribute('data-slate-void') === 'true') {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\tif (el instanceof HTMLElement && el.contentEditable === 'true') {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t\tel = el.parentNode\n\t}\n\n\treturn false\n}\n"],"names":[],"mappings":"AAAA,MAAM,0CAA0B,IAAI,CAAC,SAAS,YAAY,UAAU,UAAU,QAAQ,CAAC;AAI1E,MAAA,oBAAoB,CAAC,UAAuC;AAEpE,MAAA,EAAE,MAAM,kBAAkB,UAAU;AAChC,WAAA;AAAA,EACR;AAEA,MAAI,KAAkB,MAAM;AAE5B,SAAO,IAAI;AACV,QAAI,cAAc,SAAS;AAC1B,UAAI,oBAAoB,IAAI,GAAG,OAAO,GAAG;AACjC,eAAA;AAAA,MACR;AACK,UAAA,GAAW,mBAAmB,MAAM;AACjC,eAAA;AAAA,MACR;AACA,UAAI,GAAG,aAAa,iBAAiB,MAAM,QAAQ;AAC3C,eAAA;AAAA,MACR;AACA,UAAI,cAAc,eAAe,GAAG,oBAAoB,QAAQ;AACxD,eAAA;AAAA,MACR;AAAA,IACD;AACA,SAAK,GAAG;AAAA,EACT;AAEO,SAAA;AACR;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateDataAttributes.cjs","sources":["../../../src/dom/stateDataAttributes.ts"],"sourcesContent":["import { toKebabCase } from '../string-utilities'\nimport { dataAttribute } from './dataAttribute'\n\nexport function stateDataAttributes(state: Record<string, unknown>) {\n\treturn Object.fromEntries(Object.entries(state).map(\n\t\t([key, value]) => [`data-${toKebabCase(key).toLowerCase()}`, dataAttribute(value)],\n\t))\n}\n"],"names":["toKebabCase","dataAttribute"],"mappings":";;;;AAGO,SAAS,oBAAoB,OAAgC;AACnE,SAAO,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE;AAAA,IAC/C,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,QAAQA,UAAAA,YAAY,GAAG,EAAE,YAAa,CAAA,IAAIC,cAAA,cAAc,KAAK,CAAC;AAAA,EAAA,CACjF;AACF;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateDataAttributes.js","sources":["../../../src/dom/stateDataAttributes.ts"],"sourcesContent":["import { toKebabCase } from '../string-utilities'\nimport { dataAttribute } from './dataAttribute'\n\nexport function stateDataAttributes(state: Record<string, unknown>) {\n\treturn Object.fromEntries(Object.entries(state).map(\n\t\t([key, value]) => [`data-${toKebabCase(key).toLowerCase()}`, dataAttribute(value)],\n\t))\n}\n"],"names":[],"mappings":";;AAGO,SAAS,oBAAoB,OAAgC;AACnE,SAAO,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE;AAAA,IAC/C,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,QAAQ,YAAY,GAAG,EAAE,YAAa,CAAA,IAAI,cAAc,KAAK,CAAC;AAAA,EAAA,CACjF;AACF;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svgSizeProps.cjs","sources":["../../../src/dom/svgSizeProps.ts"],"sourcesContent":["export interface SvgSizeProps {\n\twidth: number;\n\theight: number;\n\tviewBox: string;\n}\n\nexport function svgSizeProps(\n\twidth: number,\n\theight?: number,\n\tcrop: number = 0,\n): SvgSizeProps {\n\tconst viewBoxWidth = width - crop * 2\n\tconst viewBoxHeight = (height ?? width) - crop * 2\n\tconst viewBoxX = crop\n\tconst viewBoxY = crop\n\treturn {\n\t\twidth: viewBoxWidth,\n\t\theight: viewBoxHeight,\n\t\tviewBox: `${viewBoxX} ${viewBoxY} ${viewBoxWidth} ${viewBoxHeight}`,\n\t}\n}\n"],"names":[],"mappings":";;AAMO,SAAS,aACf,OACA,QACA,OAAe,GACA;AACT,QAAA,eAAe,QAAQ,OAAO;AAC9B,QAAA,iBAAiB,UAAU,SAAS,OAAO;AACjD,QAAM,WAAW;AACjB,QAAM,WAAW;AACV,SAAA;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS,GAAG,QAAQ,IAAI,QAAQ,IAAI,YAAY,IAAI,aAAa;AAAA,EAAA;AAEnE;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svgSizeProps.js","sources":["../../../src/dom/svgSizeProps.ts"],"sourcesContent":["export interface SvgSizeProps {\n\twidth: number;\n\theight: number;\n\tviewBox: string;\n}\n\nexport function svgSizeProps(\n\twidth: number,\n\theight?: number,\n\tcrop: number = 0,\n): SvgSizeProps {\n\tconst viewBoxWidth = width - crop * 2\n\tconst viewBoxHeight = (height ?? width) - crop * 2\n\tconst viewBoxX = crop\n\tconst viewBoxY = crop\n\treturn {\n\t\twidth: viewBoxWidth,\n\t\theight: viewBoxHeight,\n\t\tviewBox: `${viewBoxX} ${viewBoxY} ${viewBoxWidth} ${viewBoxHeight}`,\n\t}\n}\n"],"names":[],"mappings":"AAMO,SAAS,aACf,OACA,QACA,OAAe,GACA;AACT,QAAA,eAAe,QAAQ,OAAO;AAC9B,QAAA,iBAAiB,UAAU,SAAS,OAAO;AACjD,QAAM,WAAW;AACjB,QAAM,WAAW;AACV,SAAA;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS,GAAG,QAAQ,IAAI,QAAQ,IAAI,YAAY,IAAI,aAAa;AAAA,EAAA;AAEnE;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSpecialLinkClick.cjs","sources":["../../../src/events/isSpecialLinkClick.ts"],"sourcesContent":["export const isSpecialLinkClick = (e: MouseEvent): boolean => e.metaKey || e.altKey || e.ctrlKey || e.shiftKey\n"],"names":[],"mappings":";;AAAa,MAAA,qBAAqB,CAAC,MAA2B,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE;;"}
|