@haklex/rich-ext-poll 0.31.0 → 0.32.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.
@@ -10,7 +10,7 @@ import { createRendererDecoration } from "@haklex/rich-editor/renderers";
10
10
  */
11
11
  var POLL_NODE_KEY = "Poll";
12
12
  //#endregion
13
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
13
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
14
14
  function _typeof(o) {
15
15
  "@babel/helpers - typeof";
16
16
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -20,7 +20,7 @@ function _typeof(o) {
20
20
  }, _typeof(o);
21
21
  }
22
22
  //#endregion
23
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
23
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
24
24
  function toPrimitive(t, r) {
25
25
  if ("object" != _typeof(t) || !t) return t;
26
26
  var e = t[Symbol.toPrimitive];
@@ -32,13 +32,13 @@ function toPrimitive(t, r) {
32
32
  return ("string" === r ? String : Number)(t);
33
33
  }
34
34
  //#endregion
35
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
35
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
36
36
  function toPropertyKey(t) {
37
37
  var i = toPrimitive(t, "string");
38
38
  return "symbol" == _typeof(i) ? i : i + "";
39
39
  }
40
40
  //#endregion
41
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
41
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
42
42
  function _defineProperty(e, r, t) {
43
43
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
44
44
  value: t,
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import { n as $isPollNode, o as _defineProperty, r as PollNode } from "./PollNode-C1-UNCUq.js";
2
+ import { n as $isPollNode, o as _defineProperty, r as PollNode } from "./PollNode-CzesOV33.js";
3
3
  import { $getNodeByKey, $insertNodes } from "lexical";
4
4
  import { CalendarClock, ChevronDown, ChevronUp, Plus, Vote, X } from "lucide-react";
5
5
  import { createElement, useCallback, useEffect, useRef, useState } from "react";
package/dist/edit.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-BHltK-7F.js";
2
+ import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-CBzjNYm8.js";
3
3
  export { $createPollEditNode, PollEditDecorator, PollEditNode, __augmentLoaded_poll, pollEditClasses, pollEditNodes };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-BHltK-7F.js";
3
- import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-C1-UNCUq.js";
4
- import { n as extractPolls, t as pollNodes } from "./node-ooxQlvba.js";
2
+ import { a as pollEditClasses, i as PollEditDecorator, n as $createPollEditNode, r as PollEditNode, t as pollEditNodes } from "./edit-CBzjNYm8.js";
3
+ import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-CzesOV33.js";
4
+ import { n as extractPolls, t as pollNodes } from "./node-CCW352Sd.js";
5
5
  import { a as usePollDataAdapter, i as useInitialPollState, n as PollRenderer, o as pollClasses, r as PollDataProvider } from "./renderer-Dpuf1V70.js";
6
6
  export { $createPollEditNode, $createPollNode, $isPollNode, POLL_NODE_KEY, PollDataProvider, PollEditDecorator, PollEditNode, PollNode, PollRenderer, __augmentLoaded_poll, createOptionId, createPollId, extractPolls, pollClasses, pollEditClasses, pollEditNodes, pollNodes, useInitialPollState, usePollDataAdapter };
@@ -1,4 +1,4 @@
1
- import { r as PollNode } from "./PollNode-C1-UNCUq.js";
1
+ import { r as PollNode } from "./PollNode-CzesOV33.js";
2
2
  //#region src/extractPolls.ts
3
3
  function isPollNode(node) {
4
4
  return node.type === "poll";
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-C1-UNCUq.js";
3
- import { n as extractPolls, t as pollNodes } from "./node-ooxQlvba.js";
2
+ import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-CzesOV33.js";
3
+ import { n as extractPolls, t as pollNodes } from "./node-CCW352Sd.js";
4
4
  export { $createPollNode, $isPollNode, POLL_NODE_KEY, PollNode, __augmentLoaded_poll, createOptionId, createPollId, extractPolls, pollNodes };
package/dist/static.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __augmentLoaded_poll } from "./augment-CFugN2li.js";
2
- import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-C1-UNCUq.js";
3
- import { n as extractPolls, t as pollNodes } from "./node-ooxQlvba.js";
2
+ import { a as createPollId, i as createOptionId, n as $isPollNode, r as PollNode, s as POLL_NODE_KEY, t as $createPollNode } from "./PollNode-CzesOV33.js";
3
+ import { n as extractPolls, t as pollNodes } from "./node-CCW352Sd.js";
4
4
  import { a as usePollDataAdapter, i as useInitialPollState, n as PollRenderer, o as pollClasses, r as PollDataProvider } from "./renderer-Dpuf1V70.js";
5
5
  export { $createPollNode, $isPollNode, POLL_NODE_KEY, PollDataProvider, PollNode, PollRenderer, __augmentLoaded_poll, createOptionId, createPollId, extractPolls, pollClasses, pollNodes, useInitialPollState, usePollDataAdapter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-poll",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Reader-facing vote/poll widget extension",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,30 +37,30 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "nanoid": "^5.1.16",
41
- "@haklex/rich-style-token": "0.31.0"
40
+ "nanoid": "^6.0.0",
41
+ "@haklex/rich-style-token": "0.32.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@lexical/react": "^0.47.0",
44
+ "@lexical/react": "^0.48.0",
45
45
  "@types/react": "^19.2.17",
46
46
  "@types/react-dom": "^19.2.3",
47
- "@vanilla-extract/css": "^1.21.0",
48
- "@vanilla-extract/vite-plugin": "^5.2.3",
49
- "lexical": "^0.47.0",
50
- "react": "^19.2.7",
51
- "react-dom": "19.2.7",
52
- "typescript": "^6.0.3",
47
+ "@vanilla-extract/css": "^1.21.1",
48
+ "@vanilla-extract/vite-plugin": "^5.2.5",
49
+ "lexical": "^0.48.0",
50
+ "react": "^19.2.8",
51
+ "react-dom": "^19.2.8",
52
+ "typescript": "^7.0.2",
53
53
  "unplugin-dts": "^1.0.3",
54
- "vite": "^8.1.0",
55
- "@haklex/rich-editor": "0.31.0"
54
+ "vite": "^8.1.5",
55
+ "@haklex/rich-editor": "0.32.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@lexical/react": "^0.47.0",
59
59
  "lexical": "^0.47.0",
60
60
  "lucide-react": "^1.0.0",
61
61
  "react": ">=19",
62
- "@haklex/rich-editor": "^0.31.0",
63
- "@haklex/rich-editor-ui": "^0.31.0"
62
+ "@haklex/rich-editor-ui": "^0.32.0",
63
+ "@haklex/rich-editor": "^0.32.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"