@symbiote-native/slider 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@symbiote-native/slider",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "Third-party native Slider view wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, and Angular adapters.",
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/OneEyed1366/symbiote-native.git",
@@ -61,18 +62,18 @@
61
62
  },
62
63
  "dependencies": {
63
64
  "@react-native-community/slider": "5.2.0",
64
- "@symbiote-native/components": "0.2.5"
65
+ "@symbiote-native/components": "0.2.6"
65
66
  },
66
67
  "peerDependencies": {
67
- "@symbiote-native/engine": ">=0.1.6",
68
+ "@symbiote-native/engine": ">=0.1.7",
68
69
  "@angular/core": ">=20",
69
70
  "@vue/runtime-core": "^3.5.13",
70
71
  "react": ">=19.0.0",
71
72
  "react-native": ">=0.86",
72
73
  "vue": ">=3.5.0",
73
- "@symbiote-native/angular": "0.5.0",
74
- "@symbiote-native/react": "0.2.6",
75
- "@symbiote-native/vue": "0.3.6"
74
+ "@symbiote-native/angular": "0.6.0",
75
+ "@symbiote-native/react": "0.2.7",
76
+ "@symbiote-native/vue": "0.3.7"
76
77
  },
77
78
  "peerDependenciesMeta": {
78
79
  "@symbiote-native/angular": {
@@ -106,11 +107,11 @@
106
107
  "@vue/runtime-core": "^3.5.13",
107
108
  "react": "19.2.3",
108
109
  "typescript": "~6.0.0",
109
- "@symbiote-native/angular": "0.5.0",
110
- "@symbiote-native/engine": "0.1.6",
111
- "@symbiote-native/test-utils": "0.1.5",
112
- "@symbiote-native/react": "0.2.6",
113
- "@symbiote-native/vue": "0.3.6"
110
+ "@symbiote-native/angular": "0.6.0",
111
+ "@symbiote-native/engine": "0.1.7",
112
+ "@symbiote-native/react": "0.2.7",
113
+ "@symbiote-native/test-utils": "0.1.6",
114
+ "@symbiote-native/vue": "0.3.7"
114
115
  },
115
116
  "scripts": {
116
117
  "typecheck": "tsc --build",
@@ -1 +0,0 @@
1
- import '@react-native-community/slider/dist/RNCSliderNativeComponent';
@@ -1,48 +0,0 @@
1
- // Side-effect: register RNCSlider's ViewConfig in RN's ReactNativeViewConfigRegistry. Evaluating
2
- // the codegen native-component spec (codegenNativeComponent('RNCSlider', …)) registers the
3
- // ViewConfig getter the engine reads via setNativeViewConfigSource, so the engine can derive
4
- // RNCSlider's events and color/image processors on first commit. We pull the codegen SPEC, never
5
- // the library's default export (Slider.tsx, a React component using hooks) — this module has no
6
- // hooks, so it is framework-agnostic and shared by every adapter entry (vue / react). Each adapter
7
- // barrel imports it; the component modules and their headless tests stay free of the spec.
8
- import '@react-native-community/slider/dist/RNCSliderNativeComponent';
9
- import { processColor, registerComponent } from '@symbiote-native/engine';
10
- import { RNC_SLIDER_VIEW_NAME, SLIDER_ON_CHANGE, SLIDER_ON_VALUE_CHANGE, SLIDER_ON_SLIDING_START, SLIDER_ON_SLIDING_COMPLETE, SLIDER_ON_ACCESSIBILITY_ACTION, } from './core';
11
- function listenerName(prop) {
12
- return prop.charAt(2).toLowerCase() + prop.slice(3);
13
- }
14
- function processSliderColor(value) {
15
- return processColor(value);
16
- }
17
- // Fallback metadata for the native slider. RN's codegen module above normally registers the same
18
- // ViewConfig into ReactNativeViewConfigRegistry, but relying only on that side effect is brittle on
19
- // Metro/RN version boundaries: if the registry lookup misses, the slider still mounts, but tint
20
- // props stay raw and native value events never route back to JS. Keep the explicit fallback here,
21
- // in the wrapper package that owns RNCSlider, so React/Vue/Angular all inherit the same behavior.
22
- registerComponent(RNC_SLIDER_VIEW_NAME, {
23
- events: [
24
- { raw: 'topChange', listener: listenerName(SLIDER_ON_CHANGE) },
25
- { raw: 'topRNCSliderValueChange', listener: listenerName(SLIDER_ON_VALUE_CHANGE) },
26
- {
27
- raw: 'topRNCSliderSlidingStart',
28
- listener: listenerName(SLIDER_ON_SLIDING_START),
29
- direct: true,
30
- },
31
- {
32
- raw: 'topRNCSliderSlidingComplete',
33
- listener: listenerName(SLIDER_ON_SLIDING_COMPLETE),
34
- direct: true,
35
- },
36
- {
37
- raw: 'topRNCSliderAccessibilityAction',
38
- listener: listenerName(SLIDER_ON_ACCESSIBILITY_ACTION),
39
- direct: true,
40
- },
41
- ],
42
- processors: {
43
- minimumTrackTintColor: processSliderColor,
44
- maximumTrackTintColor: processSliderColor,
45
- thumbTintColor: processSliderColor,
46
- },
47
- });
48
- //# sourceMappingURL=register.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,2FAA2F;AAC3F,6FAA6F;AAC7F,iGAAiG;AACjG,gGAAgG;AAChG,mGAAmG;AACnG,2FAA2F;AAE3F,OAAO,8DAA8D,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAoB,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,QAAQ,CAAC;AAEhB,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,OAAO,YAAY,CAAC,KAAoB,CAAC,CAAC;AAC5C,CAAC;AAED,iGAAiG;AACjG,oGAAoG;AACpG,gGAAgG;AAChG,kGAAkG;AAClG,kGAAkG;AAClG,iBAAiB,CAAC,oBAAoB,EAAE;IACtC,MAAM,EAAE;QACN,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,CAAC,gBAAgB,CAAC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