@cntrl-site/sdk-nextjs 1.10.0 → 1.10.2
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/cntrl-site-sdk-nextjs-1.9.125.tgz +0 -0
- package/lib/utils/detectLang.js +6 -0
- package/package.json +2 -2
- package/src/types/components-utils.d.ts +0 -5
- package/src/utils/detectLang.ts +6 -0
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/modules.xml +0 -8
- package/.idea/sdk-nextjs.iml +0 -12
- package/.idea/vcs.xml +0 -6
|
Binary file
|
package/lib/utils/detectLang.js
CHANGED
|
@@ -4,6 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.detectLang = void 0;
|
|
7
|
+
// franc-min ships no types, and this package publishes raw .ts as its
|
|
8
|
+
// "types" entry, so downstream projects type-check this file directly
|
|
9
|
+
// out of node_modules rather than a compiled .d.ts. No local `declare
|
|
10
|
+
// module` here on purpose — that would only cover this package's own
|
|
11
|
+
// build and leave @ts-expect-error unused (and thus itself an error).
|
|
12
|
+
// @ts-expect-error franc-min has no type declarations
|
|
7
13
|
const franc_min_1 = __importDefault(require("franc-min"));
|
|
8
14
|
// Maps the ISO 639-3 codes franc-min can detect to their ISO 639-1
|
|
9
15
|
// equivalent, since `lang` in the browser is conventionally two letters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntrl-site/sdk-nextjs",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "SDK for Next.js",
|
|
5
5
|
"author": "arsen@momdesign.nyc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@antfu/eslint-config": "^3.8.0",
|
|
33
33
|
"@cntrl-site/color": "^1.0.0",
|
|
34
|
-
"@cntrl-site/components": "^1.0.
|
|
34
|
+
"@cntrl-site/components": "^1.0.86",
|
|
35
35
|
"@cntrl-site/effects": "^1.4.2",
|
|
36
36
|
"@cntrl-site/sdk": "^1.28.10",
|
|
37
37
|
"@types/vimeo__player": "^2.18.0",
|
|
@@ -5,8 +5,3 @@ declare module '@cntrl-site/components/utils' {
|
|
|
5
5
|
export function getPositionStyles(position: any): Record<string, any>;
|
|
6
6
|
export function getImageRect(rect: any): Record<string, any>;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
declare module 'franc-min' {
|
|
10
|
-
function franc(text: string, options?: { minLength?: number; only?: string[]; blacklist?: string[] }): string;
|
|
11
|
-
export = franc;
|
|
12
|
-
}
|
package/src/utils/detectLang.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// franc-min ships no types, and this package publishes raw .ts as its
|
|
2
|
+
// "types" entry, so downstream projects type-check this file directly
|
|
3
|
+
// out of node_modules rather than a compiled .d.ts. No local `declare
|
|
4
|
+
// module` here on purpose — that would only cover this package's own
|
|
5
|
+
// build and leave @ts-expect-error unused (and thus itself an error).
|
|
6
|
+
// @ts-expect-error franc-min has no type declarations
|
|
1
7
|
import franc from 'franc-min';
|
|
2
8
|
|
|
3
9
|
// Maps the ISO 639-3 codes franc-min can detect to their ISO 639-1
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/sdk-nextjs.iml" filepath="$PROJECT_DIR$/.idea/sdk-nextjs.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/sdk-nextjs.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|